/* استایل‌های فرانت‌اند */

/* استایل‌های عمومی Material Icons */
.material-icons {
    font-family: 'Material Icons';
    font-weight: normal;
    font-style: normal;
    font-size: 24px;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    display: inline-block;
    white-space: nowrap;
    word-wrap: normal;
    direction: ltr;
    -webkit-font-feature-settings: 'liga';
    -webkit-font-smoothing: antialiased;
    font-feature-settings: 'liga';
    text-rendering: optimizeLegibility;
    speak: none;
}

.storex-shortcode {
    margin: 20px 0;
    font-family: var(--storex-fa-font, 'Vazir', 'Vazir FD', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);
    direction: rtl;
}

/* گرید ذخیره‌سازها - با ستون‌های داینامیک (--storex-grid-cols) */
.storex-storage-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}
.storex-storage-grid[style*="--storex-grid-cols"] {
    grid-template-columns: repeat(var(--storex-grid-cols), 1fr);
}

/* کارت ذخیره‌ساز */
.storex-storage-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,.08);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.storex-storage-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 16px rgba(0,0,0,.12);
    border-color: #0073aa;
}

.storex-storage-card-header {
    background: linear-gradient(135deg, #0073aa 0%, #005177 100%);
    color: #fff;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.storex-storage-card-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
}

.storex-status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    background: rgba(255,255,255,.2);
}

.storex-status-active {
    background: rgba(40, 167, 69, .3);
}

.storex-status-inactive {
    background: rgba(220, 53, 69, .3);
}

.storex-storage-card-body {
    padding: 20px;
    flex: 1;
}

.storex-storage-info {
    margin-bottom: 15px;
}

.storex-storage-info p {
    margin: 8px 0;
    color: #555;
    font-size: 14px;
}

.storex-storage-info strong {
    color: #23282d;
    margin-left: 8px;
}

.storex-warranty-info {
    padding: 15px;
    background: #f9f9f9;
    border-radius: 8px;
    margin-top: 15px;
}

.storex-warranty-status {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    font-weight: 600;
}

.storex-warranty-status.active {
    color: #28a745;
}

.storex-warranty-status.expired {
    color: #dc3545;
}

.storex-warranty-status .storex-icon {
    font-size: 20px;
}

.storex-warranty-date {
    font-size: 12px;
    color: #999;
    margin: 0;
}

.storex-storage-card-footer {
    padding: 15px 20px;
    background: #f9f9f9;
    border-top: 1px solid #e0e0e0;
}

/* دکمه مشاهده در کارت ذخیره‌ساز — تمام‌عرض */
.storex-storage-card-footer .storex-btn {
    width: 100%;
    display: inline-block;
    text-align: center;
    box-sizing: border-box;
}

/* دکمه‌ها */
.storex-btn {
    display: inline-block;
    padding: 10px 20px;
    background: #ffffff;
    color: #0073aa;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s;
    border: 1px solid #d0d7de;
    cursor: pointer;
    font-size: 14px;
}

.storex-btn:hover {
    background: #0073aa;
    color: #ffffff;
    border-color: #0073aa;
    transform: translateY(-1px);
    box-shadow: 0 3px 6px rgba(0,115,170,.25);
}

.storex-btn-primary {
    background: #0073aa;
    color: #ffffff;
    border-color: #0073aa;
}

.storex-btn-small {
    padding: 6px 12px;
    font-size: 12px;
}

/* اطلاعات ذخیره‌ساز */
.storex-storage-detail {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,.08);
}

.storex-detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 20px;
    border-bottom: 2px solid #e0e0e0;
    margin-bottom: 30px;
}

.storex-detail-header h2 {
    margin: 0;
    color: #23282d;
    font-size: 28px;
}

.storex-detail-content {
    margin-top: 20px;
}

.storex-info-section,
.storex-warranty-section,
.storex-files-section,
.storex-history-section {
    margin-bottom: 30px;
}

.storex-info-section h3,
.storex-warranty-section h3,
.storex-files-section h3,
.storex-history-section h3 {
    color: #23282d;
    font-size: 20px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #0073aa;
}

.storex-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
}

.storex-info-item {
    display: flex;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 8px;
}

.storex-info-label {
    font-size: 12px;
    color: #999;
    margin-bottom: 5px;
}

.storex-info-value {
    font-size: 16px;
    color: #23282d;
    font-weight: 600;
}

/* باکس گارانتی */
.storex-warranty-box {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 25px;
    border-radius: 12px;
    border: 2px solid;
}

.storex-warranty-box.active {
    background: #d4edda;
    border-color: #28a745;
    color: #155724;
}

.storex-warranty-box.expired {
    background: #f8d7da;
    border-color: #dc3545;
    color: #721c24;
}

.storex-warranty-icon {
    font-size: 48px;
}

.storex-warranty-text strong {
    display: block;
    font-size: 18px;
    margin-bottom: 8px;
}

.storex-warranty-text p {
    margin: 5px 0;
    font-size: 14px;
}

/* ویجت گارانتی */
.storex-warranty-widget {
    background: #fff;
    border: 2px solid;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,.1);
}

.storex-warranty-widget.active {
    border-color: #28a745;
    background: linear-gradient(135deg, #d4edda 0%, #fff 100%);
}

.storex-warranty-widget.expired {
    border-color: #dc3545;
    background: linear-gradient(135deg, #f8d7da 0%, #fff 100%);
}

.storex-warranty-icon-large {
    font-size: 64px;
    margin-bottom: 20px;
}

.storex-warranty-content h3 {
    margin: 0 0 15px 0;
    color: #23282d;
    font-size: 24px;
}

.storex-warranty-message {
    font-size: 18px;
    font-weight: 600;
    margin: 10px 0;
}

.storex-warranty-message.active {
    color: #28a745;
}

.storex-warranty-message.expired {
    color: #dc3545;
}

.storex-warranty-days {
    font-size: 32px;
    font-weight: 700;
    color: #0073aa;
    margin: 15px 0;
}

.storex-warranty-date {
    font-size: 14px;
    color: #666;
    margin-top: 10px;
}

/* ویجت پشتیبانی */
.storex-support-widget {
    background: #fff;
    border: 2px solid;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,.1);
}

.storex-support-widget.active {
    border-color: #0073aa;
    background: linear-gradient(135deg, #e7f3ff 0%, #fff 100%);
}

.storex-support-widget.expired {
    border-color: #dc3545;
    background: linear-gradient(135deg, #f8d7da 0%, #fff 100%);
}

.storex-support-widget.no-support {
    border-color: #6c757d;
    background: linear-gradient(135deg, #f8f9fa 0%, #fff 100%);
}

.storex-support-icon-large {
    font-size: 64px;
    margin-bottom: 20px;
}

.storex-support-content h3 {
    margin: 0 0 15px 0;
    color: #23282d;
    font-size: 24px;
}

.storex-support-plan {
    font-size: 16px;
    color: #0073aa;
    font-weight: 600;
    margin: 10px 0;
}

.storex-support-message {
    font-size: 18px;
    font-weight: 600;
    margin: 10px 0;
}

.storex-support-message.active {
    color: #0073aa;
}

.storex-support-message.expired {
    color: #dc3545;
}

.storex-support-days {
    font-size: 32px;
    font-weight: 700;
    color: #0073aa;
    margin: 15px 0;
}

.storex-support-date {
    font-size: 14px;
    color: #666;
    margin-top: 10px;
}

/* مستند*/
.storex-files-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
}

.storex-file-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    transition: all 0.3s;
}

.storex-file-item:hover {
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,.1);
    border-color: #0073aa;
}

.storex-file-icon {
    font-size: 32px;
}

.storex-file-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.storex-file-info strong {
    color: #23282d;
    margin-bottom: 5px;
}

.storex-file-info span {
    font-size: 12px;
    color: #999;
}

/* تاریخچه */
.storex-history-timeline {
    position: relative;
    padding-right: 30px;
}

.storex-history-timeline::before {
    content: '';
    position: absolute;
    right: 10px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #e0e0e0;
}

.storex-history-item {
    position: relative;
    margin-bottom: 20px;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
    border-right: 3px solid #0073aa;
}

.storex-history-icon {
    position: absolute;
    right: -25px;
    top: 20px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #0073aa;
    border: 3px solid #fff;
    box-shadow: 0 0 0 2px #e0e0e0;
}

.storex-history-content h4 {
    margin: 0 0 8px 0;
    color: #23282d;
    font-size: 16px;
}

.storex-history-content p {
    margin: 5px 0;
    color: #555;
    font-size: 14px;
}

.storex-history-meta {
    font-size: 12px;
    color: #999;
    margin-top: 8px;
    display: block;
}

/* پیام خالی */
.storex-empty {
    text-align: center;
    padding: 40px;
    color: #999;
    font-size: 16px;
    background: #f9f9f9;
    border-radius: 8px;
}

/* ریسپانسیو */
@media (max-width: 768px) {
    .storex-storage-grid {
        grid-template-columns: 1fr;
    }
    
    .storex-info-grid {
        grid-template-columns: 1fr;
    }
    
    .storex-files-grid {
        grid-template-columns: 1fr;
    }
    
    .storex-storage-detail {
        padding: 20px;
    }
    
    .storex-detail-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* استایل‌های shortcode سطوح پشتیبانی - دیزاین مدرن و زیبا */
.storex-support-plans-shortcode {
    margin: 40px 0;
    font-family: var(--storex-fa-font, 'Vazir', 'Vazir FD', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);
    direction: rtl;
    width: 100%;
}

.storex-support-plans-shortcode * {
    font-family: var(--storex-fa-font, 'Vazir', 'Vazir FD', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);
}

/* استایل‌های Material Icons */
.storex-support-plans-shortcode .material-icons {
    font-family: 'Material Icons';
    font-weight: normal;
    font-style: normal;
    font-size: 24px;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    display: inline-block;
    white-space: nowrap;
    word-wrap: normal;
    direction: ltr;
    -webkit-font-feature-settings: 'liga';
    -webkit-font-smoothing: antialiased;
    font-feature-settings: 'liga';
    text-rendering: optimizeLegibility;
}

.storex-support-plans-shortcode .storex-support-plans-grid {
    display: grid;
    grid-template-columns: repeat(var(--storex-grid-cols, 3), 1fr);
    gap: 30px;
    margin-top: 30px;
    padding: 0;
}

.storex-support-plans-shortcode .storex-plan-card {
    background: #ffffff;
    border: 2px solid #e9ecef;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
}

.storex-support-plans-shortcode .storex-plan-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 15px 40px rgba(0, 115, 170, 0.2);
    border-color: #0073aa;
    background: #ffffff;
}

.storex-support-plans-shortcode .storex-plan-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: #ff6b6b;
    color: #fff;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.3);
}

.storex-support-plans-shortcode .storex-plan-header {
    background: #0073aa;
    color: #fff;
    padding: 40px 25px 35px;
    text-align: center;
    position: relative;
}

.storex-support-plans-shortcode .storex-plan-icon {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.storex-support-plans-shortcode .storex-plan-icon .material-icons {
    font-size: 32px;
    color: #fff;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.2));
    display: inline-block;
    vertical-align: middle;
}

.storex-support-plans-shortcode .storex-plan-header h3 {
    margin: 0 0 20px 0;
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
    position: relative;
    z-index: 1;
}

.storex-support-plans-shortcode .storex-plan-price-wrapper {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 15px 25px;
    display: inline-block;
    margin-top: 10px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    position: relative;
    z-index: 1;
}

.storex-support-plans-shortcode .storex-plan-price {
    font-size: 32px;
    font-weight: 900;
    display: block;
    text-shadow: 0 2px 8px rgba(0,0,0,0.2);
    letter-spacing: -1px;
}

.storex-support-plans-shortcode .storex-plan-body {
    padding: 30px 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.storex-support-plans-shortcode .storex-plan-description {
    color: #495057;
    margin-bottom: 0;
    font-size: 15px;
    line-height: 1.8;
    text-align: center;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 12px;
    border-right: 2px solid #0073aa;
    border-left: 2px solid #0073aa;
}

.storex-support-plans-shortcode .storex-plan-description p {
    margin: 0;
}

.storex-support-plans-shortcode .storex-plan-duration {
    padding: 18px 20px;
    background: #f0f7ff;
    border-radius: 12px;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    color: #0073aa;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 1px solid rgba(0, 115, 170, 0.2);
}

.storex-support-plans-shortcode .storex-duration-icon {
    font-size: 24px;
    color: #0073aa;
    display: inline-flex;
    align-items: center;
}

.storex-support-plans-shortcode .storex-duration-icon.material-icons {
    font-size: 24px;
}

.storex-support-plans-shortcode .storex-duration-text {
    display: flex;
    align-items: center;
    gap: 8px;
}

.storex-support-plans-shortcode .storex-plan-features {
    flex: 1;
    margin-top: 10px;
}

.storex-support-plans-shortcode .storex-features-title {
    margin: 0 0 20px 0;
    color: #212529;
    font-size: 18px;
    font-weight: 700;
    padding-bottom: 12px;
    border-bottom: 2px solid #e9ecef;
}

.storex-support-plans-shortcode .storex-features-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.storex-support-plans-shortcode .storex-features-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 15px;
    background: #f8f9fa;
    border-radius: 10px;
    transition: all 0.3s ease;
    border-right: 3px solid transparent;
}

.storex-support-plans-shortcode .storex-features-list li:hover {
    background: #e9ecef;
    border-right-color: #28a745;
    transform: translateX(-5px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.storex-support-plans-shortcode .storex-feature-check {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: #28a745;
    color: #fff;
    border-radius: 50%;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(40, 167, 69, 0.3);
}

.storex-support-plans-shortcode .storex-feature-check.material-icons {
    font-size: 18px;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.storex-support-plans-shortcode .storex-feature-text {
    color: #495057;
    font-size: 15px;
    line-height: 1.6;
    flex: 1;
}

.storex-support-plans-shortcode .storex-plan-footer {
    padding: 20px 25px;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
}

.storex-support-plans-shortcode .storex-plan-status {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #28a745;
    font-weight: 600;
    font-size: 14px;
}

.storex-support-plans-shortcode .storex-status-icon {
    font-size: 12px;
    color: #28a745;
    display: inline-flex;
    align-items: center;
    animation: blink 2s infinite;
}

.storex-support-plans-shortcode .storex-status-icon.material-icons {
    font-size: 12px;
    animation: blink 2s infinite;
}

@keyframes blink {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

@media (max-width: 768px) {
    .storex-support-plans-shortcode .storex-support-plans-grid {
        grid-template-columns: 1fr !important;
        gap: 20px;
    }
    
    .storex-support-plans-shortcode .storex-plan-header {
        padding: 30px 20px 25px;
    }
    
    .storex-support-plans-shortcode .storex-plan-header h3 {
        font-size: 24px;
    }
    
    .storex-support-plans-shortcode .storex-plan-price {
        font-size: 28px;
    }
    
    .storex-support-plans-shortcode .storex-plan-body {
        padding: 25px 20px;
    }
}

/* استایل‌های داشبورد ذخیره‌ساز */
.storex-dashboard {
    margin: 40px 0;
    font-family: var(--storex-fa-font, 'Vazir', 'Vazir FD', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);
    direction: rtl;
}

.storex-dashboard-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-bottom: 25px;
}

/* تب‌های داخل داشبورد ذخیره‌ساز (برای مودال پنل کاربری) */
.storex-dashboard-tab-nav {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    margin-bottom: 20px;
    border-bottom: 1px solid #e0e0e0;
}

.storex-dashboard-tab {
    border: none;
    background: transparent;
    padding: 10px 16px;
    cursor: pointer;
    font-size: 14px;
    color: #6b7280;
    border-radius: 10px 10px 0 0;
    transition: background 0.2s ease, color 0.2s ease;
}

.storex-dashboard-tab.active {
    background: #ffffff;
    color: #111827;
    font-weight: 600;
    border-bottom: 2px solid #0073aa;
}

.storex-dashboard-tab-content {
    display: none;
    width: 100%;
}

.storex-dashboard-tab-content.active {
    display: block;
}

.storex-dashboard-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,.08);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.storex-dashboard-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,.12);
    border-color: #0073aa;
}

.storex-card-header {
    background: #0073aa;
    color: #fff;
    padding: 20px 25px;
    border-bottom: 1px solid rgba(255,255,255,.1);
}

.storex-card-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.storex-card-body {
    padding: 25px;
    flex: 1;
    background: #fff;
}

/* استایل کارت اطلاعات ذخیره‌ساز */
.storex-storage-info-card .storex-info-item {
    margin-bottom: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.storex-storage-info-card .storex-info-item:hover {
    background: #fff;
    border-color: #0073aa;
}

.storex-storage-info-card .storex-info-item:last-child {
    margin-bottom: 0;
}

.storex-info-label {
    display: inline-block;
    font-size: 14px;
    color: #6c757d;
    font-weight: 500;
    white-space: nowrap;
    margin-left: 8px;
}

.storex-info-value {
    display: inline-block;
    font-size: 16px;
    color: #212529;
    font-weight: 600;
    white-space: nowrap;
}

/* استایل کارت وضعیت گارانتی و پشتیبانی */
.storex-status-card .storex-status-section {
    margin-bottom: 25px;
}

.storex-status-card .storex-status-section:last-child {
    margin-bottom: 0;
}

.storex-status-title {
    font-size: 16px;
    font-weight: 600;
    color: #212529;
    margin: 0 0 15px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #e9ecef;
}

.storex-warranty-status-box,
.storex-support-status-box {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid;
}

.storex-warranty-status-box.active,
.storex-support-status-box.active {
    background: #d4edda;
    border-color: #28a745;
}

.storex-warranty-status-box.expired,
.storex-support-status-box.expired {
    background: #f8d7da;
    border-color: #dc3545;
}

.storex-support-status-box.no-support {
    background: #f8f9fa;
    border-color: #6c757d;
}

.storex-status-icon {
    font-size: 32px;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.storex-status-icon.active {
    color: #28a745;
}

.storex-status-icon.expired {
    color: #dc3545;
}

.storex-status-icon:not(.active):not(.expired) {
    color: #6c757d;
}

.storex-status-content {
    flex: 1;
}

.storex-status-text {
    display: block;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
}

.storex-status-text.active {
    color: #155724;
}

.storex-status-text.expired {
    color: #721c24;
}

.storex-status-days {
    font-size: 18px;
    font-weight: 700;
    color: #0073aa;
    margin: 12px 0;
    line-height: 1.4;
}

.storex-status-date {
    font-size: 14px;
    color: #495057;
    margin: 5px 0 0 0;
    font-weight: 500;
}

.storex-support-plan-name {
    font-size: 14px;
    color: #0073aa;
    font-weight: 600;
    margin: 0 0 8px 0;
    padding: 5px 10px;
    background: rgba(0, 115, 170, .1);
    border-radius: 6px;
    display: inline-block;
}

/* بهبود دیزاین تب "گارانتی و پشتیبانی" داخل مودال/داشبورد */
.storex-dashboard #storex-dashboard-tab-status .storex-card-body {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

@media (max-width: 768px) {
    .storex-dashboard #storex-dashboard-tab-status .storex-card-body {
        grid-template-columns: 1fr;
    }
}

.storex-dashboard #storex-dashboard-tab-status .storex-status-section {
    margin: 0;
}

.storex-dashboard #storex-dashboard-tab-status .storex-warranty-status-box,
.storex-dashboard #storex-dashboard-tab-status .storex-support-status-box {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 18px;
    gap: 14px;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.06);
}

.storex-dashboard #storex-dashboard-tab-status .storex-warranty-status-box.active,
.storex-dashboard #storex-dashboard-tab-status .storex-support-status-box.active {
    border-color: rgba(16, 185, 129, 0.35);
    background: linear-gradient(180deg, rgba(16, 185, 129, 0.10), rgba(255,255,255,1) 65%);
}

.storex-dashboard #storex-dashboard-tab-status .storex-warranty-status-box.expired,
.storex-dashboard #storex-dashboard-tab-status .storex-support-status-box.expired {
    border-color: rgba(239, 68, 68, 0.35);
    background: linear-gradient(180deg, rgba(239, 68, 68, 0.10), rgba(255,255,255,1) 65%);
}

.storex-dashboard #storex-dashboard-tab-status .storex-support-status-box.no-support,
.storex-dashboard #storex-dashboard-tab-status .storex-warranty-status-box.no-support {
    border-color: rgba(148, 163, 184, 0.6);
    background: linear-gradient(180deg, rgba(148, 163, 184, 0.12), rgba(255,255,255,1) 65%);
}

.storex-dashboard #storex-dashboard-tab-status .storex-status-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    font-size: 26px;
    background: rgba(2, 132, 199, 0.10);
    color: #0284c7;
}

.storex-dashboard #storex-dashboard-tab-status .storex-status-icon.active {
    background: rgba(16, 185, 129, 0.12);
    color: #10b981;
}

.storex-dashboard #storex-dashboard-tab-status .storex-status-icon.expired {
    background: rgba(239, 68, 68, 0.12);
    color: #ef4444;
}

.storex-dashboard #storex-dashboard-tab-status .storex-status-icon:not(.active):not(.expired) {
    background: rgba(148, 163, 184, 0.16);
    color: #64748b;
}

.storex-dashboard #storex-dashboard-tab-status .storex-status-text {
    font-size: 15px;
    margin-bottom: 6px;
}

.storex-dashboard #storex-dashboard-tab-status .storex-status-days {
    font-size: 20px;
    margin: 10px 0;
    color: #0f172a;
}

.storex-dashboard #storex-dashboard-tab-status .storex-status-date,
.storex-dashboard #storex-dashboard-tab-status .storex-status-message {
    color: #475569;
}

.storex-status-message {
    font-size: 14px;
    color: #495057;
    margin: 5px 0 0 0;
    font-weight: 500;
    line-height: 1.5;
}

/* استایل کارت مستند*/

.storex-files-list {
    margin-bottom: 20px;
    display: grid;
    gap: 15px;
}

.storex-files-list .storex-file-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.storex-files-list .storex-file-item:hover {
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,.1);
    border-color: #0073aa;
}

/* دکمه دانلود */
.storex-btn-download {
    padding: 10px 20px;
    font-weight: 600;
    border-radius: 6px;
    transition: all 0.3s ease;
    background: #0073aa;
    box-shadow: 0 2px 6px rgba(0, 115, 170, .3);
    color: #fff !important;
    text-decoration: none !important;
    display: inline-block;
    border: none;
}

.storex-btn-download:hover,
.storex-btn-download:focus,
.storex-btn-download:active,
.storex-btn-download:visited {
    background: #005177;
    box-shadow: 0 4px 12px rgba(0, 115, 170, .4);
    color: #fff !important;
    text-decoration: none !important;
}

.storex-file-direct-link {
    display: block;
    color: #0073aa;
    font-size: 12px;
    margin-top: 8px;
    word-break: break-all;
    text-decoration: none;
}

.storex-file-direct-link:hover {
    color: #005177;
    text-decoration: underline;
}

.storex-files-list .storex-file-item:last-child {
    margin-bottom: 0;
}

.storex-file-icon {
    font-size: 32px;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #0073aa;
}

.storex-file-info {
    flex: 1;
    min-width: 0;
}

.storex-file-info strong {
    display: block;
    font-size: 16px;
    color: #212529;
    font-weight: 600;
    margin-bottom: 5px;
    word-break: break-word;
}

.storex-file-info span {
    font-size: 13px;
    color: #6c757d;
    font-weight: 500;
}

.storex-file-description {
    font-size: 13px;
    color: #868e96;
    margin: 5px 0 0 0;
    line-height: 1.5;
}

.storex-empty-files {
    text-align: center;
    padding: 40px;
    color: #868e96;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px dashed #dee2e6;
}

.storex-empty-files p {
    font-size: 16px;
    margin: 0;
    font-weight: 500;
}

/* ریسپانسیو */
@media (max-width: 992px) {
    .storex-dashboard-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .storex-dashboard {
        margin: 20px 0;
    }
    
    .storex-dashboard-row {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .storex-card-header {
        padding: 15px 20px;
    }
    
    .storex-card-header h3 {
        font-size: 16px;
    }
    
    .storex-card-body {
        padding: 20px;
    }
    
    .storex-warranty-status-box,
    .storex-support-status-box {
        flex-direction: column;
        text-align: center;
        padding: 15px;
    }
    
    .storex-status-icon {
        margin: 0 auto 10px;
    }
    
    .storex-status-days {
        font-size: 20px;
    }
    
    .storex-files-list .storex-file-item {
        flex-direction: column;
        text-align: center;
        padding: 15px;
    }
    
    .storex-file-icon {
        margin-bottom: 10px;
    }
    
}

/* ——— پنل کاربری پیشرفته ——— */
.storex-user-panel {
    --storex-panel-main-bg: #f8fafb;
    --storex-panel-card: #fff;
    --storex-panel-card-border: #e8ecf1;
    --storex-panel-text: #2d3748;
    --storex-panel-text-soft: #5a6c7d;
    --storex-panel-success: #68b88e;
    --storex-panel-error: #c97b7b;
    --storex-panel-accent: #6b9bc7;
    --storex-panel-accent-soft: #b8d4eb;
    --storex-panel-sidebar: #f0f4f9;
    --storex-panel-sidebar-border: #e2e8f0;
    --storex-panel-sidebar-hover: #e4eaf2;
    --storex-panel-sidebar-active: #d6e4f4;
    width: 100%;
    margin: 32px 0;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 0;
    background: var(--storex-panel-card);
    box-sizing: border-box;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(45,55,72,.06), 0 0 0 1px rgba(45,55,72,.04);
    min-height: 480px;
    text-align: right;
    direction: rtl;
}

.storex-user-panel-sidebar {
    width: 300px;
    min-width: 300px;
    flex-shrink: 0;
    align-self: flex-start;
    min-height: fit-content;
    padding: 0 !important;
    background: var(--storex-panel-sidebar);
    border-left: 1px solid var(--storex-panel-sidebar-border);
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

.storex-user-panel-sidebar-inner {
    display: flex;
    flex-direction: column;
    min-height: 0;
    flex: 1 1 auto;
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}

.storex-user-panel-user {
    padding: 28px 24px;
    text-align: center;
    border-bottom: 1px solid var(--storex-panel-sidebar-border);
    flex-shrink: 0;
}

.storex-user-panel-avatar-wrap {
    width: 88px;
    height: 88px;
    margin: 0 auto 14px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--storex-panel-accent-soft);
    flex-shrink: 0;
}

.storex-user-panel-avatar {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    display: block;
}

.storex-user-panel-name {
    margin: 0 0 4px;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--storex-panel-text);
    line-height: 1.3;
}

.storex-user-panel-email {
    margin: 0 0 8px;
    font-size: .8rem;
    color: var(--storex-panel-text-soft);
    word-break: break-all;
}

.storex-user-panel-gravatar-note {
    margin: 0 0 14px;
    font-size: .7rem;
    line-height: 1.5;
    color: var(--storex-panel-text-soft);
}

.storex-user-panel-gravatar-note a {
    color: var(--storex-panel-accent);
    text-decoration: none;
}

.storex-user-panel-gravatar-note a:hover {
    text-decoration: underline;
}

.storex-user-panel-edit-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: .8rem;
    color: var(--storex-panel-accent);
    text-decoration: none;
    padding: 8px 14px;
    border-radius: 10px;
    background: rgba(107,155,199,.12);
    transition: background .2s, color .2s;
}

.storex-user-panel-edit-link:hover {
    background: rgba(107,155,199,.2);
    color: #4a8bc2;
}

.storex-user-panel-edit-link .material-icons {
    font-size: 16px;
}

.storex-user-panel-sidebar-footer {
    flex-shrink: 0;
    margin-top: auto;
    padding: 16px 18px;
    border-top: 1px solid var(--storex-panel-sidebar-border);
}

.storex-user-panel-logout {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    padding: 12px 18px;
    box-sizing: border-box;
    border-radius: 12px;
    background: transparent;
    color: var(--storex-panel-text-soft);
    text-decoration: none;
    font-size: .95rem;
    font-family: inherit;
    text-align: right;
    transition: background .2s, color .2s;
}

.storex-user-panel-logout:hover {
    background: rgba(220, 38, 38, 0.08);
    color: #b91c1c;
}

.storex-user-panel-logout .storex-panel-menu-icon {
    font-size: 22px;
}

.storex-user-panel-logout .storex-user-panel-tab-label {
    flex: 1;
    text-align: right;
}

.storex-user-panel-nav {
    flex: 1 0 auto;
    min-width: 0;
    width: 100% !important;
    max-width: 100% !important;
    padding: 20px !important;
    margin: 0 !important;
    overflow-y: visible;
    box-sizing: border-box;
}

.storex-user-panel-menu {
    list-style: none;
    margin: 0 !important;
    padding: 0 !important;
    padding-inline: 0 !important;
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
}

.storex-user-panel-menu-item,
.storex-user-panel-menu > li {
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
}

/* منوهای سایدبار: استایل مشابه دکمه خروج، با رنگ آبی ملایم */
.storex-user-panel-tab {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0;
    padding: 12px 18px;
    box-sizing: border-box;
    border: 1px solid var(--storex-panel-sidebar-border);
    border-radius: 12px;
    background: #fff;
    color: var(--storex-panel-text-soft);
    cursor: pointer;
    font-size: .95rem;
    font-family: inherit;
    text-align: right;
    transition: background .2s, color .2s, border-color .2s;
}

.storex-user-panel-tab:hover {
    background: var(--storex-panel-sidebar-hover);
    color: var(--storex-panel-text);
}

.storex-user-panel-tab.active {
    background: var(--storex-panel-sidebar-hover) !important;
    color: var(--storex-panel-text) !important;
    font-weight: 600 !important;
}

.storex-panel-menu-icon {
    font-size: 22px;
    opacity: .9;
}

.storex-user-panel-tab.active .storex-panel-menu-icon {
    opacity: 1;
}

.storex-user-panel-tab-label {
    flex: 1;
    min-width: 0;
    text-align: right;
}

.storex-user-panel-menu-group {
    margin: 0 0 8px !important;
    padding: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
}

.storex-user-panel-menu-group-title {
    display: block;
    padding: 10px 18px 8px;
    width: 100%;
    box-sizing: border-box;
    font-size: .75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .02em;
    color: var(--storex-panel-text-soft);
    text-align: right;
}

.storex-user-panel-menu-group--no-title .storex-user-panel-submenu {
    margin-top: 6px !important;
}

.storex-user-panel-submenu-collapsible .storex-user-panel-submenu {
    overflow: hidden;
    transition: max-height .25s ease, opacity .2s ease;
}

.storex-user-panel-submenu-collapsible.storex-submenu-collapsed .storex-user-panel-submenu {
    max-height: 0 !important;
    margin-top: 0 !important;
    opacity: 0;
}

.storex-user-panel-submenu-collapsible:not(.storex-submenu-collapsed) .storex-user-panel-submenu {
    max-height: 280px;
    opacity: 1;
}

/* زیرمنو: چیدمان متفاوت از منوی اصلی — زبانه (تو رفتگی به جلو) و ظاهر متمایز */
.storex-user-panel-submenu {
    list-style: none;
    margin: 12px 0 0 0 !important;
    padding: 0 !important;
    padding-inline-start: 28px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
    border-right: 2px solid var(--storex-panel-accent-soft);
    border-radius: 0 8px 8px 0;
}

.storex-user-panel-submenu li {
    margin: 0 0 4px !important;
    padding: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
}

.storex-user-panel-submenu li:last-child {
    margin-bottom: 0 !important;
}

.storex-user-panel-subtab {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0;
    padding: 10px 14px;
    box-sizing: border-box;
    border: 1px solid var(--storex-panel-sidebar-border);
    border-radius: 12px;
    background: #fff;
    color: var(--storex-panel-text-soft);
    cursor: pointer;
    font-size: .88rem;
    font-family: inherit;
    text-align: right;
    transition: background .2s, color .2s, border-color .2s;
}

.storex-user-panel-subtab:hover {
    background: var(--storex-panel-sidebar-hover);
    color: var(--storex-panel-text);
}

.storex-user-panel-subtab.active {
    background: var(--storex-panel-sidebar-hover);
    color: var(--storex-panel-text);
    font-weight: 600;
}

.storex-user-panel-subtab .storex-panel-menu-icon {
    font-size: 18px;
}

.storex-user-panel-subtab .storex-user-panel-tab-label {
    text-align: right;
}

/* رفع تداخل با استایل دکمهٔ تم: specificity بالا + !important تا استایل سایدبار اعمال شود */
.storex-user-panel.storex-shortcode .storex-user-panel-sidebar button.storex-user-panel-tab,
.storex-user-panel.storex-shortcode .storex-user-panel-sidebar button.storex-user-panel-subtab {
    background-color: #fff !important;
    border: 1px solid var(--storex-panel-sidebar-border) !important;
    border-radius: 12px !important;
    color: var(--storex-panel-text-soft) !important;
    padding: 12px 18px !important;
    font-size: .95rem !important;
    font-weight: 400 !important;
    text-align: right !important;
}

.storex-user-panel.storex-shortcode .storex-user-panel-sidebar button.storex-user-panel-subtab {
    padding: 10px 14px !important;
    font-size: .88rem !important;
}

.storex-user-panel.storex-shortcode .storex-user-panel-sidebar button.storex-user-panel-tab:hover,
.storex-user-panel.storex-shortcode .storex-user-panel-sidebar button.storex-user-panel-subtab:hover {
    background-color: var(--storex-panel-sidebar-hover) !important;
    color: var(--storex-panel-text) !important;
}

.storex-user-panel.storex-shortcode .storex-user-panel-sidebar button.storex-user-panel-tab.active,
.storex-user-panel.storex-shortcode .storex-user-panel-sidebar button.storex-user-panel-subtab.active {
    background-color: var(--storex-panel-sidebar-hover) !important;
    color: var(--storex-panel-text) !important;
    font-weight: 600 !important;
}

.storex-user-panel-main {
    flex: 1;
    min-width: 0;
    min-height: 0;
    padding: 32px 36px;
    background: var(--storex-panel-main-bg);
    text-align: right;
    overflow-y: auto;
}

/* راست‌چین کردن همهٔ متن‌های محتوای پنل */
.storex-user-panel-main .storex-form-row,
.storex-user-panel-main .storex-profile-form label,
.storex-user-panel-main .storex-input,
.storex-user-panel-main .storex-select,
.storex-user-panel-main .storex-textarea,
.storex-user-panel-main .storex-input-readonly,
.storex-user-panel-main .storex-profile-label,
.storex-user-panel-main .storex-profile-value,
.storex-user-panel-main .storex-panel-card-body p,
.storex-user-panel-main .storex-field-note,
.storex-user-panel-main .storex-btn {
    text-align: right;
}

.storex-user-panel-pane {
    display: none;
}

.storex-user-panel-pane.active {
    display: block;
}

/* کارت‌های پروفایل — پاستل و مینیمال */
.storex-user-panel-profile {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.storex-panel-card {
    background: var(--storex-panel-card);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--storex-panel-card-border);
    box-shadow: 0 2px 8px rgba(45,55,72,.03);
    margin-bottom: 24px;
}

.storex-panel-card:last-child {
    margin-bottom: 0;
}

.storex-panel-card-title {
    margin: 0;
    padding: 18px 22px;
    font-size: .95rem;
    font-weight: 700;
    color: var(--storex-panel-text);
    background: #fafbfd;
    border-bottom: 1px solid var(--storex-panel-card-border);
    text-align: right;
}

.storex-panel-card-body {
    padding: 22px;
    text-align: right;
}

.storex-profile-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f0f2f5;
    text-align: right;
}

.storex-profile-row:last-child {
    border-bottom: none;
}

.storex-profile-label {
    font-weight: 500;
    color: var(--storex-panel-text-soft);
    font-size: .9rem;
}

.storex-profile-value {
    color: var(--storex-panel-text);
}

.storex-panel-card-body-avatar {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
}

.storex-profile-avatar {
    border-radius: 14px;
    display: block;
}

.storex-profile-avatar-note {
    margin: 0;
    font-size: .875rem;
    color: var(--storex-panel-text-soft);
    line-height: 1.6;
}

.storex-profile-avatar-note a {
    color: var(--storex-panel-accent);
    text-decoration: none;
}

.storex-profile-avatar-note a:hover {
    text-decoration: underline;
}

/* فرم پروفایل کامل و فرم‌های درخواست تمدید (یکپارچه) */
.storex-profile-form .storex-form-row,
.storex-renew-form .storex-form-row {
    margin: 0 0 20px;
}

.storex-profile-form .storex-form-row:last-child,
.storex-renew-form .storex-form-row:last-child {
    margin-bottom: 0;
}

.storex-form-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 20px;
    margin-bottom: 20px;
}

.storex-form-grid-2 .storex-form-row {
    margin-bottom: 0;
}

.storex-form-grid-2:last-child {
    margin-bottom: 0;
}

.storex-profile-form .storex-form-row label,
.storex-renew-form .storex-form-row label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--storex-panel-text);
    font-size: .9rem;
}

.storex-profile-form .storex-input,
.storex-profile-form .storex-select,
.storex-renew-form .storex-input,
.storex-renew-form .storex-select,
.storex-password-form .storex-input {
    width: 100%;
    max-width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--storex-panel-card-border);
    border-radius: 12px;
    font-size: 1rem;
    font-family: inherit;
    box-sizing: border-box;
    transition: border-color .2s, box-shadow .2s;
}

.storex-profile-form .storex-input:focus,
.storex-profile-form .storex-select:focus,
.storex-renew-form .storex-input:focus,
.storex-renew-form .storex-select:focus,
.storex-password-form .storex-input:focus {
    outline: none;
    border-color: var(--storex-panel-accent);
    box-shadow: 0 0 0 3px rgba(107,155,199,.15);
}

.storex-profile-form .storex-input,
.storex-profile-form .storex-select,
.storex-renew-form .storex-input,
.storex-renew-form .storex-select {
    max-width: 480px;
}

.storex-input-readonly {
    display: block;
    padding: 10px 14px;
    background: #f5f7fa;
    border-radius: 10px;
    color: var(--storex-panel-text-soft);
    font-size: .95rem;
}

.storex-field-note {
    display: block;
    margin-top: 6px;
    font-size: .8rem;
    color: var(--storex-panel-text-soft);
}

.storex-textarea {
    min-height: 100px;
    resize: vertical;
}

.storex-user-panel-main .storex-profile-form .storex-textarea,
.storex-user-panel-main .storex-renew-form .storex-textarea {
    width: 100%;
    max-width: 100%;
}

.storex-form-row-checkbox label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.storex-form-row-checkbox input[type="checkbox"] {
    width: auto;
}

.storex-profile-avatar-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.storex-profile-avatar-inline {
    border-radius: 12px;
    display: block;
}

.storex-profile-form-actions,
.storex-renew-form .storex-form-actions {
    margin-bottom: 32px !important;
}

.storex-user-panel-main .storex-profile-form-actions .storex-btn-primary,
.storex-user-panel-main .storex-renew-form .storex-form-actions .storex-btn-primary {
    width: 100%;
    max-width: 100%;
    border-radius: 16px;
    padding: 14px 20px;
    border: none;
    background: #059669;
    color: rgba(255, 255, 255, 0.85);
    text-align: center;
}

.storex-user-panel-main .storex-profile-form-actions .storex-btn-primary:hover:not(:disabled),
.storex-user-panel-main .storex-renew-form .storex-form-actions .storex-btn-primary:hover:not(:disabled) {
    background: #047857;
    color: #fff;
}

.storex-profile-message,
.storex-sessions-message {
    font-size: .9rem;
}

.storex-user-panel-main #storex-destroy-other-sessions {
    width: 100%;
    max-width: 100%;
    border-radius: 16px;
    padding: 14px 20px;
    border: none;
    background: #c45c5c;
    color: rgba(255, 255, 255, 0.9);
    text-align: center;
}

.storex-user-panel-main #storex-destroy-other-sessions:hover:not(:disabled) {
    background: #b04545;
    color: #fff;
}

.storex-btn-secondary {
    background: #f0f2f5;
    color: var(--storex-panel-text);
}

.storex-btn-secondary:hover:not(:disabled) {
    background: #e4e7eb;
}

.storex-btn-secondary:disabled {
    opacity: .7;
    cursor: not-allowed;
}

.storex-password-form .storex-form-row {
    margin: 0 0 20px;
}

.storex-password-form .storex-input {
    max-width: 340px;
}

/* سکشن رمز تازه: عنوان و فیلد تمام‌عرض، دکمه مثل ذخیره تغییرات */
.storex-panel-card-password .storex-form-row {
    display: block;
    width: 100%;
}

.storex-panel-card-password .storex-form-row label {
    display: block;
    width: 100%;
    margin-bottom: 8px;
}

.storex-panel-card-password .storex-password-form .storex-input {
    width: 100%;
    max-width: 100%;
}

.storex-user-panel-main .storex-panel-card-password .storex-password-form .storex-btn-primary {
    width: 100%;
    max-width: 100%;
    border-radius: 16px;
    padding: 14px 20px;
    border: none;
    background: #059669;
    color: rgba(255, 255, 255, 0.85);
    text-align: center;
}

.storex-user-panel-main .storex-panel-card-password .storex-password-form .storex-btn-primary:hover:not(:disabled) {
    background: #047857;
    color: #fff;
}

.storex-password-strength-wrap {
    display: block;
    margin-top: 10px;
    width: 100%;
}

.storex-password-strength-bar {
    display: block;
    height: 6px;
    background: var(--storex-panel-card-border);
    border-radius: 3px;
    overflow: hidden;
}

.storex-password-strength-fill {
    display: block;
    height: 100%;
    width: 0;
    border-radius: 3px;
    transition: width .2s, background .2s;
}

.storex-password-strength-wrap.storex-strength-weak .storex-password-strength-fill {
    background: #dc2626;
}

.storex-password-strength-wrap.storex-strength-medium .storex-password-strength-fill {
    background: #d97706;
}

.storex-password-strength-wrap.storex-strength-strong .storex-password-strength-fill {
    background: #059669;
}

.storex-password-strength-label {
    display: block;
    margin-top: 6px;
    font-size: .8rem;
    color: var(--storex-panel-text-soft);
}

.storex-password-strength-wrap.storex-strength-weak .storex-password-strength-label {
    color: #dc2626;
}

.storex-panel-card-password .storex-form-row-weak-confirm {
    margin-top: 4px;
}

.storex-panel-card-password .storex-form-row-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: .9rem;
    color: var(--storex-panel-text-soft);
}

.storex-panel-card-password .storex-form-row-checkbox input[type="checkbox"] {
    width: auto;
    margin-top: 2px;
}

.storex-password-match-hint {
    display: block;
    margin-top: 6px;
    font-size: .8rem;
}

.storex-password-match-hint.storex-password-match-error {
    color: var(--storex-panel-error);
}

.storex-password-match-hint.storex-password-match-ok {
    color: var(--storex-panel-success);
}

.storex-form-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 26px !important;
}

.storex-btn {
    padding: 12px 26px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    border: none;
    transition: background .2s, transform .05s;
}

.storex-btn-primary {
    background: var(--storex-panel-accent);
    color: #fff;
}

.storex-btn-primary:hover:not(:disabled) {
    background: #5a8ab8;
}

.storex-btn-primary:disabled {
    opacity: .7;
    cursor: not-allowed;
}

.storex-password-message {
    font-size: .9rem;
}

.storex-password-success {
    color: var(--storex-panel-success);
}

.storex-password-error {
    color: var(--storex-panel-error);
}

/* استایل اختصاصی دکمه مشاهده در کارت ذخیره‌سازهای من داخل پنل کاربری */
.storex-user-storages .storex-storage-card-footer .storex-btn.storex-storage-view-btn {
    width: 100%;
    display: inline-block;
    text-align: center;
    box-sizing: border-box;
    background: #ffffff;
    color: #0073aa;
    border: 1px solid #d0d7de;
    border-radius: 10px;
    padding: 11px 20px;
    font-size: 0.95rem;
}

.storex-user-storages .storex-storage-card-footer .storex-btn.storex-storage-view-btn:hover {
    background: #0073aa;
    color: #ffffff;
    border-color: #0073aa;
    transform: translateY(-1px);
    box-shadow: 0 3px 6px rgba(0,115,170,.25);
}

.storex-user-panel-tab-content {
    min-height: 220px;
}

/* گرید استعلام‌ها (گارانتی/پشتیبانی) در پنل کاربری */
.storex-user-panel .storex-panel-status-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.storex-user-panel .storex-panel-status-grid .storex-shortcode {
    margin: 0;
}

/* کارت‌های مینیمال برای ویجت‌های استعلام در پنل کاربری */
.storex-user-panel .storex-panel-status-grid .storex-warranty-widget,
.storex-user-panel .storex-panel-status-grid .storex-support-widget {
    width: 100%;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.05);
    background: #fff;
    text-align: right;
    align-items: flex-start;
    gap: 14px;
}

.storex-user-panel .storex-panel-status-grid .storex-warranty-icon-large,
.storex-user-panel .storex-panel-status-grid .storex-support-icon-large {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    background: rgba(2, 132, 199, 0.10);
    flex-shrink: 0;
}

.storex-user-panel .storex-panel-status-grid .storex-warranty-content h3,
.storex-user-panel .storex-panel-status-grid .storex-support-content h3 {
    margin: 0 0 6px 0;
    font-size: 14px;
    font-weight: 700;
    color: #111827;
}

.storex-user-panel .storex-panel-status-grid .storex-status-header-line {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.storex-user-panel .storex-panel-status-grid .storex-status-header-line h3 {
    flex: 1 1 auto;
}

.storex-user-panel .storex-panel-status-grid .storex-status-badge-pill {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    margin-inline-start: auto; /* بچسبد به انتهای ردیف (در RTL سمت چپ) */
    border: 1px solid transparent;
}

.storex-user-panel .storex-panel-status-grid .storex-status-badge-pill.is-success {
    background: rgba(16, 185, 129, 0.08);
    color: #047857;
    border-color: rgba(16, 185, 129, 0.35);
}

.storex-user-panel .storex-panel-status-grid .storex-status-badge-pill.is-danger {
    background: rgba(239, 68, 68, 0.08);
    color: #b91c1c;
    border-color: rgba(239, 68, 68, 0.35);
}

.storex-user-panel .storex-panel-status-grid .storex-status-badge-pill.is-neutral {
    background: rgba(148, 163, 184, 0.10);
    color: #475569;
    border-color: rgba(148, 163, 184, 0.45);
}

.storex-user-panel .storex-panel-status-grid .storex-warranty-message,
.storex-user-panel .storex-panel-status-grid .storex-support-message {
    margin: 0 0 14px 0;
    font-size: 13px;
    color: #334155;
    font-weight: 600;
}

.storex-user-panel .storex-panel-status-grid .storex-warranty-days,
.storex-user-panel .storex-panel-status-grid .storex-support-days {
    margin: 8px 0;
    font-size: 18px;
    font-weight: 800;
    color: #0f172a;
}

.storex-user-panel .storex-panel-status-grid .storex-warranty-date,
.storex-user-panel .storex-panel-status-grid .storex-support-date,
.storex-user-panel .storex-panel-status-grid .storex-support-plan {
    margin: 6px 0 0 0;
    font-size: 12px;
    color: #64748b;
    line-height: 1.7;
}

.storex-user-panel .storex-panel-status-grid .storex-support-plan {
    margin-bottom: 6px; /* فاصله بیشتر بین "سطح پشتیبانی" و "پشتیبانی فعال است." */
}

/* حالت‌ها */
.storex-user-panel .storex-panel-status-grid .storex-warranty-widget.active,
.storex-user-panel .storex-panel-status-grid .storex-support-widget.active {
    border-color: rgba(16, 185, 129, 0.35);
    background: linear-gradient(180deg, rgba(16, 185, 129, 0.09), rgba(255,255,255,1) 70%);
}

.storex-user-panel .storex-panel-status-grid .storex-warranty-widget.expired,
.storex-user-panel .storex-panel-status-grid .storex-support-widget.expired {
    border-color: rgba(239, 68, 68, 0.35);
    background: linear-gradient(180deg, rgba(239, 68, 68, 0.09), rgba(255,255,255,1) 70%);
}

.storex-user-panel .storex-panel-status-grid .storex-support-widget.no-support,
.storex-user-panel .storex-panel-status-grid .storex-warranty-widget.no-warranty {
    border-color: rgba(148, 163, 184, 0.6);
    background: linear-gradient(180deg, rgba(148, 163, 184, 0.10), rgba(255,255,255,1) 70%);
}

.storex-user-panel .storex-panel-status-grid .storex-warranty-widget.active .storex-warranty-icon-large,
.storex-user-panel .storex-panel-status-grid .storex-support-widget.active .storex-support-icon-large {
    background: rgba(16, 185, 129, 0.12);
}

.storex-user-panel .storex-panel-status-grid .storex-warranty-widget.expired .storex-warranty-icon-large,
.storex-user-panel .storex-panel-status-grid .storex-support-widget.expired .storex-support-icon-large {
    background: rgba(239, 68, 68, 0.12);
}

.storex-user-panel .storex-panel-status-grid .storex-support-widget.no-support .storex-support-icon-large,
.storex-user-panel .storex-panel-status-grid .storex-warranty-widget.no-warranty .storex-warranty-icon-large {
    background: rgba(148, 163, 184, 0.14);
}

/* حالت غیرفعال: کارت کاملاً خاکستری (گارانتی/پشتیبانی منقضی یا بدون گارانتی/پشتیبانی) */
.storex-user-panel .storex-panel-status-grid .storex-warranty-widget.expired,
.storex-user-panel .storex-panel-status-grid .storex-warranty-widget.no-warranty,
.storex-user-panel .storex-panel-status-grid .storex-support-widget.expired,
.storex-user-panel .storex-panel-status-grid .storex-support-widget.no-support {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.storex-user-panel .storex-panel-status-grid .storex-warranty-widget.expired h3,
.storex-user-panel .storex-panel-status-grid .storex-warranty-widget.no-warranty h3,
.storex-user-panel .storex-panel-status-grid .storex-support-widget.expired h3,
.storex-user-panel .storex-panel-status-grid .storex-support-widget.no-support h3,
.storex-user-panel .storex-panel-status-grid .storex-warranty-widget.expired .storex-warranty-message,
.storex-user-panel .storex-panel-status-grid .storex-warranty-widget.no-warranty .storex-warranty-message,
.storex-user-panel .storex-panel-status-grid .storex-support-widget.expired .storex-support-message,
.storex-user-panel .storex-panel-status-grid .storex-support-widget.no-support .storex-support-message,
.storex-user-panel .storex-panel-status-grid .storex-warranty-widget.expired .storex-warranty-days,
.storex-user-panel .storex-panel-status-grid .storex-warranty-widget.no-warranty .storex-warranty-days,
.storex-user-panel .storex-panel-status-grid .storex-support-widget.expired .storex-support-days,
.storex-user-panel .storex-panel-status-grid .storex-support-widget.no-support .storex-support-days,
.storex-user-panel .storex-panel-status-grid .storex-warranty-widget.expired .storex-warranty-date,
.storex-user-panel .storex-panel-status-grid .storex-warranty-widget.no-warranty .storex-warranty-date,
.storex-user-panel .storex-panel-status-grid .storex-support-widget.expired .storex-support-date,
.storex-user-panel .storex-panel-status-grid .storex-support-widget.no-support .storex-support-date,
.storex-user-panel .storex-panel-status-grid .storex-support-widget.expired .storex-support-plan,
.storex-user-panel .storex-panel-status-grid .storex-support-widget.no-support .storex-support-plan {
    color: #6b7280;
}

.storex-user-panel .storex-panel-status-grid .storex-warranty-widget.expired .storex-warranty-icon-large,
.storex-user-panel .storex-panel-status-grid .storex-warranty-widget.no-warranty .storex-warranty-icon-large,
.storex-user-panel .storex-panel-status-grid .storex-support-widget.expired .storex-support-icon-large,
.storex-user-panel .storex-panel-status-grid .storex-support-widget.no-support .storex-support-icon-large {
    background: #e5e7eb;
    color: #6b7280;
}

.storex-user-panel .storex-panel-status-grid .storex-warranty-widget.expired .storex-status-badge-pill,
.storex-user-panel .storex-panel-status-grid .storex-warranty-widget.no-warranty .storex-status-badge-pill,
.storex-user-panel .storex-panel-status-grid .storex-support-widget.expired .storex-status-badge-pill,
.storex-user-panel .storex-panel-status-grid .storex-support-widget.no-support .storex-status-badge-pill {
    background: rgba(148, 163, 184, 0.12);
    color: #4b5563;
    border-color: #d1d5db;
}

.storex-user-panel .storex-panel-status-grid .storex-support-level-pill {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.08);
    color: #1d4ed8;
    font-size: 11px;
    font-weight: 600;
}

.storex-panel-empty {
    padding: 28px;
    text-align: center;
    color: var(--storex-panel-text-soft);
    background: #f5f7fa;
    border-radius: 14px;
}

/* جدول درخواست‌های تمدید */
.storex-renew-table-wrap {
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 12px;
    border: 1px solid var(--storex-panel-card-border);
}

.storex-renew-requests-table {
    width: 100%;
    border-collapse: collapse;
}
.storex-renew-requests-table .storex-col-id {
    width: 60px;
    max-width: 70px;
    text-align: center;
    font-size: 0.9rem;
    text-align: right;
}

.storex-renew-requests-table th,
.storex-renew-requests-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--storex-panel-card-border);
    vertical-align: middle;
}

.storex-renew-requests-table th {
    background: #fafbfd;
    font-weight: 600;
    color: var(--storex-panel-text);
}

.storex-renew-requests-table tbody tr:hover {
    background: rgba(0, 115, 170, 0.03);
}

.storex-renew-requests-table td[data-label] .storex-btn,
.storex-renew-requests-table td[data-label] .storex-btn-download {
    margin-left: 8px;
}

.storex-renew-requests-table .storex-admin-note {
    font-size: 0.85em;
    color: var(--storex-panel-text-soft);
}

.storex-renew-cancel-icon {
    padding: 8px !important;
    min-width: 36px;
    min-height: 36px;
    border-radius: 8px;
    color: #dc2626 !important;
    background: rgba(220, 38, 38, 0.1) !important;
    border: 1px solid rgba(220, 38, 38, 0.3) !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.storex-renew-cancel-icon:hover {
    color: #fff !important;
    background: #dc2626 !important;
    border-color: #dc2626 !important;
}

.storex-renew-cancel-icon .material-icons {
    font-size: 18px;
}

.storex-renew-detail-btn {
    padding: 8px !important;
    min-width: 36px;
    min-height: 36px;
    border-radius: 8px;
    color: #0284c7 !important;
    background: rgba(2, 132, 199, 0.1) !important;
    border: 1px solid rgba(2, 132, 199, 0.3) !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.storex-renew-detail-btn:hover {
    color: #fff !important;
    background: #0284c7 !important;
    border-color: #0284c7 !important;
}

.storex-renew-detail-btn .material-icons {
    font-size: 18px;
}

.storex-renew-invoice-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px !important;
    min-width: 36px;
    min-height: 36px;
    border-radius: 8px;
    color: #059669 !important;
    background: rgba(5, 150, 105, 0.1) !important;
    border: 1px solid rgba(5, 150, 105, 0.3) !important;
    text-decoration: none !important;
}

.storex-renew-invoice-icon:hover {
    color: #fff !important;
    background: #059669 !important;
    border-color: #059669 !important;
}

.storex-renew-invoice-icon .material-icons {
    font-size: 18px;
}

.storex-renew-requests-table .storex-status-badge-pill {
    display: inline-flex;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
}

.storex-renew-requests-table .storex-status-badge-pill.status-pending {
    background: rgba(245, 158, 11, 0.12);
    color: #b45309;
}

.storex-renew-requests-table .storex-status-badge-pill.status-invoicing {
    background: rgba(59, 130, 246, 0.12);
    color: #1d4ed8;
}

.storex-renew-requests-table .storex-status-badge-pill.status-completed {
    background: rgba(16, 185, 129, 0.12);
    color: #047857;
}

.storex-renew-requests-table .storex-status-badge-pill.status-rejected {
    background: rgba(239, 68, 68, 0.12);
    color: #991b1b;
}

.storex-renew-requests-table .storex-status-badge-pill.status-cancelled {
    background: rgba(148, 163, 184, 0.12);
    color: #64748b;
}

.storex-renew-detail-content .storex-status-badge-pill.status-rejected {
    background: rgba(239, 68, 68, 0.12);
    color: #991b1b;
}

@media (max-width: 768px) {
    .storex-renew-requests-table th {
        display: none;
    }
    .storex-renew-requests-table td {
        display: block;
        padding: 10px 0;
        border-bottom: 1px solid var(--storex-panel-card-border);
    }
    .storex-renew-requests-table td::before {
        content: attr(data-label);
        font-weight: 600;
        color: var(--storex-panel-text-soft);
        display: block;
        margin-bottom: 4px;
        font-size: 0.8rem;
    }
    .storex-renew-requests-table tr {
        border-bottom: 1px solid var(--storex-panel-card-border);
        padding: 12px 0;
    }
    .storex-renew-requests-table td[data-label="عملیات"] {
        display: block;
    }
    .storex-renew-requests-table td[data-label="عملیات"] a,
    .storex-renew-requests-table td[data-label="عملیات"] button {
        display: inline-block;
        margin-left: 8px;
        margin-bottom: 4px;
    }
}

.storex-user-panel-message {
    padding: 24px;
    background: #f8fafb;
    border-radius: 14px;
    text-align: center;
    color: var(--storex-panel-text-soft);
}

/* فقط در صورت نمایش لینک ورود روی صفحه (وقتی ریدایرکت انجام نشده) */
.storex-user-panel-login-wrap {
    margin: 24px 0;
    padding: 20px;
    text-align: center;
}

.storex-user-panel-login-message {
    margin: 0 0 12px;
    color: #555;
}

.storex-user-panel-login-link {
    display: inline-block;
    padding: 10px 24px;
    background: #1565c0;
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
}

.storex-user-panel-login-link:hover {
    background: #1976d2;
    color: #fff;
}

@media (max-width: 991px) {
    .storex-user-panel {
        flex-direction: column;
        flex-wrap: wrap;
        align-items: stretch;
    }
    .storex-user-panel-sidebar {
        width: 100%;
        min-width: 0;
        align-self: stretch;
        border-left: none;
        border-bottom: 1px solid var(--storex-panel-sidebar-border);
    }
    .storex-user-panel-sidebar-inner {
        min-height: auto;
    }
    .storex-user-panel-nav {
        overflow-y: visible;
    }
}

@media (max-width: 768px) {
    .storex-user-panel {
        border-radius: 16px;
        margin: 20px 0;
        min-height: 400px;
    }
    .storex-user-panel-sidebar {
        width: 100%;
    }
    .storex-user-panel-user {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 16px;
        text-align: right;
        padding: 20px 20px;
    }
    .storex-user-panel-avatar-wrap {
        margin: 0;
        width: 64px;
        height: 64px;
    }
    .storex-user-panel-menu {
        flex-direction: column;
        flex-wrap: nowrap;
        justify-content: flex-start;
        gap: 8px;
    }
    .storex-user-panel-menu-group {
        width: 100%;
    }
    .storex-user-panel-submenu {
        margin-top: 6px !important;
        padding-inline-start: 20px !important;
    }
    .storex-user-panel-tab,
    .storex-user-panel-subtab {
        flex: 0 0 auto;
        min-width: 0;
        width: 100%;
        justify-content: flex-start;
    }
    .storex-user-panel-main {
        padding: 24px 20px;
        min-height: 300px;
    }
}

/* مودال عمومی برای نمایش جزئیات ذخیره‌ساز در پنل کاربری */
.storex-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 20px;
    box-sizing: border-box;
}

.storex-modal-overlay.is-open {
    display: flex;
}

body.storex-modal-open {
    overflow: hidden;
}

.storex-modal-dialog {
    max-width: 860px;
    width: 100%;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 26px 80px rgba(15, 23, 42, 0.35);
    position: relative;
    overflow: hidden;
    direction: rtl;
}

.storex-modal-content {
    max-height: 82vh;
    overflow-y: auto;
    padding: 0;
}

.storex-modal-close {
    position: absolute;
    top: 14px;
    left: 16px;
    width: 32px;
    height: 32px;
    border-radius: 999px;
    border: none;
    background: rgba(15, 23, 42, 0.04);
    color: #4b5563;
    cursor: pointer;
    font-size: 20px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, color 0.2s ease, transform 0.05s ease;
}

.storex-modal-close:hover {
    background: rgba(15, 23, 42, 0.08);
    color: #111827;
    transform: scale(1.03);
}

@media (max-width: 768px) {
    .storex-modal-dialog {
        max-width: 100%;
        border-radius: 18px;
    }

    .storex-modal-content {
        padding: 0;
        max-height: 86vh;
    }
}

/* ساختار داخلی مودال ذخیره‌ساز در پنل کاربری */
.storex-storage-modal-inner {
    padding: 20px 24px 24px;
}

/* مودال جزئیات درخواست تمدید */
.storex-renew-detail-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.storex-renew-detail-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px 14px;
    background: #f8fafb;
    border-radius: 8px;
}

.storex-renew-detail-label {
    font-weight: 600;
    color: var(--storex-panel-text-soft);
    min-width: 120px;
}

.storex-renew-detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding-top: 16px;
    border-top: 1px solid var(--storex-panel-card-border);
}

.storex-renew-detail-history {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--storex-panel-card-border);
}
.storex-renew-detail-history-title {
    margin: 0 0 12px 0;
    font-size: 1rem;
    font-weight: 700;
    color: var(--storex-panel-text);
}
.storex-renew-detail-history-empty {
    margin: 0;
    color: var(--storex-panel-text-soft);
    font-size: .9rem;
}
.storex-loading-placeholder {
    text-align: center;
    color: var(--storex-panel-text-soft, #888);
    padding: 16px 0;
}
.storex-form-row-weak-confirm-hidden {
    display: none;
}
.storex-renew-history-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .85rem;
}
.storex-renew-history-table th,
.storex-renew-history-table td {
    padding: 8px 10px;
    text-align: right;
    border: 1px solid #e8ecf1;
}
.storex-renew-history-table th {
    background: #f0f4f9;
    font-weight: 600;
    color: var(--storex-panel-text-soft);
}
.storex-renew-history-table tr:nth-child(even) td {
    background: #fafbfd;
}

/* تایم‌لاین تاریخچه درخواست تمدید (پنل کاربری) */
.storex-renew-history-timeline {
    position: relative;
}
.storex-renew-history-timeline::before {
    content: '';
    position: absolute;
    right: 9px;
    top: 12px;
    bottom: 12px;
    width: 2px;
    background: #d1d5db;
}
.storex-renew-history-timeline-item {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 0;
    margin-bottom: 16px;
}
.storex-renew-history-timeline-item:last-child {
    margin-bottom: 0;
}
.storex-renew-history-timeline-dot {
    position: relative;
    z-index: 1;
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    margin-right: 12px;
    margin-top: 6px;
    background: var(--storex-panel-accent, #6b9bc7);
    border: 3px solid #fff;
    border-radius: 50%;
    box-shadow: 0 0 0 1px rgba(0,0,0,.08);
}
.storex-renew-history-timeline-card {
    flex: 1;
    min-width: 0;
    padding: 14px 16px;
    background: #f8fafb;
    border: 1px solid var(--storex-panel-card-border, #e8ecf1);
    border-radius: 10px;
    font-size: 13px;
}
.storex-history-line {
    margin-bottom: 6px;
    line-height: 1.5;
}
.storex-history-line:last-child {
    margin-bottom: 0;
}
.storex-history-label {
    display: inline-block;
    min-width: 130px;
    color: var(--storex-panel-text-soft, #6b7280);
    font-weight: 500;
}
.storex-history-from {
    color: #9ca3af;
    font-size: 12px;
}

.storex-storage-modal-header {
    margin-bottom: 16px;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 12px;
}

.storex-storage-modal-header h2 {
    margin: 0 0 4px 0;
    font-size: 20px;
    font-weight: 700;
    color: #111827;
}

.storex-storage-modal-subtitle {
    margin: 0;
    font-size: 13px;
    color: #6b7280;
}

.storex-storage-modal-body {
    margin-top: 12px;
}

