/**
 * Jeonse Loan Calculator Styles
 * 전세자금대출 계산기 전용 스타일
 *
 * @package Zipper
 */

/* ===== 레이아웃 오버라이드 ===== */
.tool-section:has(.jlc-input-section) .tool-layout-split {
    grid-template-columns: 300px 1fr;
}

@media (max-width: 900px) {
    .tool-section:has(.jlc-input-section) .tool-layout-split {
        grid-template-columns: 1fr;
    }
}

/* ===== 탭 네비게이션 ===== */
.jlc-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
    background: #f5f3f0;
    border-radius: 8px;
    padding: 4px;
    margin-bottom: 16px;
}

.jlc-tab {
    padding: 10px 8px;
    font-size: 13px;
    font-weight: 600;
    color: #7a756d;
    background: transparent;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
    white-space: nowrap;
}

.jlc-tab:hover {
    color: #2d2a26;
    background: rgba(255, 255, 255, 0.5);
}

.jlc-tab.active {
    color: #fff;
    background: #d4af37;
    box-shadow: 0 2px 4px rgba(212, 175, 55, 0.3);
}

/* ===== 입력 섹션 ===== */
.jlc-input-section {
    display: flex;
    flex-direction: column;
    gap: 14px;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
}

.jlc-input-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
    max-width: 100%;
    box-sizing: border-box;
}

.jlc-input-group label {
    font-size: 13px;
    font-weight: 600;
    color: #5f5a56;
}

.jlc-input-group input,
.jlc-input-group select {
    padding: 11px 12px;
    font-size: 15px;
    border: 1px solid #e8e4dc;
    border-radius: 6px;
    background: #faf9f7;
    color: #2d2a26;
    transition: border-color 0.2s, box-shadow 0.2s;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.jlc-input-group input:focus,
.jlc-input-group select:focus {
    outline: none;
    border-color: #d4af37;
    box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.1);
    background: #fff;
}

.jlc-input-group input::placeholder {
    color: #a09a94;
}

.jlc-input-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

/* 금액 읽기 표시 */
.jlc-amount-display {
    font-size: 12px;
    color: #d4af37;
    font-weight: 500;
    margin-top: 4px;
    min-height: 18px;
}

/* 자동 입력 힌트 */
.jlc-auto-hint {
    font-size: 11px;
    color: #a09a94;
    margin-top: 2px;
}

/* 간편 버튼 그룹 */
.jlc-quick-btns {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    max-width: 100%;
}

.jlc-quick-btn {
    padding: 8px 6px;
    font-size: 12px;
    font-weight: 500;
    color: #5f5a56;
    background: #faf9f7;
    border: 1px solid #e8e4dc;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
}

.jlc-quick-btn:hover {
    border-color: #d4af37;
    background: #fff;
    color: #d4af37;
}

/* 상환 방식 선택 */
.jlc-repay-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.jlc-repay-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: #faf9f7;
    border: 1px solid #e8e4dc;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.jlc-repay-option:hover {
    border-color: #d4af37;
    background: #fff;
}

.jlc-repay-option.active {
    border-color: #d4af37;
    background: rgba(212, 175, 55, 0.08);
}

.jlc-repay-option input[type="radio"] {
    width: 16px;
    height: 16px;
    accent-color: #d4af37;
    cursor: pointer;
    flex-shrink: 0;
}

.jlc-repay-option > label {
    flex: 1;
    font-size: 13px;
    color: #2d2a26;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.jlc-repay-option .repay-badge {
    font-size: 11px;
    font-weight: 600;
    color: #7a756d;
    background: rgba(122, 117, 109, 0.1);
    padding: 2px 8px;
    border-radius: 4px;
}

/* 거치기간 토글 */
.jlc-grace-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    background: #faf9f7;
    border: 1px solid #e8e4dc;
    border-radius: 6px;
}

.jlc-grace-toggle label {
    font-size: 13px;
    color: #2d2a26;
    display: flex;
    align-items: center;
    gap: 6px;
}

.jlc-grace-toggle label i {
    color: #d4af37;
}

.jlc-toggle-switch {
    position: relative;
    width: 44px;
    height: 24px;
}

.jlc-toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.jlc-toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #e8e4dc;
    transition: 0.3s;
    border-radius: 24px;
}

.jlc-toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.jlc-toggle-switch input:checked + .jlc-toggle-slider {
    background-color: #d4af37;
}

.jlc-toggle-switch input:checked + .jlc-toggle-slider:before {
    transform: translateX(20px);
}

.jlc-grace-period-input {
    margin-top: 10px;
}

/* 보증기관 선택 드롭다운 */
.jlc-guarantor-select {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.jlc-guarantor-select select {
    padding: 11px 12px;
    font-size: 15px;
    border: 1px solid #e8e4dc;
    border-radius: 6px;
    background: #faf9f7;
    color: #2d2a26;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.jlc-guarantor-select select:focus {
    outline: none;
    border-color: #d4af37;
    box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.1);
    background: #fff;
}

/* 액션 버튼 */
.jlc-action-btns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 16px;
    max-width: 100%;
}

.jlc-reset-btn,
.jlc-share-btn {
    padding: 12px 16px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.jlc-reset-btn {
    color: #7a756d;
    background: #fff;
    border: 1px solid #e8e4dc;
}

.jlc-reset-btn:hover {
    border-color: #d4af37;
    color: #d4af37;
    background: rgba(212, 175, 55, 0.05);
}

.jlc-share-btn {
    color: #3498db;
    background: #fff;
    border: 1px solid #3498db;
}

.jlc-share-btn:hover {
    background: rgba(52, 152, 219, 0.08);
}

/* 숨김 */
.jlc-hidden {
    display: none !important;
}

/* ===== 대기 상태 ===== */
.jlc-waiting {
    text-align: center;
    padding: 40px 20px;
    color: #a09a94;
}

.jlc-waiting > i {
    font-size: 48px;
    margin-bottom: 12px;
    display: block;
    color: #d4af37;
}

.jlc-waiting > p {
    font-size: 14px;
    margin-bottom: 16px;
}

.jlc-waiting-guide {
    text-align: left;
    background: #faf9f7;
    border: 1px solid #e8e4dc;
    border-radius: 8px;
    padding: 14px;
    max-width: 400px;
    margin: 0 auto;
}

.jlc-waiting-guide .guide-title {
    font-size: 13px;
    font-weight: 600;
    color: #2d2a26;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.jlc-waiting-guide .guide-title i {
    color: #d4af37;
}

.jlc-waiting-guide ul {
    margin: 0;
    padding-left: 18px;
}

.jlc-waiting-guide li {
    font-size: 12px;
    color: #5f5a56;
    margin-bottom: 4px;
    line-height: 1.5;
}

/* ===== 메인 결과 ===== */
.jlc-main-result {
    position: relative;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.12) 0%, rgba(184, 134, 11, 0.05) 100%);
    border: 1px solid rgba(212, 175, 55, 0.35);
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    margin-bottom: 16px;
}

.jlc-main-label {
    font-size: 14px;
    color: #7a756d;
    margin-bottom: 8px;
}

.jlc-main-value {
    font-size: 48px;
    font-weight: 700;
    color: #d4af37;
    line-height: 1;
    margin-bottom: 4px;
}

.jlc-main-value .unit {
    font-size: 22px;
    font-weight: 600;
    color: #b8860b;
    margin-left: 4px;
}

.jlc-rate-badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 16px;
    font-size: 13px;
    font-weight: 600;
    color: #b8860b;
    background: rgba(212, 175, 55, 0.15);
    margin-top: 8px;
}

.jlc-copy-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    border: none;
    background: rgba(184, 134, 11, 0.2);
    color: #b8860b;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.jlc-copy-btn:hover {
    background: rgba(184, 134, 11, 0.3);
}

.jlc-copy-btn.copied {
    background: #27ae60;
    color: #fff;
}

/* ===== 상세 카드 ===== */
.jlc-detail-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 16px;
}

.jlc-detail-card {
    background: #fff;
    border: 1px solid #e8e4dc;
    border-radius: 12px;
    padding: 16px;
    text-align: center;
    transition: all 0.2s;
}

.jlc-detail-card:hover {
    border-color: #d4af37;
    box-shadow: 0 2px 8px rgba(212, 175, 55, 0.12);
}

.jlc-detail-label {
    font-size: 13px;
    font-weight: 600;
    color: #5f5a56;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.jlc-detail-label i {
    color: #d4af37;
}

.jlc-detail-value {
    font-size: 24px;
    font-weight: 700;
    color: #2d2a26;
}

.jlc-detail-value .unit {
    font-size: 14px;
    font-weight: 500;
    color: #7a756d;
}

.jlc-detail-card.highlight {
    background: linear-gradient(135deg, rgba(231, 76, 60, 0.08) 0%, rgba(231, 76, 60, 0.02) 100%);
    border-color: rgba(231, 76, 60, 0.35);
}

.jlc-detail-card.highlight .jlc-detail-label {
    color: #e74c3c;
}

.jlc-detail-card.highlight .jlc-detail-label i {
    color: #e74c3c;
}

.jlc-detail-card.highlight .jlc-detail-value {
    color: #e74c3c;
}

/* ===== 상환 방식 비교 ===== */
.jlc-comparison-section {
    background: #fff;
    border: 1px solid #e8e4dc;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
}

.jlc-section-title {
    font-size: 14px;
    font-weight: 600;
    color: #2d2a26;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.jlc-section-title i {
    color: #d4af37;
}

.jlc-comparison-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.jlc-comparison-item {
    text-align: center;
    padding: 14px 10px;
    background: #faf9f7;
    border: 1px solid #e8e4dc;
    border-radius: 8px;
    transition: all 0.2s;
}

.jlc-comparison-item.active {
    background: rgba(212, 175, 55, 0.08);
    border-color: #d4af37;
}

.jlc-comparison-type {
    font-size: 11px;
    font-weight: 600;
    color: #7a756d;
    margin-bottom: 6px;
}

.jlc-comparison-item.active .jlc-comparison-type {
    color: #d4af37;
}

.jlc-comparison-monthly {
    font-size: 16px;
    font-weight: 700;
    color: #2d2a26;
    margin-bottom: 4px;
}

.jlc-comparison-item.active .jlc-comparison-monthly {
    color: #d4af37;
}

.jlc-comparison-interest {
    font-size: 11px;
    color: #a09a94;
}

.jlc-comparison-interest .interest-value {
    color: #e74c3c;
    font-weight: 600;
}

/* 최저/최고 표시 */
.jlc-comparison-item .badge {
    display: inline-block;
    font-size: 10px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 4px;
    margin-top: 6px;
}

.jlc-comparison-item .badge.best {
    background: rgba(46, 204, 113, 0.15);
    color: #27ae60;
}

.jlc-comparison-item .badge.worst {
    background: rgba(231, 76, 60, 0.15);
    color: #e74c3c;
}

/* ===== 보증료 비교 섹션 ===== */
.jlc-guarantee-section {
    background: #fff;
    border: 1px solid #e8e4dc;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
}

.jlc-guarantee-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.jlc-guarantee-card {
    text-align: center;
    padding: 14px 10px;
    background: #faf9f7;
    border: 1px solid #e8e4dc;
    border-radius: 8px;
    transition: all 0.2s;
}

.jlc-guarantee-card.cheapest {
    background: rgba(46, 204, 113, 0.08);
    border-color: rgba(46, 204, 113, 0.35);
}

.jlc-guarantee-name {
    font-size: 12px;
    font-weight: 600;
    color: #7a756d;
    margin-bottom: 4px;
}

.jlc-guarantee-card.cheapest .jlc-guarantee-name {
    color: #27ae60;
}

.jlc-guarantee-rate {
    font-size: 11px;
    color: #a09a94;
    margin-bottom: 6px;
}

.jlc-guarantee-fee {
    font-size: 16px;
    font-weight: 700;
    color: #2d2a26;
}

.jlc-guarantee-card.cheapest .jlc-guarantee-fee {
    color: #27ae60;
}

.jlc-cheapest-badge {
    display: inline-block;
    font-size: 10px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 4px;
    margin-top: 4px;
    background: rgba(46, 204, 113, 0.15);
    color: #27ae60;
}

/* ===== 총비용 섹션 ===== */
.jlc-total-cost-section {
    background: linear-gradient(135deg, rgba(155, 89, 182, 0.08) 0%, rgba(155, 89, 182, 0.02) 100%);
    border: 1px solid rgba(155, 89, 182, 0.25);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
}

.jlc-total-cost-section .jlc-section-title {
    color: #8e44ad;
}

.jlc-total-cost-section .jlc-section-title i {
    color: #8e44ad;
}

.jlc-cost-breakdown {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 12px;
}

.jlc-cost-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 6px;
    font-size: 13px;
}

.jlc-cost-label {
    color: #5f5a56;
}

.jlc-cost-value {
    font-weight: 600;
    color: #2d2a26;
}

.jlc-cost-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: rgba(142, 68, 173, 0.1);
    border-radius: 8px;
}

.jlc-cost-total-label {
    font-size: 14px;
    font-weight: 600;
    color: #8e44ad;
}

.jlc-cost-total-value {
    font-size: 22px;
    font-weight: 700;
    color: #8e44ad;
}

.jlc-cost-monthly {
    text-align: center;
    font-size: 12px;
    color: #7a756d;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed rgba(142, 68, 173, 0.2);
}

.jlc-cost-monthly strong {
    color: #8e44ad;
    font-weight: 700;
}

/* ===== 중도상환 섹션 ===== */
.jlc-prepay-section {
    background: #fff;
    border: 1px solid #e8e4dc;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
}

.jlc-prepay-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 12px;
}

.jlc-prepay-input {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.jlc-prepay-input label {
    font-size: 12px;
    font-weight: 600;
    color: #5f5a56;
}

.jlc-prepay-input input {
    padding: 10px 12px;
    font-size: 14px;
    border: 1px solid #e8e4dc;
    border-radius: 6px;
    background: #faf9f7;
    color: #2d2a26;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.jlc-prepay-input input:focus {
    outline: none;
    border-color: #d4af37;
    box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.1);
    background: #fff;
}

.jlc-prepay-result {
    text-align: center;
    padding: 12px;
    background: rgba(46, 204, 113, 0.08);
    border: 1px solid rgba(46, 204, 113, 0.25);
    border-radius: 8px;
}

.jlc-prepay-label {
    font-size: 12px;
    color: #27ae60;
    margin-bottom: 4px;
}

.jlc-prepay-value {
    font-size: 20px;
    font-weight: 700;
    color: #27ae60;
}

/* ===== 금리 참조표 섹션 ===== */
.jlc-rate-ref {
    background: #fff;
    border: 1px solid #e8e4dc;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
}

.jlc-rate-ref-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
}

.jlc-rate-ref-toggle {
    font-size: 12px;
    color: #d4af37;
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px 10px;
    border-radius: 6px;
    transition: all 0.2s;
}

.jlc-rate-ref-toggle:hover {
    background: rgba(212, 175, 55, 0.1);
}

.jlc-rate-ref-body {
    margin-top: 12px;
}

.jlc-rate-tabs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
    background: #f5f3f0;
    border-radius: 6px;
    padding: 3px;
    margin-bottom: 12px;
}

.jlc-rate-tab {
    padding: 8px 6px;
    font-size: 12px;
    font-weight: 600;
    color: #7a756d;
    background: transparent;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s;
    white-space: nowrap;
}

.jlc-rate-tab.active {
    color: #fff;
    background: #d4af37;
}

.jlc-rate-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}

.jlc-rate-table th,
.jlc-rate-table td {
    padding: 8px 10px;
    text-align: center;
    border-bottom: 1px solid #f0ede8;
}

.jlc-rate-table th {
    background: #faf9f7;
    font-weight: 600;
    color: #5f5a56;
    font-size: 11px;
}

.jlc-rate-table td {
    color: #2d2a26;
}

.jlc-rate-table tr:last-child td {
    border-bottom: none;
}

.jlc-rate-table .rate-highlight {
    color: #d4af37;
    font-weight: 600;
}

.jlc-rate-info {
    margin-top: 10px;
    padding: 10px 12px;
    background: #faf9f7;
    border-radius: 6px;
    font-size: 11px;
    color: #7a756d;
    line-height: 1.6;
}

.jlc-rate-info strong {
    color: #5f5a56;
}

/* ===== 그래프 ===== */
.jlc-chart-section {
    background: #fff;
    border: 1px solid #e8e4dc;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
    box-shadow: 0 1px 4px rgba(45, 42, 38, 0.06);
}

.jlc-chart-container {
    position: relative;
    height: 250px;
    width: 100%;
}

.jlc-chart-container canvas {
    max-height: 250px;
}

/* ===== 월별 상환표 ===== */
.jlc-schedule-section {
    background: #fff;
    border: 1px solid #e8e4dc;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
    box-shadow: 0 1px 4px rgba(45, 42, 38, 0.06);
}

.jlc-schedule-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.jlc-schedule-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.jlc-download-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 600;
    color: #fff;
    background: #217346;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s;
}

.jlc-download-btn:hover {
    background: #1a5c38;
}

.jlc-download-btn i {
    font-size: 14px;
}

.jlc-schedule-toggle {
    font-size: 12px;
    color: #d4af37;
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px 10px;
    border-radius: 6px;
    transition: all 0.2s;
}

.jlc-schedule-toggle:hover {
    background: rgba(212, 175, 55, 0.1);
}

.jlc-table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    max-height: 400px;
    max-width: 100%;
}

.jlc-schedule-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}

.jlc-schedule-table th,
.jlc-schedule-table td {
    padding: 10px 8px;
    text-align: right;
    border-bottom: 1px solid #f0ede8;
    white-space: nowrap;
}

.jlc-schedule-table th {
    background: #faf9f7;
    font-weight: 600;
    color: #5f5a56;
    position: sticky;
    top: 0;
    z-index: 1;
}

.jlc-schedule-table th:first-child,
.jlc-schedule-table td:first-child {
    text-align: center;
}

.jlc-schedule-table td {
    color: #2d2a26;
}

.jlc-schedule-table tr:last-child td {
    border-bottom: none;
    font-weight: 600;
    background: rgba(212, 175, 55, 0.08);
    color: #d4af37;
}

.jlc-schedule-table tr:hover:not(:last-child) {
    background: #faf9f7;
}

.jlc-schedule-table .grace-row {
    color: #a09a94;
    font-style: italic;
}

/* ===== 역계산 섹션 ===== */
.jlc-reverse-section {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px dashed #e8e4dc;
}

.jlc-reverse-result {
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.08) 0%, rgba(52, 152, 219, 0.02) 100%);
    border: 1px solid rgba(52, 152, 219, 0.25);
    border-radius: 12px;
    padding: 16px;
    text-align: center;
}

.jlc-reverse-label {
    font-size: 13px;
    color: #3498db;
    margin-bottom: 6px;
}

.jlc-reverse-value {
    font-size: 32px;
    font-weight: 700;
    color: #3498db;
}

.jlc-reverse-value .unit {
    font-size: 16px;
    font-weight: 600;
}

.jlc-reverse-detail {
    font-size: 12px;
    color: #7a756d;
    margin-top: 6px;
}

/* ===== 안내문 ===== */
.jlc-notice {
    text-align: center;
    padding: 12px;
    background: #faf9f7;
    border-radius: 8px;
}

.jlc-notice p {
    font-size: 12px;
    color: #a09a94;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.jlc-notice i {
    color: #d4af37;
}

/* ===== 반응형 - 태블릿 ===== */
@media (max-width: 900px) {
    .tool-layout-input {
        max-width: 100%;
        overflow: hidden;
    }

    .jlc-input-group input:not([type="radio"]):not([type="checkbox"]),
    .jlc-input-group select {
        width: 100% !important;
        max-width: 100% !important;
    }

    .jlc-guarantor-select select {
        width: 100% !important;
        max-width: 100% !important;
    }

    .jlc-comparison-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }

    .jlc-comparison-monthly {
        font-size: 14px;
    }

    .jlc-guarantee-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }

    .jlc-chart-container {
        height: 220px;
    }

    .jlc-chart-container canvas {
        max-height: 220px;
    }
}

/* ===== 반응형 - 모바일 ===== */
@media (max-width: 768px) {
    .jlc-main-result {
        padding: 20px 16px;
    }

    .jlc-main-value {
        font-size: 40px;
    }

    .jlc-main-value .unit {
        font-size: 18px;
    }

    .jlc-detail-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .jlc-detail-card {
        padding: 14px 10px;
    }

    .jlc-detail-value {
        font-size: 20px;
    }

    .jlc-repay-option {
        padding: 10px;
        gap: 8px;
    }

    .jlc-repay-option > label {
        flex-wrap: wrap;
        gap: 4px;
    }

    .jlc-repay-option .repay-badge {
        font-size: 10px;
        padding: 2px 6px;
    }

    .jlc-comparison-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .jlc-comparison-item {
        display: flex;
        align-items: center;
        justify-content: space-between;
        text-align: left;
    }

    .jlc-comparison-type {
        margin-bottom: 0;
    }

    .jlc-comparison-monthly {
        font-size: 18px;
        margin-bottom: 0;
    }

    .jlc-comparison-interest {
        display: none;
    }

    .jlc-guarantee-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .jlc-guarantee-card {
        display: flex;
        align-items: center;
        justify-content: space-between;
        text-align: left;
    }

    .jlc-guarantee-name {
        margin-bottom: 0;
    }

    .jlc-guarantee-rate {
        display: none;
    }

    .jlc-cost-total-value {
        font-size: 18px;
    }

    .jlc-rate-tabs {
        grid-template-columns: repeat(3, 1fr);
    }

    .jlc-chart-container {
        height: 200px;
    }

    .jlc-chart-container canvas {
        max-height: 200px;
    }
}

/* ===== 반응형 - 작은 모바일 ===== */
@media (max-width: 480px) {
    .tool-section,
    .tool-layout-split,
    .tool-input-panel,
    .tool-result-panel {
        max-width: 100%;
        overflow-x: hidden;
    }

    .jlc-input-row {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .jlc-quick-btns {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
    }

    .jlc-prepay-inputs {
        grid-template-columns: 1fr;
    }

    .jlc-main-value {
        font-size: 34px;
    }

    .jlc-main-value .unit {
        font-size: 16px;
    }

    .jlc-detail-cards {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .jlc-detail-card {
        display: flex;
        align-items: center;
        justify-content: space-between;
        text-align: left;
        padding: 14px;
    }

    .jlc-detail-label {
        justify-content: flex-start;
        margin-bottom: 0;
    }

    .jlc-detail-value {
        font-size: 22px;
    }

    .jlc-chart-container {
        height: 180px;
    }

    .jlc-chart-container canvas {
        max-height: 180px;
    }

    .jlc-schedule-table {
        font-size: 11px;
    }

    .jlc-schedule-table th,
    .jlc-schedule-table td {
        padding: 8px 4px;
    }

    .jlc-repay-option {
        padding: 8px 10px;
        gap: 6px;
    }

    .jlc-repay-option > label {
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;
        font-size: 13px;
    }

    .jlc-repay-option .repay-badge {
        font-size: 10px;
    }

    .jlc-reverse-value {
        font-size: 26px;
    }

    .jlc-guarantee-fee {
        font-size: 14px;
    }

    .jlc-rate-table {
        font-size: 11px;
    }

    .jlc-rate-table th,
    .jlc-rate-table td {
        padding: 6px 4px;
    }
}

/* Excel button guard */
.tool-btn-excel {
  background: #59ab79;
  border-color: #59ab79;
}

.tool-btn-excel:hover,
.tool-btn-excel:focus-visible {
  background: #4f9f70;
  border-color: #4f9f70;
}

