@charset "UTF-8";
/**
 * simulator.css
 * 복리 시뮬레이터 전용 페이지 스타일
 */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html,
body {
    overflow-x: clip;
    width: 100%;
    max-width: 100%;
}

body {
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, Arial, sans-serif;
    background: #f3f5f9;
    color: #222;
    line-height: 1.7;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ── 웹 접근성: 스크린 리더 전용 숨김 유틸리티 ── */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ── 웹 접근성: 본문 바로가기 (Skip Navigation) ── */
.skip-nav {
    position: absolute;
    top: -9999px;
    left: 50%;
    transform: translateX(-50%);
    background: #1a2332;
    color: #fff;
    padding: 12px 24px;
    font-weight: 700;
    border-radius: 0 0 8px 8px;
    z-index: 99999;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    transition: top 0.2s ease;
}

.skip-nav:focus {
    top: 0;
    outline: 2px solid #3b82f6;
}

/* ── 헤더 ── */
body>header {
    background: #1a2332;
    border-bottom: 1px solid #1a2332;
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .15);
    will-change: transform;
    /* iOS 사파리 sticky 스크롤 점프 방지 */
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

nav {
    max-width: 1060px;
    margin: auto;
    padding: 24px 41px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.logo {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    line-height: 1;
}

.nav-logo-img {
    height: 48px;
    width: auto;
    display: block;
    object-fit: contain;
    flex-shrink: 0;
    image-rendering: -webkit-optimize-contrast;
    transition: transform .2s ease, opacity .2s ease;
}

.logo:hover .nav-logo-img {
    transform: scale(1.03);
    opacity: 0.95;
}

.nav-links {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
}

.nav-links a {
    color: #c8d8ea;
    text-decoration: none;
    font-size: 18px;
    padding: 9px 19px;
    border-radius: 20px;
    transition: background .2s, color .2s;
}

.nav-links a:hover,
.nav-links a.on {
    background: #173b63;
    color: #fff;
}

/* ── 헤더 금융 키워드 검색창 ── */
.nav-search-form {
    display: inline-flex;
    align-items: center;
    position: relative;
    margin-left: 10px;
}

.nav-search-input {
    width: 175px;
    height: 36px;
    padding: 0 34px 0 14px;
    font-size: 13.5px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    outline: none;
    transition: all .25s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: inherit;
}

.nav-search-input::placeholder {
    color: rgba(255, 255, 255, 0.55);
    font-size: 13px;
}

.nav-search-input:focus {
    width: 220px;
    background: rgba(255, 255, 255, 0.16);
    border-color: #38a169;
    box-shadow: 0 0 0 3px rgba(56, 161, 105, 0.25);
}

.nav-search-btn {
    position: absolute;
    right: 10px;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color .2s ease, transform .2s ease;
}

.nav-search-btn:hover {
    color: #4ade80;
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .nav-search-form {
        margin-left: 6px;
    }

    .nav-search-input {
        width: 130px;
        font-size: 12px;
    }

    .nav-search-input:focus {
        width: 155px;
    }
}



/* ── 시뮬레이터 히어로 (PC 슬림 최적화) ── */
header.sim-hero,
.sim-hero {
    background: none;
    border: none;
    position: static;
    box-shadow: none;
    color: #173b63;
    padding: 34px 24px 22px;
    text-align: center;
}

.sim-hero h1 {
    font-size: 27px;
    font-weight: 800;
    letter-spacing: -.5px;
    color: #173b63;
    margin-bottom: 8px;
    line-height: 1.32;
}

.sim-hero p {
    font-size: 14px;
    color: #4e6277;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.55;
    word-break: keep-all;
}

/* ── 본문 레이아웃 (PC 슬림 최적화) ── */
main {
    max-width: 1060px;
    margin: 0 auto;
    padding: 0 24px 50px;
}

/* ── 시뮬레이터 메인 카드 (PC 슬림 최적화) ── */
.calc-section {
    background: #fff;
    border: 1px solid #d8e2ee;
    border-radius: 14px;
    padding: 22px 24px 20px;
    margin-bottom: 22px;
    box-shadow: 0 4px 18px rgba(23, 59, 99, .05);
    max-width: 100%;
    overflow: hidden;
}

.calc-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 22px;
    align-items: stretch;
}

.calc-inputs {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.calc-group {
    background: #f8fafc;
    border: 1px solid #e9eef5;
    border-radius: 9px;
    padding: 9px 13px 8px;
}

.calc-group-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

.calc-label {
    font-size: 12.5px;
    font-weight: 700;
    color: #273e56;
}

.calc-input-wrap {
    display: inline-flex;
    align-items: center;
    background: #fff;
    border: 1px solid #cbd5e1;
    border-radius: 5px;
    padding: 1px 6px;
    white-space: nowrap;
    flex-shrink: 0;
    height: 26px;
    box-sizing: border-box;
    transition: border-color .15s, box-shadow .15s;
}

.calc-input-wrap:focus-within {
    border-color: #173b63;
    box-shadow: 0 0 0 2px rgba(23, 59, 99, .10);
}

.calc-num-input {
    width: 62px;
    border: none;
    background: transparent;
    font-size: 13.5px;
    font-weight: 700;
    color: #173b63;
    text-align: right;
    outline: none;
    padding: 0 2px;
    font-family: inherit;
    appearance: textfield;
    -moz-appearance: textfield;
    height: 24px;
    line-height: 24px;
}

.calc-num-input::-webkit-outer-spin-button,
.calc-num-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.calc-unit {
    font-size: 11px;
    font-weight: 600;
    color: #64748b;
    margin-left: 2px;
    white-space: nowrap;
    flex-shrink: 0;
    word-break: keep-all;
}

.calc-slider {
    width: 100%;
    height: 5px;
    border-radius: 3px;
    background: #dde5ee;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
    margin: 4px 0 3px;
}

.calc-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: #1e5a9c;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, .2);
    transition: transform .1s;
}

.calc-slider::-webkit-slider-thumb:hover {
    transform: scale(1.15);
}

/* ── 적립 주기 선택 셀렉트 박스 ── */
.calc-freq-box-wrap {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.calc-select-box {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.calc-freq-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 5px;
    padding: 2px 20px 2px 8px;
    font-size: 12.5px;
    font-weight: 700;
    color: #173b63;
    font-family: inherit;
    cursor: pointer;
    outline: none;
    height: 26px;
    line-height: 20px;
    box-sizing: border-box;
    transition: border-color .15s, box-shadow .15s, background .15s;
}

.calc-freq-select:hover {
    border-color: #173b63;
    background: #f8fafc;
}

.calc-freq-select:focus {
    border-color: #173b63;
    box-shadow: 0 0 0 2px rgba(23, 59, 99, .10);
}

.select-box-arrow {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: #4b637d;
}

.calc-quick-btns {
    display: flex;
    gap: 4px;
    margin-top: 5px;
    flex-wrap: wrap;
}

.calc-qbtn {
    background: #fff;
    border: 1px solid #d1dced;
    border-radius: 5px;
    font-size: 11px;
    color: #4b637d;
    padding: 2px 7px;
    cursor: pointer;
    transition: all .15s;
    line-height: 1.2;
}

.calc-qbtn:hover {
    background: #173b63;
    color: #fff;
    border-color: #173b63;
}

/* ── [바톤 웰스 시그니처: 프리미엄 딥 사파이어 & 네온 시안 골드 카드 (PC 슬림 최적화)] ── */
.calc-result-box {
    background: linear-gradient(145deg, #091a30 0%, #0f2746 55%, #183b63 100%);
    border: 1px solid rgba(56, 189, 248, 0.28);
    border-radius: 12px;
    padding: 16px 18px 14px;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 10px 25px -4px rgba(7, 21, 38, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.res-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-bottom: 2px;
}

.res-header {
    font-size: 12px;
    color: #7dd3fc;
    font-weight: 700;
    letter-spacing: -.2px;
    margin: 0;
    line-height: 1.2;
}

.btn-share {
    flex: 0 0 auto;
    width: auto;
    padding: 3px 8px;
    font-size: 10.5px;
    height: 22px;
    box-sizing: border-box;
    gap: 4px;
    white-space: nowrap;
    border-radius: 5px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(125, 211, 252, 0.25);
    color: #e0f2fe;
    cursor: pointer;
    transition: transform .12s, opacity .12s, background .15s;
}

.btn-share:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(125, 211, 252, 0.45);
}

.btn-share:active {
    transform: scale(0.96);
    opacity: 0.88;
}

.btn-save-img {
    background: rgba(14, 165, 233, 0.22);
    border-color: rgba(56, 189, 248, 0.45);
    color: #38bdf8;
}

.res-total {
    font-size: 26px;
    font-weight: 800;
    color: #22d3ee;
    margin: 2px 0 8px;
    letter-spacing: -.5px;
    text-shadow: 0 0 16px rgba(34, 211, 238, 0.35);
    line-height: 1.2;
}

.res-bar-wrap {
    height: 6px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 3px;
    overflow: hidden;
    display: flex;
    margin-bottom: 10px;
}

.res-bar-principal {
    background: #38bdf8;
    height: 100%;
    width: 48%;
    transition: width .3s ease;
}

.res-bar-profit {
    background: #f43f5e;
    height: 100%;
    width: 52%;
    transition: width .3s ease;
}

.res-breakdown {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    padding: 8px 12px;
    margin-bottom: 9px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    transition: background-color .2s, border-color .2s;
}

.res-breakdown:hover {
    background: rgba(255, 255, 255, 0.10);
    border-color: rgba(255, 255, 255, 0.20);
}

.res-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
}

.res-row .lbl {
    color: #cbdcf0;
    display: flex;
    align-items: center;
    gap: 5px;
}

.res-row .dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    display: inline-block;
}

.dot-principal {
    background: #38bdf8;
}

.dot-profit {
    background: #f43f5e;
}

.res-row .val {
    font-weight: 700;
    color: #fff;
}

/* ── 72의 법칙 위젯 ── */
.calc-label-tag {
    display: inline-block;
    font-size: 10.5px;
    font-weight: 700;
    color: #0284c7;
    background: #e0f2fe;
    padding: 2px 6px;
    border-radius: 5px;
    margin-left: 5px;
    vertical-align: middle;
}

.res-rule72 {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    padding: 8px 11px;
    margin-bottom: 9px;
    transition: background-color .2s;
}

.res-rule72:hover {
    background: rgba(255, 255, 255, 0.10);
}

.rule72-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 5px;
    margin-bottom: 3px;
}

.rule72-badge {
    background: rgba(14, 165, 233, 0.25);
    color: #7dd3fc;
    border: 1px solid rgba(56, 189, 248, 0.35);
    font-size: 9.5px;
    font-weight: 800;
    padding: 1px 5px;
    border-radius: 4px;
    letter-spacing: -.2px;
}

.rule72-label {
    font-size: 11.5px;
    color: #bae6fd;
    flex: 1;
    margin-left: 2px;
}

.rule72-years {
    font-size: 12.5px;
    font-weight: 800;
    color: #fcd34d;
}

.rule72-desc {
    font-size: 11px;
    color: #e2e8f0;
    line-height: 1.35;
}

.rule72-desc strong {
    color: #22d3ee;
}

.res-msg {
    font-size: 11.5px;
    color: #bae6fd;
    line-height: 1.4;
    background: rgba(0, 0, 0, 0.20);
    padding: 8px 11px;
    border-radius: 6px;
}

/* ── 연도별 차트 (PC 슬림 최적화) ── */
.calc-chart-section {
    margin-top: 22px;
    padding-top: 20px;
    border-top: 1px dashed #d5dfeb;
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 12px;
    flex-wrap: wrap;
    gap: 10px;
}

.chart-title h3 {
    font-size: 15.5px;
    font-weight: 800;
    color: #173b63;
    display: flex;
    align-items: center;
    gap: 6px;
}

.chart-sub {
    font-size: 11.5px;
    color: #6a829d;
    display: block;
    margin-top: 2px;
}

.chart-controls-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.chart-type-toggle {
    display: inline-flex;
    background: #edf2f7;
    border-radius: 7px;
    padding: 2px;
    gap: 2px;
    margin-left: 6px;
}

.chart-type-btn {
    border: none;
    background: transparent;
    padding: 3px 9px;
    font-size: 11.5px;
    font-weight: 700;
    color: #4b637d;
    border-radius: 5px;
    cursor: pointer;
    transition: all .15s;
}

.chart-type-btn:hover {
    color: #173b63;
}

.chart-type-btn.active {
    background: #173b63;
    color: #fff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .15);
}

.chart-legend {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 11.5px;
    font-weight: 600;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #4b637d;
}

.legend-color {
    width: 10px;
    height: 10px;
    border-radius: 2px;
    display: inline-block;
}

.legend-total {
    background: #ef4444;
}

.legend-principal {
    background: #60a5fa;
}

.chart-canvas-wrap {
    position: relative;
    background: #fbfcfe;
    border: 1px solid #e1e9f2;
    border-radius: 12px;
    padding: 12px 14px 10px;
    margin-bottom: 14px;
    box-shadow: inset 0 1px 4px rgba(0, 0, 0, .02);
    max-width: 100%;
    overflow: hidden;
}

.chart-canvas-wrap canvas {
    width: 100%;
    height: 190px;
    display: block;
}

.chart-tooltip {
    position: absolute;
    display: none;
    pointer-events: none;
    background: rgba(15, 23, 42, 0.94);
    color: #fff;
    padding: 7px 11px;
    border-radius: 7px;
    font-size: 11.5px;
    line-height: 1.4;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .25);
    z-index: 10;
    transform: translate(-50%, 0);
    white-space: nowrap;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

/* 4단계 마일스톤 카드 (PC 슬림 최적화) */
.chart-milestones-wrap {
    width: 100%;
}

.chart-milestones {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.mile-card {
    background: #f8fafc;
    border: 1px solid #e2eaf3;
    border-radius: 8px;
    padding: 8px 12px;
    text-align: center;
    transition: transform .15s, border-color .15s;
}

.mile-card:hover {
    transform: translateY(-2px);
    border-color: #ef4444;
    background: #fff;
}

.mile-year {
    font-size: 11px;
    font-weight: 700;
    color: #1a5ea3;
    margin-bottom: 2px;
}

.mile-total {
    font-size: 14px;
    font-weight: 800;
    color: #173b63;
}

.mile-profit {
    font-size: 11px;
    color: #dc2626;
    font-weight: 600;
    margin-top: 1px;
}

/* ── 관련 아티클 CTA (기존 단정하고 깔끔한 배너) ── */
.related-cta {
    background: linear-gradient(135deg, #f0f7ff 0%, #e8f2fc 100%);
    border: 1px solid #c9dcf2;
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 18px;
}

.related-cta-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.related-cta-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    color: #1a5ea3;
    background: #d4e9fa;
    padding: 2px 8px;
    border-radius: 10px;
    margin-bottom: 4px;
}

.related-cta-text h2 {
    font-size: 16px;
    font-weight: 800;
    color: #173b63;
    margin: 0 0 3px;
}

.related-cta-text p {
    font-size: 12.5px;
    color: #4e6277;
    line-height: 1.5;
    margin: 0;
}

.related-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 9px 20px;
    border-radius: 20px;
    background: #173b63;
    color: #fff;
    font-size: 13.5px;
    font-weight: 700;
    text-decoration: none;
    transition: background .2s, transform .18s;
    white-space: nowrap;
}

.related-cta-btn:hover {
    background: #1e5a9c;
    transform: translateY(-2px);
}

/* ── 금융 면책 카드 (E-E-A-T 신뢰성 보강) ── */
.disclaimer {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-left: 3.5px solid #64748b;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 12px;
    color: #64748b;
    line-height: 1.6;
    margin: 20px 0;
    word-break: keep-all;
}

.disclaimer strong {
    color: #4a5568;
    display: block;
    margin-bottom: 3px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .5px;
}

/* ── 최신 글 섹션 및 카드 (기존 단정하고 깔끔한 스타일) ── */
.sec-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 28px 0 14px;
}

.sec-title {
    font-size: 18px;
    font-weight: 800;
    color: #173b63;
    display: flex;
    align-items: center;
    gap: 7px;
    margin: 0;
}

.sec-more {
    font-size: 13.5px;
    font-weight: 600;
    color: #2563eb;
    text-decoration: none;
    transition: color .18s;
}

.sec-more:hover {
    color: #173b63;
    text-decoration: underline;
}

.posts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 16px;
    margin-bottom: 28px;
}

.card.post {
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 18px 20px 16px;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .03);
    transition: transform .18s, box-shadow .18s, border-color .18s;
}

.card.post:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(23, 59, 99, .08);
    border-color: #aac1e0;
}

.card.post:focus-visible {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
}

.card.post .date {
    font-size: 12px;
    color: #8fa1b5;
    margin-bottom: 7px;
    line-height: 1.3;
}

.card.post h2 {
    font-size: 16px;
    font-weight: 700;
    color: #173b63;
    line-height: 1.45;
    margin: 0 0 8px;
    word-break: keep-all;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color .18s;
}

.card.post:hover h2 {
    color: #2563eb;
}

.card.post p {
    font-size: 13px;
    color: #556980;
    line-height: 1.6;
    margin: 0;
    word-break: keep-all;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ── 푸터 ── */
footer {
    background: #1a2332;
    color: #7a8fa6;
    text-align: center;
    padding: 36px 20px;
    font-size: 13px;
    line-height: 1.8;
}

footer b {
    color: #c8d8ea;
    font-size: 14.5px;
}

.footer-links {
    margin: 10px 0 6px;
}

.footer-links a {
    color: #9cb2cb;
    font-size: 13px;
    text-decoration: none;
    margin: 0 7px;
    transition: color .2s;
}

.footer-links a:hover {
    color: #ffffff;
    text-decoration: underline;
}

footer .copyright {
    color: #8fa2ba;
    font-size: 12.5px;
    margin: 10px 0 0;
    letter-spacing: .2px;
}

/* ── 결과 공유 바 (최상단 미니 칩) ── */
.res-share-bar {
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
}

.btn-share {
    flex: 0 0 auto;
    width: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 3px 9px;
    min-height: 23px;
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.20);
    border-radius: 6px;
    color: #cbdcf0;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: all .15s ease;
    font-family: inherit;
    white-space: nowrap;
    letter-spacing: -.2px;
}

.btn-share:hover {
    background: rgba(255, 255, 255, 0.22);
    border-color: rgba(255, 255, 255, 0.35);
    color: #ffffff;
    transform: translateY(-1px);
}

.btn-save-img {
    background: rgba(16, 185, 129, 0.22);
    border-color: rgba(16, 185, 129, 0.45);
    color: #6ee7b7;
    box-shadow: none;
}

.btn-save-img:hover {
    background: #10b981;
    border-color: #10b981;
    color: #ffffff;
    box-shadow: 0 2px 6px rgba(16, 185, 129, 0.3);
}

.btn-share:active {
    transform: translateY(0);
}

/* ── 연도별 상세 데이터 테이블 ── */
.yearly-table-section {
    margin-top: 20px;
}

.yearly-table-toggle-btn {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 18px;
    background: #f8fafc;
    border: 1px solid #d8e3ef;
    border-radius: 10px;
    font-size: 13.5px;
    font-weight: 700;
    color: #173b63;
    cursor: pointer;
    transition: all .2s ease;
    font-family: inherit;
}

.yearly-table-toggle-btn:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
}

.yearly-table-toggle-btn.active {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    background: #edf2f7;
}

.toggle-arrow {
    transition: transform .25s ease;
    color: #64748b;
}

.yearly-table-wrap {
    display: none;
    max-height: 380px;
    overflow-y: auto;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    width: 100%;
    border: 1px solid #d8e3ef;
    border-top: none;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.yearly-table {
    width: 100%;
    min-width: 460px;
    border-collapse: collapse;
    font-size: 12.5px;
    text-align: right;
}

.yearly-table th {
    position: sticky;
    top: 0;
    background: #f8fafc;
    padding: 10px 12px;
    font-size: 12px;
    font-weight: 700;
    color: #475569;
    border-bottom: 1px solid #cbd5e1;
    z-index: 2;
}

.yearly-table th:first-child,
.yearly-table td:first-child {
    text-align: left;
    padding-left: 16px;
}

.yearly-table th:last-child,
.yearly-table td:last-child {
    padding-right: 16px;
}

.yearly-table td {
    padding: 9px 12px;
    border-bottom: 1px solid #f1f5f9;
    color: #334155;
}

.yearly-table tr:hover {
    background: #f8fafc;
}

.yearly-table .golden-row {
    background: #fff8f8;
}

.yearly-table .golden-row:hover {
    background: #fef2f2;
}

.badge-golden {
    display: inline-block;
    font-size: 9.5px;
    font-weight: 800;
    color: #dc2626;
    background: #fee2e2;
    padding: 1px 5px;
    border-radius: 4px;
    margin-left: 4px;
    vertical-align: middle;
}

.td-principal {
    color: #2563eb;
    font-weight: 600;
}

.td-profit {
    color: #dc2626;
    font-weight: 600;
}

.td-total {
    color: #1e293b;
}

.td-rate {
    font-weight: 700;
    color: #0284c7;
}

.td-rate.rate-high {
    color: #dc2626;
}

/* ── 반응형 ── */
@media (max-width: 768px) {
    nav {
        padding: 12px 16px;
    }

    .calc-section {
        padding: 16px 13px;
        margin-bottom: 20px;
        max-width: 100%;
        overflow: hidden;
        border-radius: 14px;
    }

    .calc-grid {
        grid-template-columns: 1fr;
        gap: 12px;
        min-width: 0;
        width: 100%;
    }

    /* ── [슬라이더 바 삭제 및 간편버튼 중심 토스형 레이아웃] ── */
    .calc-slider {
        display: none !important;
    }

    .calc-inputs {
        display: flex;
        flex-direction: column;
        gap: 4px;
        background: #f8fafc;
        border: 1px solid #e2eaf3;
        border-radius: 10px;
        padding: 6px 10px;
        min-width: 0;
        width: 100%;
    }

    .calc-group {
        display: flex;
        flex-direction: column;
        background: transparent;
        border: none;
        border-bottom: 1px dashed #e2eaf2;
        padding: 3px 0 4px;
        gap: 3px;
        min-width: 0;
        width: 100%;
        border-radius: 0;
    }

    .calc-group:last-child {
        border-bottom: none;
        padding-bottom: 1px;
    }

    .calc-group:first-child {
        padding-top: 1px;
    }

    .calc-group-top {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        margin-bottom: 0;
    }

    .calc-label {
        font-size: 11.5px;
        font-weight: 700;
        color: #273e56;
        letter-spacing: -.3px;
        line-height: 1.2;
    }

    .lbl-extra {
        display: inline;
        /* 슬라이더가 없어 공간이 여유로우므로 전체 노출 */
    }

    .calc-input-wrap {
        flex-shrink: 0;
        width: auto;
        display: inline-flex;
        align-items: center;
        box-sizing: border-box;
        padding: 1px 6px;
        border-radius: 6px;
        border: 1px solid #cbd5e1;
        background: #fff;
        white-space: nowrap;
        height: 26px;
        -webkit-tap-highlight-color: transparent;
        transition: border-color .15s, box-shadow .15s;
        touch-action: manipulation;
    }

    .calc-input-wrap:focus-within {
        border-color: #173b63;
        box-shadow: 0 0 0 2px rgba(23, 59, 99, 0.18);
    }

    .calc-num-input {
        width: 70px !important;
        font-size: 16px !important;
        /* iOS 사파리 탭 시 강제 확대(Auto-zoom) 원천 방지 */
        transform: scale(0.8);
        transform-origin: right center;
        font-weight: 700;
        padding: 0;
        text-align: right;
        height: 26px;
        line-height: 26px;
        border: none;
        outline: none;
        -webkit-tap-highlight-color: transparent;
    }

    .calc-unit {
        font-size: 10.5px;
        margin-left: 2px;
        white-space: nowrap;
        color: #64748b;
    }

    /* ── 간편 버튼들 (가로 1줄 균등 정렬 초슬림화 & 터치 히트박스 확장) ── */
    .calc-quick-btns {
        display: flex !important;
        gap: 3.5px;
        width: 100%;
        margin: 0;
        padding: 0;
    }

    .calc-qbtn {
        position: relative;
        flex: 1 1 0;
        min-width: 0;
        white-space: nowrap;
        font-size: 9.5px;
        font-weight: 700;
        color: #3b536f;
        background: #ffffff;
        border: 1px solid #d1dced;
        border-radius: 4px;
        padding: 1px 2px;
        min-height: 21px;
        height: 21px;
        box-sizing: border-box;
        line-height: 1;
        cursor: pointer;
        transition: all .15s ease;
        letter-spacing: -.4px;
        text-align: center;
        display: flex;
        align-items: center;
        justify-content: center;
        touch-action: manipulation;
    }

    /* 초슬림 버튼의 투명 터치 히트박스(Hit Area) 상하 확장 (오타 방지) */
    .calc-qbtn::before {
        content: '';
        position: absolute;
        top: -6px;
        bottom: -6px;
        left: -2px;
        right: -2px;
    }

    @media (hover: hover) {
        .calc-qbtn:hover {
            background: #173b63;
            color: #ffffff;
            border-color: #173b63;
        }

        .calc-qbtn:hover .qbtn-sub {
            color: #cbdcf0;
        }
    }

    .calc-qbtn:active {
        background: #173b63;
        color: #ffffff;
        border-color: #173b63;
        transform: scale(0.97);
    }

    .calc-qbtn:active .qbtn-sub {
        color: #cbdcf0;
    }

    .qbtn-sub {
        font-size: 8px;
        font-weight: 500;
        color: #64748b;
        margin-left: 1px;
        letter-spacing: -.4px;
    }

    /* ── [바톤 웰스 시그니처: 프리미엄 딥 사파이어 & 네온 시안 골드 카드] ── */
    .calc-result-box {
        background: linear-gradient(145deg, #091a30 0%, #0f2746 55%, #183b63 100%);
        border: 1px solid rgba(56, 189, 248, 0.28);
        box-shadow: 0 10px 25px -4px rgba(7, 21, 38, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.12);
        padding: 11px 13px 10px;
        border-radius: 12px;
        min-width: 0;
        width: 100%;
        gap: 0;
        min-height: auto;
        color: #ffffff;
    }

    .res-header-row {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        margin-bottom: 2px;
    }

    .res-header {
        font-size: 11px;
        color: #7dd3fc;
        font-weight: 700;
        margin: 0;
        line-height: 1.2;
        letter-spacing: -.2px;
    }

    .res-share-bar {
        margin: 0;
        display: flex;
        align-items: center;
        justify-content: flex-end;
        gap: 4px;
    }

    .btn-share {
        flex: 0 0 auto;
        width: auto;
        padding: 2px 6px;
        font-size: 9.5px;
        min-height: 20px;
        height: 20px;
        box-sizing: border-box;
        gap: 3px;
        white-space: nowrap;
        border-radius: 4px;
        line-height: 1;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        background: rgba(255, 255, 255, 0.08);
        border: 1px solid rgba(125, 211, 252, 0.25);
        color: #e0f2fe;
        -webkit-tap-highlight-color: transparent;
        transition: transform .12s, opacity .12s, background .15s;
    }

    .btn-share:active {
        transform: scale(0.96);
        opacity: 0.88;
    }

    .btn-save-img {
        background: rgba(14, 165, 233, 0.22);
        border-color: rgba(56, 189, 248, 0.45);
        color: #38bdf8;
    }

    .res-total {
        font-size: 22px;
        color: #22d3ee;
        font-weight: 800;
        margin: 1px 0 6px;
        word-break: keep-all;
        line-height: 1.2;
        text-shadow: 0 0 16px rgba(34, 211, 238, 0.35);
        letter-spacing: -.5px;
    }

    .res-bar-wrap {
        height: 5px;
        background: rgba(255, 255, 255, 0.12);
        margin-bottom: 6px;
        border-radius: 3px;
    }

    .res-bar-principal {
        background: #38bdf8;
    }

    .res-bar-profit {
        background: #f43f5e;
    }

    /* 1. 원금 vs 복리 수익 (1줄 나란히 정렬, 이중 박스 제거) */
    .res-breakdown {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 0 0 5px;
        background: transparent;
        border: none;
        border-bottom: 1px dashed rgba(125, 211, 252, 0.2);
        margin-bottom: 5px;
        gap: 6px;
        border-radius: 0;
    }

    .res-row {
        font-size: 11px;
        gap: 4px;
    }

    .res-row .lbl {
        color: #bae6fd;
    }

    .res-row .lbl-extra-text {
        display: none;
    }

    .dot-principal {
        background: #38bdf8;
    }

    .dot-profit {
        background: #f43f5e;
    }

    .res-row .val {
        font-size: 11px;
        font-weight: 700;
        color: #ffffff;
    }

    /* 2. 72의 법칙 위젯 (내용 100% 보존, 이중 박스 제거 및 초슬림 인라인화) */
    .res-rule72 {
        display: block !important;
        background: transparent;
        border: none;
        border-bottom: 1px dashed rgba(125, 211, 252, 0.2);
        padding: 0 0 5px;
        margin-bottom: 5px;
        border-radius: 0;
    }

    .rule72-top {
        display: flex;
        align-items: center;
        gap: 5px;
        margin-bottom: 2px;
    }

    .rule72-badge {
        font-size: 9px;
        font-weight: 800;
        background: rgba(14, 165, 233, 0.25);
        color: #7dd3fc;
        border: 1px solid rgba(56, 189, 248, 0.35);
        padding: 1px 4px;
        border-radius: 3px;
    }

    .rule72-label {
        font-size: 10.5px;
        color: #bae6fd;
    }

    .rule72-years {
        font-size: 11.5px;
        font-weight: 800;
        color: #fbbf24;
        margin-left: auto;
    }

    .rule72-desc {
        font-size: 10px;
        color: #94a3b8;
        line-height: 1.35;
        word-break: keep-all;
    }

    .rule72-desc strong {
        color: #22d3ee;
    }

    /* 3. 가족 복리 메시지 (내용 100% 보존, 박스 제거 슬림 텍스트) */
    .res-msg {
        display: block !important;
        background: transparent;
        padding: 0;
        font-size: 10px;
        color: #7dd3fc;
        line-height: 1.4;
        border-radius: 0;
        margin-top: 0;
        word-break: keep-all;
    }

    .res-msg strong {
        color: #ffffff;
    }
}

@media (max-width: 650px) {
    nav {
        padding: 12px 14px;
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 8px;
    }

    .logo {
        font-size: 19px;
        justify-content: center;
        text-align: center;
    }

    .nav-links {
        justify-content: center;
        gap: 6px;
    }

    .nav-links a {
        font-size: 13px;
        padding: 5px 11px;
    }

    /* 모바일 헤더: 돋보기 아이콘 전용 & 터치 시 확장 UX */
    .nav-links {
        display: flex;
        align-items: center;
        justify-content: center;
        flex-wrap: wrap;
        gap: 6px;
    }

    .nav-search-form {
        margin-left: 4px;
        position: relative;
        display: inline-flex !important;
        align-items: center;
        justify-content: flex-end;
    }

    /* 모바일 환경: 평소 돋보기 아이콘 ➡️ 터치/클릭 시 PC형으로 확장 */
    .nav-search-input {
        width: 32px !important;
        height: 32px !important;
        padding: 0 !important;
        border-radius: 50% !important;
        background: transparent !important;
        border: 1px solid transparent !important;
        color: transparent !important;
        cursor: pointer;
        position: relative;
        z-index: 2;
        transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1) !important;
    }

    .nav-search-input::placeholder {
        color: transparent !important;
    }

    .nav-search-form:focus-within .nav-search-input,
    .nav-search-form.active .nav-search-input,
    .nav-search-input:focus {
        width: clamp(125px, 36vw, 160px) !important;
        height: 32px !important;
        padding: 0 30px 0 12px !important;
        border-radius: 20px !important;
        background: rgba(255, 255, 255, 0.16) !important;
        border: 1px solid #38a169 !important;
        color: #ffffff !important;
        cursor: text;
        box-shadow: 0 0 0 2px rgba(56, 161, 105, 0.25) !important;
        z-index: 1;
    }

    .nav-search-form:focus-within .nav-search-input::placeholder,
    .nav-search-form.active .nav-search-input::placeholder,
    .nav-search-input:focus::placeholder {
        color: rgba(255, 255, 255, 0.6) !important;
        font-size: 11.5px;
    }

    .nav-search-btn {
        position: absolute;
        right: 7px !important;
        width: 24px;
        height: 24px;
        z-index: 3;
        pointer-events: auto !important;
    }

    .nav-search-input:focus::placeholder {
        color: rgba(255, 255, 255, 0.7) !important;
    }


    .sim-hero {
        padding: 18px 14px 10px;
    }

    .sim-hero h1 {
        font-size: 20px;
        margin-bottom: 4px;
        word-break: keep-all;
    }

    .sim-hero p {
        font-size: 12.5px;
        line-height: 1.45;
        word-break: keep-all;
    }

    main {
        padding: 6px 12px 28px;
        max-width: 100%;
    }

    .calc-chart-section {
        margin-top: 10px;
        padding-top: 10px;
        min-width: 0;
    }

    .chart-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 3px;
        margin-bottom: 6px;
    }

    .chart-title h3 {
        font-size: 13.5px;
        margin: 0;
        line-height: 1.25;
    }

    .chart-sub {
        font-size: 10.5px;
        color: #64748b;
        margin-top: 1px;
        line-height: 1.35;
    }

    .chart-controls-wrap {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        width: 100% !important;
        gap: 6px !important;
        margin-top: 3px !important;
    }

    .chart-legend {
        gap: 8px;
        font-size: 10px;
        font-weight: 600;
    }

    .legend-item {
        gap: 4px;
    }

    .legend-color {
        width: 9px;
        height: 9px;
        border-radius: 2px;
    }

    .chart-type-toggle {
        padding: 2px;
        border-radius: 6px;
        margin-left: 0;
    }

    .chart-type-btn {
        padding: 2px 7px;
        font-size: 10.5px;
        min-height: 21px;
        border-radius: 4px;
    }

    .chart-canvas-wrap {
        padding: 6px 6px 4px;
        margin-bottom: 6px;
        border-radius: 10px;
        background: #fbfcfe;
        touch-action: pan-y;
    }

    .chart-canvas-wrap canvas {
        height: 150px;
        touch-action: pan-y;
    }

    .chart-tooltip {
        padding: 5px 9px;
        font-size: 10.5px;
        border-radius: 6px;
        transform: translate(-50%, 0) !important;
        top: 8px !important;
    }

    /* 4단계 마일스톤 가로 스와이프 칩 카드 (초슬림 압축 & 우측 스와이프 힌트) */
    .chart-milestones-wrap {
        position: relative;
        width: 100%;
    }

    .chart-milestones-wrap::after {
        content: '';
        position: absolute;
        top: 0;
        right: 0;
        bottom: 4px;
        width: 20px;
        background: linear-gradient(to right, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.85));
        pointer-events: none;
        border-top-right-radius: 7px;
        border-bottom-right-radius: 7px;
    }

    .chart-milestones {
        display: flex;
        overflow-x: auto;
        gap: 5px;
        padding-bottom: 2px;
        padding-right: 16px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        min-width: 0;
        margin-bottom: 4px;
    }

    .chart-milestones::-webkit-scrollbar {
        display: none;
    }

    .mile-card {
        flex: 0 0 102px;
        padding: 4px 6px;
        border-radius: 7px;
        min-width: 0;
        background: #f8fafc;
        border: 1px solid #e2e8f0;
    }

    .mile-year {
        font-size: 9.5px;
        margin-bottom: 1px;
        line-height: 1.2;
        color: #64748b;
    }

    .mile-total {
        font-size: 11.5px;
        font-weight: 700;
        line-height: 1.2;
        word-break: keep-all;
    }

    .mile-profit {
        font-size: 9px;
        margin-top: 1px;
        line-height: 1.2;
    }

    .yearly-table-section {
        margin-top: 4px;
    }

    .yearly-table-toggle-btn {
        font-size: 11px;
        padding: 5px 8px;
        border-radius: 6px;
        min-height: 28px;
    }

    .yearly-table-toggle-btn svg {
        width: 14px;
        height: 14px;
    }

    .yearly-table-wrap {
        max-height: 260px;
    }

    .yearly-table th,
    .yearly-table td {
        padding: 7px 5px;
        font-size: 11px;
    }

    /* 모바일 테이블 가로 스크롤 시 경과(연차) 1열 좌측 sticky 고정 */
    .yearly-table th:first-child,
    .yearly-table td:first-child {
        position: sticky;
        left: 0;
        background: #f8fafc;
        z-index: 2;
        padding-left: 10px;
        border-right: 1px solid #e2e8f0;
        box-shadow: 2px 0 6px rgba(0, 0, 0, 0.04);
    }

    .yearly-table th:first-child {
        z-index: 3;
    }

    .yearly-table .golden-row td:first-child {
        background: #fff8f8;
    }

    .yearly-table .badge-golden {
        display: inline-block;
        white-space: nowrap;
        font-size: 8.5px;
        padding: 1px 3px;
        margin-left: 2px;
    }

    .related-cta {
        padding: 12px 14px;
        margin-bottom: 12px;
        border-radius: 10px;
        background: linear-gradient(135deg, #f0f7ff 0%, #e8f2fc 100%);
        border: 1px solid #c9dcf2;
    }

    .related-cta-inner {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 8px;
        flex-wrap: nowrap;
    }

    .related-cta-badge {
        font-size: 9.5px;
        padding: 1px 5px;
        margin-bottom: 2px;
    }

    .related-cta-text h2 {
        font-size: 13.5px;
        margin: 0 0 2px;
        line-height: 1.25;
    }

    .related-cta-text p {
        font-size: 10.5px;
        line-height: 1.35;
        margin: 0;
    }

    .related-cta-btn {
        flex: 0 0 auto;
        width: auto;
        padding: 6px 12px;
        font-size: 11px;
        border-radius: 14px;
    }

    .disclaimer {
        padding: 10px 13px;
        margin: 14px 0;
        font-size: 11.5px;
        line-height: 1.55;
    }

    .sec-header {
        margin: 18px 0 10px;
    }

    .sec-title {
        font-size: 15.5px;
    }

    .sec-more {
        font-size: 12.5px;
    }

    .posts {
        grid-template-columns: 1fr;
        gap: 10px;
        margin-bottom: 18px;
    }

    .card.post {
        padding: 13px 15px 12px;
        border-radius: 10px;
    }

    .card.post .date {
        font-size: 11px;
        margin-bottom: 5px;
    }

    .card.post h2 {
        font-size: 14.5px;
        margin-bottom: 5px;
        line-height: 1.4;
    }

    .card.post p {
        font-size: 12px;
        line-height: 1.5;
        margin-bottom: 0;
    }

    .ad-slot {
        margin: 14px auto;
        padding: 8px 0;
        min-height: 90px;
        max-width: 100%;
        overflow: hidden;
    }

    footer {
        padding: 24px 16px;
        padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px));
        font-size: 12px;
    }

    .footer-links a {
        display: inline-block;
        padding: 6px 8px;
        margin: 0 2px;
    }
}

/* ── 광고 슬롯 (애드센스 호환 및 반응형 최적화 - 심사 기간 동안 비활성화) ── */
.ad-slot {
    display: none !important;
    /* 구글 애드센스 심사 통과 전 미완성 더미 노출 방지 */
    background: #eef1f7;
    border: 1px dashed #c8d4e8;
    border-radius: 8px;
    padding: 12px 0;
    text-align: center;
    color: #aaa;
    font-size: 12px;
    margin: 20px auto;
    min-height: 100px;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.ad-slot span {
    display: inline-block;
    font-size: 12px;
    color: #aaa;
    letter-spacing: .5px;
    line-height: 76px;
}

.ad-slot ins.adsbygoogle {
    display: block !important;
    margin: 0 auto;
}

.chart-title h2,
#chartHeaderTitle {
    font-size: 15px;
    font-weight: 700;
    color: #173b63;
    margin: 0 0 4px;
    line-height: 1.4;
}

/* ── 초소형 화면(갤럭시 Z 폴드 접힘 280px~330px 등) 대응 ── */
@media (max-width: 330px) {
    .qbtn-sub {
        display: none !important;
    }

    .calc-qbtn {
        font-size: 9px !important;
        padding: 1px 1px !important;
    }

    .calc-label {
        font-size: 11px !important;
    }

    .res-header {
        font-size: 10px !important;
    }

    .btn-share {
        font-size: 9px !important;
        padding: 2px 4px !important;
    }
}