.aira-container {
    max-width: 800px;
    margin: 40px auto;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.08);
    overflow: hidden;
    font-family: 'Tahoma', 'Arial', sans-serif;
    direction: rtl;
    border: 1px solid #eef2f7;
}

.aira-header {
    background: linear-gradient(135deg, #0f172a, #1e40af);
    color: #fff;
    padding: 25px 30px;
    text-align: center;
}

.aira-logo {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 5px;
}

.aira-logo span {
    color: #60a5fa;
    font-weight: 300;
}

.aira-header p {
    margin: 0;
    opacity: 0.85;
    font-size: 14px;
    font-weight: 300;
}

.aira-body {
    padding: 30px;
}

#aira-question {
    width: 100%;
    padding: 15px 20px;
    font-size: 16px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    resize: vertical;
    font-family: inherit;
    box-sizing: border-box;
    transition: all 0.3s ease;
    background: #f8fafc;
}

#aira-question:focus {
    border-color: #3b82f6;
    outline: none;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.aira-btn {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: #fff;
    border: none;
    padding: 14px 30px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 10px;
    cursor: pointer;
    margin-top: 15px;
    font-family: inherit;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.aira-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(29, 78, 216, 0.3);
}

.aira-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.aira-loading {
    margin-top: 20px;
    color: #1e40af;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
}

.spinner {
    border: 3px solid #e2e8f0;
    border-top: 3px solid #1e40af;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.aira-response {
    margin-top: 25px;
    padding: 25px;
    background: #f1f5f9;
    border-right: 5px solid #3b82f6;
    border-radius: 0 12px 12px 0;
    white-space: pre-wrap;
    overflow-wrap: break-word;
    line-height: 2;
    font-size: 15px;
    color: #1e293b;
    display: none;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.aira-limit-msg {
    color: #ef4444;
    margin-top: 15px;
    font-weight: bold;
    font-size: 15px;
}

/* لاودر داخل دکمه */
.btn-loader {
    border: 2px solid rgba(255,255,255,0.3);
    border-top: 2px solid #fff;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    animation: spin 0.6s linear infinite;
    margin-right: 10px;
}