/* ========== الملف الشخصي ========== */
.profile-card {
    margin: 0 20px 16px;
    padding: 32px;
    background: var(--card);
    border: 1.5px solid var(--card-border);
    border-radius: 20px;
    text-align: center;
}
.profile-avatar {
    width: 84px; height: 84px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4F46E5, #6366F1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 34px;
    font-weight: 700;
    color: white;
    margin: 0 auto 16px;
    box-shadow: 0 8px 30px rgba(99,102,241,0.25);
}
.profile-card h3 { font-size: 22px; font-weight: 700; }
.profile-card p { color: var(--text-muted); font-size: 14px; margin-top: 4px; }

.profile-stats {
    display: flex;
    justify-content: space-around;
    align-items: center;
    margin: 0 20px 16px;
    padding: 22px;
    background: var(--card);
    border: 1.5px solid var(--card-border);
    border-radius: 16px;
}
.stat-item { text-align: center; }
.stat-number { display: block; font-size: 24px; font-weight: 800; color: var(--primary); }
.stat-label { font-size: 11px; color: var(--text-muted); margin-top: 5px; font-weight: 500; }
.stat-divider { width: 1px; height: 38px; background: var(--border); }

.profile-menu {
    margin: 0 20px;
    background: var(--card);
    border: 1.5px solid var(--card-border);
    border-radius: 16px;
    overflow: hidden;
}
.menu-item {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    padding: 17px 20px;
    background: none;
    border: none;
    border-bottom: 1px solid var(--border);
    color: var(--text);
    font-size: 15px;
    cursor: pointer;
    transition: background 0.2s;
}
.menu-item:last-child { border-bottom: none; }
.menu-item:hover { background: var(--bg-light); }

.menu-icon-wrap {
    width: 38px; height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.user-menu-icon { background: var(--primary-glow); color: var(--primary); }
.card-menu-icon { background: var(--warning-bg); color: var(--warning); }
.lock-menu-icon { background: var(--success-bg); color: var(--success); }
.bell-menu-icon { background: rgba(167,139,250,0.1); color: #A78BFA; }
.gear-menu-icon { background: var(--bg-light); color: var(--text-muted); border: 1px solid var(--border); }

.menu-arrow { margin-right: auto; color: var(--text-muted); }

#logoutBtn {
    margin: 20px;
    width: calc(100% - 40px);
    padding: 14px;
    background: rgba(248,113,113,0.08);
    border: 1.5px solid rgba(248,113,113,0.2);
    border-radius: 14px;
    color: #F87171;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.25s;
}
#logoutBtn:hover {
    background: rgba(248,113,113,0.15);
    border-color: rgba(248,113,113,0.35);
    transform: translateY(-1px);
}
#logoutBtn:active { transform: scale(0.98); }
#logoutBtn svg { margin-left: 8px; }

/* ========== معلومات الحساب ========== */
.account-info-content { padding: 0 0 20px; }
.info-card {
    margin: 0 20px 16px;
    padding: 20px;
    background: var(--card);
    border: 1.5px solid var(--card-border);
    border-radius: 16px;
}
.info-card h4 { font-size: 14px; color: var(--text-muted); margin-bottom: 16px; font-weight: 500; }
.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
}
.info-row:last-child { border-bottom: none; }
.info-label { font-size: 13px; color: var(--text-muted); }
.info-value { font-size: 14px; font-weight: 500; color: var(--text); }
.info-value.mono { font-family: monospace; direction: ltr; font-size: 12px; }
.info-field-label {
    display: block;
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 8px;
    font-weight: 500;
}
.info-card .input-group { margin-bottom: 14px; }

/* ========== البطاقات المصرفية ========== */
.bank-cards-content { padding: 0 0 20px; }

/* ========== الأمان والخصوصية ========== */
.security-content { padding: 0; }

/* ========== الإشعارات ========== */
.notifications-content { padding: 0; }

/* ========== التحقق من الهوية ========== */
.id-verify-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.id-verify-header h4 { font-size: 16px; font-weight: 700; }
.id-verify-badge {
    font-size: 11px; font-weight: 700;
    padding: 4px 10px; border-radius: 20px;
    background: var(--error-bg); color: var(--error);
}
.id-verify-badge.verified { background: rgba(74,222,128,0.12); color: #4ADE80; }
.id-verify-badge.pending { background: var(--warning-bg); color: var(--warning); }
.id-verify-desc { font-size: 13px; color: var(--text-muted); line-height: 1.6; margin-bottom: 16px; }

.id-upload-type-toggle { display: flex; gap: 10px; margin-bottom: 16px; }
.id-type-btn {
    flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px;
    padding: 12px; border-radius: 12px;
    background: var(--card); border: 1.5px solid var(--card-border);
    color: var(--text-muted); font-size: 13px; font-weight: 600;
    cursor: pointer; transition: all 0.3s;
}
.id-type-btn:hover { border-color: var(--primary); }
.id-type-btn.active { background: var(--primary); color: white; border-color: var(--primary); }

.id-upload-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 16px; }
.id-upload-box {
    position: relative;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    padding: 20px 10px; min-height: 140px;
    background: var(--card); border: 2px dashed var(--card-border);
    border-radius: 14px; cursor: pointer; transition: all 0.3s;
    overflow: hidden;
}
.id-upload-box:hover { border-color: var(--primary); background: var(--primary-glow); }
.id-upload-box.uploaded { border-style: solid; border-color: #4ADE80; }
.id-upload-icon { color: var(--text-muted); margin-bottom: 8px; transition: color 0.3s; }
.id-upload-box:hover .id-upload-icon { color: var(--primary); }
.id-upload-label { font-size: 13px; font-weight: 600; color: var(--text); }
.id-upload-hint { font-size: 11px; color: var(--text-muted); margin-top: 2px; }
.id-upload-input {
    position: absolute; inset: 0; width: 100%; height: 100%;
    opacity: 0; cursor: pointer; z-index: 2;
}
.id-upload-preview {
    position: absolute; inset: 0; width: 100%; height: 100%;
    object-fit: cover; border-radius: 12px; z-index: 1;
}
.id-upload-check {
    position: absolute; top: 8px; right: 8px;
    width: 28px; height: 28px; border-radius: 50%;
    background: #4ADE80; color: white;
    display: flex; align-items: center; justify-content: center;
    z-index: 3; box-shadow: 0 2px 8px rgba(74,222,128,0.4);
}
.id-upload-box.uploaded .id-upload-icon,
.id-upload-box.uploaded .id-upload-label,
.id-upload-box.uploaded .id-upload-hint { display: none; }

/* ========== قسم الشركات والمحلات التجارية ========== */
.business-switch-card { padding: 16px 20px !important; }
.business-switch-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.business-switch-left {
    display: flex;
    align-items: center;
    gap: 14px;
}
.business-icon {
    background: rgba(251,191,36,0.1);
    color: #FBBF24;
}
body.light .business-icon {
    background: rgba(245,158,11,0.08);
    color: #F59E0B;
}

.business-type-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.business-type-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 20px 12px;
    background: var(--bg-light);
    border: 2px solid var(--card-border);
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.3s;
    color: var(--text-muted);
}
.business-type-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}
.business-type-btn.active {
    background: var(--primary-glow);
    border-color: var(--primary);
    color: var(--primary);
}
.business-type-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: var(--card);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid var(--border);
    transition: all 0.3s;
}
.business-type-btn.active .business-type-icon {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}
.business-type-label {
    font-size: 14px;
    font-weight: 600;
}

.business-processing-msg {
    text-align: center;
    font-size: 13px;
    color: var(--primary);
    margin-top: 12px;
    padding: 12px;
    background: var(--primary-glow);
    border-radius: 10px;
    font-weight: 500;
    animation: pulse 1.5s ease-in-out infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}
