.ung-container {
    max-width: 560px;
    margin: 30px auto;
    padding: 28px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    border: 1px solid #f1f3f5;
}

.ung-header h2 {
    margin: 0 0 10px;
    font-size: 26px;
    color: #2c3e50;
    text-align: center;
    font-weight: 700;
}

.ung-desc {
    text-align: center;
    color: #7f8c8d;
    margin-bottom: 24px;
    font-size: 15px;
    line-height: 1.5;
}

.ung-filters {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 18px;
    margin-bottom: 24px;
}

.ung-field label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    color: #34495e;
    font-size: 14px;
}

.ung-select {
    width: 100%;
    padding: 11px 12px;
    border: 1px solid #ddd;
    border-radius: 10px;
    background: #fff;
    font-size: 16px;
    box-sizing: border-box;
    transition: border-color 0.25s;
}

.ung-select:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.15);
}

.ung-btn {
    width: 100%;
    padding: 13px;
    background: #3498db;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.ung-btn:hover:not(.ung-btn-loading) {
    background: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(52, 152, 219, 0.3);
}

.ung-btn.ung-btn-loading {
    background: #bdc3c7;
    cursor: not-allowed;
    transform: none;
}

.ung-btn-loader {
    display: none;
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.ung-btn.ung-btn-loading .ung-btn-loader {
    display: inline-block;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.ung-result-box {
    margin-top: 24px;
    min-height: 60px;
    padding: 18px;
    border-radius: 12px;
    text-align: center;
    transition: all 0.25s ease;
}

.ung-success {
    background: #f0faf5;
    border: 1px solid #27ae60;
}

.ung-error {
    background: #fff5f5;
    border: 1px solid #e74c3c;
}

.ung-name-preview h3 {
    margin: 0 0 10px;
    font-size: 28px;
    color: #2c3e50;
    font-weight: 800;
}

.ung-description {
    margin: 0;
    font-size: 16px;
    color: #555;
    line-height: 1.5;
}

.ung-error-msg {
    margin: 0;
    color: #e74c3c;
    font-weight: 500;
    font-size: 15px;
}

@media (max-width: 580px) {
    .ung-container {
        padding: 24px 20px;
        margin: 20px 12px;
    }
    .ung-filters {
        grid-template-columns: 1fr;
    }
}