/* استایل مدرن و چشم‌نواز صفحه پیگیری خرید */
.qt-page-wrapper { 
    width: calc(100% - 24px); 
    max-width: 1076px; 
    margin: 80px auto 35px; 
    background: #fff; 
    border-radius: 15px; 
    box-shadow: 0 4px 15px rgba(0,0,0,0.05); 
    padding: 25px; 
    border: 1px solid #edf0f2; 
    box-sizing: border-box;
    direction: rtl;
    text-align: right;
}

/* هدر یکپارچه کادر */
.qt-card-header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding-bottom: 15px;
    margin-bottom: 25px;
    border-bottom: 1px solid #f0f4f8;
}

.qt-card-icon {
    color: #003366;
    flex-shrink: 0;
    margin-top: 3px;
}

.qt-card-header-text h1 {
    font-size: 20px;
    color: #003366;
    font-weight: bold;
    margin: 0 0 8px 0;
}

.qt-card-header-text p {
    color: #64748b !important;
    font-size: 14px !important;
    font-weight: normal !important;
    margin: 0 !important;
    line-height: 1.6 !important;
    text-align: right !important;
}

/* متن راهنما بالای فرم */
.qt-instructions-text {
    text-align: center;
    font-weight: bold;
    font-size: 14px;
    color: #2e7d32;
    margin-bottom: 20px;
}

/* پانویس صفحه */
.qt-footer-note {
    text-align: center;
    margin-top: 25px;
    border-top: 1px solid #eee;
    padding-top: 15px;
    font-size: 12px;
    color: #666;
}

/* کادرهای هشدار */
.qt-alert { 
    padding: 16px 20px; 
    border-radius: 10px; 
    margin-bottom: 20px; 
    font-size: 14px; 
    line-height: 1.8; 
    text-align: right; 
}
.qt-alert-info { background: #f0f7ff; color: #0056b3; border: 1px solid #d0e3ff; text-align: center; }
.qt-alert-success { background: #e6f4ea; color: #137333; border: 1px solid #ceead6; }
.qt-alert-danger { background: #fce8e6; color: #c5221f; border: 1px solid #fad2cf; text-align: center; }
.qt-alert-warning { 
    background: #fcf8e3; 
    color: #8a6d3b; 
    border: 1px solid #faebcc; 
    border-right: 4px solid #f0ad4e; 
}

/* فرم ورود شماره */
.qt-form-group { display: flex; flex-direction: column; gap: 15px; max-width: 350px; margin: 0 auto 20px; }
.qt-input { padding: 12px 15px; border: 1px solid #d1d5db; border-radius: 8px; font-size: 15px; text-align: center; direction: ltr; outline: none; transition: all 0.3s; background: #fafafa; }
.qt-input:focus { border-color: #0066cc; background: #fff; box-shadow: 0 0 0 3px rgba(0,102,204,0.1); }
.qt-btn { background: #16a34a; color: #fff; border: none; padding: 12px 20px; border-radius: 8px; font-size: 15px; font-weight: 600; cursor: pointer; transition: background 0.3s; width: 100%; }
.qt-btn:hover { background: #15803d; }
.qt-btn-blue { background: #0284c7; }
.qt-btn-blue:hover { background: #0369a1; }
.qt-btn-inline { display: inline-block; width: auto; padding: 6px 15px; }

/* لینک‌ها */
.qt-link-refund {
    color: #0066cc;
    text-decoration: underline;
    font-weight: bold;
    cursor: pointer;
}

/* جدول مدرن */
.qt-table-wrapper { 
    overflow-x: auto; 
    margin-top: 25px; 
    border-radius: 10px; 
    border: 1px solid #eef2f5; 
    background: #fff; 
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
}
.qt-table-wrapper:active {
    cursor: grabbing;
}
.qt-table { width: 100%; border-collapse: collapse; min-width: 960px; font-size: 13px; color: #374151; }
.qt-table th, .qt-table td { padding: 16px 10px; text-align: center; border-bottom: 1px solid #f3f4f6; }
.qt-table th { background: #f9fafb; font-weight: 700; color: #4b5563; white-space: nowrap; border-bottom: 2px solid #e5e7eb; }
.qt-table tr:last-child td { border-bottom: none; }
.qt-table tr:hover { background-color: #f9fafb; }

/* بج‌های وضعیت */
.qt-badge { display: inline-flex; align-items: center; justify-content: center; padding: 6px 12px; border-radius: 20px; font-size: 12px; font-weight: 600; }
.qt-badge-success { background: #e6f4ea; color: #137333; }
.qt-badge-fail { background: #fce8e6; color: #c5221f; }

/* کادر مخصوص کد بلیط موفق */
.qt-ticket-box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 12px;
    border-radius: 8px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #16a34a;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* استایل شماره تلفن پشتیبانی بانک */
.qt-support-phone {
    display: inline-block;
    direction: ltr;
    padding: 4px 10px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1d4ed8;
    border-radius: 6px;
    font-weight: 600;
    font-size: 13px;
    text-decoration: none;
    transition: all 0.2s;
}
.qt-support-phone:hover {
    background: #dbeafe;
    color: #1e40af;
}

/* پاپ‌آپ راهنمای بازگشت وجه */
.rf-modal-overlay { display: none; position: fixed; z-index: 999999; left: 0; top: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.5); backdrop-filter: blur(2px); }
.rf-modal-content { background-color: #ffffff; margin: 12% auto; padding: 25px; border-radius: 12px; width: 88%; max-width: 450px; text-align: right; direction: rtl; box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2); position: relative; }
.rf-close-btn { color: #aaa; float: left; font-size: 26px; font-weight: bold; cursor: pointer; line-height: 20px; }
.rf-close-btn:hover { color: #000; }
.rf-modal-title { color: #0284c7; margin-top: 0; font-size: 16px; border-bottom: 1px solid #f3f4f6; padding-bottom: 12px; font-weight: 700; }
.rf-answer-box { background: #f9fafb; padding: 15px; border-right: 4px solid #f59e0b; border-radius: 6px; margin: 20px 0 15px 0; line-height: 26px; font-size: 13.5px; color: #4b5563; border: 1px solid #f3f4f6; }
.rf-ok-btn { display: block; width: 100%; background-color: #0284c7; color: white; border: none; padding: 10px; border-radius: 6px; cursor: pointer; font-weight: 600; font-size: 14px; margin-top: 15px; transition: background 0.2s; }
.rf-ok-btn:hover { background-color: #0369a1; }

@media (max-width: 768px) {
    .qt-page-wrapper { margin-top: 75px; padding: 18px; }
    .qt-card-header-text h1 { font-size: 18px; }
    .rf-modal-content { margin: 30% auto; padding: 20px; } 
}