.vorodpress-wrap {
    max-width: 420px;
    width: 100%;
    margin: 0 auto;
    padding: 32px 24px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.08);
    font-family: inherit;
    position: relative;
    direction: rtl;
    box-sizing: border-box;
}

.vorodpress-wrap h3 {
    margin: 0 0 8px;
    font-size: 20px;
    color: #1a1a1a;
}

.vorodpress-wrap p {
    margin: 0 0 20px;
    color: #666;
    font-size: 14px;
}

.vorodpress-field {
    margin-bottom: 16px;
}

.vorodpress-field input {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid #ddd;
    border-radius: 8px;
    font-size: 15px;
    box-sizing: border-box;
    transition: border-color 0.2s;
    outline: none;
}

.vorodpress-field input:focus {
    border-color: #0073aa;
}

.vorodpress-btn {
    width: 100%;
    padding: 12px;
    background: #0073aa;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    cursor: pointer;
    transition: background 0.2s;
}

.vorodpress-btn:hover {
    background: #005a87;
}

.vorodpress-btn:disabled {
    background: #aaa;
    cursor: not-allowed;
}

.vorodpress-btn-link {
    background: none;
    border: none;
    color: #0073aa;
    font-size: 13px;
    cursor: pointer;
    margin-top: 10px;
    display: block;
    width: 100%;
    text-align: center;
}

.vorodpress-error {
    color: #d63638;
    font-size: 13px;
    margin-bottom: 10px;
    min-height: 18px;
}

.vorodpress-timer {
    font-size: 13px;
    color: #888;
    margin: 10px 0;
    text-align: center;
}

.vorodpress-loading {
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
}

.vorodpress-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid #ddd;
    border-top-color: #0073aa;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ─── پنل کاربری ─────────────────────────────── */
.vp-profile {
    max-width: 780px;
    margin: 0 auto;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.08);
    overflow: hidden;
    position: relative;
    font-family: inherit;
    direction: rtl;
    display: flex;
    flex-direction: column;
}

/* هدر بالا */
.vp-profile-header {
    background: #0073aa;
    padding: 20px 24px;
    display: flex;
    align-items: center;
    flex-direction: row;
    gap: 16px;
    color: #fff;
}

/* بدنه اصلی - دو ستون */
.vp-profile-body {
    display: flex;
    flex-direction: row;
    min-height: 600px;
}

/* تصویر پروفایل */
.vp-avatar-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    width: 100%;
    padding: 0 16px;
}

.vp-avatar-overlay {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s;
}

.vp-avatar-overlay svg {
    width: 28px;
    height: 28px;
    fill: #fff;
}

.vp-avatar-container {
    position: relative;
    cursor: pointer;
    width: 80px;
    height: 80px;
}

.vp-avatar-container:hover .vp-avatar {
    opacity: 0.7;
}

.vp-avatar-container:hover .vp-avatar-overlay {
    opacity: 1;
}

.vp-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #ddd;
    display: block;
    transition: opacity 0.2s;
}

.vp-avatar-edit {
    background: rgba(255,255,255,0.2);
    border: none;
    color: #fff;
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s;
}

.vp-avatar-edit:hover {
    background: rgba(255,255,255,0.35);
}

.vp-profile-name {
    flex: 1;
    padding: 0 16px;
}

.vp-profile-name h3 {
    margin: 0 0 4px;
    font-size: 18px;
}

.vp-profile-name span {
    font-size: 13px;
    opacity: 0.8;
    direction: ltr;
    display: block;
}

/* ستون راست - تب‌ها */
.vp-tabs {
    display: flex;
    flex-direction: column;
    width: 160px;
    min-width: 160px;
    border-left: 1px solid #eee;
    background: #fafafa;
    align-items: center;
    padding-top: 24px;
    overflow-y: auto;
}

.vp-tab {
    padding: 12px 16px;
    background: none;
    border: none;
    border-left: 3px solid transparent;
    cursor: pointer;
    font-size: 14px;
    color: #666;
    transition: all 0.2s;
    text-align: right;
    width: 100%;
}

.vp-user-name {
    font-size: 13px;
    font-weight: bold;
    color: #333;
    text-align: center;
    word-break: break-word;
}

.vp-tab:hover {
    background: #f0f0f0;
    color: #0073aa;
}

.vp-tab.active {
    color: #0073aa;
    border-left-color: #0073aa;
    font-weight: bold;
    background: #fff;
}

/* ستون چپ - محتوا */
.vp-tab-content {
    display: none;
    padding: 24px;
    flex: 1;
    height: 100%;
    overflow-y: auto;
    box-sizing: border-box;
}

.vp-tab-content.active {
    display: block;
}

.vp-field {
    margin-bottom: 16px;
}

.vp-field label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    color: #444;
    font-weight: bold;
}

.vp-field input {
    width: 100%;
    padding: 10px 12px;
    border: 1.5px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    box-sizing: border-box;
    outline: none;
    transition: border-color 0.2s;
}

.vp-field input:focus {
    border-color: #0073aa;
}

.vp-field input:disabled {
    background: #f5f5f5;
    color: #999;
    cursor: not-allowed;
}

.vp-hint {
    font-size: 11px;
    color: #999;
    margin: 4px 0 0;
}

.vp-btn {
    width: 100%;
    padding: 11px;
    background: #0073aa;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s;
    margin-top: 8px;
}

.vp-btn:hover { background: #005a87; }

.vp-btn-danger { background: #d63638; }
.vp-btn-danger:hover { background: #b32d2e; }

.vp-error {
    color: #d63638;
    font-size: 13px;
    margin-bottom: 10px;
    min-height: 16px;
}

.vp-success {
    color: #00a32a;
    font-size: 13px;
    margin-bottom: 10px;
    min-height: 16px;
}

.vp-loading {
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
}

.vp-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid #ddd;
    border-top-color: #0073aa;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

.vp-profile-header h3 {
    margin: 0;
    font-size: 18px;
}

.vp-user-card {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.vp-user-card .vp-avatar-wrap {
    flex-direction: column;
    align-items: center;
    gap: 6px;
    border-bottom: 1px solid #eee;
    padding-bottom: 16px;
    margin-bottom: 8px;
}

.vp-user-card .vp-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #eee;
}

.vp-user-card .vp-avatar-edit {
    background: #f0f0f0;
    border: none;
    color: #444;
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s;
}

.vp-user-card .vp-avatar-edit:hover {
    background: #ddd;
}

.vp-user-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.vp-user-info strong {
    font-size: 16px;
    color: #222;
}

.vp-user-info span {
    font-size: 13px;
    color: #888;
    direction: ltr;
}

.vp-divider {
    border: none;
    border-top: 1px solid #eee;
    margin: 0 0 20px;
}

/* ─── محافظت در برابر استایل‌های قالب ─────────── */
.vp-profile .vp-tab {
    display: block !important;
    width: 100% !important;
    padding: 12px 16px !important;
    background: none !important;
    border: none !important;
    border-left: 3px solid transparent !important;
    border-radius: 0 !important;
    cursor: pointer !important;
    font-size: 14px !important;
    text-align: right !important;
    text-decoration: none !important;
    box-shadow: none !important;
    outline: none !important;
    transition: all 0.2s !important;
}

.vp-profile .vp-tab.active {
    font-weight: bold !important;
}

.vp-profile .vp-tabs {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
}

.vp-profile .vp-field input {
    width: 100% !important;
    box-sizing: border-box !important;
    border-radius: 8px !important;
    box-shadow: none !important;
}

.vp-profile .vp-btn {
    display: block !important;
    width: 100% !important;
    border-radius: 8px !important;
    box-shadow: none !important;
    text-decoration: none !important;
}

.vorodpress-wrap input,
.vorodpress-wrap button {
    box-shadow: none !important;
    border-radius: inherit !important;
}

.vorodpress-wrap .vorodpress-btn {
    display: block !important;
    width: 100% !important;
    text-decoration: none !important;
}