
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Segoe UI', Tahoma, system-ui, sans-serif;
        }
        
        body {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            min-height: 100vh;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 20px;
        }
        
        .converter-card {
            background: rgba(255, 255, 255, 0.95);
            backdrop-filter: blur(10px);
            border-radius: 30px;
            padding: 40px;
            width: 100%;
            max-width: 600px;
            box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
        }
        
        h1 {
            color: #333;
            margin-bottom: 10px;
            font-size: 2.2rem;
            display: flex;
            align-items: center;
            gap: 10px;
        }
        
        h1 svg {
            width: 40px;
            height: 40px;
            fill: none;
            stroke: #667eea;
            stroke-width: 2;
        }
        
        .update-date {
            color: #666;
            margin-bottom: 30px;
            font-size: 0.9rem;
            display: flex;
            align-items: center;
            gap: 8px;
        }
        
        .update-date.loading {
            color: #f39c12;
        }
        
        .update-date.error {
            color: #e74c3c;
        }
        
        .converter-row {
            display: flex;
            gap: 15px;
            margin-bottom: 20px;
            align-items: center;
        }
        
        .amount-input {
            flex: 2;
            position: relative;
        }
        
        .amount-input input {
            width: 100%;
            padding: 18px 20px;
            font-size: 1.2rem;
            border: 2px solid #e0e0e0;
            border-radius: 20px;
            outline: none;
            transition: 0.2s;
            background: white;
        }
        
        .amount-input input:focus {
            border-color: #667eea;
            box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
        }
        
        .currency-select {
            flex: 1;
        }
        
        .currency-select select {
            width: 100%;
            padding: 18px 20px;
            font-size: 1.2rem;
            border: 2px solid #e0e0e0;
            border-radius: 20px;
            outline: none;
            background: white;
            cursor: pointer;
            appearance: none;
            background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
            background-repeat: no-repeat;
            background-position: right 15px center;
            background-size: 20px;
        }
        
        .currency-select select:focus {
            border-color: #667eea;
        }
        
        .swap-button {
            width: 50px;
            height: 50px;
            border-radius: 25px;
            background: #f0f0f0;
            border: none;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: 0.2s;
            margin: 0 auto;
        }
        
        .swap-button:hover {
            background: #e0e0e0;
            transform: rotate(180deg);
        }
        
        .swap-button svg {
            width: 24px;
            height: 24px;
            stroke: #667eea;
        }
        
        .result {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            border-radius: 25px;
            padding: 30px;
            margin: 30px 0 20px;
            text-align: center;
            color: white;
        }
        
        .result-label {
            font-size: 1rem;
            opacity: 0.9;
            margin-bottom: 10px;
        }
        
        .result-value {
            font-size: 2.8rem;
            font-weight: bold;
            margin-bottom: 5px;
            word-break: break-word;
        }
        
        .result-rate {
            font-size: 1.1rem;
            opacity: 0.9;
        }
        
        .popular-currencies {
            margin-top: 30px;
        }
        
        .popular-title {
            font-size: 1rem;
            color: #666;
            margin-bottom: 15px;
            font-weight: 600;
        }
        
        .popular-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
            gap: 10px;
        }
        
        .popular-item {
            background: #f5f5f5;
            border-radius: 15px;
            padding: 12px 8px;
            text-align: center;
            cursor: pointer;
            transition: 0.2s;
            border: 2px solid transparent;
        }
        
        .popular-item:hover {
            background: #e8e8e8;
            border-color: #667eea;
        }
        
        .popular-item-code {
            font-weight: bold;
            color: #333;
            margin-bottom: 4px;
        }
        
        .popular-item-rate {
            font-size: 0.85rem;
            color: #666;
        }
        
        .info-text {
            text-align: center;
            margin-top: 20px;
            color: #888;
            font-size: 0.85rem;
        }
        
        .info-text a {
            color: #667eea;
            text-decoration: none;
        }
        
        .error-message {
            background: #fee;
            color: #c33;
            padding: 15px;
            border-radius: 15px;
            margin: 20px 0;
            display: none;
        }
        
        .loader {
            display: inline-block;
            width: 16px;
            height: 16px;
            border: 2px solid #f3f3f3;
            border-top: 2px solid #667eea;
            border-radius: 50%;
            animation: spin 1s linear infinite;
        }
        
        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }
        
        @media (max-width: 500px) {
            .converter-card {
                padding: 25px;
            }
            
            .converter-row {
                flex-direction: column;
            }
            
            .swap-button {
                transform: rotate(90deg);
            }
            
            .swap-button:hover {
                transform: rotate(270deg);
            }
            
            .result-value {
                font-size: 2rem;
            }
        }
    