/* Ödeme Takip Sistemi - Ortak Stiller */
* { box-sizing: border-box; margin: 0; padding: 0; font-family: 'Inter', sans-serif; }
:root {
    --primary: #2b3542;
    --primary-light: #48607c;
    --accent: #ffe800;
    --accent-hover: #e6cf00;
    --danger: #d32f2f;
    --success: #38a169;
    --warning: #f59e0b;
    --text-main: #2d3748;
    --text-muted: #718096;
    --bg-body: #f7fafc;
    --border-color: #e2e8f0;
    --blue-link: #2563eb;
}

body { background-color: var(--bg-body); color: var(--text-main); -webkit-font-smoothing: antialiased; }

.sponsor-banner { background-color: #e50000; color: white; text-align: center; padding: 10px; font-size: 13px; font-weight: 600; letter-spacing: 0.3px; border-bottom: 1px solid #cc0000; }
.sponsor-banner span { font-weight: 800; }

.desktop-header { background-color: var(--primary); height: 70px; display: flex; align-items: center; justify-content: center; padding: 0 20px; box-shadow: 0 2px 10px rgba(0,0,0,0.05); }
.header-container { width: 100%; max-width: 850px; display: flex; align-items: center; justify-content: space-between; }
.logo-box { background-color: var(--accent); padding: 8px 16px; border-radius: 6px; font-weight: 800; font-size: 20px; color: #000; letter-spacing: -0.5px; text-decoration: none; display: inline-flex; align-items: center; transition: transform 0.2s; }
.logo-box:hover { transform: translateY(-1px); }
.logo-box span { font-weight: 400; opacity: 0.8; }
.header-right { display: flex; align-items: center; color: #fff; gap: 8px; font-size: 13px; font-weight: 500; opacity: 0.9; }
.header-right i { color: #4caf50; font-size: 16px; }

.portal-bar { background-color: var(--primary-light); color: #fff; text-align: center; padding: 12px 20px; font-size: 14px; font-weight: 600; letter-spacing: 0.3px; box-shadow: inset 0 -2px 0 rgba(0,0,0,0.05); }

.main-content { max-width: 850px; margin: 30px auto; padding: 0 20px; }

.step-container { display: flex; justify-content: space-between; align-items: center; background-color: #fff; padding: 24px 40px; border: 1px solid var(--border-color); border-radius: 12px; margin-bottom: 25px; position: relative; box-shadow: 0 1px 3px rgba(0,0,0,0.02); }
.step-line { position: absolute; top: 35px; left: 60px; right: 60px; height: 2px; background-color: var(--border-color); z-index: 1; }
.step-line-fill { position: absolute; top: 35px; left: 60px; height: 2px; background-color: var(--accent); z-index: 2; }
.step-item { display: flex; flex-direction: column; align-items: center; font-size: 13px; color: var(--text-muted); font-weight: 500; z-index: 3; position: relative; gap: 6px; flex: 1; background: #fff; }
.step-item.active { color: var(--primary-light); font-weight: 700; }
.step-item.completed { color: var(--primary-light); font-weight: 600; }
.step-item.rejected { color: var(--warning); font-weight: 700; }
.step-number { width: 24px; height: 24px; border-radius: 50%; background-color: var(--border-color); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; }
.step-item.active .step-number { background-color: var(--primary-light); box-shadow: 0 0 0 4px rgba(72, 96, 124, 0.15); }
.step-item.completed .step-number { background-color: var(--primary-light); }
.step-item.active .step-number:not(:has(i)) { background-color: var(--accent); color: #000; box-shadow: 0 0 0 4px rgba(255, 232, 0, 0.25); }
.step-item.rejected .step-number { background-color: var(--warning); box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.25); }

.info-box { padding: 22px; background-color: #fffdf5; border: 1px solid #fef08a; border-radius: 12px; line-height: 1.6; font-size: 14px; color: #4a5568; margin-bottom: 25px; }
.info-box p { margin-bottom: 12px; text-align: justify; }
.info-box p:last-child { margin-bottom: 0; }

.section-title { padding: 0 4px 10px; font-size: 14px; font-weight: 700; color: var(--primary-light); letter-spacing: 0.5px; text-transform: uppercase; display: flex; align-items: center; gap: 8px; }
.details-panel { background: #fff; border: 1px solid var(--border-color); border-radius: 12px; padding: 8px 24px; margin-bottom: 25px; box-shadow: 0 4px 6px -1px rgba(0,0,0,0.01); }
.price-row { display: flex; justify-content: space-between; font-size: 14px; padding: 16px 0; border-bottom: 1px solid var(--border-color); align-items: center; }
.price-row:last-child { border-bottom: none; }
.price-row span { color: var(--text-muted); font-weight: 500; }
.price-row strong { color: var(--text-main); font-weight: 600; }
.price-row.total { border-top: 2px dashed var(--border-color); margin-top: 4px; padding-top: 18px; }
.blue-amount { color: var(--primary-light); font-size: 20px; font-weight: 800; }

.form-group { display: flex; align-items: center; border-bottom: 1px solid var(--border-color); padding: 16px 0; }
.form-group:last-child { border-bottom: none; }
.form-group label { width: 220px; font-size: 14px; font-weight: 600; }
.form-group input { flex: 1; border: 1px solid transparent; font-size: 14px; outline: none; padding: 8px 12px; background: #f8fafc; border-radius: 6px; transition: all 0.2s; width: 100%; }
.form-group input:focus { background: #fff; border-color: var(--primary-light); box-shadow: 0 0 0 3px rgba(72, 96, 124, 0.1); }

.submit-btn { display: block; width: 100%; max-width: 340px; margin: 35px auto; background-color: var(--accent); color: #1a202c; padding: 16px; border-radius: 8px; font-size: 15px; font-weight: 700; text-align: center; border: none; cursor: pointer; box-shadow: 0 4px 6px -1px rgba(255,232,0,0.2); transition: all 0.15s; }
.submit-btn:hover { background-color: var(--accent-hover); transform: translateY(-1px); }
#receiptForm .submit-btn { max-width: 100%; margin: 30px 0 15px; font-size: 16px; }

.security-badges { display: flex; justify-content: center; gap: 40px; padding: 20px; background: #fff; border: 1px solid var(--border-color); border-radius: 12px; margin-bottom: 35px; }
.badge-item { font-size: 13px; display: flex; align-items: center; gap: 8px; font-weight: 600; }
.badge-item i { color: var(--success); }

.status-badge { display: flex; align-items: center; justify-content: center; gap: 8px; background: #f0fdf4; border: 1px solid #bbf7d0; color: #166534; padding: 12px; border-radius: 30px; font-size: 14px; font-weight: 700; margin-bottom: 15px; }
.meta-info-row { display: flex; justify-content: space-between; align-items: center; font-size: 13px; margin-bottom: 20px; padding: 0 4px; flex-wrap: wrap; gap: 8px; }
.meta-info-row .info-right { color: var(--success); font-weight: 600; display: flex; align-items: center; gap: 6px; }

.timer-box { padding: 18px 22px; background: #fff5f5; border: 1px solid #feb2b2; border-radius: 12px; font-size: 14px; color: #9b2c2c; margin-bottom: 25px; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.timer-box p { font-weight: 600; }
.timer-display { font-size: 24px; font-weight: 800; color: var(--danger); font-variant-numeric: tabular-nums; }

.payment-card { background: #fff; border: 1px solid var(--border-color); border-radius: 14px; padding: 24px; margin-bottom: 25px; }
.info-block { margin-bottom: 20px; }
.info-block:last-child { margin-bottom: 0; }
.info-block label { display: block; font-size: 11px; font-weight: 700; color: var(--text-muted); letter-spacing: 0.8px; text-transform: uppercase; margin-bottom: 8px; }
.amount-box { background: #fffdf5; border: 1px solid #fef08a; padding: 16px; border-radius: 8px; font-size: 24px; font-weight: 800; color: #b45309; }
.bank-display { display: flex; align-items: center; border: 1px solid var(--border-color); padding: 12px 16px; border-radius: 8px; height: 56px; }
.bank-logo { max-width: 100%; height: 24px; object-fit: contain; }

.copy-input-group { display: flex; align-items: center; border: 1px solid var(--border-color); border-radius: 8px; padding: 6px 12px; cursor: pointer; }
.copy-input-group input { flex: 1; border: none; background: transparent; padding: 8px 4px; font-size: 15px; font-weight: 700; outline: none; cursor: pointer; }
.copy-btn { background: #f1f5f9; border: none; color: #475569; font-size: 13px; font-weight: 600; padding: 8px 16px; border-radius: 6px; cursor: pointer; white-space: nowrap; }
.copy-btn:hover { background: #e2e8f0; }

.file-upload-zone { border: 2px dashed #cbd5e1; background: #f8fafc; border-radius: 14px; padding: 30px 20px; text-align: center; cursor: pointer; position: relative; transition: all 0.2s; }
.file-upload-zone:hover, .file-upload-zone.dragover { border-color: var(--primary-light); background: #f1f5f9; }
.file-upload-zone i { font-size: 32px; color: #94a3b8; margin-bottom: 12px; display: block; }
.file-upload-zone .title { font-size: 14px; font-weight: 700; margin-bottom: 4px; }
.file-upload-zone .subtitle { font-size: 12px; color: var(--text-muted); }
.file-upload-zone .file-name { font-size: 13px; color: var(--success); margin-top: 10px; font-weight: 600; }
.file-upload-zone input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }

.loading-card { background: #fff; border: 1px solid var(--border-color); border-radius: 14px; padding: 50px 24px; text-align: center; margin-bottom: 25px; }
.spinner-container { position: relative; width: 90px; height: 90px; margin: 0 auto 25px; display: flex; align-items: center; justify-content: center; }
.main-spinner { width: 100%; height: 100%; border: 4px solid #f1f5f9; border-top: 4px solid var(--blue-link); border-radius: 50%; animation: spin 1s linear infinite; position: absolute; }
.spinner-container i { font-size: 28px; color: var(--blue-link); }
.loading-card h2 { font-size: 20px; font-weight: 800; margin-bottom: 12px; }
.loading-card p { font-size: 14px; color: var(--text-muted); line-height: 1.6; max-width: 540px; margin: 0 auto 25px; }

.summary-table { background: #f8fafc; border: 1px solid var(--border-color); border-radius: 10px; max-width: 500px; margin: 0 auto; overflow: hidden; }
.summary-row { display: flex; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--border-color); font-size: 13.5px; }
.summary-row:last-child { border-bottom: none; }
.summary-label { color: var(--text-muted); font-weight: 500; }
.summary-value { font-weight: 700; text-align: right; }
.summary-value.status-text { color: var(--blue-link); display: inline-flex; align-items: center; gap: 6px; }

.info-notice-box { display: flex; gap: 12px; background: #eff6ff; border: 1px solid #bfdbfe; color: #1e40af; padding: 16px; border-radius: 10px; font-size: 13.5px; line-height: 1.5; margin-bottom: 25px; }
.refresh-notice { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 13px; color: var(--text-muted); margin: 20px 0; }

.ssl-badge { display: flex; align-items: center; justify-content: center; gap: 8px; background: #f0fdf4; border: 1px solid #bbf7d0; color: #166534; padding: 10px; border-radius: 30px; font-size: 13px; font-weight: 700; margin-bottom: 15px; }
.reject-card { background: #fef2f2; border: 1px solid #fca5a5; border-radius: 14px; padding: 24px; margin-bottom: 20px; }
.reject-title { font-size: 16px; font-weight: 700; color: #991b1b; margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.reject-text { font-size: 14px; color: #7f1d1d; line-height: 1.6; }

.status-card { background: #fff; border: 1px solid var(--border-color); border-radius: 14px; padding: 16px; margin-bottom: 20px; }
.status-row { display: flex; justify-content: space-between; align-items: center; padding: 14px 4px; border-bottom: 1px solid var(--border-color); font-size: 14px; }
.status-row:last-child { border-bottom: none; }
.status-label { color: var(--text-muted); font-weight: 500; }
.status-value { font-weight: 700; }
.badge-hold { background: #fef3c7; color: #92400e; padding: 4px 12px; border-radius: 6px; font-size: 12.5px; }
.text-blue { color: var(--blue-link); }

.timeout-bar { display: flex; justify-content: space-between; align-items: center; background: #0f172a; color: #fff; padding: 14px 18px; border-radius: 8px; font-size: 14px; margin-bottom: 20px; }
.timeout-title { color: #94a3b8; font-weight: 500; }
.timeout-timer { font-size: 16px; font-weight: 800; color: var(--accent); font-variant-numeric: tabular-nums; }

.contact-row { display: flex; gap: 12px; margin-bottom: 25px; }
.contact-btn { flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 12px; border-radius: 8px; font-size: 14px; font-weight: 700; text-decoration: none; border: 1px solid var(--border-color); transition: background 0.15s; }
.contact-btn.whatsapp { background: #eff6ff; color: #1e40af; border-color: #bfdbfe; }
.contact-btn.whatsapp:hover { background: #dbeafe; }

.footer { text-align: center; padding: 30px 0; font-size: 12px; color: var(--text-muted); border-top: 1px solid var(--border-color); margin-top: 30px; font-weight: 500; }

@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 768px) {
    .sponsor-banner { font-size: 12px; padding: 8px; }
    .desktop-header { height: 60px; padding: 0 16px; }
    .logo-box { font-size: 18px; padding: 6px 12px; }
    .header-right span { display: none; }
    .portal-bar { font-size: 13px; padding: 10px 16px; }
    .main-content { margin: 16px auto; padding: 0 16px; }
    .step-container { padding: 16px 12px; }
    .step-line, .step-line-fill { left: 40px; right: 40px; top: 27px; }
    .form-group { flex-direction: column; align-items: flex-start; gap: 6px; }
    .form-group label { width: 100%; }
    .submit-btn { max-width: 100%; margin: 25px 0; }
    .security-badges { flex-direction: column; gap: 12px; align-items: flex-start; }
    .timer-box { flex-direction: column; text-align: center; }
    .copy-input-group input { font-size: 13px; }
}
