/* IRX Frontend - Customer Tracking Page */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body.irx-page-body { font-family: 'Vazirmatn', Tahoma, sans-serif; background: #0f172a; min-height: 100vh; direction: rtl; }

/* Header */
.irx-page-header { background: linear-gradient(135deg, #1e3a5f 0%, #0f172a 100%); border-bottom: 1px solid rgba(255,255,255,0.08); padding: 16px 0; }
.irx-page-header-inner { max-width: 900px; margin: 0 auto; padding: 0 20px; display: flex; align-items: center; justify-content: space-between; }
.irx-page-logo { max-height: 42px; }
.irx-page-logo-text { color: #e2e8f0; font-size: 20px; font-weight: 700; }
.irx-page-header-title { color: #94a3b8; font-size: 13px; }

/* Main */
.irx-page-main { max-width: 900px; margin: 0 auto; padding: 32px 20px; min-height: calc(100vh - 130px); }

/* Steps */
.irx-step { }
.irx-step.active { display: block; }

/* Search card */
.irx-search-card { background: linear-gradient(145deg, #1e293b, #162032); border: 1px solid rgba(255,255,255,0.1); border-radius: 20px; padding: 48px 40px; text-align: center; max-width: 520px; margin: 60px auto 0; box-shadow: 0 25px 60px rgba(0,0,0,0.4); }
.irx-search-icon { font-size: 48px; margin-bottom: 16px; }
.irx-search-card h2 { color: #f1f5f9; font-size: 22px; font-weight: 700; margin-bottom: 8px; }
.irx-search-card p { color: #94a3b8; font-size: 14px; margin-bottom: 28px; }
.irx-search-form-wrap { display: flex; gap: 10px; margin-bottom: 12px; }
.irx-search-input-big { flex: 1; padding: 14px 18px; border: 2px solid rgba(255,255,255,0.1); border-radius: 12px; background: rgba(255,255,255,0.05); color: #f1f5f9; font-size: 18px; font-family: 'Vazirmatn', monospace; text-align: center; letter-spacing: 2px; transition: border-color 0.3s; }
.irx-search-input-big:focus { border-color: #3b82f6; outline: none; background: rgba(59,130,246,0.08); }
.irx-search-input-big::placeholder { color: #475569; letter-spacing: 1px; font-size: 14px; }
.irx-search-btn { padding: 14px 24px; background: linear-gradient(135deg, #2563eb, #1d4ed8); color: #fff; border: none; border-radius: 12px; font-size: 15px; font-weight: 600; cursor: pointer; transition: all 0.3s; white-space: nowrap; font-family: 'Vazirmatn', Tahoma, sans-serif; }
.irx-search-btn:hover { background: linear-gradient(135deg, #1d4ed8, #1e40af); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(37,99,235,0.4); }
.irx-search-hint { color: #475569; font-size: 12px; margin-top: 8px; }
.irx-error-msg { background: rgba(239,68,68,0.15); border: 1px solid rgba(239,68,68,0.3); color: #fca5a5; padding: 10px 14px; border-radius: 8px; font-size: 13px; margin-top: 10px; }

/* Progress bar */
.irx-progress-bar { display: flex; align-items: center; margin-bottom: 32px; background: rgba(255,255,255,0.04); border-radius: 16px; padding: 20px 24px; }
.irx-progress-step { display: flex; flex-direction: column; align-items: center; gap: 6px; flex: 1; cursor: pointer; }
.irx-progress-dot { width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,0.08); border: 2px solid rgba(255,255,255,0.15); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; color: #64748b; transition: all 0.3s; }
.irx-progress-step span { font-size: 11px; color: #475569; text-align: center; }
.irx-progress-step.active .irx-progress-dot { background: #2563eb; border-color: #2563eb; color: #fff; box-shadow: 0 0 20px rgba(37,99,235,0.5); }
.irx-progress-step.active span { color: #93c5fd; font-weight: 600; }
.irx-progress-step.done .irx-progress-dot { background: #059669; border-color: #059669; color: #fff; }
.irx-progress-line { flex: 1; height: 2px; background: rgba(255,255,255,0.08); margin: 0 8px; transition: background 0.3s; }
.irx-progress-line.done { background: #059669; }

/* Invoice header */
.irx-invoice-header-card { background: linear-gradient(135deg, #1e3a5f, #162032); border: 1px solid rgba(255,255,255,0.1); border-radius: 16px; padding: 20px 24px; display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; flex-wrap: wrap; gap: 12px; }
.irx-invoice-num-badge span { font-size: 11px; color: #94a3b8; display: block; margin-bottom: 4px; }
.irx-invoice-num-badge strong { font-size: 22px; color: #f1f5f9; letter-spacing: 2px; font-family: monospace; }
.irx-status-big { padding: 8px 20px; border-radius: 20px; font-size: 14px; font-weight: 600; }

/* Cards grid */
.irx-cards-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 24px; }
.irx-info-card { background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08); border-radius: 14px; padding: 18px; }
.irx-highlight-card { background: linear-gradient(145deg, rgba(37,99,235,0.1), rgba(139,92,246,0.08)); border-color: rgba(37,99,235,0.3); grid-column: 1/-1; }
.irx-info-card h4 { color: #94a3b8; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 12px; padding-bottom: 8px; border-bottom: 1px solid rgba(255,255,255,0.06); }
.irx-info-row { display: flex; justify-content: space-between; align-items: flex-start; padding: 6px 0; font-size: 13px; gap: 8px; }
.irx-info-row span { color: #64748b; flex-shrink: 0; }
.irx-info-row strong { color: #e2e8f0; text-align: left; word-break: break-all; }
.irx-iban { font-family: monospace; font-size: 11px; color: #93c5fd; background: rgba(59,130,246,0.1); padding: 2px 6px; border-radius: 4px; }
.irx-total-row { border-top: 2px solid rgba(37,99,235,0.3); margin-top: 6px; padding-top: 10px; }
.irx-total-amount { font-size: 20px; color: #34d399 !important; }

/* Next/Back buttons */
.irx-next-btn { display: block; width: 100%; padding: 14px; background: linear-gradient(135deg, #2563eb, #7c3aed); color: #fff; border: none; border-radius: 12px; font-size: 15px; font-weight: 600; cursor: pointer; transition: all 0.3s; font-family: 'Vazirmatn', Tahoma, sans-serif; }
.irx-next-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(37,99,235,0.4); }
.irx-back-btn { padding: 10px 20px; background: rgba(255,255,255,0.06); color: #94a3b8; border: 1px solid rgba(255,255,255,0.1); border-radius: 10px; font-size: 14px; cursor: pointer; transition: all 0.2s; font-family: 'Vazirmatn', Tahoma, sans-serif; }
.irx-back-btn:hover { background: rgba(255,255,255,0.1); color: #e2e8f0; }
.irx-tab-actions { display: flex; justify-content: space-between; align-items: center; margin-top: 24px; }

/* Tab content */
.irx-tab-content { display: none; animation: irxFadeIn 0.3s ease; }
.irx-tab-content.active { display: block; }
@keyframes irxFadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.irx-tab-header { margin-bottom: 24px; }
.irx-tab-header h3 { color: #f1f5f9; font-size: 20px; margin-bottom: 6px; }
.irx-tab-header p { color: #94a3b8; font-size: 14px; }

/* Payment methods */
.irx-payment-methods { display: grid; gap: 14px; }
.irx-pm-card { background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.1); border-radius: 14px; padding: 18px 22px; }
.irx-pm-card-header { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.irx-pm-card-icon { font-size: 22px; }
.irx-pm-card-title { color: #f1f5f9; font-size: 15px; font-weight: 700; }
.irx-pm-card-note { font-size: 11px; color: #7c3aed; background: rgba(124,58,237,0.1); padding: 2px 8px; border-radius: 10px; margin-right: auto; }
.irx-pm-card-details { color: #94a3b8; font-size: 13px; line-height: 1.8; direction: ltr; text-align: left; background: rgba(0,0,0,0.2); padding: 10px 14px; border-radius: 8px; word-break: break-all; }

/* Upload form */
.irx-upload-form-card { background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.1); border-radius: 16px; padding: 22px; margin-bottom: 20px; }
.irx-upload-form-card h4 { color: #f1f5f9; font-size: 16px; margin-bottom: 18px; }
.irx-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.irx-field { display: flex; flex-direction: column; gap: 6px; }
.irx-full { grid-column: 1/-1; }
.irx-field label { font-size: 12px; font-weight: 600; color: #64748b; }
.irx-field input, .irx-field select { padding: 11px 14px; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1); border-radius: 10px; color: #f1f5f9; font-size: 14px; font-family: 'Vazirmatn', Tahoma, sans-serif; transition: border-color 0.2s; }
.irx-field input:focus, .irx-field select:focus { border-color: #3b82f6; outline: none; background: rgba(59,130,246,0.08); }
.irx-field select option { background: #1e293b; color: #f1f5f9; }

/* Dropzone */
.irx-dropzone { border: 2px dashed rgba(255,255,255,0.15); border-radius: 12px; padding: 24px; text-align: center; cursor: pointer; transition: all 0.3s; position: relative; }
.irx-dropzone:hover, .irx-dropzone.dragover { border-color: #3b82f6; background: rgba(59,130,246,0.06); }
.irx-drop-icon { font-size: 28px; margin-bottom: 8px; }
.irx-drop-text { color: #64748b; font-size: 13px; }
#irx-file-preview { margin-top: 10px; font-size: 12px; color: #34d399; }

/* Submit button */
.irx-submit-btn { width: 100%; margin-top: 16px; padding: 14px; background: linear-gradient(135deg, #059669, #0d9488); color: #fff; border: none; border-radius: 12px; font-size: 15px; font-weight: 600; cursor: pointer; transition: all 0.3s; font-family: 'Vazirmatn', Tahoma, sans-serif; }
.irx-submit-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(5,150,105,0.4); }
.irx-submit-btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

/* Existing payments */
.irx-payment-mini { background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08); border-radius: 12px; padding: 14px 18px; margin-bottom: 10px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.irx-pm-method { font-size: 13px; color: #94a3b8; }
.irx-pm-amount { font-weight: 700; color: #f1f5f9; font-size: 15px; }
.irx-pm-track { font-size: 11px; color: #64748b; }
.irx-pm-status { padding: 3px 10px; border-radius: 10px; font-size: 11px; font-weight: 600; margin-right: auto; }
.irx-pm-file-link { font-size: 12px; color: #3b82f6; text-decoration: none; }
.irx-pm-file-link:hover { color: #60a5fa; }
.irx-pm-reject-note { font-size: 11px; color: #ef4444; width: 100%; }

/* Timeline */
.irx-status-timeline { background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08); border-radius: 16px; padding: 24px; margin-bottom: 20px; }
.irx-timeline-step { display: flex; align-items: flex-start; gap: 14px; padding: 12px 0; position: relative; }
.irx-timeline-step:not(:last-child)::after { content:''; position:absolute; right:17px; top:44px; bottom:-12px; width:2px; background:rgba(255,255,255,0.08); }
.irx-timeline-icon { width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 14px; flex-shrink: 0; }
.irx-timeline-icon.done { background: rgba(5,150,105,0.2); border: 2px solid #059669; }
.irx-timeline-icon.active { background: rgba(37,99,235,0.2); border: 2px solid #2563eb; box-shadow: 0 0 15px rgba(37,99,235,0.4); }
.irx-timeline-icon.pending { background: rgba(255,255,255,0.05); border: 2px solid rgba(255,255,255,0.1); }
.irx-timeline-body { flex: 1; }
.irx-timeline-title { color: #e2e8f0; font-size: 14px; font-weight: 600; }
.irx-timeline-desc { color: #64748b; font-size: 12px; margin-top: 2px; }

/* Receipt */
.irx-receipt-card { background: linear-gradient(135deg, rgba(5,150,105,0.15), rgba(13,148,136,0.1)); border: 1px solid rgba(5,150,105,0.3); border-radius: 16px; padding: 28px; text-align: center; margin-bottom: 20px; }
.irx-receipt-icon { font-size: 40px; margin-bottom: 12px; }
.irx-receipt-card h4 { color: #34d399; font-size: 18px; margin-bottom: 8px; }
.irx-receipt-card p { color: #94a3b8; font-size: 14px; margin-bottom: 20px; }
.irx-download-btn { display: inline-block; padding: 12px 28px; background: linear-gradient(135deg, #059669, #0d9488); color: #fff; text-decoration: none; border-radius: 10px; font-size: 14px; font-weight: 600; transition: all 0.3s; }
.irx-download-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(5,150,105,0.4); color: #fff; }
.irx-refresh-note { text-align: center; color: #64748b; font-size: 13px; }
.irx-btn-outline { margin-top: 10px; padding: 8px 20px; background: transparent; border: 1px solid rgba(255,255,255,0.2); color: #94a3b8; border-radius: 8px; cursor: pointer; font-size: 13px; font-family: 'Vazirmatn', Tahoma, sans-serif; transition: all 0.2s; }
.irx-btn-outline:hover { border-color: #3b82f6; color: #93c5fd; }

/* Footer */
.irx-page-footer { text-align: center; padding: 20px; color: #475569; font-size: 12px; border-top: 1px solid rgba(255,255,255,0.05); }

/* Responsive */
@media(max-width:640px) {
    .irx-search-form-wrap { flex-direction: column; }
    .irx-cards-grid { grid-template-columns: 1fr; }
    .irx-form-grid { grid-template-columns: 1fr; }
    .irx-highlight-card { grid-column: 1; }
    .irx-progress-step span { display: none; }
    .irx-page-main { padding: 20px 14px; }
    .irx-search-card { padding: 30px 20px; margin-top: 30px; }
}
