.vina-licenses-dashboard {
    direction: rtl;
    font-family: inherit;
    margin-bottom: 40px;
}

.vina-dashboard-header {
    margin-bottom: 24px;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 16px;
}
.vina-dashboard-header h2 {
    font-size: 20px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 6px 0;
}
.vina-dashboard-header p {
    font-size: 13px;
    color: #64748b;
    margin: 0;
}

.vina-license-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
}

.vina-license-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    transition: transform 0.2s, box-shadow 0.2s;
}
.vina-license-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.06);
}

/* کارت‌های وضعیت */
.vina-license-card.status-active { border-top: 4px solid #10b981; }
.vina-license-card.status-suspended { border-top: 4px solid #ef4444; opacity: 0.85; }
.vina-license-card.status-expired { border-top: 4px solid #94a3b8; }

.vina-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.vina-app-info { display: flex; gap: 6px; }
.vina-app-badge {
    background: #eef2ff;
    color: #4f46e5;
    font-size: 11px;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 6px;
    font-family: monospace;
}
.vina-plan-badge {
    background: #f1f5f9;
    color: #334155;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 6px;
}

.vina-status-pill {
    font-size: 11px;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: 20px;
}
.vina-status-pill.active { background: #dcfce7; color: #15803d; }
.vina-status-pill.suspended { background: #fee2e2; color: #b91c1c; }
.vina-status-pill.expired { background: #f1f5f9; color: #64748b; }

/* کلید لایسنس */
.vina-key-wrapper label {
    font-size: 11px;
    font-weight: 700;
    color: #475569;
    display: block;
    margin-bottom: 4px;
}
.vina-key-box {
    display: flex;
    gap: 6px;
}
.vina-key-input {
    flex: 1;
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 8px;
    padding: 6px 10px;
    font-family: monospace;
    font-size: 13px;
    font-weight: 800;
    color: #1e293b;
    text-align: center;
    direction: ltr;
}
.vina-copy-btn {
    background: #4f46e5;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 0 12px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: background 0.2s;
}
.vina-copy-btn:hover { background: #4338ca; }

/* متادیتا */
.vina-meta-grid {
    display: flex;
    flex-direction: column;
    gap: 6px;
    background: #f8fafc;
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 12px;
}
.vina-meta-item {
    display: flex;
    justify-content: space-between;
}
.vina-meta-item .meta-label { color: #64748b; font-weight: 600; }
.vina-meta-item .meta-value { color: #0f172a; font-weight: 700; }
.ltr-text { direction: ltr; }
.text-muted { color: #94a3b8; font-style: normal; }

/* نوارهای پیشرفت */
.vina-usage-bars {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.vina-bar-row .bar-labels {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    font-weight: 600;
    color: #475569;
    margin-bottom: 4px;
}
.progress-track {
    background: #e2e8f0;
    height: 6px;
    border-radius: 10px;
    overflow: hidden;
}
.progress-fill {
    background: #3b82f6;
    height: 100%;
    border-radius: 10px;
    transition: width 0.3s ease;
}
.progress-fill.monthly { background: #8b5cf6; }

/* دکمه‌های دانلود */
.vina-card-footer {
    display: flex;
    gap: 8px;
    margin-top: auto;
}
.vina-dl-btn {
    flex: 2;
    background: #10b981;
    color: #ffffff;
    text-align: center;
    text-decoration: none;
    font-size: 12px;
    font-weight: 700;
    padding: 8px;
    border-radius: 8px;
    transition: background 0.2s;
}
.vina-dl-btn:hover { background: #059669; color: #fff; }
.vina-changelog-btn {
    flex: 1;
    background: #f1f5f9;
    border: none;
    color: #475569;
    font-size: 11px;
    font-weight: 700;
    padding: 8px;
    border-radius: 8px;
    cursor: pointer;
}
.vina-changelog-btn:hover { background: #e2e8f0; }

.vina-changelog-box {
    background: #fffbeb;
    border: 1px solid #fef3c7;
    padding: 10px;
    border-radius: 8px;
    font-size: 11px;
    color: #92400e;
    line-height: 1.6;
}

.vina-empty-licenses {
    background: #ffffff;
    border: 1px dashed #cbd5e1;
    border-radius: 16px;
    padding: 40px 20px;
    text-align: center;
}
.vina-empty-icon { font-size: 48px; margin-bottom: 12px; }
.vina-empty-licenses h3 { margin: 0 0 8px 0; font-size: 18px; color: #0f172a; }
.vina-empty-licenses p { font-size: 13px; color: #64748b; max-width: 480px; margin: 0 auto 20px auto; }