/**
 * التنسيقات العامة للواجهة الأمامية لتوثيق الحسابات (Verified Accounts)
 * تم التصميم بروح عصرية ومميزة وبكامل التوافق مع الهواتف الذكية.
 */

.va-dashboard-wrapper {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    direction: rtl;
    text-align: right;
    margin: 20px 0;
    color: #334155;
    background: #f8fafc;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    border: 1px solid #e2e8f0;
}

/* التنبيهات */
.va-alert-box {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 0.95em;
    line-height: 1.6;
    border-right: 5px solid;
}
.va-alert-info {
    background-color: #f0f9ff;
    color: #0369a1;
    border-color: #0284c7;
}
.va-alert-warning {
    background-color: #fffbeb;
    color: #b45309;
    border-color: #d97706;
}
.va-alert-success {
    background-color: #f0fdf4;
    color: #15803d;
    border-color: #16a34a;
}
.va-alert-danger {
    background-color: #fef2f2;
    color: #b91c1c;
    border-color: #dc2626;
}
.va-alert-box a {
    color: inherit;
    text-decoration: underline;
    font-weight: bold;
}

/* شريط الخطوات (Timeline Tracker) */
.va-timeline-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    margin: 30px 0 40px;
    padding: 0 10px;
}
.va-timeline-wrapper::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 0;
    right: 0;
    height: 4px;
    background-color: #e2e8f0;
    z-index: 1;
}
.va-timeline-step {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
}
.va-step-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #fff;
    border: 3px solid #cbd5e1;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    font-size: 1.1em;
    color: #64748b;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}
.va-step-label {
    margin-top: 10px;
    font-size: 0.85em;
    font-weight: bold;
    color: #64748b;
    text-align: center;
    transition: all 0.3s ease;
}

/* الحالات الخاصة بالخطوات */
.va-timeline-step.completed .va-step-circle {
    background-color: #10b981;
    border-color: #10b981;
    color: #fff;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.4);
}
.va-timeline-step.completed .va-step-label {
    color: #10b981;
}
.va-timeline-step.active .va-step-circle {
    background-color: #0284c7;
    border-color: #0284c7;
    color: #fff;
    box-shadow: 0 0 10px rgba(2, 132, 199, 0.4);
    animation: va-pulse 2s infinite;
}
.va-timeline-step.active .va-step-label {
    color: #0284c7;
}
.va-timeline-step.rejected .va-step-circle {
    background-color: #ef4444;
    border-color: #ef4444;
    color: #fff;
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.4);
}
.va-timeline-step.rejected .va-step-label {
    color: #ef4444;
}

@keyframes va-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(2, 132, 199, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(2, 132, 199, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(2, 132, 199, 0);
    }
}

/* تفاصيل الحالة */
.va-status-details-box {
    background: #fff;
    border: 1px solid #e2e8f0;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.01);
}
.va-status-details-box h3 {
    margin-top: 0;
    font-size: 1.2em;
    font-weight: 700;
}
.va-status-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.85em;
    font-weight: bold;
}
.va-status-badge.status-pending { background: #fef3c7; color: #d97706; }
.va-status-badge.status-processing { background: #e0f2fe; color: #0284c7; }
.va-status-badge.status-payment_review { background: #fef3c7; color: #d97706; }
.va-status-badge.status-completed { background: #dcfce7; color: #15803d; }
.va-status-badge.status-rejected { background: #fee2e2; color: #b91c1c; }

/* بطاقات الأسعار (العضويات) */
.va-badges-pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin: 30px 0;
}
.va-badge-card {
    background: #fff;
    border-radius: 12px;
    border: 2px solid #e2e8f0;
    padding: 25px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}
.va-badge-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    border-color: var(--badge-color, #0284c7);
}
.va-badge-card-header {
    text-align: center;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 20px;
    margin-bottom: 20px;
}
.va-card-badge-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 15px;
    font-size: 2.2em;
}
.va-badge-card-header h3 {
    margin: 0 0 10px;
    font-size: 1.3em;
    font-weight: 700;
}
.va-badge-price {
    margin-top: 10px;
}
.va-badge-price .price-num {
    font-size: 2.2em;
    font-weight: 800;
    color: #1e293b;
}
.va-badge-price .currency {
    font-size: 0.9em;
    color: #64748b;
    font-weight: bold;
    margin-right: 2px;
}
.va-badge-price .period {
    font-size: 0.85em;
    color: #64748b;
    display: block;
    margin-top: 2px;
}
.va-badge-card-body ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.va-badge-card-body li {
    padding: 8px 0;
    font-size: 0.9em;
    color: #475569;
    display: flex;
    align-items: center;
}
.va-badge-card-body li::before {
    content: "✓";
    color: #10b981;
    font-weight: bold;
    margin-left: 8px;
}

/* النماذج والحقول */
.va-request-form-card, .va-payment-instructions {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 25px;
    margin-top: 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.005);
}
.va-request-form-card h3 {
    margin-top: 0;
    font-size: 1.25em;
    font-weight: 700;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 15px;
    margin-bottom: 20px;
}
.va-form-group {
    margin-bottom: 20px;
}
.va-form-group label {
    display: block;
    font-weight: bold;
    margin-bottom: 8px;
    font-size: 0.95em;
}
.va-form-group select, .va-form-group input[type="file"] {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    background-color: #f8fafc;
    font-size: 0.95em;
    transition: border-color 0.2s;
    box-sizing: border-box;
}
.va-form-group select:focus {
    border-color: #0284c7;
    outline: none;
}
.va-help-text {
    font-size: 0.8em;
    color: #64748b;
    margin-top: 5px;
    line-height: 1.4;
}
.va-bank-details-box {
    background: #f1f5f9;
    border-right: 4px solid #0284c7;
    padding: 15px;
    border-radius: 6px;
    font-family: monospace;
    font-size: 1em;
    line-height: 1.7;
    margin: 15px 0;
}

/* الأزرار */
.va-btn-primary {
    background-color: #0284c7;
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 0.95em;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
    display: inline-block;
    text-align: center;
    text-decoration: none;
}
.va-btn-primary:hover {
    background-color: #0369a1;
}
.va-btn-primary:active {
    transform: scale(0.98);
}

/* نافذة التلميح (Hover Tooltip) للشارات */
.va-badge-container {
    position: relative;
    display: inline-flex;
    cursor: pointer;
    vertical-align: middle;
    margin-right: 4px;
}

.va-badge-container::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%) translateY(5px);
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(4px);
    color: #fff;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 11px;
    font-family: inherit;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s cubic-bezier(0.4, 0, 0.2, 1), transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    pointer-events: none;
    z-index: 9999;
}

.va-badge-container::before {
    content: '';
    position: absolute;
    bottom: 110%;
    left: 50%;
    transform: translateX(-50%) translateY(5px);
    border-width: 6px;
    border-style: solid;
    border-color: rgba(15, 23, 42, 0.95) transparent transparent transparent;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s cubic-bezier(0.4, 0, 0.2, 1), transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    z-index: 9999;
}

.va-badge-container:hover::after,
.va-badge-container:hover::before {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* الهواتف الذكية */
@media (max-width: 600px) {
    .va-timeline-wrapper {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
        margin: 20px 0;
        padding-right: 15px;
    }
    .va-timeline-wrapper::before {
        top: 0;
        bottom: 0;
        right: 30px;
        left: auto;
        width: 4px;
        height: auto;
    }
    .va-timeline-step {
        flex-direction: row;
        gap: 15px;
        width: 100%;
        justify-content: flex-start;
    }
    .va-step-label {
        margin-top: 0;
        text-align: right;
    }
}
