* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Inter', -apple-system, sans-serif;
}

body {
    background: transparent;
    display: flex;
    justify-content: center;
    padding: 10px;
}

.widget-container {
    background: #ffffff;
    width: 100%;
    max-width: 400px;
    border-radius: 16px;
    padding: 32px 24px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(226, 232, 240, 0.8);
    transition: transform 0.3s ease;
}

.widget-container:hover {
    transform: translateY(-2px);
}

.header {
    text-align: center;
    margin-bottom: 24px;
}

.header h2 {
    color: #1e293b;
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 8px;
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.header p {
    color: #64748b;
    font-size: 14px;
    line-height: 1.5;
}

.input-group {
    margin-bottom: 16px;
}

.input-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #334155;
    margin-bottom: 6px;
}

.input-group input {
    width: 100%;
    padding: 12px 16px;
    border-radius: 10px;
    border: 1px solid #cbd5e1;
    font-size: 15px;
    color: #0f172a;
    transition: all 0.2s ease;
    background: #f8fafc;
}

.input-group input:focus {
    outline: none;
    border-color: #3b82f6;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

button {
    width: 100%;
    padding: 14px;
    border-radius: 10px;
    border: none;
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
    margin-top: 24px;
}

button:hover {
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.3);
    transform: translateY(-1px);
}

button:active {
    transform: translateY(1px);
}

button:disabled {
    opacity: 0.8;
    cursor: not-allowed;
}

.spinner {
    display: none;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading .btn-text { display: none; }
.loading .spinner { display: block; }

.result-box {
    margin-top: 24px;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    animation: slideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.hidden {
    display: none;
}

.success {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
}

.success h3 {
    color: #166534;
    margin-bottom: 8px;
    font-size: 18px;
}

.success p { 
    color: #15803d; 
    font-size: 15px;
    line-height: 1.5;
}

.error {
    background: #fef2f2;
    border: 1px solid #fecaca;
}

.error h3 {
    color: #991b1b;
    margin-bottom: 8px;
    font-size: 18px;
}

.error p { 
    color: #b91c1c; 
    font-size: 15px;
    line-height: 1.5;
}
