/* ═══════════════════════════════════════════════════════════
   سیستم تیکت - سمت کاربر
   پیشوند: stk- (submit), mtk- (my tickets), tvk- (view)
   ═══════════════════════════════════════════════════════════ */

/* ═══ Hero ═══ */
.stk-hero,
.mtk-hero,
.tvk-hero {
    padding: 60px 20px 50px;
    background: linear-gradient(135deg, var(--rw-primary) 0%, var(--rw-secondary) 100%);
    color: #fff;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.stk-hero::before,
.mtk-hero::before,
.tvk-hero::before {
    content: "";
    position: absolute;
    top: -100px; right: -100px;
    width: 300px; height: 300px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
}
.stk-hero::after,
.mtk-hero::after,
.tvk-hero::after {
    content: "";
    position: absolute;
    bottom: -120px; left: -80px;
    width: 280px; height: 280px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.stk-hero-inner,
.mtk-hero-inner,
.tvk-hero-inner {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stk-hero-badge,
.mtk-hero-badge,
.tvk-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #fff !important;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 16px;
    backdrop-filter: blur(10px);
}
.stk-hero-badge i,
.mtk-hero-badge i,
.tvk-hero-badge i {
    font-size: 14px;
    color: #fff !important;
}

.stk-hero-title,
.mtk-hero-title,
.tvk-hero-title {
    font-family: 'Lalezar-ExtraBold', sans-serif;
    font-size: 38px;
    color: #fff !important;
    margin: 0 0 12px;
    line-height: 1.3;
    text-align: center;
    width: 100%;
    font-weight: 400;
    text-shadow: 0 2px 15px rgba(0, 0, 0, 0.15);
}

.stk-hero-desc,
.mtk-hero-desc,
.tvk-hero-desc {
    font-size: 15px;
    color: #fff !important;
    margin: 0 0 24px;
    line-height: 1.9;
    text-align: center;
    width: 100%;
    opacity: 0.95;
}

.stk-hero-breadcrumb,
.mtk-hero-breadcrumb,
.tvk-hero-breadcrumb {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    font-size: 12px;
}
.stk-hero-breadcrumb a,
.mtk-hero-breadcrumb a,
.tvk-hero-breadcrumb a {
    color: rgba(255, 255, 255, 0.85) !important;
    text-decoration: none;
    transition: color 0.2s;
}
.stk-hero-breadcrumb a:hover,
.mtk-hero-breadcrumb a:hover,
.tvk-hero-breadcrumb a:hover {
    color: #fff !important;
}
.stk-hero-breadcrumb i,
.mtk-hero-breadcrumb i,
.tvk-hero-breadcrumb i {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.6) !important;
}
.stk-hero-breadcrumb span,
.mtk-hero-breadcrumb span,
.tvk-hero-breadcrumb span {
    color: #fff !important;
    font-weight: 700;
}

/* ═══ Container ═══ */
.stk-container,
.mtk-container,
.tvk-container {
    max-width: 1100px;
    margin: -40px auto 60px;
    padding: 0 20px;
    position: relative;
    z-index: 5;
}

/* ═══ Layout (2 columns) ═══ */
.stk-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 24px;
    align-items: start;
}
.stk-main { min-width: 0; }
.stk-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: sticky;
    top: 20px;
}

/* ═══ Form ═══ */
.stk-form {
    background: #fff;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
}

.stk-form-section {
    padding-bottom: 24px;
    margin-bottom: 24px;
    border-bottom: 2px dashed rgba(0, 0, 0, 0.06);
}
.stk-form-section:last-of-type {
    padding-bottom: 0;
    margin-bottom: 20px;
    border-bottom: none;
}

.stk-form-section-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: 'Lalezar-ExtraBold', sans-serif;
    font-size: 17px;
    color: #1E3A8A;
    margin: 0 0 20px;
}

.stk-section-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, var(--rw-primary), var(--rw-secondary));
    border-radius: 12px;
    color: #fff;
    font-family: 'Lalezar-ExtraBold', sans-serif;
    font-size: 15px;
    flex-shrink: 0;
    box-shadow: 0 6px 15px rgba(37, 99, 235, 0.25);
}

.stk-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.stk-form-group {
    margin-bottom: 16px;
}
.stk-form-group:last-child { margin-bottom: 0; }

.stk-form-label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: #1F2937;
    margin-bottom: 8px;
}
.stk-form-label span { color: #EF4444; }

.stk-input-wrap {
    position: relative;
}
.stk-input-wrap > i {
    position: absolute;
    top: 50%;
    right: 14px;
    transform: translateY(-50%);
    color: #9CA3AF;
    font-size: 15px;
    pointer-events: none;
    transition: color 0.25s;
}
.stk-input-wrap:focus-within > i {
    color: var(--rw-primary);
}

.stk-input {
    width: 100%;
    padding: 13px 44px 13px 16px;
    background: #F8FAFC;
    border: 2px solid rgba(0, 0, 0, 0.06);
    border-radius: 12px;
    font-family: 'Shabnam-Bold-P', Tahoma, sans-serif;
    font-size: 13px;
    color: #1F2937;
    outline: none;
    transition: all 0.25s ease;
}
.stk-input:focus {
    background: #fff;
    border-color: var(--rw-primary);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.08);
}
.stk-input::placeholder { color: #9CA3AF; }

.stk-select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%239CA3AF' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: left 16px center;
    padding-left: 40px;
}

.stk-textarea-wrap {
    position: relative;
}
.stk-textarea {
    width: 100%;
    padding: 14px 16px;
    background: #F8FAFC;
    border: 2px solid rgba(0, 0, 0, 0.06);
    border-radius: 12px;
    font-family: 'Shabnam-Bold-P', Tahoma, sans-serif;
    font-size: 13px;
    color: #1F2937;
    outline: none;
    resize: vertical;
    line-height: 1.9;
    transition: all 0.25s ease;
    min-height: 150px;
}
.stk-textarea:focus {
    background: #fff;
    border-color: var(--rw-primary);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.08);
}
.stk-textarea::placeholder { color: #9CA3AF; }

.stk-form-hint {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    font-size: 11px;
    color: #6B7280;
}
.stk-form-hint i {
    color: var(--rw-primary);
    font-size: 12px;
    flex-shrink: 0;
}

/* ═══ Buttons ═══ */
.stk-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 26px;
    border-radius: 12px;
    text-decoration: none;
    font-family: 'Shabnam-Bold-P', Tahoma, sans-serif;
    font-size: 14px;
    font-weight: 700;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}
.stk-btn i { font-size: 15px; line-height: 1; }

.stk-btn-primary {
    background: linear-gradient(135deg, var(--rw-primary), var(--rw-secondary));
    color: #fff;
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.3);
}
.stk-btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(37, 99, 235, 0.4);
}

.stk-btn-secondary {
    background: #F3F4F6;
    color: #4B5563;
}
.stk-btn-secondary:hover {
    background: #E5E7EB;
    transform: translateY(-3px);
}

.stk-btn-large {
    padding: 16px 36px;
    font-size: 15px;
    flex: 1;
}

.stk-form-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    padding-top: 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

/* ═══ Alert ═══ */
.stk-alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 14px 18px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.7;
}
.stk-alert i {
    font-size: 18px;
    flex-shrink: 0;
    margin-top: 2px;
    line-height: 1;
}
.stk-alert-error {
    background: #FEE2E2;
    color: #991B1B;
    border-right: 4px solid #EF4444;
}
.stk-alert-error i { color: #EF4444; }

.stk-alert-success {
    background: #D1FAE5;
    color: #065F46;
    border-right: 4px solid #10B981;
}
.stk-alert-success i { color: #10B981; }

.stk-alert-info {
    background: #DBEAFE;
    color: #1E40AF;
    border-right: 4px solid #2563EB;
}
.stk-alert-info i { color: #2563EB; }

/* ═══ Info Cards (sidebar) ═══ */
.stk-info-card {
    background: #fff;
    border-radius: 18px;
    padding: 22px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.stk-info-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    padding-bottom: 14px;
    border-bottom: 2px solid rgba(37, 99, 235, 0.1);
}
.stk-info-card-header i {
    font-size: 18px;
    color: var(--rw-primary);
}
.stk-info-card-header h3 {
    font-family: 'Lalezar-ExtraBold', sans-serif;
    font-size: 16px;
    color: #1E3A8A;
    margin: 0;
}

.stk-info-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.stk-info-list li {
    display: flex;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px dashed rgba(0, 0, 0, 0.06);
    font-size: 12px;
    color: #4B5563;
    line-height: 1.8;
}
.stk-info-list li:last-child { border-bottom: none; }
.stk-info-list li i {
    color: #10B981;
    font-size: 12px;
    flex-shrink: 0;
    margin-top: 4px;
}

.stk-info-card-contact { background: linear-gradient(135deg, #F8FAFC, #EFF6FF); }

.stk-contact-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    background: #fff;
    border-radius: 10px;
    margin-bottom: 8px;
    text-decoration: none;
    color: #4B5563;
    font-size: 12px;
    font-weight: 700;
    transition: all 0.25s ease;
}
.stk-contact-row:last-child { margin-bottom: 0; }
.stk-contact-row:hover {
    background: var(--rw-primary);
    color: #fff;
    transform: translateX(-4px);
}
.stk-contact-row i {
    font-size: 15px;
    color: var(--rw-primary);
    flex-shrink: 0;
}
.stk-contact-row:hover i { color: #fff; }

.stk-contact-row-link {
    background: linear-gradient(135deg, var(--rw-primary), var(--rw-secondary));
    color: #fff;
}
.stk-contact-row-link i { color: #fff; }
.stk-contact-row-link:hover { background: var(--rw-secondary); }

/* ═══ Success Card ═══ */
.stk-success-card {
    max-width: 620px;
    margin: 0 auto;
    background: #fff;
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.stk-success-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 90px;
    height: 90px;
    background: linear-gradient(135deg, #10B981, #059669);
    border-radius: 50%;
    color: #fff;
    font-size: 44px;
    margin-bottom: 20px;
    box-shadow: 0 15px 35px rgba(16, 185, 129, 0.35);
    animation: stkPulse 2s infinite;
}
.stk-success-icon i { color: #fff; line-height: 1; }

@keyframes stkPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.stk-success-title {
    font-family: 'Lalezar-ExtraBold', sans-serif;
    font-size: 24px;
    color: #1E3A8A;
    margin: 0 0 12px;
}

.stk-success-desc {
    font-size: 14px;
    color: #6B7280;
    line-height: 2;
    margin: 0 0 26px;
}

.stk-success-info {
    background: #F8FAFC;
    border-radius: 14px;
    padding: 20px;
    margin-bottom: 20px;
    text-align: right;
}
.stk-info-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px dashed rgba(0, 0, 0, 0.08);
    gap: 12px;
    flex-wrap: wrap;
}
.stk-info-row:last-child { border-bottom: none; }

.stk-info-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #6B7280;
    font-weight: 700;
}
.stk-info-label i { color: var(--rw-primary); font-size: 14px; }

.stk-info-value {
    font-size: 14px;
    color: #1E3A8A;
    font-weight: 700;
    word-break: break-all;
}
.stk-info-value-mono {
    font-family: monospace;
    background: rgba(37, 99, 235, 0.08);
    color: var(--rw-primary);
    padding: 4px 12px;
    border-radius: 8px;
}

.stk-success-note {
    display: flex;
    gap: 10px;
    padding: 14px 18px;
    background: #FEF3C7;
    border-radius: 12px;
    border-right: 4px solid #F59E0B;
    text-align: right;
    margin-bottom: 24px;
}
.stk-success-note i {
    font-size: 20px;
    color: #F59E0B;
    flex-shrink: 0;
    margin-top: 2px;
}
.stk-success-note div {
    font-size: 12px;
    color: #92400E;
    line-height: 1.9;
}
.stk-success-note strong { color: #B45309; }

.stk-success-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ═══ Responsive ═══ */
@media (max-width: 900px) {
    .stk-layout {
        grid-template-columns: 1fr;
    }
    .stk-sidebar {
        position: static;
    }
}
@media (max-width: 700px) {
    .stk-hero { padding: 45px 16px 40px; }
    .stk-hero-title { font-size: 26px; }
    .stk-hero-desc { font-size: 13px; }
    .stk-container { margin-top: -30px; padding: 0 14px; }

    .stk-form { padding: 22px 18px; border-radius: 16px; }
    .stk-form-row { grid-template-columns: 1fr; gap: 0; }

    .stk-form-actions { flex-direction: column; }
    .stk-form-actions .stk-btn { width: 100%; }

    .stk-success-card { padding: 28px 20px; }
    .stk-success-icon { width: 70px; height: 70px; font-size: 34px; }
    .stk-success-title { font-size: 20px; }
    .stk-success-actions { flex-direction: column; }
    .stk-success-actions .stk-btn { width: 100%; }

    .stk-info-row { flex-direction: column; align-items: flex-start; }
}

/* ═══════════════════════════════════════════════════════════
   MY TICKETS - پیگیری تیکت‌ها
   ═══════════════════════════════════════════════════════════ */

.mtk-search-box {
    background: #fff;
    border-radius: 20px;
    padding: 26px 30px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
    margin-bottom: 24px;
}

.mtk-search-form { margin: 0; }
.mtk-search-wrap {
    display: flex;
    align-items: center;
    gap: 0;
    background: #F8FAFC;
    border-radius: 60px;
    padding: 6px 6px 6px 20px;
    border: 2px solid transparent;
    transition: all 0.25s ease;
}
.mtk-search-wrap:focus-within {
    background: #fff;
    border-color: var(--rw-primary);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.08);
}
.mtk-search-wrap > i {
    color: #9CA3AF;
    font-size: 17px;
    padding-left: 12px;
    transition: color 0.25s;
}
.mtk-search-wrap:focus-within > i { color: var(--rw-primary); }

.mtk-search-input {
    flex: 1;
    padding: 12px 8px;
    border: none;
    outline: none;
    background: transparent;
    font-family: 'Shabnam-Bold-P', Tahoma, sans-serif;
    font-size: 14px;
    color: #1F2937;
    min-width: 0;
}
.mtk-search-input::placeholder { color: #9CA3AF; }

.mtk-search-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 26px;
    background: linear-gradient(135deg, var(--rw-primary), var(--rw-secondary));
    color: #fff;
    border: none;
    border-radius: 50px;
    font-family: 'Shabnam-Bold-P', Tahoma, sans-serif;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 15px rgba(37, 99, 235, 0.3);
    flex-shrink: 0;
}
.mtk-search-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.4);
}
.mtk-search-btn i { font-size: 14px; color: inherit; }

.mtk-search-hint {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 12px;
    font-size: 12px;
    color: #6B7280;
    line-height: 1.7;
}
.mtk-search-hint i {
    color: var(--rw-primary);
    font-size: 13px;
    flex-shrink: 0;
}

/* ═══ Alert ═══ */
.mtk-alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 14px 18px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.7;
}
.mtk-alert i { font-size: 18px; flex-shrink: 0; margin-top: 2px; }
.mtk-alert-error {
    background: #FEE2E2;
    color: #991B1B;
    border-right: 4px solid #EF4444;
}
.mtk-alert-error i { color: #EF4444; }

/* ═══ Empty ═══ */
.mtk-empty {
    background: #fff;
    border-radius: 20px;
    padding: 60px 30px;
    text-align: center;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
}
.mtk-empty-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #F8FAFC, #EFF6FF);
    border-radius: 50%;
    margin-bottom: 20px;
}
.mtk-empty-icon i {
    font-size: 50px;
    color: var(--rw-primary);
    opacity: 0.5;
}
.mtk-empty h3 {
    font-family: 'Lalezar-ExtraBold', sans-serif;
    font-size: 22px;
    color: #1E3A8A;
    margin: 0 0 10px;
}
.mtk-empty p {
    font-size: 14px;
    color: #6B7280;
    line-height: 2;
    margin: 0 0 24px;
}
.mtk-empty p strong {
    color: var(--rw-primary);
    font-family: monospace;
    padding: 2px 8px;
    background: rgba(37, 99, 235, 0.08);
    border-radius: 6px;
}
.mtk-empty-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

/* ═══ Stats ═══ */
.mtk-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.mtk-stat-card {
    display: flex;
    gap: 14px;
    align-items: center;
    padding: 18px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: 2px solid transparent;
    transition: all 0.3s ease;
}
.mtk-stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.mtk-stat-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 14px;
    color: #fff;
    font-size: 22px;
    flex-shrink: 0;
}
.mtk-stat-icon i { color: #fff; line-height: 1; }

.mtk-stat-blue { background: linear-gradient(135deg, #2563EB, #1E40AF); box-shadow: 0 6px 15px rgba(37, 99, 235, 0.3); }
.mtk-stat-orange { background: linear-gradient(135deg, #F59E0B, #B45309); box-shadow: 0 6px 15px rgba(245, 158, 11, 0.3); }
.mtk-stat-green { background: linear-gradient(135deg, #10B981, #047857); box-shadow: 0 6px 15px rgba(16, 185, 129, 0.3); }
.mtk-stat-gray { background: linear-gradient(135deg, #6B7280, #374151); box-shadow: 0 6px 15px rgba(107, 114, 128, 0.3); }

.mtk-stat-body { min-width: 0; }
.mtk-stat-value {
    font-family: 'Lalezar-ExtraBold', sans-serif;
    font-size: 26px;
    color: #1E3A8A;
    line-height: 1;
    margin-bottom: 4px;
}
.mtk-stat-label {
    font-size: 12px;
    color: #6B7280;
    font-weight: 700;
}

/* ═══ List Header ═══ */
.mtk-list-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}
.mtk-list-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Lalezar-ExtraBold', sans-serif;
    font-size: 20px;
    color: #1E3A8A;
    margin: 0;
}
.mtk-list-title i { font-size: 20px; color: var(--rw-primary); }

.mtk-new-ticket-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 22px;
    background: linear-gradient(135deg, var(--rw-primary), var(--rw-secondary));
    color: #fff;
    border-radius: 50px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    transition: all 0.3s ease;
    box-shadow: 0 6px 15px rgba(37, 99, 235, 0.3);
}
.mtk-new-ticket-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.4);
}
.mtk-new-ticket-btn i { font-size: 14px; }

/* ═══ List ═══ */
.mtk-list { display: flex; flex-direction: column; gap: 12px; }

.mtk-card {
    display: grid;
    grid-template-columns: 130px 1fr 40px;
    gap: 16px;
    align-items: center;
    background: #fff;
    border-radius: 16px;
    padding: 18px 22px;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: 2px solid transparent;
    transition: all 0.3s ease;
}
.mtk-card:hover {
    border-color: var(--rw-primary);
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(37, 99, 235, 0.12);
}
.mtk-card-unread {
    border-color: rgba(37, 99, 235, 0.3);
    background: rgba(37, 99, 235, 0.03);
}

.mtk-card-status-col {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}

.mtk-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}
.mtk-status-open {
    background: rgba(245, 158, 11, 0.15);
    color: #B45309;
}
.mtk-status-pending {
    background: rgba(59, 130, 246, 0.15);
    color: #1E40AF;
}
.mtk-status-answered {
    background: rgba(16, 185, 129, 0.15);
    color: #059669;
}
.mtk-status-closed {
    background: rgba(107, 114, 128, 0.15);
    color: #4B5563;
}

.mtk-unread-dot {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px;
    background: #EF4444;
    color: #fff;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 700;
    animation: mtkPulse 2s infinite;
}
.mtk-unread-dot i { font-size: 10px; }
@keyframes mtkPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.mtk-card-info { min-width: 0; }
.mtk-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}
.mtk-card-title {
    font-family: 'Lalezar-ExtraBold', sans-serif;
    font-size: 16px;
    color: #1E3A8A;
    margin: 0;
    line-height: 1.4;
    flex: 1;
    min-width: 0;
}
.mtk-card-num {
    display: inline-block;
    padding: 2px 10px;
    background: rgba(37, 99, 235, 0.08);
    color: var(--rw-primary);
    border-radius: 20px;
    font-size: 10px;
    font-weight: 700;
    font-family: monospace;
    flex-shrink: 0;
}

.mtk-card-tags {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}
.mtk-cat-badge,
.mtk-prio-badge,
.mtk-reply-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 700;
}
.mtk-cat-badge {
    background: rgba(37, 99, 235, 0.08);
    color: var(--rw-primary);
}
.mtk-prio-low    { background: rgba(107, 114, 128, 0.12); color: #6B7280; }
.mtk-prio-normal { background: rgba(59, 130, 246, 0.12);  color: #2563EB; }
.mtk-prio-high   { background: rgba(245, 158, 11, 0.12);  color: #B45309; }
.mtk-prio-urgent { background: rgba(239, 68, 68, 0.12);   color: #DC2626; }
.mtk-reply-badge {
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
}
.mtk-cat-badge i, .mtk-prio-badge i, .mtk-reply-badge i { font-size: 10px; }

.mtk-card-dates {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    font-size: 11px;
    color: #6B7280;
    padding-top: 10px;
    border-top: 1px dashed rgba(0, 0, 0, 0.06);
}
.mtk-card-dates i { font-size: 11px; color: #9CA3AF; margin-left: 3px; }

.mtk-card-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(37, 99, 235, 0.08);
    color: var(--rw-primary);
    border-radius: 50%;
    font-size: 16px;
    flex-shrink: 0;
    transition: all 0.3s ease;
}
.mtk-card:hover .mtk-card-arrow {
    background: var(--rw-primary);
    color: #fff;
    transform: translateX(-4px);
}

/* ═══════════════════════════════════════════════════════════
   TICKET VIEW - مشاهده تیکت
   ═══════════════════════════════════════════════════════════ */

.tvk-action-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.tvk-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: #fff;
    color: var(--rw-primary);
    border-radius: 50px;
    text-decoration: none;
    font-size: 12px;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
    transition: all 0.25s ease;
}
.tvk-back-btn:hover {
    background: var(--rw-primary);
    color: #fff;
    transform: translateX(4px);
}
.tvk-back-btn i { font-size: 13px; }

.tvk-status-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 700;
}
.tvk-status-chip i { font-size: 13px; }

/* ═══ Header Card ═══ */
.tvk-header-card {
    background: #fff;
    border-radius: 20px;
    padding: 26px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
    margin-bottom: 20px;
}

.tvk-header-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    padding-bottom: 20px;
    margin-bottom: 20px;
    border-bottom: 1px dashed rgba(0, 0, 0, 0.08);
    flex-wrap: wrap;
}
.tvk-header-main {
    display: flex;
    gap: 14px;
    flex: 1;
    min-width: 0;
}
.tvk-header-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    background: linear-gradient(135deg, var(--rw-primary), var(--rw-secondary));
    border-radius: 16px;
    color: #fff;
    font-size: 26px;
    flex-shrink: 0;
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.3);
}
.tvk-header-icon i { color: #fff; line-height: 1; }

.tvk-header-info { flex: 1; min-width: 0; }
.tvk-subject {
    font-family: 'Lalezar-ExtraBold', sans-serif;
    font-size: 22px;
    color: #1E3A8A;
    margin: 0 0 10px;
    line-height: 1.4;
}
.tvk-header-meta {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    font-size: 12px;
    color: #6B7280;
}
.tvk-ticket-num {
    display: inline-block;
    padding: 3px 12px;
    background: rgba(37, 99, 235, 0.08);
    color: var(--rw-primary);
    border-radius: 20px;
    font-family: monospace;
    font-size: 11px;
    font-weight: 700;
}
.tvk-header-date { display: inline-flex; align-items: center; gap: 5px; }
.tvk-header-date i { font-size: 12px; }

.tvk-header-badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    flex-shrink: 0;
}
.tvk-header-badges .mtk-status-badge,
.tvk-header-badges .mtk-prio-badge,
.tvk-header-badges .mtk-cat-badge {
    font-size: 11px;
    padding: 6px 14px;
}

/* ═══ Info Grid ═══ */
.tvk-header-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
}
.tvk-info-item {
    padding: 12px 16px;
    background: #F8FAFC;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    border-right: 3px solid var(--rw-primary);
}
.tvk-info-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 10px;
    color: #9CA3AF;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 700;
}
.tvk-info-label i { font-size: 11px; }
.tvk-info-value {
    font-size: 13px;
    color: #1E3A8A;
    font-weight: 700;
    word-break: break-word;
}

/* ═══ Conversation Card ═══ */
.tvk-conversation-card {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
    overflow: hidden;
}

.tvk-conversation-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 20px 26px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    background: #F8FAFC;
}
.tvk-conversation-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Lalezar-ExtraBold', sans-serif;
    font-size: 18px;
    color: #1E3A8A;
    margin: 0;
}
.tvk-conversation-title i { font-size: 18px; color: var(--rw-primary); }

.tvk-reply-count {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(37, 99, 235, 0.08);
    color: var(--rw-primary);
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
}

.tvk-conversation-body {
    padding: 26px;
}

/* ═══ Conversation ═══ */
.tvk-conversation {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-bottom: 26px;
}

.tvk-bubble-wrap {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}
.tvk-bubble-wrap-admin {
    flex-direction: row-reverse;
}

.tvk-bubble-avatar {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    background: linear-gradient(135deg, #6B7280, #374151);
    border-radius: 50%;
    color: #fff;
    font-family: 'Lalezar-ExtraBold', sans-serif;
    font-size: 18px;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(107, 114, 128, 0.3);
}
.tvk-bubble-avatar-admin {
    background: linear-gradient(135deg, var(--rw-primary), var(--rw-secondary));
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.tvk-bubble {
    flex: 1;
    max-width: calc(100% - 70px);
    background: #F8FAFC;
    border-radius: 16px;
    padding: 16px 20px;
    border: 2px solid transparent;
}
.tvk-bubble-user { border-top-right-radius: 4px; }
.tvk-bubble-admin {
    background: rgba(37, 99, 235, 0.05);
    border-color: rgba(37, 99, 235, 0.15);
    border-top-left-radius: 4px;
}

.tvk-bubble-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px dashed rgba(0, 0, 0, 0.08);
    flex-wrap: wrap;
}
.tvk-bubble-author {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.tvk-bubble-author strong {
    font-family: 'Lalezar-ExtraBold', sans-serif;
    font-size: 14px;
    color: #1E3A8A;
}
.tvk-bubble-role {
    display: inline-flex;
    padding: 2px 8px;
    background: rgba(37, 99, 235, 0.12);
    color: var(--rw-primary);
    border-radius: 20px;
    font-size: 9px;
    font-weight: 700;
}
.tvk-bubble-role-user {
    background: rgba(107, 114, 128, 0.15);
    color: #4B5563;
}
.tvk-bubble-date {
    font-size: 10px;
    color: #9CA3AF;
}
.tvk-bubble-body {
    font-size: 13px;
    color: #374151;
    line-height: 2;
    white-space: pre-wrap;
    word-break: break-word;
}

.tvk-no-replies {
    text-align: center;
    padding: 40px 20px;
    color: #9CA3AF;
}
.tvk-no-replies i {
    font-size: 44px;
    display: block;
    margin-bottom: 10px;
    opacity: 0.35;
}
.tvk-no-replies p { font-size: 13px; margin: 0; }

/* ═══ Reply Form ═══ */
.tvk-reply-form {
    padding: 22px;
    background: #F8FAFC;
    border-radius: 16px;
    border: 2px solid rgba(37, 99, 235, 0.1);
}

.tvk-reply-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}
.tvk-reply-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--rw-primary), var(--rw-secondary));
    border-radius: 12px;
    color: #fff;
    font-size: 20px;
    flex-shrink: 0;
    box-shadow: 0 6px 15px rgba(37, 99, 235, 0.25);
}
.tvk-reply-icon i { color: #fff; line-height: 1; }
.tvk-reply-title {
    font-family: 'Lalezar-ExtraBold', sans-serif;
    font-size: 17px;
    color: #1E3A8A;
    margin: 0 0 3px;
}
.tvk-reply-subtitle {
    font-size: 12px;
    color: #6B7280;
    margin: 0;
}

.tvk-reply-textarea-wrap { margin-bottom: 16px; }
.tvk-reply-textarea {
    width: 100%;
    padding: 14px 16px;
    background: #fff;
    border: 2px solid rgba(0, 0, 0, 0.06);
    border-radius: 12px;
    font-family: 'Shabnam-Bold-P', Tahoma, sans-serif;
    font-size: 13px;
    color: #1F2937;
    outline: none;
    resize: vertical;
    line-height: 1.9;
    transition: all 0.25s ease;
    min-height: 140px;
}
.tvk-reply-textarea:focus {
    border-color: var(--rw-primary);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.08);
}
.tvk-reply-hint {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    font-size: 11px;
    color: #9CA3AF;
}
.tvk-reply-hint i { font-size: 12px; color: var(--rw-primary); }
.tvk-reply-hint strong { color: #4B5563; }

.tvk-reply-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.tvk-reply-actions .stk-btn { min-width: 160px; }

/* ═══ Closed Notice ═══ */
.tvk-closed-notice {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 22px;
    background: rgba(107, 114, 128, 0.08);
    border-radius: 14px;
    border-right: 4px solid #6B7280;
    flex-wrap: wrap;
}
.tvk-closed-notice > i {
    font-size: 26px;
    color: #6B7280;
    flex-shrink: 0;
}
.tvk-closed-notice > div {
    flex: 1;
    min-width: 200px;
}
.tvk-closed-notice strong {
    display: block;
    font-size: 14px;
    color: #1E3A8A;
    margin-bottom: 4px;
}
.tvk-closed-notice span {
    font-size: 12px;
    color: #6B7280;
    line-height: 1.8;
}

/* ═══════════════════════════════════════════════════════════
   Responsive
   ═══════════════════════════════════════════════════════════ */

@media (max-width: 900px) {
    .mtk-stats { grid-template-columns: repeat(2, 1fr); }
    .mtk-card { grid-template-columns: 1fr auto; }
    .mtk-card-status-col {
        grid-column: 1 / -1;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        width: 100%;
    }
    .mtk-card-arrow { display: none; }
}

@media (max-width: 700px) {
    .mtk-search-box { padding: 20px; }
    .mtk-search-wrap { padding: 4px 4px 4px 14px; }
    .mtk-search-btn span { display: none; }
    .mtk-search-btn { padding: 12px 16px; }

    .mtk-stats { grid-template-columns: 1fr 1fr; gap: 10px; }
    .mtk-stat-card { padding: 14px; gap: 10px; }
    .mtk-stat-icon { width: 42px; height: 42px; font-size: 18px; }
    .mtk-stat-value { font-size: 20px; }

    .mtk-card { padding: 16px; }
    .mtk-card-dates { gap: 10px; font-size: 10px; }
    .mtk-card-title { font-size: 14px; }

    .tvk-header-card { padding: 20px; }
    .tvk-header-icon { width: 50px; height: 50px; font-size: 22px; }
    .tvk-subject { font-size: 18px; }
    .tvk-header-top { flex-direction: column; }
    .tvk-header-badges { width: 100%; }

    .tvk-conversation-header { padding: 16px 20px; }
    .tvk-conversation-body { padding: 20px; }
    .tvk-conversation-title { font-size: 16px; }

    .tvk-bubble { max-width: calc(100% - 60px); padding: 12px 14px; }
    .tvk-bubble-avatar { width: 38px; height: 38px; font-size: 15px; }
    .tvk-bubble-body { font-size: 12px; }

    .tvk-reply-form { padding: 16px; }
    .tvk-reply-actions { flex-direction: column; }
    .tvk-reply-actions .stk-btn { width: 100%; }

    .tvk-closed-notice { flex-direction: column; text-align: center; }
    .tvk-closed-notice .stk-btn { width: 100%; }
    .tvk-closed-notice .stk-btn i { margin-left: 8px; }
}