.pf-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 24px;
    direction: rtl;
}

.pf-header {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    align-items: center;
    margin-bottom: 20px;
    padding: 24px;
    color: #fff;
    border-radius: 22px;
    background: linear-gradient(135deg, #0f172a, #1e3a8a);
    box-shadow: 0 16px 36px rgba(15, 23, 42, .18);
}

.pf-header h2 { margin: 4px 0 6px; font-size: 26px; font-weight: 800; }
.pf-header p { margin: 0; color: #dbeafe; }
.pf-eyebrow { color: #93c5fd; font-size: 12px; font-weight: 800; letter-spacing: .08em; }
.pf-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.btn-primary, .btn-light {
    padding: 10px 16px;
    border: 0;
    border-radius: 11px;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
}

.btn-primary { background: #fff; color: #1d4ed8; }
.btn-primary:disabled { opacity: .7; cursor: wait; }
.btn-light { background: rgba(255, 255, 255, .14); color: #fff; }

.pf-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.pf-card {
    padding: 20px;
    background: #fff;
    border: 1px solid #e8eef6;
    border-radius: 18px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, .05);
}

.pf-card-wide { grid-column: 1 / -1; }
.pf-section-title { display: flex; gap: 11px; align-items: center; margin-bottom: 18px; }
.pf-section-title h3 { margin: 0 0 3px; color: #172033; font-size: 17px; font-weight: 800; }
.pf-section-title p { margin: 0; color: #7b8494; font-size: 12px; }

.pf-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    color: #1d4ed8;
    background: #eff6ff;
    border-radius: 11px;
    font-size: 12px;
    font-weight: 900;
}

.pf-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.pf-fields-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pf-span-2 { grid-column: span 2; }
.pf-fields label { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.pf-fields span { color: #475569; font-size: 13px; font-weight: 700; }
.pf-fields b { color: #dc2626; }

.pf-container input, .pf-container select, .pf-container textarea {
    width: 100%;
    padding: 10px 12px;
    color: #172033;
    background: #f8fafc;
    border: 1px solid #dce4ee;
    border-radius: 10px;
    outline: none;
    transition: .18s ease;
}

.pf-container input:focus, .pf-container select:focus, .pf-container textarea:focus {
    background: #fff;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, .1);
}

.pf-container input.pf-input-error {
    background: #fff7f7;
    border-color: #dc2626;
}

.pf-container input.pf-input-error:focus {
    border-color: #dc2626;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, .12);
}

.pf-field-hint {
    color: #b91c1c;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.5;
}

.pf-container input:disabled, .pf-container select:disabled, .pf-container textarea:disabled {
    color: #64748b;
    background: #f1f5f9;
}

.pf-container textarea { min-height: 110px; resize: vertical; }
.pf-message { margin-bottom: 16px; padding: 12px 14px; border-radius: 10px; font-weight: 700; }
.pf-message-error { color: #991b1b; background: #fee2e2; border: 1px solid #fecaca; }
.pf-profile-image-card {
    display: flex;
    gap: 14px;
    margin-bottom: 16px;
    padding: 14px;
    background: #fff;
    border: 1px solid #e8eef6;
    border-radius: 16px;
    align-items: center;
}
.pf-profile-image-card[hidden] { display: none; }
.pf-profile-image {
    width: 76px;
    height: 76px;
    object-fit: cover;
    border: 1px solid #dbeafe;
    border-radius: 16px;
}
.pf-profile-image-card strong,
.pf-profile-image-card span { display: block; }
.pf-profile-image-card strong { color: #172033; }
.pf-profile-image-card span { margin-top: 4px; color: #64748b; font-size: 12px; }

@media (max-width: 900px) {
    .pf-grid { grid-template-columns: 1fr; }
    .pf-card { grid-column: 1; }
    .pf-fields-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
    .pf-container { padding: 14px; }
    .pf-header { align-items: flex-start; flex-direction: column; padding: 18px; }
    .pf-fields, .pf-fields-3 { grid-template-columns: 1fr; }
    .pf-span-2 { grid-column: span 1; }
}
