/* ============================================
   استایل‌های افزونه هوشمند پشتیبانی سیترال وب
   ============================================ */

/* ===== تنظیمات پایه ===== */
.sls-container,
.sls-container *,
.sls-btn,
.sls-form-group input,
.sls-form-group select,
.sls-form-group textarea,
.sls-link-btn,
.sls-verify-code input,
.sls-title h2,
.sls-title p,
.sls-form-group label,
.sls-notification,
.sls-error,
.sls-success,
.sls-phone-placeholder,
.sls-loading,
.sls-tickets-container,
.sls-tickets-container *,
.sls-single-ticket-container,
.sls-single-ticket-container *,
.sls-new-ticket-container,
.sls-new-ticket-container * {
    font-family: inherit !important;
}

/* ===== کانتینر اصلی ===== */
.sls-container {
    max-width: 500px;
    margin: 30px auto;
    padding: 30px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border: 1px solid #e8ecf0;
    direction: rtl;
}

/* ===== استپ‌ها ===== */
.sls-step {
    display: none !important;
}

.sls-step.active {
    display: block !important;
}

/* ===== تیتر ===== */
.sls-title {
    text-align: center;
    margin-bottom: 25px;
}

.sls-title h2 {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 8px;
    color: #2c3e50;
}

.sls-title p {
    font-size: 14px;
    color: #7f8c8d;
    margin: 0;
}

/* ===== فرم گروپ ===== */
.sls-form-group {
    margin-bottom: 18px;
    position: relative;
}

.sls-form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #34495e;
    font-size: 13px;
}

.sls-form-group input,
.sls-form-group select,
.sls-form-group textarea {
    width: 100%;
    padding: 10px 14px;
    border: 2px solid #e0e7ef;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.3s ease;
    background: #fafbfc;
    box-sizing: border-box;
}

.sls-form-group input:focus,
.sls-form-group select:focus,
.sls-form-group textarea:focus {
    border-color: #01b1be;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(1,177,190,0.1);
    outline: none;
}

.sls-form-group textarea {
    min-height: 100px;
    resize: vertical;
}

/* ===== فیلدهای کد تایید ===== */
.sls-verify-code {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin: 20px 0;
}

.sls-verify-code input {
    width: 50px;
    height: 60px;
    text-align: center;
    font-size: 24px;
    font-weight: 700;
    border: 2px solid #e0e7ef;
    border-radius: 10px;
    background: #fafbfc;
    transition: all 0.3s ease;
    direction: ltr !important;
}

.sls-verify-code input:focus {
    border-color: #01b1be;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(1,177,190,0.1);
    outline: none;
}

/* ===== دکمه‌ها ===== */
.sls-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-decoration: none;
    white-space: nowrap;
}

.sls-btn-primary {
    background: linear-gradient(135deg, #01b1be, #018690);
    color: #fff!important;
}

.sls-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(1,177,190,0.3);
    color: #fff;
}

.sls-btn-secondary {
    background: linear-gradient(135deg, #27ae60, #1e8449);
}

.sls-btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(39,174,96,0.3);
    color: #fff;
}

.sls-btn-outline {
    background: transparent;
    border: 2px solid #01b1be;
    color: #01b1be;
}

.sls-btn-outline:hover {
    background: #01b1be;
    color: #fff;
}

.sls-btn-danger {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: #fff;
}

.sls-btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(239,68,68,0.3);
    color: #fff;
}

.sls-btn-sm {
    padding: 5px 12px;
    font-size: 12px;
    min-width: 60px;
    justify-content: center;
}

.sls-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

/* ===== خطا و موفقیت ===== */
.sls-error {
    color: #e74c3c;
    font-size: 12px;
    margin-top: 5px;
    display: none;
}

.sls-error.show {
    display: block;
}

.sls-success {
    color: #27ae60;
    font-size: 12px;
    margin-top: 5px;
    display: none;
}

.sls-success.show {
    display: block;
}

/* ===== نوتیفیکیشن ===== */
.sls-notification {
    padding: 12px 18px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: none;
    font-size: 14px;
}

.sls-notification.show {
    display: block;
}

.sls-notification.error {
    background: #fde8e8;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.sls-notification.success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

/* ===== قدرت رمز عبور ===== */
.sls-password-strength {
    margin-top: 8px;
    height: 4px;
    border-radius: 4px;
    background: #ecf0f1;
    overflow: hidden;
}

.sls-password-strength .sls-strength-bar {
    height: 100%;
    width: 0;
    transition: width 0.3s ease, background 0.3s ease;
    border-radius: 4px;
}

.sls-password-strength .sls-strength-bar.weak {
    width: 25%;
    background: #e74c3c;
}

.sls-password-strength .sls-strength-bar.medium {
    width: 50%;
    background: #f39c12;
}

.sls-password-strength .sls-strength-bar.strong {
    width: 75%;
    background: #2ecc71;
}

.sls-password-strength .sls-strength-bar.very-strong {
    width: 100%;
    background: #27ae60;
}

/* ===== الزامات رمز ===== */
.sls-password-requirements {
    list-style: none;
    padding: 0;
    margin: 8px 0 0;
    font-size: 12px;
    color: #7f8c8d;
}

.sls-password-requirements li {
    padding: 3px 0;
    padding-right: 22px;
    position: relative;
}

.sls-password-requirements li::before {
    content: '✗';
    position: absolute;
    right: 0;
    color: #e74c3c;
}

.sls-password-requirements li.valid::before {
    content: '✓';
    color: #27ae60;
}

/* ===== گرید ===== */
.sls-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.sls-row-3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 12px;
}

/* ===== دیوایدر ===== */
.sls-divider {
    text-align: center;
    padding: 15px 0;
    color: #bdc3c7;
    position: relative;
    font-size: 13px;
}

.sls-divider::before,
.sls-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 42%;
    height: 1px;
    background: #ecf0f1;
}

.sls-divider::before {
    right: 0;
}

.sls-divider::after {
    left: 0;
}

/* ===== لودینگ ===== */
.sls-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
    color: #555;
    font-size: 14px;
    gap: 10px;
}

.sls-spinner {
    display: inline-block;
    width: 22px;
    height: 22px;
    border: 3px solid rgba(1,177,190,0.2);
    border-radius: 50%;
    border-top-color: #01b1be;
    animation: sls-spin 0.8s linear infinite;
}

@keyframes sls-spin {
    to { transform: rotate(360deg); }
}

/* ===== placeholder ===== */
.sls-phone-placeholder {
    padding: 12px;
    text-align: center;
    background: #f8f9fa;
    border-radius: 8px;
    border: 2px dashed #dee2e6;
    color: #999;
    font-size: 13px;
}

/* ===== فیلدهای اختیاری ===== */
.sls-optional {
    font-weight: 400;
    color: #95a5a6;
    font-size: 12px;
}

.sls-required {
    color: #e74c3c;
}

/* ===== فوتر فرم ===== */
.sls-form-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #ecf0f1;
}

.sls-link-btn {
    background: none;
    border: none;
    color: #01b1be;
    cursor: pointer;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.sls-link-btn:hover {
    color: #0199a4;
    text-decoration: underline;
}

.sls-form-note {
    font-size: 12px;
    color: #95a5a6;
}

/* ===== نمایش شماره تلفن ===== */
.sls-verify-phone {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 15px;
    font-size: 14px;
}

.sls-verify-phone .sls-phone-number {
    font-weight: 700;
    color: #2c3e50;
    direction: ltr;
    display: inline-block;
}

.sls-edit-phone {
    background: none;
    border: none;
    color: #01b1be;
    cursor: pointer;
    font-size: 12px;
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

.sls-edit-phone:hover {
    text-decoration: underline;
}

/* ============================================
   استایل تیکت‌ها
   ============================================ */

/* ----- کانتینر اصلی تیکت‌ها ----- */
.sls-tickets-container {
    max-width: 1100px;
    margin: 30px auto;
    padding: 0 15px;
    direction: rtl;
}

/* ----- هدر ----- */
.sls-tickets-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 15px;
}

.sls-tickets-header h2 {
    margin: 0;
    color: #1e293b;
    font-size: 24px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sls-tickets-header h2 svg {
    stroke: #01b1be;
}

.sls-total-badge {
    background: #01b1be;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    padding: 2px 14px;
    border-radius: 30px;
    min-width: 28px;
    text-align: center;
}

/* ===== کارت‌های آمار - کاملاً کنار هم ===== */
.sls-stats-grid {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    gap: 12px !important;
    margin-bottom: 25px !important;
    overflow-x: auto !important;
    padding-bottom: 8px !important;
    -webkit-overflow-scrolling: touch !important;
    width: 100% !important;
}

.sls-stats-grid::-webkit-scrollbar {
    height: 4px !important;
}

.sls-stats-grid::-webkit-scrollbar-track {
    background: #f1f5f9 !important;
    border-radius: 10px !important;
}

.sls-stats-grid::-webkit-scrollbar-thumb {
    background: #01b1be !important;
    border-radius: 10px !important;
}

.sls-stat-card {
    flex: 0 0 auto !important;
    width: 170px !important;
    min-width: 150px !important;
    max-width: 200px !important;
    background: #ffffff !important;
    border-radius: 16px !important;
    padding: 16px 20px !important;
    display: flex !important;
    align-items: center !important;
    gap: 14px !important;
    border: 2px solid #eef2f6 !important;
    transition: all 0.3s ease !important;
    text-decoration: none !important;
    position: relative !important;
    cursor: pointer !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04) !important;
    margin: 0 !important;
    float: none !important;
    clear: none !important;
}

.sls-stat-card:hover {
    border-color: #01b1be !important;
    transform: translateY(-4px) !important;
    box-shadow: 0 8px 25px rgba(1, 177, 190, 0.12) !important;
}

.sls-stat-card.active {
    border-color: #01b1be !important;
    background: #f0fdf4 !important;
    box-shadow: 0 4px 15px rgba(1, 177, 190, 0.1) !important;
}

.sls-stat-card.active .sls-stat-number {
    color: #018690 !important;
}

.sls-stat-icon {
    width: 42px !important;
    height: 42px !important;
    border-radius: 14px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
    transition: all 0.3s ease !important;
}

.sls-stat-card:hover .sls-stat-icon {
    transform: scale(1.05) !important;
}

.sls-stat-info {
    flex: 1 !important;
    min-width: 0 !important;
}

.sls-stat-number {
    display: block !important;
    font-size: 22px !important;
    font-weight: 800 !important;
    color: #1e293b !important;
    line-height: 1.2 !important;
    transition: color 0.3s ease !important;
}

.sls-stat-label {
    display: block !important;
    font-size: 11px !important;
    color: #64748b !important;
    font-weight: 500 !important;
    white-space: nowrap !important;
}

.sls-stat-badge {
    background: #ef4444 !important;
    color: #fff !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    padding: 2px 10px !important;
    border-radius: 30px !important;
    position: absolute !important;
    top: -8px !important;
    right: -8px !important;
    min-width: 20px !important;
    text-align: center !important;
    animation: pulse-badge 2s infinite !important;
}

@keyframes pulse-badge {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}
/* ===== لیست تیکت‌ها ===== */
.sls-tickets-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sls-ticket-row-item {
    display: flex;
    align-items: center;
    background: #ffffff;
    border-radius: 12px;
    padding: 12px 18px;
    border: 1px solid #eef2f6;
    transition: all 0.3s ease;
    gap: 16px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.02);
}

.sls-ticket-row-item::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 4px;
    height: 100%;
    border-radius: 0 4px 4px 0;
}

.sls-ticket-row-item.status-waiting::before {
    background: #ef4444;
}

.sls-ticket-row-item.status-in_progress::before {
    background: #f59e0b;
}

.sls-ticket-row-item.status-answered::before {
    background: #3b82f6;
}

.sls-ticket-row-item.status-closed::before {
    background: #94a3b8;
}

.sls-ticket-row-item:hover {
    transform: translateX(-4px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border-color: #01b1be;
}

/* ستون شماره */
.sls-ticket-col-id {
    min-width: 50px;
    text-align: center;
    flex-shrink: 0;
}

.sls-ticket-id-number {
    font-weight: 700;
    color: #94a3b8;
    font-size: 13px;
}

/* ستون موضوع */
.sls-ticket-col-subject {
    flex: 1;
    min-width: 150px;
}

.sls-ticket-col-subject a {
    color: #1e293b;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: color 0.3s;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sls-ticket-col-subject a:hover {
    color: #01b1be;
}

/* ستون تاریخ */
.sls-ticket-col-date {
    min-width: 140px;
    flex-shrink: 0;
    color: #64748b;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.sls-ticket-col-date svg {
    stroke: #94a3b8;
    flex-shrink: 0;
}

/* ستون وضعیت */
.sls-ticket-col-status {
    min-width: 100px;
    flex-shrink: 0;
    text-align: center;
}

.sls-ticket-status-badge {
    display: inline-block;
    padding: 4px 16px;
    border-radius: 30px;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.sls-ticket-status-badge.waiting {
    background: #fee2e2;
    color: #dc2626;
}

.sls-ticket-status-badge.in_progress {
    background: #fef3c7;
    color: #d97706;
}

.sls-ticket-status-badge.answered {
    background: #dbeafe;
    color: #2563eb;
}

.sls-ticket-status-badge.closed {
    background: #e2e8f0;
    color: #64748b;
}

/* ستون عملیات */
.sls-ticket-col-actions {
    min-width: 140px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
}

/* ===== مشاهده تیکت ===== */
.sls-single-ticket-container {
    max-width: 850px;
    margin: 30px auto;
    padding: 0 15px;
    direction: rtl;
}

.sls-ticket-detail-header {
    background: #ffffff;
    border-radius: 16px;
    padding: 25px 30px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    margin-bottom: 25px;
    border-right: 4px solid #01b1be;
}

.sls-ticket-detail-title {
    font-size: 20px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 10px;
}

.sls-ticket-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 13px;
    color: #64748b;
    align-items: center;
}

.sls-ticket-detail-meta .sls-ticket-id {
    font-weight: 600;
    color: #1e293b;
}

.sls-ticket-detail-status {
    padding: 3px 12px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 12px;
}

.sls-ticket-detail-status.status-waiting {
    background: #fee2e2;
    color: #dc2626;
}

.sls-ticket-detail-status.status-in_progress {
    background: #fef3c7;
    color: #d97706;
}

.sls-ticket-detail-status.status-answered {
    background: #dbeafe;
    color: #2563eb;
}

.sls-ticket-detail-status.status-closed {
    background: #e2e8f0;
    color: #64748b;
}

.sls-messages-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 25px;
}

.sls-message-item {
    background: #ffffff;
    border-radius: 16px;
    padding: 20px 25px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border: 1px solid #eef2f6;
}

.sls-message-item.sls-message-admin {
    background: #f0fdf4;
    border-color: #bbf7d0;
}

.sls-message-item.sls-message-user {
    background: #ffffff;
}

.sls-message-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    flex-wrap: wrap;
    gap: 8px;
}

.sls-message-author {
    font-weight: 600;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sls-message-author .sls-admin-badge {
    background: #10b981;
    color: #fff;
    padding: 1px 10px;
    border-radius: 20px;
    font-size: 10px;
}

.sls-message-date {
    font-size: 12px;
    color: #94a3b8;
}

.sls-message-content {
    font-size: 14px;
    line-height: 1.8;
    color: #334155;
}

.sls-message-content img {
    max-width: 100%;
    border-radius: 8px;
    margin: 10px 0;
}

.sls-message-attachments {
    margin-top: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.sls-message-attachment {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #f1f5f9;
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 12px;
    text-decoration: none;
    color: #1e293b;
    transition: all 0.3s;
}

.sls-message-attachment:hover {
    background: #01b1be;
    color: #fff;
}

.sls-message-attachment svg {
    stroke: currentColor;
}

/* ===== فرم پاسخ ===== */
.sls-reply-form {
    background: #ffffff;
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.sls-reply-form h3 {
    margin: 0 0 15px;
    color: #1e293b;
    font-size: 16px;
    font-weight: 600;
}

.sls-reply-form textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 14px;
    resize: vertical;
    min-height: 100px;
    box-sizing: border-box;
    transition: border-color 0.3s;
}

.sls-reply-form textarea:focus {
    border-color: #01b1be;
    outline: none;
}

.sls-ticket-closed-notice {
    background: #f1f5f9;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

/* ===== آپلود فایل ===== */
.sls-upload-area-modern {
    border: 2px dashed #cbd5e1;
    border-radius: 16px;
    padding: 30px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #fafbfc;
    position: relative;
}

.sls-upload-area-modern:hover {
    border-color: #01b1be;
    background: #f0fdf4;
}

.sls-upload-area-modern.dragover {
    border-color: #01b1be;
    background: #e6f7f5;
}

.sls-upload-area-modern .upload-icon {
    width: 40px;
    height: 40px;
    stroke: #94a3b8;
    margin-bottom: 8px;
}

.sls-upload-area-modern .upload-text {
    color: #475569;
    font-size: 14px;
    font-weight: 500;
}

.sls-upload-area-modern .upload-hint {
    color: #94a3b8;
    font-size: 12px;
    margin-top: 5px;
}

.sls-upload-area-modern input[type="file"] {
    display: none;
}

.sls-file-list-modern {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.sls-file-item-modern {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f1f5f9;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 12px;
    color: #1e293b;
    border: 1px solid #e2e8f0;
    transition: all 0.3s;
}

.sls-file-item-modern:hover {
    border-color: #01b1be;
}

.sls-file-item-modern .file-name {
    max-width: 130px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sls-file-item-modern .file-size {
    color: #94a3b8;
    font-size: 11px;
}

.sls-file-item-modern .file-remove {
    cursor: pointer;
    color: #ef4444;
    font-size: 16px;
    font-weight: 700;
    padding: 0 4px;
    transition: all 0.3s;
}

.sls-file-item-modern .file-remove:hover {
    transform: scale(1.2);
}

/* ===== نوار پیشرفت آپلود ===== */
.sls-upload-progress-wrapper {
    margin-top: 10px;
    background: #e9ecef;
    border-radius: 20px;
    overflow: hidden;
    height: 6px;
    display: none;
}

.sls-upload-progress-wrapper.active {
    display: block;
}

.sls-upload-progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #01b1be, #018690);
    border-radius: 20px;
    transition: width 0.5s ease;
}

.sls-upload-progress-text {
    font-size: 12px;
    color: #555;
    margin-top: 5px;
    text-align: center;
    display: none;
    font-weight: 500;
}

.sls-upload-progress-text.active {
    display: block;
}

/* ===== فرم ثبت تیکت جدید ===== */
.sls-new-ticket-container {
    max-width: 700px;
    margin: 30px auto;
    padding: 0 15px;
}

.sls-new-ticket-header {
    margin-bottom: 30px;
}

.sls-new-ticket-header h2 {
    margin: 0 0 8px;
    color: #1e293b;
    font-size: 24px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sls-new-ticket-header p {
    margin: 0;
    color: #64748b;
    font-size: 14px;
}

.sls-form-actions {
    display: flex;
    gap: 12px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.sls-form-actions .sls-btn {
    flex: 1;
    min-width: 120px;
}

/* ===== حالت خالی ===== */
.sls-empty-state {
    text-align: center;
    padding: 60px 20px;
    background: #f8fafc;
    border-radius: 16px;
    border: 2px dashed #e2e8f0;
}

.sls-empty-state svg {
    display: block;
    margin: 0 auto 15px;
    stroke: #cbd5e1;
}

.sls-empty-state p {
    color: #64748b;
    font-size: 15px;
    margin: 0 0 20px;
}

/* ============================================
   واکنش‌گرایی
   ============================================ */

@media (max-width: 1024px) {
    .sls-stat-card {
        width: 150px;
        min-width: 130px;
        padding: 14px 16px;
    }
    
    .sls-stat-number {
        font-size: 19px;
    }
}

@media (max-width: 820px) {
    .sls-stats-grid {
        gap: 10px;
        padding-bottom: 8px;
    }
    
    .sls-stat-card {
        width: 130px;
        min-width: 110px;
        padding: 12px 14px;
    }
    
    .sls-stat-number {
        font-size: 17px;
    }
}

@media (max-width: 768px) {
    .sls-container {
        margin: 15px;
        padding: 20px;
    }
    
    .sls-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .sls-row-3 {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }
    
    .sls-verify-code input {
        width: 42px;
        height: 50px;
        font-size: 20px;
    }
    
    .sls-title h2 {
        font-size: 18px;
    }
    
    .sls-tickets-header {
        flex-direction: column;
        align-items: stretch;
    }
    
    .sls-tickets-header a {
        text-align: center;
    }
    
    .sls-tickets-header h2 {
        justify-content: center;
    }
    
    .sls-ticket-row-item {
        flex-wrap: wrap;
        padding: 12px 16px;
        gap: 8px;
    }
    
    .sls-ticket-col-id {
        min-width: 40px;
    }
    
    .sls-ticket-col-subject {
        min-width: 120px;
        flex: 1 1 100%;
        order: 2;
    }
    
    .sls-ticket-col-subject a {
        font-size: 13px;
    }
    
    .sls-ticket-col-date {
        min-width: auto;
        order: 3;
        font-size: 11px;
    }
    
    .sls-ticket-col-status {
        min-width: 80px;
        order: 4;
    }
    
    .sls-ticket-col-actions {
        min-width: auto;
        order: 5;
        flex: 1;
        justify-content: flex-end;
    }
    
    .sls-ticket-col-actions .sls-btn span {
        display: none;
    }
    
    .sls-ticket-col-actions .sls-btn {
        min-width: 36px;
        padding: 5px 8px;
    }
    
    .sls-new-ticket-container {
        padding: 0 10px;
    }
    
    .sls-form-actions .sls-btn {
        flex: 1;
        min-width: 100px;
    }
}

@media (max-width: 480px) {
    .sls-stat-card {
        width: 110px;
        min-width: 95px;
        padding: 10px 12px;
        gap: 10px;
    }
    
    .sls-stat-icon {
        width: 32px;
        height: 32px;
        border-radius: 10px;
    }
    
    .sls-stat-icon svg {
        width: 16px;
        height: 16px;
    }
    
    .sls-stat-number {
        font-size: 15px;
    }
    
    .sls-stat-label {
        font-size: 10px;
    }
    
    .sls-ticket-row-item {
        padding: 10px 14px;
        gap: 6px;
    }
    
    .sls-ticket-col-subject a {
        font-size: 12px;
    }
    
    .sls-ticket-col-date {
        font-size: 10px;
    }
    
    .sls-ticket-status-badge {
        font-size: 10px;
        padding: 2px 10px;
    }
    
    .sls-verify-code input {
        width: 36px;
        height: 44px;
        font-size: 18px;
    }
    
    .sls-row-3 {
        grid-template-columns: 1fr;
    }
    
    .sls-form-actions .sls-btn {
        min-width: 80px;
        font-size: 12px;
        padding: 8px 14px;
    }
}

/* ===== اورراید نهایی برای نمایش کارت‌های آمار کنار هم ===== */
.sls-tickets-container .sls-stats-grid {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    gap: 12px !important;
    padding: 15px 0 12px !important;
}

.sls-tickets-container .sls-stats-grid .sls-stat-card {
    flex: 0 0 160px !important;
    width: 160px !important;
    min-width: 140px !important;
    max-width: 180px !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 12px !important;
    padding: 14px 16px !important;
    margin: 0 !important;
    float: none !important;
    clear: none !important;
    position: relative !important;
    border: 2px solid #eef2f6 !important;
    border-radius: 14px !important;
    background: #fff !important;
}

.sls-tickets-container .sls-stats-grid .sls-stat-card .sls-stat-icon {
    flex: 0 0 38px !important;
    width: 38px !important;
    height: 38px !important;
}

.sls-tickets-container .sls-stats-grid .sls-stat-card .sls-stat-info {
    flex: 1 !important;
    min-width: 0 !important;
}

.sls-tickets-container .sls-stats-grid .sls-stat-card .sls-stat-number {
    font-size: 18px !important;
    font-weight: 700 !important;
}

.sls-tickets-container .sls-stats-grid .sls-stat-card .sls-stat-label {
    font-size: 10px !important;
    white-space: nowrap !important;
}

/* اسکرول افقی برای موبایل */
@media (max-width: 768px) {
    .sls-tickets-container .sls-stats-grid {
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        padding-bottom: 10px !important;
    }
    
    .sls-tickets-container .sls-stats-grid .sls-stat-card {
        flex: 0 0 130px !important;
        width: 130px !important;
        min-width: 120px !important;
        padding: 12px 14px !important;
    }
}

@media (max-width: 480px) {
    .sls-tickets-container .sls-stats-grid .sls-stat-card {
        flex: 0 0 110px !important;
        width: 110px !important;
        min-width: 100px !important;
        padding: 10px 12px !important;
    }
    
    .sls-tickets-container .sls-stats-grid .sls-stat-card .sls-stat-number {
        font-size: 15px !important;
    }
}

/* ===== لودینگ اورلی ===== */
.sls-loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
    animation: sls-overlay-fade 0.3s ease;
}

.sls-loading-box {
    background: #ffffff;
    padding: 40px 50px;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    text-align: center;
    max-width: 400px;
    animation: sls-box-pop 0.4s ease;
}

.sls-spinner-large {
    width: 50px;
    height: 50px;
    margin: 0 auto 20px;
    border: 5px solid #e2e8f0;
    border-top-color: #01b1be;
    border-radius: 50%;
    animation: sls-spin 0.8s linear infinite;
}

.sls-loading-text {
    font-size: 16px;
    color: #1e293b;
    font-weight: 500;
    margin: 0;
    direction: rtl;
}

@keyframes sls-overlay-fade {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes sls-box-pop {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

@keyframes sls-spin {
    to { transform: rotate(360deg); }
}

@media (max-width: 640px) {
    .sls-loading-box {
        padding: 30px 25px;
        margin: 0 20px;
    }
    .sls-spinner-large {
        width: 40px;
        height: 40px;
    }
    .sls-loading-text {
        font-size: 14px;
    }
}