.cv-container {
    font-family: 'Cairo', Tahoma, Arial, sans-serif;
    max-width: 620px;
    margin: 30px auto;
    direction: rtl;
}
.cv-header { text-align: center; margin-bottom: 25px; }
.cv-header h2 { font-size: 22px; font-weight: 600; margin: 0 0 8px; color: #1a1a2e; }
.cv-header p { color: #666; font-size: 14px; margin: 0; }

.cv-search-area {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.cv-input-row { display: flex; gap: 10px; margin-bottom: 8px; }
.cv-input-row input {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
    direction: rtl;
    outline: none;
    transition: border-color 0.2s;
}
.cv-input-row input:focus { border-color: #3b82f6; }
.cv-input-row button {
    padding: 10px 20px;
    background: #1d4ed8;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s;
}
.cv-input-row button:hover { background: #1e40af; }
.cv-search-area small { color: #9ca3af; font-size: 12px; }

/* نتيجة ناجحة */
.cv-success {
    background: #f0fdf4;
    border: 1px solid #86efac;
    border-radius: 12px;
    padding: 20px;
}
.cv-success-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 600;
    color: #166534;
    margin-bottom: 15px;
}
.cv-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 15px;
}
.cv-field {
    background: #fff;
    border: 1px solid #d1fae5;
    border-radius: 8px;
    padding: 10px 12px;
}
.cv-field span { display: block; font-size: 11px; color: #6b7280; margin-bottom: 3px; }
.cv-field strong { font-size: 14px; color: #111827; }
.cv-download {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 18px;
    background: #16a34a;
    color: #fff;
    border-radius: 8px;
    text-decoration: none;
    font-size: 13px;
    font-family: inherit;
    transition: background 0.2s;
}
.cv-download:hover { background: #15803d; color: #fff; text-decoration: none; }

/* نتيجة فاشلة */
.cv-error {
    background: #fff5f5;
    border: 1px solid #fca5a5;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    gap: 12px;
    align-items: flex-start;
}
.cv-error-icon { font-size: 24px; }
.cv-error strong { display: block; color: #991b1b; font-size: 15px; margin-bottom: 5px; }
.cv-error p { color: #6b7280; font-size: 13px; margin: 0; }

.cv-loading { text-align: center; color: #6b7280; padding: 20px; font-size: 14px; }
