/* Etod+ Subscription Panel — modal progress */
.etod-sub-panel-overlay {
    position: fixed;
    inset: 0;
    z-index: 10050;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}
.etod-sub-panel-overlay.open {
    opacity: 1;
    visibility: visible;
}
.etod-sub-panel {
    width: min(420px, 100%);
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.25);
    overflow: hidden;
    font-family: 'Vazirmatn', Tahoma, sans-serif;
    direction: rtl;
    transform: translateY(12px) scale(0.98);
    transition: transform 0.22s ease;
}
.etod-sub-panel-overlay.open .etod-sub-panel {
    transform: translateY(0) scale(1);
}
.etod-sub-panel-head {
    padding: 20px 20px 12px;
    background: linear-gradient(135deg, #2563eb 0%, #6366f1 100%);
    color: #fff;
}
.etod-sub-panel-head h3 {
    margin: 0 0 4px;
    font-size: 1.05rem;
    font-weight: 800;
}
.etod-sub-panel-head p {
    margin: 0;
    font-size: 0.78rem;
    opacity: 0.9;
}
.etod-sub-panel-body {
    padding: 18px 20px 20px;
}
.etod-sub-panel-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    margin-bottom: 14px;
}
.etod-sub-panel-badge.trial { background: #dbeafe; color: #1d4ed8; }
.etod-sub-panel-badge.active { background: #dcfce7; color: #15803d; }
.etod-sub-panel-badge.warn { background: #fef3c7; color: #b45309; }
.etod-sub-panel-badge.expired { background: #fee2e2; color: #b91c1c; }
.etod-sub-panel-progress-wrap {
    margin-bottom: 16px;
}
.etod-sub-panel-progress-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: #64748b;
    margin-bottom: 6px;
}
.etod-sub-panel-progress-labels b {
    color: #0f172a;
}
.etod-sub-panel-bar {
    height: 10px;
    background: #e2e8f0;
    border-radius: 999px;
    overflow: hidden;
}
.etod-sub-panel-bar-fill {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #2563eb, #6366f1);
    transition: width 0.4s ease;
}
.etod-sub-panel-bar-fill.warn { background: linear-gradient(90deg, #f59e0b, #ef4444); }
.etod-sub-panel-bar-fill.expired { background: #ef4444; width: 100% !important; }
.etod-sub-panel-dates {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 16px;
}
.etod-sub-panel-date-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 10px 12px;
}
.etod-sub-panel-date-box span {
    display: block;
    font-size: 0.68rem;
    color: #94a3b8;
    margin-bottom: 2px;
}
.etod-sub-panel-date-box b {
    font-size: 0.82rem;
    color: #0f172a;
}
.etod-sub-panel-stats {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}
.etod-sub-panel-stat {
    flex: 1;
    text-align: center;
    background: #f1f5f9;
    border-radius: 12px;
    padding: 10px 6px;
}
.etod-sub-panel-stat .n {
    font-size: 1.1rem;
    font-weight: 800;
    color: #2563eb;
}
.etod-sub-panel-stat .l {
    font-size: 0.68rem;
    color: #64748b;
}
.etod-sub-panel-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.etod-sub-panel-btn {
    display: block;
    width: 100%;
    padding: 12px 16px;
    border: none;
    border-radius: 12px;
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
}
.etod-sub-panel-btn.primary {
    background: linear-gradient(135deg, #2563eb, #6366f1);
    color: #fff;
}
.etod-sub-panel-btn.secondary {
    background: #f1f5f9;
    color: #334155;
}
.etod-sub-panel-close {
    position: absolute;
    top: 14px;
    left: 14px;
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    color: #fff;
    font-size: 1.1rem;
    cursor: pointer;
    line-height: 1;
}
.etod-sub-panel-head { position: relative; }
.etod-sub-panel-loading {
    text-align: center;
    padding: 40px 20px;
    color: #64748b;
}

.etod-sub-panel-usage-title {
    font-size: 0.78rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 10px;
}
.etod-sub-panel-usage-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 16px;
}
.etod-sub-panel-usage-item {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 10px 12px;
}
.etod-sub-panel-usage-labels {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    font-size: 0.72rem;
    color: #64748b;
    margin-bottom: 6px;
}
.etod-sub-panel-usage-labels b {
    color: #0f172a;
    font-size: 0.68rem;
    white-space: nowrap;
}
