/* ========================================
   환전 분석기 CSS v21.0 (Refactored)
   - 중복 제거 완료
   - 1561줄 → 약 850줄로 최적화
   ======================================== */

/* ========================================
   기본 컨테이너 스타일
   ======================================== */

.app-container {
    background-color: var(--bg-deep, #0f1115);
    background-image: var(--bg-gradient);
    display: flex;
    flex-direction: column;
    position: relative;
    height: 100%;
}

.app-container .calculator-header {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    height: auto;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: #050505;
}

.app-container .calculator-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 16px 16px calc(68px + var(--safe-area-bottom, 0px));
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
    gap: 0;
}

/* 스크롤바 숨기기 (Chrome, Safari, Opera) */
.app-container .calculator-body::-webkit-scrollbar {
    display: none;
}

/* ========================================
   모달 스타일 (중복 제거)
   ======================================== */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    /* backdrop-filter: blur(4px); - 성능 이슈로 제거 */
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    will-change: opacity;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.modal-container {
    background: var(--bg-card, #12151c);
    border: none;
    border-radius: 0;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transform: translateY(20px) scale(0.95);
    transition: transform 0.3s ease;
    position: relative;
}

.modal-overlay.active .modal-container {
    transform: translateY(0) scale(1);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-primary, rgba(255, 255, 255, 0.08));
    background-color: #1a1d24;
}

.modal-title-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex: 1;
    padding-right: 10px;
}

.modal-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary, #fff);
    margin: 0;
}

.modal-body {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
    background-color: #1a1d24;
}

.modal-close-btn {
    width: 100%;
    padding: 16px;
    background: #1a1d24;
    border: none;
    border-top: 1px solid var(--border-primary, rgba(255, 255, 255, 0.08));
    color: var(--text-primary, #fff);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.modal-close-btn-icon {
    background: transparent;
    border: none;
    color: var(--text-secondary, #a0a8b8);
    font-size: 24px;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ========================================
   모달 내부 콘텐츠
   ======================================== */

.update-badge {
    font-size: 10px;
    background: rgba(226, 192, 104, 0.2);
    color: #e2c068;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 500;
    margin-left: 8px;
}

.detail-badge-row {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.detail-description {
    font-size: 14px;
    color: var(--text-primary, #fff);
    margin-bottom: 16px;
    line-height: 1.5;
    font-weight: 500;
    word-break: keep-all;
    white-space: pre-wrap;
}

.detail-summary-box {
    background: rgba(255, 255, 255, 0.05);
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    gap: 8px;
    align-items: flex-start;
    word-break: keep-all;
}

.summary-icon {
    font-size: 16px;
}

.summary-text {
    font-size: 13px;
    color: var(--text-primary, #fff);
    font-weight: 600;
    line-height: 1.4;
}

.detail-section-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary, #fff);
    border-bottom: 1px solid var(--border-primary, rgba(255, 255, 255, 0.1));
    padding-bottom: 4px;
    margin-top: 20px;
}

.detail-list {
    padding-left: 20px;
    margin-bottom: 10px;
    font-size: 13px;
    color: var(--text-secondary, #a0a8b8);
    line-height: 1.6;
    word-break: keep-all;
}

.detail-list li {
    margin-bottom: 6px;
}

.detail-list.points li {
    color: #e1e3e6;
}

.detail-list.complaints li {
    color: #ff8e8e;
}

/* ========================================
   Service Compare Section
   ======================================== */

.service-compare-section {
    margin-bottom: 16px;
    padding-top: 4px;
}

.service-compare-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.service-compare-title,
.section-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary, #fff);
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 12px;
}

.service-compare-title i,
.section-title i {
    font-size: 20px;
    color: var(--primary, #e2c068);
}

.filter-step {
    margin-bottom: 28px;
}

.step-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary, #fff);
    margin-bottom: 8px;
    padding-left: 4px;
    align-self: flex-start;
}

.small-label {
    font-size: 14px;
    margin-bottom: 12px;
    margin-top: 20px;
    transition: all 0.3s ease;
}

/* ========================================
   Country Grid (Step 1)
   ======================================== */

.country-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 6px;
    margin-top: 8px;
    min-height: 76px; /* CLS 방지: 국가 버튼 1줄 높이 확보 */
}

.recommendation-text {
    font-size: 12px;
    color: var(--primary, #e2c068);
    margin-top: 10px;
    font-weight: 500;
    text-align: left;
    padding-left: 4px;
}

.country-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    background: var(--bg-card, #12151c);
    border: 1px solid var(--border-primary, rgba(255, 255, 255, 0.12));
    border-radius: 10px;
    padding: 10px 4px;
    cursor: pointer;
    transition: all 0.2s;
}

.country-btn.active {
    border-color: var(--primary, #e2c068);
    background: rgba(226, 192, 104, 0.1);
    transform: translateY(-2px);
}

.country-flag {
    width: 28px;
    height: 20px;
    object-fit: cover;
    border-radius: 3px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.country-name {
    font-size: 11px;
    color: var(--text-secondary, #848b9c);
    font-weight: 500;
}

.country-btn.active .country-name {
    color: var(--primary, #e2c068);
    font-weight: 700;
}

/* ========================================
   Time Grid (Step 2)
   ======================================== */

.time-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: 8px;
    min-height: 62px; /* CLS 방지: 시간 버튼 높이 확보 */
}

.time-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    background: var(--bg-card, #12151c);
    border: 1px solid var(--border-primary, rgba(255, 255, 255, 0.12));
    border-radius: 10px;
    padding: 14px 4px;
    cursor: pointer;
    transition: all 0.2s;
}

.time-btn.active {
    border-color: var(--primary, #e2c068);
    background: rgba(226, 192, 104, 0.1);
}

.time-main {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary, #fff);
}

.time-sub {
    font-size: 11px;
    color: var(--text-secondary, #848b9c);
}

.time-btn.active .time-main {
    color: var(--primary, #e2c068);
}

.time-btn.active .time-sub {
    color: rgba(226, 192, 104, 0.8);
}

/* ========================================
   Step 3 Layout & Sort
   ======================================== */

.step-header-col {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 8px;
}

.step-header-col .step-label {
    margin-bottom: 0;
    align-self: center;
}

.sort-dropdown-wrapper {
    display: flex;
    align-items: center;
    gap: 4px;
    background: var(--bg-tertiary, #1a1d26);
    padding: 4px 8px;
    border-radius: 6px;
    border: 1px solid var(--border-primary, rgba(255, 255, 255, 0.1));
}

.filter-icon {
    font-size: 14px;
    color: var(--primary, #e2c068);
}

.sort-label {
    font-size: 11px;
    color: var(--text-secondary, #999);
    margin-right: 2px;
}

.sort-select {
    background: var(--bg-tertiary, #1a1d26);
    border: none;
    color: var(--text-primary, #fff);
    font-size: 11px;
    outline: none;
    cursor: pointer;
    padding-right: 4px;
}

.sort-select option {
    background: var(--bg-tertiary, #1a1d26);
    color: var(--text-primary, #fff);
}

/* ========================================
   Filter Chips
   ======================================== */

.chip-scroll {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
    margin-top: 8px;
    min-height: 36px; /* CLS 방지: 필터 칩 높이 확보 */
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.chip-scroll::-webkit-scrollbar {
    display: none;
}

.filter-chip {
    flex-shrink: 0;
    background: var(--bg-card, #12151c);
    border: 1px solid var(--border-primary, rgba(255, 255, 255, 0.12));
    color: var(--text-secondary, #848b9c);
    padding: 5px 10px;
    border-radius: 14px;
    font-size: 11px;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.filter-chip:hover {
    border-color: rgba(255, 255, 255, 0.25);
    color: var(--text-primary, #fff);
}

.filter-chip.active {
    background: var(--primary, #e2c068);
    border-color: var(--primary, #e2c068);
    color: #0f1115;
    font-weight: 600;
}

.filter-chip i {
    font-size: 14px;
    margin-right: 4px;
}

/* ========================================
   Service Cards Scroller
   ======================================== */

.service-cards-scroller {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 2px 0 6px 0;
    min-height: 145px; /* CLS 방지: 서비스 카드 높이 확보 */
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    scroll-snap-type: x mandatory;
}

.service-cards-scroller::-webkit-scrollbar {
    display: none;
}

.service-card {
    display: flex;
    flex-direction: column;
    min-width: 140px;
    flex: 0 0 150px;
    background: var(--bg-card, #12151c);
    border: 1px solid var(--border-primary, rgba(255, 255, 255, 0.08));
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.2s;
    scroll-snap-align: start;
}

.service-card:hover {
    transform: translateY(-2px);
    border-color: var(--primary);
}

.card-content {
    padding: 12px;
    display: flex;
    flex-direction: column;
    height: 88px;
}

.card-top-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 22px;
    margin-bottom: 6px;
}

.medal-icon {
    font-size: 18px;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

/* ========================================
   Category Badges
   ======================================== */

.category-badge {
    display: inline-block;
    font-size: 10px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 4px;
}

/* 시중은행 - 블루 */
.category-badge.bank {
    background: rgba(96, 165, 250, 0.2);
    color: #60a5fa;
}

/* 공항점 - 블루 (시중은행과 동일) */
.category-badge.airport {
    background: rgba(96, 165, 250, 0.2);
    color: #60a5fa;
}

/* 앱서비스 (카카오 달러박스, 우리은행 환전주머니) - 옐로우 */
.category-badge.app {
    background: rgba(251, 191, 36, 0.2);
    color: #fbbf24;
}

/* 트래블카드 - 그린 */
.category-badge.travel {
    background: rgba(52, 211, 153, 0.25);
    color: #34d399;
}

/* ========================================
   Service Name & Tags
   ======================================== */

.service-name {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary, #fff);
    line-height: 1.3;
    height: 17px;
    margin-bottom: 6px;
}

.tag-grid {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
    height: 37px;
    align-content: flex-start;
}

.service-tag {
    font-size: 10px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    padding: 3px 6px;
    border-radius: 4px;
    white-space: nowrap;
}

.service-tag.method {
    background: rgba(226, 192, 104, 0.15);
    color: var(--primary);
}

/* ========================================
   Section Divider & No Results
   ======================================== */

.section-divider {
    height: 1px;
    background: var(--border-primary, rgba(255, 255, 255, 0.08));
    margin: 12px 0 16px;
}

.no-results {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
    color: var(--text-secondary, #848b9c);
    text-align: center;
}

.no-results i {
    font-size: 28px;
    margin-bottom: 6px;
    opacity: 0.5;
}

.no-results p {
    font-size: 12px;
}

.no-data-msg {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 24px;
    color: var(--text-tertiary);
    font-size: 14px;
}

/* ========================================
   Simulator Section
   ======================================== */

.simulator-section {
    margin-bottom: 16px;
}

.analysis-input-card-wrapper .step-label {
    margin-bottom: 8px;
}

.analysis-input-card {
    background: var(--bg-card, #12151c);
    border: 1px solid var(--border-primary, rgba(255, 255, 255, 0.08));
    border-radius: 12px;
    padding: 14px;
    margin-top: 8px;
    margin-bottom: 14px;
}

.currency-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.currency-display-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-secondary, #0f1115);
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid var(--border-primary, rgba(255, 255, 255, 0.12));
    min-width: 100px;
    flex-shrink: 0;
}

.flag-img {
    width: 22px;
    height: 16px;
    object-fit: cover;
    border-radius: 2px;
}

.currency-code {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary, #fff);
}

.currency-name {
    font-size: 12px;
    color: var(--text-secondary, #848b9c);
}

.amount-input-group {
    flex: 1;
    min-width: 150px;
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--bg-secondary, #0f1115);
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid transparent;
    transition: border-color 0.2s;
}

.amount-input-group:focus-within {
    border-color: var(--primary, #e2c068);
}

.amount-input-group input {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-primary, #fff);
    font-size: 18px;
    font-weight: 700;
    text-align: right;
    outline: none;
    min-width: 0;
}

.unit-label {
    font-size: 12px;
    color: var(--text-secondary, #848b9c);
    flex-shrink: 0;
}

.krw-display {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    padding-right: 4px;
}

.krw-label {
    font-size: 11px;
    color: var(--text-secondary, #848b9c);
}

.krw-value {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary, #fff);
}

/* ========================================
   Advanced Options
   ======================================== */

.advanced-option {
    margin-bottom: 10px;
}

.advanced-option summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 10px;
    background: var(--bg-secondary, #0f1115);
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    color: var(--text-secondary, #848b9c);
    list-style: none;
    border: 1px solid transparent;
    transition: all 0.2s;
}

.advanced-option summary:hover {
    border-color: var(--border-primary, rgba(255, 255, 255, 0.08));
}

.advanced-option summary::-webkit-details-marker {
    display: none;
}

.advanced-option summary .arrow {
    transition: transform 0.2s ease;
    font-size: 14px;
}

.advanced-option[open] summary .arrow {
    transform: rotate(180deg);
}

.opt-content {
    padding: 10px;
    background: var(--bg-secondary, #0f1115);
    border-radius: 0 0 6px 6px;
    margin-top: -2px;
}

.opt-row {
    display: flex;
    gap: 8px;
}

.opt-select {
    flex: 1;
    background: var(--bg-card, #12151c);
    border: 1px solid var(--border-primary, rgba(255, 255, 255, 0.08));
    color: var(--text-primary, #fff);
    padding: 8px 10px;
    border-radius: 6px;
    font-size: 11px;
    outline: none;
}

/* ========================================
   Result List Section
   ======================================== */

.result-list-section {
    margin-top: 20px;
    padding-bottom: 20px;
}

.result-list-section .step-label {
    margin-bottom: 8px;
}

.result-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 8px;
    min-height: 200px; /* CLS 방지: 결과 리스트 영역 확보 */
}

.result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-card, #12151c);
    padding: 12px 16px;
    border-radius: 12px;
    border: 1px solid var(--border-primary, rgba(255, 255, 255, 0.08));
}

.result-item .service-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.result-item .service-name {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary, #fff);
}

.result-item .cost-info,
.cost-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.result-item .cost-value,
.cost-value {
    font-size: 14px;
    font-weight: 700;
    color: var(--primary, #e2c068);
}

.result-item .rate-info,
.rate-info {
    font-size: 10px;
    color: var(--text-secondary, #848b9c);
}

.result-item .cost-diff,
.cost-diff {
    font-size: 10px;
    color: #F59E0B;
    font-weight: 500;
}

/* 은행 우대율 뱃지 */
.pref-badge {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
    background: rgba(107, 114, 128, 0.3);
    color: #9CA3AF;
    margin-left: 6px;
}

.pref-badge.selected {
    background: rgba(59, 130, 246, 0.2);
    color: #60A5FA;
}

/* 2차 점수 뱃지 */
.score-badge {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
    background: rgba(16, 185, 129, 0.2);
    color: #34D399;
    margin-left: 6px;
    cursor: help;
}

.no-result-msg {
    text-align: center;
    color: var(--text-secondary, #848b9c);
    padding: 20px;
    font-size: 13px;
}

/* ========================================
   Rank Badge Styles
   ======================================== */

.card-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.rank-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
}

.rank-badge.rank-1 {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #000;
}

.rank-badge.rank-2 {
    background: linear-gradient(135deg, #C0C0C0, #A0A0A0);
    color: #000;
}

.rank-badge.rank-3 {
    background: linear-gradient(135deg, #CD7F32, #8B4513);
    color: #fff;
}

.method-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 500;
    background: rgba(99, 102, 241, 0.2);
    color: #818cf8;
}

/* ========================================
   Service Info & Notes
   ======================================== */

.service-info-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.service-info-row i {
    font-size: 20px;
}

.service-bank {
    font-size: 11px;
    color: var(--text-tertiary);
    margin-bottom: 6px;
}

.service-note {
    font-size: 12px;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.05);
    padding: 6px 8px;
    border-radius: 6px;
    line-height: 1.4;
}

/* ========================================
   Result Card Styles
   ======================================== */

.result-rank {
    font-size: 18px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
}

.result-note {
    flex-shrink: 0;
}

.note-text {
    font-size: 11px;
    color: var(--text-tertiary);
    background: rgba(255, 255, 255, 0.05);
    padding: 3px 8px;
    border-radius: 4px;
}

/* ========================================
   Service Type Badge (Modal)
   ======================================== */

.service-type-badge,
.network-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
}

.service-type-badge {
    color: #fff;
}

.network-badge {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
}

/* ========================================
   Modal Detail Info
   ======================================== */

.detail-info {
    margin-bottom: 16px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.info-label {
    color: var(--text-tertiary);
    font-size: 13px;
}

.info-value {
    color: var(--text-primary);
    font-size: 13px;
    font-weight: 500;
}

/* ========================================
   Country Rankings (Modal)
   ======================================== */

.country-rankings {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ranking-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
}

.ranking-method {
    flex: 1;
    font-size: 13px;
    color: var(--text-secondary);
}

.ranking-position {
    font-size: 13px;
    font-weight: 700;
    color: var(--accent-blue);
    min-width: 32px;
}

.ranking-note {
    font-size: 11px;
    color: var(--text-tertiary);
    flex: 1;
    text-align: right;
}

/* ========================================
   Result Card (Legacy Support)
   ======================================== */

.result-card {
    flex: 0 0 auto;
    width: 100%;
    min-height: auto;
    background: var(--bg-card, #12151c);
    border: 1px solid var(--border-primary, rgba(255, 255, 255, 0.08));
    border-radius: 10px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    transition: all 0.2s ease;
    position: relative;
    margin-bottom: 8px;
}

.result-card:hover {
    border-color: rgba(255, 255, 255, 0.2);
}

.result-card.best {
    border: 2px solid var(--success, #4ade80);
}

.thumb-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    font-size: 16px;
}

.result-card .provider-name {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-primary, #fff);
}

.result-card .amount {
    font-size: 14px;
    font-weight: 700;
    color: var(--primary, #e2c068);
}

.result-card .result-category {
    font-size: 11px;
    font-weight: 600;
    margin-bottom: 2px;
}

.result-card .result-category.bank {
    color: #60a5fa;
}

.result-card .result-category.domestic {
    color: #fbbf24;
}

.result-card .result-category.travel {
    color: #34d399;
}

.result-card .result-category.prepaid {
    color: #ff6b6b;
}

.result-card .result-category.airport {
    color: #a0a8b8;
}

.result-card .result-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary, #fff);
}

/* ========================================
   Reason Box
   ======================================== */

.reason-box {
    font-size: 10px;
    color: var(--text-secondary, #9ca3af);
    background: rgba(255, 255, 255, 0.05);
    padding: 4px 6px;
    border-radius: 4px;
    margin-top: 6px;
    line-height: 1.3;
}

/* ========================================
   Cost Badge
   ======================================== */

.cost-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-secondary);
}

.cost-badge.free {
    background: rgba(16, 185, 129, 0.2);
    color: #10B981;
}

/* ========================================
   모달 상세 v2.0 - SERVICE_DETAILS 전용
   ======================================== */

/* 네트워크 배지 */
.network-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    background: rgba(99, 102, 241, 0.15);
    color: #818CF8;
    margin-left: 6px;
}

/* Fees 그리드 (2x2) */
.fees-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin: 16px 0;
}

.fee-item {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 12px;
}

.fee-label {
    font-size: 11px;
    color: var(--text-tertiary, #6B7280);
    margin-bottom: 4px;
}

.fee-value {
    font-size: 12px;
    color: var(--text-primary, #F9FAFB);
    line-height: 1.4;
}

/* Pros & Cons 그리드 (2컬럼) */
.pros-cons-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin: 16px 0;
}

.pros-section,
.cons-section {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
    padding: 12px;
}

.pros-cons-grid .section-title {
    font-size: 13px;
    font-weight: 600;
    margin: 0 0 8px 0;
    color: var(--text-primary);
}

.pros-title {
    color: #10B981;
}

.cons-title {
    color: #F59E0B;
}

.pros-cons-grid .detail-list {
    margin: 0;
    padding-left: 16px;
}

.pros-cons-grid .detail-list li {
    font-size: 11px;
    line-height: 1.5;
    color: var(--text-secondary, #9CA3AF);
    margin-bottom: 6px;
}

.pros-cons-grid .detail-list li:last-child {
    margin-bottom: 0;
}

/* Reviews 섹션 */
.reviews-section {
    margin: 16px 0;
    padding: 12px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
}

.reviews-section .section-title {
    margin-bottom: 10px;
}

.review-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.review-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.review-text {
    font-size: 12px;
    color: var(--text-secondary);
    font-style: italic;
    flex: 1;
    line-height: 1.4;
}

.review-date {
    font-size: 10px;
    color: var(--text-tertiary);
    margin-left: 8px;
    white-space: nowrap;
}

/* Notes 섹션 */
.notes-section {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-top: 12px;
    padding: 10px 12px;
    background: rgba(59, 130, 246, 0.08);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 8px;
}

.notes-icon {
    font-size: 14px;
    flex-shrink: 0;
}

.notes-text {
    font-size: 11px;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* 모바일 최적화 */
@media (max-width: 480px) {
    .fees-grid {
        gap: 8px;
    }
    
    .fee-item {
        padding: 10px;
    }
    
    .fee-label {
        font-size: 10px;
    }
    
    .fee-value {
        font-size: 11px;
    }
    
    .pros-cons-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .pros-cons-grid .detail-list li {
        font-size: 12px;
    }
}
/* 실시간 환율 기준 시간 */
.rate-update-time {
    text-align: right;
    font-size: 11px;
    color: #888;
    padding: 4px 16px 8px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.rate-update-time:empty {
    display: none;
}
/* =============================================
   필터 아이콘 드롭다운
   ============================================= */
.filter-icon-wrapper {
    position: relative;
}

.filter-icon-wrapper .filter-icon {
    cursor: pointer;
    font-size: 14px;
    color: #666;
    padding: 5px 8px;
    border-radius: 6px;
    transition: all 0.2s;
    background: #f5f5f5;
    border: 1px solid #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.filter-icon-wrapper .filter-icon:hover {
    color: #3182f6;
    background: rgba(49, 130, 246, 0.1);
    border-color: #3182f6;
}

.filter-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    min-width: 140px;
    z-index: 100;
    overflow: hidden;
    margin-top: 4px;
    border: 1px solid #e0e0e0;
}

.filter-dropdown.show {
    display: block;
}

.filter-option {
    padding: 10px 14px;
    font-size: 13px;
    color: #333;
    cursor: pointer;
    transition: background 0.2s;
}

.filter-option:hover {
    background: #f5f5f5;
}

.filter-option.selected {
    color: #3182f6;
    font-weight: 600;
    background: rgba(49, 130, 246, 0.05);
}

.filter-option.selected::before {
    content: '✓ ';
}

/* 다크모드 필터 */
@media (prefers-color-scheme: dark) {
    .filter-icon-wrapper .filter-icon {
        background: #2a2a2a;
        border-color: #444;
        color: #aaa;
    }
    
    .filter-icon-wrapper .filter-icon:hover {
        background: rgba(49, 130, 246, 0.2);
        border-color: #3182f6;
        color: #3182f6;
    }
    
    .filter-dropdown {
        background: #1e1e1e;
        border-color: #444;
        box-shadow: 0 4px 12px rgba(0,0,0,0.4);
    }
    
    .filter-option {
        color: #e0e0e0;
    }
    
    .filter-option:hover {
        background: #333;
    }
    
    .filter-option.selected {
        background: rgba(49, 130, 246, 0.15);
    }
}

/* =============================================
   면책조항
   ============================================= */
.disclaimer {
    margin: 16px;
    padding: 12px 14px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 3px solid #dee2e6;
}

.disclaimer p {
    margin: 0 0 8px 0;
    font-size: 12px;
    font-weight: 600;
    color: #666;
}

.disclaimer ul {
    margin: 0;
    padding-left: 16px;
}

.disclaimer li {
    font-size: 11px;
    color: #888;
    line-height: 1.6;
    margin-bottom: 2px;
}

.disclaimer li:last-child {
    margin-bottom: 0;
}

.disclaimer strong {
    color: #e74c3c;
}
/* =============================================
   가이드 콘텐츠 (SEO 최적화)
   ============================================= */
.guide-wrapper {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.guide-content h2 {
    font-size: 22px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 8px 0;
    line-height: 1.4;
}

.guide-date {
    font-size: 13px;
    color: #888;
    text-align: right;
    margin: -4px 0 16px 0;
}

.guide-intro {
    font-size: 15px;
    color: #555;
    line-height: 1.7;
    margin-bottom: 24px;
}

.guide-section {
    margin-bottom: 28px;
}

.guide-section h3 {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 12px 0;
}

.guide-section h4 {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    margin: 0 0 6px 0;
}

.guide-section p {
    font-size: 14px;
    color: #444;
    line-height: 1.75;
    margin-bottom: 10px;
}

.guide-section strong {
    color: #1a1a1a;
}

/* 비교 테이블 */
.compare-table {
    width: 100%;
    border-collapse: collapse;
    margin: 12px 0 16px 0;
    font-size: 13px;
}

.compare-table th,
.compare-table td {
    padding: 10px 8px;
    text-align: left;
    border-bottom: 1px solid #e5e5e5;
}

.compare-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #333;
}

.compare-table td {
    color: #555;
}

.compare-table tr:last-child td {
    border-bottom: none;
}

/* 인라인 링크 */
.inline-link {
    font-size: 13px;
    color: #666;
    background: #f8f9fa;
    padding: 10px 14px;
    border-radius: 8px;
    margin: 12px 0;
}

.inline-link a {
    color: #3182f6;
    text-decoration: none;
    font-weight: 500;
}

.inline-link a:hover {
    text-decoration: underline;
}

/* 나라별 팁 */
.country-tip {
    background: #fafafa;
    padding: 14px 16px;
    border-radius: 8px;
    margin-bottom: 12px;
}

.country-tip h4 {
    margin: 0 0 8px 0;
}

.country-tip p {
    margin: 0;
    font-size: 13px;
    color: #555;
    line-height: 1.7;
}

/* 꿀팁 리스트 */
.tip-list {
    margin: 12px 0;
    padding-left: 0;
    list-style: none;
}

.tip-list li {
    font-size: 14px;
    color: #444;
    line-height: 1.7;
    margin-bottom: 10px;
    padding-left: 20px;
    position: relative;
}

.tip-list li::before {
    content: "•";
    color: #3182f6;
    font-weight: bold;
    position: absolute;
    left: 0;
}

.tip-list strong {
    color: #1a1a1a;
}

/* FAQ 섹션 */
.faq-section {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    margin-top: 24px;
}

.faq-section h3 {
    margin-bottom: 16px;
}

.faq-item {
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e5e5e5;
}

.faq-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.faq-item h4 {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 6px 0;
}

.faq-item p {
    font-size: 13px;
    color: #555;
    line-height: 1.7;
    margin: 0;
}

.faq-item a {
    color: #3182f6;
    text-decoration: none;
}

.faq-item a:hover {
    text-decoration: underline;
}

/* 가이드 링크 */
.guide-links {
    background: #f0f7ff;
    padding: 16px;
    border-radius: 8px;
    margin-top: 24px;
}

.guide-links strong {
    font-size: 14px;
    color: #333;
    display: block;
    margin-bottom: 10px;
}

.guide-links ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.guide-links li {
    margin-bottom: 8px;
    font-size: 13px;
}

.guide-links a {
    color: #3182f6;
    text-decoration: none;
}

.guide-links a:hover {
    text-decoration: underline;
}

/* 100만원 비교 예시 박스 */
.example-box {
    background: linear-gradient(135deg, #f0f7ff 0%, #e8f4fd 100%);
    border-radius: 12px;
    padding: 16px 20px;
    margin: 16px 0;
}

.example-title {
    font-weight: 600;
    color: #1e3a5f;
    margin-bottom: 12px;
    font-size: 14px;
}

.example-table {
    width: 100%;
    font-size: 13px;
    border-collapse: collapse;
}

.example-table td {
    padding: 6px 0;
    color: #475569;
}

.example-table td:first-child {
    color: #64748b;
}

.example-table td.highlight {
    font-weight: 600;
    color: #3182f6;
    text-align: right;
}

.example-table td:last-child:not(.highlight) {
    text-align: right;
    color: #94a3b8;
}

.example-note {
    margin-top: 10px;
    font-size: 11px;
    color: #94a3b8;
}

/* 후기 카드 */
.review-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 12px;
}

.review-badge {
    display: inline-block;
    background: #f1f5f9;
    color: #475569;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
    margin-bottom: 10px;
}

.guide-section .review-text {
    font-size: 14px;
    line-height: 1.6;
    color: #334155;
    margin-bottom: 8px;
    font-style: normal;
}

.guide-section .review-text strong {
    color: #3182f6;
    font-weight: 600;
}

.review-source {
    font-size: 12px;
    color: #94a3b8;
    text-align: right;
}

/* 면책조항 */
.guide-disclaimer {
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    margin-top: 24px;
    padding: 16px;
    border-radius: 8px;
}

.guide-disclaimer p:first-child {
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
    margin-bottom: 6px;
}

.guide-disclaimer p:last-child {
    font-size: 11px;
    color: #94a3b8;
    line-height: 1.5;
}

/* 다크모드 가이드 */
@media (prefers-color-scheme: dark) {
    .guide-wrapper {
        background: #1e1e1e;
    }
    
    .guide-content h2 {
        color: #fff;
    }
    
    .guide-date {
        color: #666;
    }
    
    .guide-intro {
        color: #aaa;
    }
    
    .guide-section h3,
    .guide-section h4 {
        color: #fff;
    }
    
    .guide-section p {
        color: #bbb;
    }
    
    .guide-section strong {
        color: #fff;
    }
    
    .compare-table th {
        background: #2a2a2a;
        color: #ddd;
    }
    
    .compare-table td {
        color: #bbb;
        border-color: #333;
    }
    
    .inline-link {
        background: #2a2a2a;
        color: #aaa;
    }
    
    .country-tip {
        background: #2a2a2a;
    }
    
    .country-tip p {
        color: #aaa;
    }
    
    .tip-list li {
        color: #bbb;
    }
    
    .tip-list strong {
        color: #fff;
    }
    
    .faq-section {
        background: #2a2a2a;
    }
    
    .faq-item {
        border-color: #333;
    }
    
    .faq-item h4 {
        color: #fff;
    }
    
    .faq-item p {
        color: #aaa;
    }
    
    .guide-links {
        background: rgba(49, 130, 246, 0.1);
    }
    
    .guide-links strong {
        color: #ddd;
    }
    
    /* 다크모드: 100만원 비교 예시 박스 */
    .example-box {
        background: linear-gradient(135deg, #1e3a5f 0%, #1a2d44 100%);
    }
    
    .example-title {
        color: #e2e8f0;
    }
    
    .example-table td {
        color: #cbd5e1;
    }
    
    .example-table td:first-child {
        color: #94a3b8;
    }
    
    .example-table td.highlight {
        color: #60a5fa;
    }
    
    .example-note {
        color: #64748b;
    }
    
    /* 다크모드: 후기 카드 */
    .review-card {
        background: #2a2a2a;
        border-color: #333;
    }
    
    .review-badge {
        background: #333;
        color: #94a3b8;
    }
    
    .guide-section .review-text {
        color: #cbd5e1;
    }
    
    .guide-section .review-text strong {
        color: #60a5fa;
    }
    
    .review-source {
        color: #64748b;
    }
    
    /* 다크모드: 면책조항 */
    .guide-disclaimer {
        background: #252525;
        border-color: #333;
    }
    
    .guide-disclaimer p:first-child {
        color: #94a3b8;
    }
    
    .guide-disclaimer p:last-child {
        color: #64748b;
    }
}

/* 가이드 대표 이미지 */
.guide-hero-image {
    margin: 20px 0 24px 0;
    padding: 0;
}

.guide-hero-image img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

@media (prefers-color-scheme: dark) {
    .guide-hero-image img {
        box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    }
}

/* ===== 툴팁 스타일 (아래 펼침 방식) ===== */
.tooltip-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    font-size: 10px;
    font-weight: 600;
    font-style: normal;
    color: #fff;
    background: #bbb;
    cursor: pointer;
    vertical-align: super;
    margin-left: 2px;
    border-radius: 50%;
    transition: all 0.2s ease;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.tooltip-trigger:hover,
.tooltip-trigger.active {
    background: #3182f6;
}

/* 툴팁 내용 - 숨김 */
.tooltip-content {
    display: none;
}

/* 툴팁 설명 박스 - 세련된 스타일 */
.tooltip-desc {
    display: none;
    margin-top: 10px;
    padding: 12px 16px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 12px;
    font-size: 13px;
    line-height: 1.5;
    color: #475569;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06), 0 0 0 1px rgba(0,0,0,0.04);
    white-space: nowrap;
    overflow-x: auto;
}

.tooltip-desc.show {
    display: block;
    animation: tooltipFadeIn 0.25s ease;
}

/* 긴 내용은 줄바꿈 허용 */
.tooltip-desc.multi-line {
    white-space: normal;
}

.tooltip-desc strong {
    color: #3182f6;
    font-weight: 600;
}

@keyframes tooltipFadeIn {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 모바일에서 한 줄 안 잘리게 */
@media (max-width: 480px) {
    .tooltip-desc {
        font-size: 12px;
        padding: 8px 12px;
    }
}

/* 다크모드 */
@media (prefers-color-scheme: dark) {
    .tooltip-trigger {
        background: #555;
    }
    
    .tooltip-trigger:hover,
    .tooltip-trigger.active {
        background: #3182f6;
    }
    
    .tooltip-desc {
        background: linear-gradient(135deg, #2d2d2d 0%, #252525 100%);
        color: #cbd5e1;
        box-shadow: 0 2px 8px rgba(0,0,0,0.2), 0 0 0 1px rgba(255,255,255,0.05);
    }
    
    .tooltip-desc strong {
        color: #60a5fa;
    }
}

/* ===== 업데이트 시간 ===== */
.result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    flex-wrap: wrap;
    gap: 8px;
}

.result-header .step-label {
    margin-bottom: 0;
}

.update-time {
    font-size: 12px;
    color: #888;
    white-space: nowrap;
}

@media (prefers-color-scheme: dark) {
    .update-time {
        color: #999;
    }
}


/* ========================================
   [2025-12-15] 네이버 신뢰도 알고리즘 대응
   ======================================== */

/* 1. 데이터 출처 박스 (E-E-A-T 전문성) */
.data-source-box {
    margin: 20px 0 10px;
    padding: 12px 14px;
    background: rgba(49, 130, 246, 0.05);
    border: 1px solid rgba(49, 130, 246, 0.1);
    border-radius: 8px;
}

.data-source-box strong {
    display: block;
    font-size: 12px;
    color: #3182f6;
    margin-bottom: 6px;
}

.source-list {
    margin: 0;
    padding-left: 16px;
    list-style: disc;
}

.source-list li {
    font-size: 11px;
    color: var(--text-secondary, #848b9c);
    line-height: 1.5;
}

/* 2. 공유 버튼 (상호작용 신호) */
.share-actions-mini {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin: -8px 0 12px 0;
    padding-right: 4px;
}

.mini-share-btn {
    background: transparent;
    border: 1px solid var(--border-primary, rgba(255, 255, 255, 0.12));
    color: var(--text-secondary, #848b9c);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.mini-share-btn:hover {
    background: var(--bg-tertiary, #1a1d26);
    color: var(--primary, #e2c068);
    border-color: var(--primary, #e2c068);
}

.mini-share-btn i {
    font-size: 14px;
}

/* 3. Site Footer (브랜드 엔티티 - 가이드 맨 아래) */
.site-footer {
    margin-top: 40px;
    padding: 24px 20px 30px;
    text-align: center;
    background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.02) 100%);
    border-top: 1px solid #e2e8f0;
}

.site-footer .footer-brand {
    font-size: 15px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 8px;
}

.site-footer .footer-info {
    font-size: 12px;
    color: #64748b;
    margin-bottom: 4px;
}

.site-footer .footer-contact {
    font-size: 11px;
    color: #94a3b8;
    margin-bottom: 8px;
}

.site-footer .footer-copy {
    font-size: 10px;
    color: #94a3b8;
}

/* 4. Toast 알림 */
.toast {
    visibility: hidden;
    min-width: 200px;
    background-color: #333;
    color: #fff;
    text-align: center;
    border-radius: 8px;
    padding: 12px 16px;
    position: fixed;
    z-index: 9999;
    left: 50%;
    bottom: 100px;
    transform: translateX(-50%);
    font-size: 13px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.toast.show {
    visibility: visible;
    animation: fadein 0.3s, fadeout 0.3s 2.7s;
}

@keyframes fadein {
    from { bottom: 80px; opacity: 0; }
    to { bottom: 100px; opacity: 1; }
}

@keyframes fadeout {
    from { bottom: 100px; opacity: 1; }
    to { bottom: 80px; opacity: 0; }
}

/* 5. 모바일 가이드 노출 (SEO 콘텐츠 볼륨) */
@media (max-width: 1024px) {
    .main-wrapper {
        flex-direction: column;
        overflow-y: auto;
        height: auto;
    }
    
    .calculator-wrapper {
        width: 100%;
        height: auto;
        min-height: 100vh;
        flex: none;
        border-right: none;
    }
    
    .app-container {
        height: 100vh;
        max-height: 100vh;
        overflow: hidden;
    }
    
    /* 🔧 모바일에서 가이드 숨김 (SEO 안전 - DOM에는 존재) */
    .guide-wrapper {
        display: none !important;
    }
    
    .guide-content {
        max-width: 100%;
        padding: 0;
        box-shadow: none;
    }
    
    /* 모바일 Footer 하단 여백 조정 */
    .site-footer {
        margin-bottom: 60px; /* bottom-nav 높이 고려 */
    }
}

/* 다크모드 대응 - 네이버 신뢰도 요소 */
@media (prefers-color-scheme: dark) {
    .data-source-box {
        background: rgba(49, 130, 246, 0.08);
        border-color: rgba(49, 130, 246, 0.15);
    }
    
    .site-footer {
        background: linear-gradient(180deg, transparent 0%, rgba(255,255,255,0.02) 100%);
        border-top-color: #333;
    }
    
    .site-footer .footer-brand {
        color: #fff;
    }
    
    .site-footer .footer-info {
        color: #94a3b8;
    }
    
    .site-footer .footer-contact,
    .site-footer .footer-copy {
        color: #64748b;
    }
}

@media (max-width: 1024px) and (prefers-color-scheme: dark) {
    .guide-wrapper {
        display: none !important;
    }
}
/* ==========================================
   🔧 모바일 줌 방지 (input focus 시)
   ========================================== */
@media (max-width: 1024px) {
    input, select, textarea {
        font-size: 16px !important; /* iOS 줌 방지 */
    }
    
    input:focus, select:focus, textarea:focus {
        font-size: 16px !important;
    }
    
    /* 터치 최적화 */
    * {
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
    }
}