﻿:root { --primary-blue: #1a237e; --primary-pink: #d81b60; --primary-green: #00c853; --bg-light: #f8f9fc; --text-dark: #2d3748; --text-muted: #718096; --white: #ffffff; --shadow-sm: 0 4px 6px rgba(0,0,0,0.05); --shadow-lg: 0 15px 35px rgba(0,0,0,0.08); --radius: 16px; }
        * { box-sizing: border-box; margin: 0; padding: 0; }
        body {
            font-family: 'Segoe UI', system-ui, sans-serif;
            background:
                radial-gradient(38rem 38rem at 8% 10%, rgba(236, 64, 122, 0.16), transparent 60%),
                radial-gradient(34rem 34rem at 92% 8%, rgba(26, 35, 126, 0.15), transparent 58%),
                radial-gradient(28rem 28rem at 14% 78%, rgba(63, 81, 181, 0.11), transparent 56%),
                radial-gradient(24rem 24rem at 88% 68%, rgba(216, 27, 96, 0.08), transparent 54%),
                linear-gradient(180deg, #ffffff 0%, #eef3fb 55%, #f8f9fc 100%);
            background-attachment: fixed;
            position: relative;
            overflow-x: hidden;
            isolation: isolate;
            color: var(--text-dark);
            line-height: 1.6;
        }
        body::before,
        body::after {
            content: '';
            position: fixed;
            border-radius: 999px;
            pointer-events: none;
            filter: blur(4px);
            z-index: 0;
        }
        body::before {
            width: 260px;
            height: 260px;
            top: -90px;
            right: -70px;
            background: linear-gradient(135deg, rgba(216, 27, 96, 0.18), rgba(236, 64, 122, 0.02));
        }
        body::after {
            width: 220px;
            height: 220px;
            left: -60px;
            bottom: -80px;
            background: linear-gradient(135deg, rgba(26, 35, 126, 0.14), rgba(63, 81, 181, 0.02));
        }
        body > * { position: relative; z-index: 1; }
        .container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
        header { background: var(--white); padding: 12px 0; box-shadow: var(--shadow-sm); margin-bottom: 25px; }
        .header-content { display: flex; justify-content: space-between; align-items: center; max-width: 1100px; margin: 0 auto; padding: 0 20px; }
        .logo { font-size: 28px; font-weight: 900; color: var(--primary-blue); text-decoration: none; letter-spacing: -1px; }
        .logo span { color: var(--primary-pink); }
        .header-actions { display: flex; align-items: center; gap: 12px; }
        .back-link { color: var(--text-muted); text-decoration: none; font-weight: 600; transition: color 0.2s; font-size: 0.95rem; }
        .back-link:hover { color: var(--primary-blue); }
        .btn-alert { background-color: var(--primary-pink); color: white; border: none; padding: 10px 16px; border-radius: 8px; font-weight: bold; font-size: 0.95rem; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; transition: background 0.2s; white-space: nowrap; text-decoration: none; }
        .btn-alert:hover { background-color: #ad1457; }
        .page-title { text-align: center; color: var(--primary-blue); margin: 0 0 22px; font-size: clamp(2rem, 4vw, 2.7rem); letter-spacing: -0.02em; }
        .main-tabs { display: flex; background: var(--white); border-radius: 10px; border: 1px solid #e2e8f0; margin-bottom: 15px; overflow: hidden; box-shadow: 0 2px 4px rgba(0,0,0,0.02); }
        .main-tab { flex: 1; text-align: center; padding: 12px 10px; font-weight: bold; color: var(--text-muted); cursor: pointer; border-right: 1px solid #e2e8f0; transition: 0.2s; background: transparent; border-top: none; border-bottom: none; border-left: none; font-size: 0.9rem; position: relative; }
        .main-tab:last-child { border-right: none; }
        .main-tab:hover { background: #f8f9fc; }
        .main-tab.active { color: var(--primary-blue); background: #fdfdfd; }
        .main-tab.active::after { content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: 3px; background: linear-gradient(90deg, #3f51b5, var(--primary-pink)); }
        .calc-widget { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-lg); margin-bottom: 35px; display: flex; overflow: hidden; }
        .calc-controls { flex: 1; padding: 25px 30px; display: flex; flex-direction: column; gap: 15px; }
        .control-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 5px; align-items: start; }
        .control-group { position: relative; margin-bottom: 10px; }
        .value-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 8px; }
        .value-header label { font-size: 0.95rem; font-weight: 600; color: var(--text-muted); }
        .current-val { font-size: 1.5rem; font-weight: 800; color: var(--primary-blue); line-height: 1; }
        input[type=range] { appearance: none; -webkit-appearance: none; width: 100%; background: transparent; }
        input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; height: 22px; width: 22px; border-radius: 50%; background: var(--primary-pink); cursor: pointer; margin-top: -8px; box-shadow: 0 4px 8px rgba(216, 27, 96, 0.4); border: 2px solid var(--white); transition: transform 0.1s; }
        input[type=range]::-webkit-slider-thumb:hover { transform: scale(1.1); }
        input[type=range]::-webkit-slider-runnable-track { width: 100%; height: 6px; cursor: pointer; background: #e2e8f0; border-radius: 4px; }
        .info-box-inline { display: none; background: #eff6ff; border: 1px solid #bfdbfe; border-radius: 8px; padding: 12px 15px; margin-top: -5px; margin-bottom: 15px; color: #1e40af; font-size: 0.9rem; line-height: 1.4; animation: fadeIn 0.3s ease; }
        .info-box-inline strong { color: #1e3a8a; }
        .filter-label { font-weight: bold; color: var(--primary-blue); margin-bottom: 6px; display: block; font-size: 0.9rem; }
        .type-toggle { display: flex; background: #edf2f7; border-radius: 8px; padding: 4px; gap: 4px; flex-wrap: wrap; margin-bottom: 10px; }
        .type-toggle label { flex: 1; text-align: center; cursor: pointer; min-width: 100px; }
        .type-toggle input { display: none; }
        .type-toggle span { display: block; padding: 8px 5px; font-weight: 600; color: var(--text-muted); border-radius: 6px; transition: all 0.2s ease; font-size: 0.85rem; }
        .type-toggle input:checked + span { background: var(--white); color: var(--primary-blue); box-shadow: 0 2px 5px rgba(0,0,0,0.08); }
        .switch-container { display: flex; justify-content: space-between; align-items: center; background: #fdfdfd; border: 1px solid #edf2f7; padding: 10px 15px; border-radius: 8px; margin-bottom: 10px; }
        .switch-info { display: flex; flex-direction: column; }
        .switch-info strong { color: var(--primary-blue); font-size: 0.95rem; }
        .switch-info span { color: var(--text-muted); font-size: 0.8rem; }
        .switch { position: relative; display: inline-block; width: 44px; height: 24px; }
        .switch input { opacity: 0; width: 0; height: 0; }
        .slider-switch { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background-color: #cbd5e0; transition: .3s; border-radius: 34px; }
        .slider-switch:before { position: absolute; content: ""; height: 18px; width: 18px; left: 3px; bottom: 3px; background-color: white; transition: .3s; border-radius: 50%; }
        input:checked + .slider-switch { background-color: var(--primary-green); }
        input:checked + .slider-switch:before { transform: translateX(20px); }
        .calc-result { width: 340px; background: linear-gradient(145deg, var(--primary-blue), #283593); color: var(--white); padding: 30px; display: flex; flex-direction: column; justify-content: center; text-align: center; position: relative; transition: 0.3s; }
        .result-title { font-size: 0.95rem; text-transform: uppercase; letter-spacing: 1px; opacity: 0.9; margin-bottom: 8px; }
        .payment-amount { font-size: 3rem; font-weight: 900; line-height: 1; margin-bottom: 8px; transition: 0.3s; }
        .payment-amount span { font-size: 1.3rem; opacity: 0.8; font-weight: 600; }
        .highlight-rate { color: #64ffda; font-weight: bold; font-size: 1.3rem; display: block; margin-top: 5px; }
        .payment-note { font-size: 0.85rem; opacity: 0.8; margin-top: 15px; padding-top: 15px; border-top: 1px solid rgba(255,255,255,0.1); }
        .section-title { margin-bottom: 20px; color: var(--primary-blue); font-size: 1.4rem; }
        #results-container { display: flex; flex-direction: column; }
        .bank-card { background: var(--white); border-radius: 12px; box-shadow: var(--shadow-sm); margin-bottom: 20px; border: 1px solid #edf2f7; transition: transform 0.2s, box-shadow 0.2s; overflow: hidden; }
        .bank-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
        .bank-card.best-choice { border: 2px solid var(--primary-green); }
        .bank-card-premium { box-shadow: 0 16px 36px rgba(143, 107, 22, 0.14); }
        .bank-card-expired { filter: grayscale(1); opacity: 0.72; box-shadow: 0 10px 24px rgba(60, 66, 87, 0.1); }
        .bank-card-expired:hover { transform: none; }
        .bank-card-expired .btn-primary { background: linear-gradient(135deg, #a7afbf, #c5cad4); box-shadow: none; }
        .promo-bar { background: #5c6bc0; color: white; padding: 8px 25px; font-size: 0.85rem; font-weight: 600; display: flex; align-items: center; gap: 10px; }
        .promo-tag { background: rgba(255,255,255,0.25); padding: 2px 8px; border-radius: 4px; text-transform: uppercase; font-size: 0.7rem; }
        .card-body { display: grid; grid-template-columns: 180px 1fr 140px 180px; padding: 25px; align-items: center; gap: 25px; }
        .bank-info img { max-width: 120px; margin-bottom: 6px; }
        .bank-info strong { font-size: 1.05rem; color: var(--primary-blue); display: block; }
        .premium-badge { display: inline-block; margin-top: 8px; padding: 4px 10px; border-radius: 999px; background: linear-gradient(135deg, #8f6b16, #f4d57a); color: #3f2f06; font-size: 0.72rem; font-weight: 800; text-transform: uppercase; }
        .details-list { border-left: 2px solid #f7fafc; padding-left: 15px; }
        .details-list p { display: flex; justify-content: space-between; font-size: 0.85rem; margin-bottom: 6px; border-bottom: 1px dashed #edf2f7; padding-bottom: 4px; }
        .details-list span { font-weight: 700; color: var(--text-dark); }
        .rate-box { text-align: center; }
        .rate-value { font-size: 2.2rem; font-weight: 900; color: var(--primary-blue); line-height: 1; }
        .rate-label { font-size: 0.8rem; color: var(--text-muted); font-weight: 600; text-transform: uppercase; }
        .btn-primary { background: linear-gradient(135deg, var(--primary-blue), #3f51b5); color: white; border: none; padding: 14px; border-radius: 8px; font-weight: bold; font-size: 1rem; cursor: pointer; width: 100%; transition: transform 0.1s, box-shadow 0.2s; box-shadow: 0 4px 10px rgba(26, 35, 126, 0.2); }
        .btn-primary:hover { box-shadow: 0 6px 15px rgba(26, 35, 126, 0.3); transform: translateY(-2px); }
        .empty-state { text-align: center; padding: 50px; background: white; border-radius: 12px; color: var(--text-muted); display: none; }
        @keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
        @media (max-width: 950px) { .calc-widget { flex-direction: column; } .calc-result { width: 100%; } .control-row { grid-template-columns: 1fr; gap: 15px; } .card-body { grid-template-columns: 1fr 1fr; gap: 20px; } .details-list { border-left: none; padding-left: 0; } }
        @media (max-width: 600px) { .main-tabs { flex-direction: column; } .main-tab { border-right: none; border-bottom: 1px solid #e2e8f0; } }
