    /* ══════════════════════════════════════════════
    환율 계산기 - style.css
    Pastel Sky Blue Theme
    ══════════════════════════════════════════════ */

    *, *::before, *::after {
        box-sizing: border-box;
        margin: 0;
        padding: 0;
    }
    
    :root {
        /* Colors */
        --bg-start: #c5e5ff;
        --bg-end:   #eef8ff;
        --card-bg:  rgba(255, 255, 255, 0.82);
        --card-border: rgba(255, 255, 255, 0.95);
        --primary:       #1a8fe8;
        --primary-hover: #1478cc;
        --primary-light: #e8f4fd;
        --text-1: #18222f;
        --text-2: #5a6d82;
        --text-3: #9aaab8;
        --input-bg:     #f4f9ff;
        --input-border: #daeaf8;
        --success: #0fba7e;
        --error:   #e84040;
    
        /* Shadows */
        --shadow-card:  0 4px 28px rgba(80, 145, 210, 0.14);
        --shadow-hover: 0 8px 36px rgba(80, 145, 210, 0.22);
    
        /* Shape */
        --r-lg: 20px;
        --r-md: 14px;
        --r-sm: 10px;
        --r-xs: 7px;
    }
    
    /* ── Base ────────────────────────────────────── */
    body {
        font-family: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, sans-serif;
        background: linear-gradient(145deg, var(--bg-start) 0%, var(--bg-end) 100%);
        min-height: 100vh;
        color: var(--text-1);
        line-height: 1.6;
        overflow-x: hidden;
    }
    
    /* Background decorative orbs */
    .bg-orb {
        position: fixed;
        border-radius: 50%;
        pointer-events: none;
        z-index: 0;
        filter: blur(60px);
    }
    .bg-orb-1 {
        width: 500px; height: 500px;
        top: -150px; right: -150px;
        background: radial-gradient(circle, rgba(90, 180, 255, 0.22) 0%, transparent 70%);
    }
    .bg-orb-2 {
        width: 400px; height: 400px;
        bottom: -100px; left: -100px;
        background: radial-gradient(circle, rgba(150, 200, 255, 0.18) 0%, transparent 70%);
    }
    
    /* ── Layout ──────────────────────────────────── */
    .container {
        max-width: 540px;
        margin: 0 auto;
        padding: 22px 16px 48px;
        position: relative;
        z-index: 1;
    }
    
    /* ── Header ──────────────────────────────────── */
    .header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 18px;
        padding: 2px 2px;
    }
    
    .header-left {
        display: flex;
        align-items: center;
        gap: 13px;
    }
    
    .logo-icon {
        font-size: 34px;
        line-height: 1;
        filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
    }
    
    .title {
        font-size: 21px;
        font-weight: 800;
        color: var(--text-1);
        letter-spacing: -0.6px;
        line-height: 1.2;
    }
    
    .subtitle {
        font-size: 12px;
        color: var(--text-2);
        font-weight: 400;
        margin-top: 2px;
    }
    
    /* Language toggle */
    .lang-toggle {
        display: flex;
        align-items: center;
        gap: 5px;
        background: var(--card-bg);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        border: 1.5px solid var(--card-border);
        border-radius: 24px;
        padding: 7px 15px;
        cursor: pointer;
        font-family: inherit;
        font-size: 12px;
        font-weight: 600;
        color: var(--text-2);
        transition: all 0.2s ease;
        box-shadow: 0 2px 10px rgba(100, 160, 220, 0.12);
    }
    
    .lang-toggle:hover {
        background: white;
        box-shadow: 0 4px 16px rgba(100, 160, 220, 0.2);
    }
    
    .lang-divider {
        opacity: 0.35;
        font-weight: 300;
    }
    
    .lang-label {
        transition: color 0.2s;
    }
    
    .lang-toggle.ko-active .lang-ko {
        color: var(--primary);
        font-weight: 800;
    }
    
    .lang-toggle.en-active .lang-en {
        color: var(--primary);
        font-weight: 800;
    }
    
    /* ── Cards ───────────────────────────────────── */
    .card {
        background: var(--card-bg);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border: 1.5px solid var(--card-border);
        border-radius: var(--r-lg);
        padding: 24px;
        box-shadow: var(--shadow-card);
        margin-bottom: 14px;
        animation: cardIn 0.4s cubic-bezier(0.22, 1, 0.36, 1) both;
    }
    
    .card:nth-child(2) { animation-delay: 0.05s; }
    .card:nth-child(3) { animation-delay: 0.10s; }
    .card:nth-child(4) { animation-delay: 0.15s; }
    
    @keyframes cardIn {
        from { opacity: 0; transform: translateY(14px); }
        to   { opacity: 1; transform: translateY(0); }
    }
    
    /* ── Status Bar ──────────────────────────────── */
    .rate-status {
        display: flex;
        align-items: center;
        gap: 8px;
        font-size: 12px;
        color: var(--text-3);
        margin-bottom: 20px;
        font-weight: 400;
    }
    
    .status-dot {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: var(--text-3);
        flex-shrink: 0;
        transition: background 0.3s;
    }
    
    .status-dot.loading {
        background: #f5a623;
        animation: blink 1s ease infinite;
    }
    
    .status-dot.live {
        background: var(--success);
        box-shadow: 0 0 0 0 rgba(15, 186, 126, 0.4);
        animation: pulse-green 2.5s ease-out infinite;
    }
    
    .status-dot.error {
        background: var(--error);
    }
    
    @keyframes pulse-green {
        0%   { box-shadow: 0 0 0 0 rgba(15, 186, 126, 0.5); }
        70%  { box-shadow: 0 0 0 7px rgba(15, 186, 126, 0); }
        100% { box-shadow: 0 0 0 0 rgba(15, 186, 126, 0); }
    }
    
    @keyframes blink {
        0%, 100% { opacity: 1; }
        50% { opacity: 0.4; }
    }
    
    /* ── Input Section ───────────────────────────── */
    .input-section {
        margin-bottom: 4px;
    }
    
    .input-label {
        display: block;
        font-size: 12px;
        font-weight: 700;
        color: var(--text-3);
        text-transform: uppercase;
        letter-spacing: 1px;
        margin-bottom: 8px;
    }
    
    .input-row {
        display: flex;
        align-items: stretch;
        background: var(--input-bg);
        border: 1.5px solid var(--input-border);
        border-radius: var(--r-md);
        overflow: hidden;
        transition: border-color 0.2s, box-shadow 0.2s;
    }
    
    .input-row:focus-within {
        border-color: var(--primary);
        box-shadow: 0 0 0 3px rgba(26, 143, 232, 0.1);
    }
    
    /* Currency selector button */
    .currency-btn {
        display: flex;
        align-items: center;
        gap: 7px;
        padding: 14px 12px 14px 16px;
        background: none;
        border: none;
        border-right: 1.5px solid var(--input-border);
        cursor: pointer;
        font-family: inherit;
        white-space: nowrap;
        transition: background 0.15s;
        min-width: 105px;
    }
    
    .currency-btn:hover {
        background: rgba(26, 143, 232, 0.06);
    }
    
    .currency-flag {
        font-size: 21px;
        line-height: 1;
        display: block;
    }
    
    .currency-code {
        font-size: 16px;
        font-weight: 800;
        color: var(--text-1);
        letter-spacing: 0.3px;
    }
    
    .chevron {
        width: 14px;
        height: 14px;
        color: var(--text-3);
        flex-shrink: 0;
        transition: transform 0.2s;
        margin-left: 2px;
    }
    
    .currency-btn:hover .chevron {
        transform: translateY(2px);
    }
    
    /* Amount input */
    .amount-input {
        flex: 1;
        min-width: 0;
        border: none;
        background: transparent;
        padding: 14px 16px;
        font-family: inherit;
        font-size: 24px;
        font-weight: 700;
        color: var(--text-1);
        text-align: right;
        outline: none;
    }
    
    .amount-input::placeholder {
        color: var(--text-3);
        font-weight: 400;
    }
    
    .amount-input::-webkit-inner-spin-button,
    .amount-input::-webkit-outer-spin-button {
        -webkit-appearance: none;
    }
    
    .result-input {
        color: var(--primary-hover);
    }
    
    /* ── Rate Bar ────────────────────────────────── */
    .rate-bar {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 14px 2px;
        gap: 12px;
    }
    
    .rate-info {
        display: flex;
        flex-direction: column;
        gap: 3px;
        flex: 1;
        min-width: 0;
    }
    
    .rate-text {
        font-size: 14px;
        font-weight: 600;
        color: var(--text-1);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        transition: opacity 0.3s;
    }
    
    .rate-inverse {
        font-size: 11px;
        color: var(--text-3);
        white-space: nowrap;
    }
    
    /* Swap button */
    .swap-btn {
        width: 44px;
        height: 44px;
        border-radius: 50%;
        border: 1.5px solid var(--input-border);
        background: white;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        flex-shrink: 0;
        transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
        box-shadow: 0 2px 8px rgba(100, 150, 200, 0.12);
    }
    
    .swap-btn svg {
        width: 18px;
        height: 18px;
        color: var(--text-2);
        transition: color 0.2s;
    }
    
    .swap-btn:hover {
        background: var(--primary);
        border-color: var(--primary);
        transform: rotate(180deg) scale(1.08);
        box-shadow: 0 6px 20px rgba(26, 143, 232, 0.35);
    }
    
    .swap-btn:hover svg {
        color: white;
    }
    
    .swap-btn:active {
        transform: rotate(180deg) scale(0.95);
    }
    
    /* ── Quick Currencies ────────────────────────── */
    .section-title {
        font-size: 11px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 1px;
        color: var(--text-2);
        margin-bottom: 13px;
    }
    
    .quick-grid {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .quick-btn {
        display: flex;
        align-items: center;
        gap: 6px;
        padding: 7px 14px;
        border: 1.5px solid var(--input-border);
        border-radius: 24px;
        background: white;
        cursor: pointer;
        font-family: inherit;
        font-size: 13px;
        font-weight: 700;
        color: var(--text-2);
        transition: all 0.15s ease;
        white-space: nowrap;
    }
    
    .quick-btn:hover {
        border-color: var(--primary);
        color: var(--primary);
        background: var(--primary-light);
        transform: translateY(-1px);
        box-shadow: 0 3px 10px rgba(26, 143, 232, 0.15);
    }
    
    .quick-btn.active {
        border-color: var(--primary);
        color: var(--primary);
        background: var(--primary-light);
    }
    
    .quick-flag {
        font-size: 15px;
        line-height: 1;
    }
    
    /* ── Rate Table ──────────────────────────────── */
    .table-header {
        display: flex;
        align-items: baseline;
        justify-content: space-between;
        margin-bottom: 10px;
    }
    
    .table-base {
        font-size: 11px;
        color: var(--text-3);
        font-weight: 500;
    }
    
    .rate-table {
        display: flex;
        flex-direction: column;
        gap: 1px;
    }
    
    .rate-row {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 12px 10px;
        border-radius: var(--r-xs);
        cursor: pointer;
        transition: background 0.15s;
    }
    
    .rate-row:hover {
        background: var(--primary-light);
    }
    
    .rate-row-left {
        display: flex;
        align-items: center;
        gap: 11px;
    }
    
    .row-flag {
        font-size: 20px;
        width: 26px;
        text-align: center;
        flex-shrink: 0;
    }
    
    .row-code {
        font-size: 14px;
        font-weight: 700;
        color: var(--text-1);
        line-height: 1.2;
    }
    
    .row-name {
        font-size: 11px;
        color: var(--text-3);
        margin-top: 2px;
        line-height: 1;
    }
    
    .rate-row-right {
        text-align: right;
    }
    
    .row-value {
        font-size: 15px;
        font-weight: 700;
        color: var(--text-1);
        line-height: 1.2;
    }
    
    .row-unit {
        font-size: 10px;
        color: var(--text-3);
        margin-top: 2px;
        font-weight: 400;
    }
    
    /* ── Footer ──────────────────────────────────── */
    .footer {
        text-align: center;
        padding: 4px 0 0;
    }
    
    .footer p {
        font-size: 11px;
        color: var(--text-3);
        line-height: 1.9;
    }
    
    /* ── Dropdown Overlay ────────────────────────── */
    .dropdown-overlay {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(10, 25, 50, 0.38);
        z-index: 200;
        backdrop-filter: blur(3px);
        -webkit-backdrop-filter: blur(3px);
    }
    
    .dropdown-overlay.open {
        display: block;
        animation: fadeIn 0.2s ease;
    }
    
    @keyframes fadeIn {
        from { opacity: 0; }
        to   { opacity: 1; }
    }
    
    /* ── Dropdown Modal (bottom sheet) ───────────── */
    .dropdown-modal {
        display: none;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        max-height: 78vh;
        background: white;
        border-radius: 22px 22px 0 0;
        z-index: 201;
        flex-direction: column;
        box-shadow: 0 -10px 50px rgba(0, 0, 0, 0.16);
    }
    
    .dropdown-modal.open {
        display: flex;
        animation: slideUp 0.32s cubic-bezier(0.32, 0.72, 0, 1);
    }
    
    @keyframes slideUp {
        from { transform: translateY(100%); }
        to   { transform: translateY(0); }
    }
    
    /* Drag handle */
    .dropdown-handle {
        width: 40px;
        height: 4px;
        background: #dde6f0;
        border-radius: 2px;
        margin: 12px auto 0;
        flex-shrink: 0;
    }
    
    .dropdown-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 16px 22px 0;
        flex-shrink: 0;
    }
    
    .dropdown-header h3 {
        font-size: 17px;
        font-weight: 800;
        color: var(--text-1);
        letter-spacing: -0.3px;
    }
    
    .close-btn {
        width: 34px;
        height: 34px;
        border-radius: 50%;
        border: none;
        background: var(--input-bg);
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: background 0.15s;
    }
    
    .close-btn svg {
        width: 16px;
        height: 16px;
        color: var(--text-2);
    }
    
    .close-btn:hover {
        background: #fee2e2;
    }
    
    .close-btn:hover svg {
        color: var(--error);
    }
    
    /* Search */
    .search-wrap {
        position: relative;
        padding: 14px 22px 8px;
        flex-shrink: 0;
    }
    
    .search-icon {
        position: absolute;
        left: 36px;
        top: 50%;
        transform: translateY(-50%) translateY(3px);
        width: 16px;
        height: 16px;
        color: var(--text-3);
        pointer-events: none;
    }
    
    .search-input {
        width: 100%;
        padding: 11px 16px 11px 40px;
        border: 1.5px solid var(--input-border);
        border-radius: var(--r-sm);
        background: var(--input-bg);
        font-family: inherit;
        font-size: 14px;
        color: var(--text-1);
        outline: none;
        transition: border-color 0.2s, box-shadow 0.2s;
    }
    
    .search-input:focus {
        border-color: var(--primary);
        box-shadow: 0 0 0 3px rgba(26, 143, 232, 0.1);
    }
    
    .search-input::placeholder {
        color: var(--text-3);
    }
    
    /* Currency list */
    .dropdown-list {
        overflow-y: auto;
        flex: 1;
        padding: 6px 14px 24px;
        overscroll-behavior: contain;
    }
    
    .dropdown-item {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 11px 10px;
        border-radius: var(--r-sm);
        cursor: pointer;
        transition: background 0.12s;
    }
    
    .dropdown-item:hover {
        background: var(--primary-light);
    }
    
    .dropdown-item.selected {
        background: var(--primary-light);
    }
    
    .dropdown-item.selected .item-code {
        color: var(--primary);
    }
    
    .item-flag {
        font-size: 24px;
        width: 30px;
        text-align: center;
        flex-shrink: 0;
        line-height: 1;
    }
    
    .item-code {
        font-size: 14px;
        font-weight: 800;
        color: var(--text-1);
        min-width: 44px;
        flex-shrink: 0;
    }
    
    .item-name {
        font-size: 13px;
        color: var(--text-2);
        line-height: 1.3;
    }
    
    .no-results {
        text-align: center;
        padding: 36px 0;
        font-size: 14px;
        color: var(--text-3);
    }
    
    /* ── Responsive ──────────────────────────────── */
    @media (max-width: 480px) {
        .container {
        padding: 16px 12px 40px;
        }
        .card {
        padding: 20px;
        }
        .amount-input {
        font-size: 20px;
        }
        .title {
        font-size: 19px;
        }
        .dropdown-modal {
        max-height: 85vh;
        }
    }
    
    @media (min-width: 600px) {
        .container {
        padding: 32px 20px 56px;
        }
        .card {
        padding: 28px;
        }
    }
