/* Orso Funding — ISO portal stylesheet (mirrors portal, same brand) */
.icon { display: inline-block; width: 1em; height: 1em; vertical-align: -0.125em; fill: currentColor; }
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #091A11 0%, #0F2E25 50%, #091A11 100%);
    min-height: 100vh; color: #1e293b;
}
.hidden { display: none !important; }

.step-progress { display: flex; justify-content: center; gap: 8px; padding: 24px 20px 0; }
.step-dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,0.15); transition: all 0.3s; }
.step-dot.active { background: #C9A84C; transform: scale(1.3); }
.step-dot.done { background: #10b981; }

.card-view { display: flex; align-items: center; justify-content: center; min-height: calc(100vh - 80px); padding: 40px 20px; }
.card { background: #fff; border-radius: 16px; box-shadow: 0 25px 60px rgba(0,0,0,0.4); max-width: 520px; width: 100%; overflow: hidden; }
.card-gold-border { border-top: 4px solid #C9A84C; }
.card-body { padding: 48px 40px; }

.bc-logo { text-align: center; margin-bottom: 28px; padding-bottom: 20px; border-bottom: 1px solid #e2e8f0; }
.bc-logo-img { height: 52px; max-width: 220px; object-fit: contain; }
.bc-logo-sub { font-size: 11px; color: #94a3b8; letter-spacing: 3px; text-transform: uppercase; margin-top: 4px; }

.card-heading { font-family: 'Playfair Display', serif; font-size: 26px; font-weight: 700; color: #0f172a; text-align: center; margin-bottom: 8px; }
.card-subtext { font-size: 14px; color: #64748b; text-align: center; margin-bottom: 28px; line-height: 1.6; }

.status-badge { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 20px; font-size: 12px; font-weight: 600; margin-bottom: 20px; }
.badge-amber { background: #fef3c7; color: #92400e; border: 1px solid #fcd34d; }
.badge-blue  { background: #dbeafe; color: #1e40af; border: 1px solid #93c5fd; }
.badge-green { background: #d1fae5; color: #065f46; border: 1px solid #6ee7b7; }

.info-box { background: #f0fdf4; border-left: 4px solid #1B4D3E; padding: 14px 16px; border-radius: 0 8px 8px 0; font-size: 13px; color: #166534; line-height: 1.6; margin-bottom: 24px; }

.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; color: #475569; margin-bottom: 6px; }
.form-input { width: 100%; padding: 14px 16px; border: 2px solid #e2e8f0; border-radius: 10px; font-size: 15px; font-family: inherit; transition: all 0.2s; background: #fff; }
.form-input:focus { outline: none; border-color: #C9A84C; box-shadow: 0 0 0 3px rgba(201,168,76,0.15); }

.btn-gold { width: 100%; padding: 15px; background: linear-gradient(135deg, #C9A84C 0%, #A88A35 100%); color: #fff; border: none; border-radius: 10px; font-size: 15px; font-weight: 700; font-family: inherit; cursor: pointer; transition: all 0.3s; box-shadow: 0 4px 12px rgba(201,168,76,0.3); }
.btn-gold:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(201,168,76,0.4); }
.btn-gold:disabled { background: #cbd5e1; cursor: not-allowed; box-shadow: none; transform: none; }
.btn-outline { padding: 13px 24px; background: #fff; color: #C9A84C; border: 2px solid #C9A84C; border-radius: 10px; font-size: 14px; font-weight: 600; font-family: inherit; cursor: pointer; transition: all 0.2s; }
.btn-outline:hover { background: #C9A84C; color: #fff; }
.btn-ghost { padding: 10px 18px; background: transparent; color: #94a3b8; border: 1px solid #e2e8f0; border-radius: 8px; font-size: 13px; font-weight: 600; font-family: inherit; cursor: pointer; transition: all 0.2s; }
.btn-ghost:hover { background: #f8fafc; color: #475569; }

.error-msg { background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; padding: 10px 14px; border-radius: 8px; font-size: 13px; margin-bottom: 16px; display: none; }
.error-msg.show { display: block; animation: fadeIn 0.3s; }

.security-footer { text-align: center; margin-top: 28px; padding-top: 20px; border-top: 1px solid #e2e8f0; display: flex; align-items: center; justify-content: center; gap: 8px; color: #94a3b8; font-size: 12px; }

.otp-container { display: flex; justify-content: center; gap: 10px; margin-bottom: 24px; }
.otp-input { width: 52px; height: 60px; text-align: center; font-size: 24px; font-weight: 700; border: 2px solid #e2e8f0; border-radius: 10px; font-family: inherit; transition: all 0.2s; }
.otp-input:focus { outline: none; border-color: #C9A84C; box-shadow: 0 0 0 3px rgba(201,168,76,0.15); }
.resend-link { text-align: center; margin-bottom: 24px; }
.resend-link a { color: #C9A84C; font-size: 13px; font-weight: 600; text-decoration: none; cursor: pointer; }
.resend-link a:hover { text-decoration: underline; }

.detail-grid { background: #f8fafc; padding: 24px; border-radius: 10px; margin-bottom: 24px; }
.detail-row { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid #e2e8f0; }
.detail-row:last-child { border-bottom: none; }
.detail-label { font-size: 13px; color: #94a3b8; }
.detail-value { font-size: 13px; color: #0f172a; font-weight: 600; }

.nf-icon { width: 80px; height: 80px; background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; box-shadow: 0 8px 24px rgba(239,68,68,0.3); }

.spinner { display: inline-block; width: 20px; height: 20px; border: 3px solid rgba(255,255,255,0.3); border-top-color: #fff; border-radius: 50%; animation: spin 0.7s linear infinite; margin-right: 8px; vertical-align: middle; }
.spinner-lg { display: inline-block; width: 40px; height: 40px; border: 4px solid #e2e8f0; border-top-color: #C9A84C; border-radius: 50%; animation: spin 0.7s linear infinite; margin-bottom: 16px; }

@keyframes fadeIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes spin { to { transform: rotate(360deg); } }
.fade-in { animation: fadeIn 0.4s ease; }

/* ── Wide portal ──────────────────────────────── */
.wide-portal { max-width: 980px; margin: 0 auto; background: #fff; border-radius: 16px; box-shadow: 0 25px 60px rgba(0,0,0,0.4); overflow: hidden; }
.portal-header { background: linear-gradient(135deg, #0F2E25 0%, #1B4D3E 100%); color: #fff; padding: 24px 32px; border-bottom: 4px solid #C9A84C; }
.portal-header-inner { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; flex-wrap: wrap; }
.portal-header h1 { font-family: 'Playfair Display', serif; font-size: 24px; font-weight: 700; margin-bottom: 4px; }
.portal-header p { font-size: 13px; opacity: 0.8; }
.portal-header-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.portal-header .btn-ghost { color: #cbd5e1; border-color: rgba(255,255,255,0.2); background: transparent; }
.portal-header .btn-ghost:hover { background: rgba(255,255,255,0.08); color: #fff; }
.portal-body { padding: 28px 32px 36px; min-height: 240px; }
.portal-loading { text-align: center; padding: 60px 20px; color: #64748b; }
.portal-empty { text-align: center; padding: 50px 20px; color: #64748b; border: 2px dashed #e2e8f0; border-radius: 10px; }

.deal-card { background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; padding: 20px 22px; margin-bottom: 14px; cursor: pointer; transition: all 0.2s; display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: center; }
.deal-card:hover { border-color: #C9A84C; box-shadow: 0 6px 20px rgba(201,168,76,0.15); transform: translateY(-1px); }
.deal-card-main { min-width: 0; }
.deal-card-heading { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }
.deal-card-id { font-family: 'Playfair Display', serif; font-size: 18px; font-weight: 700; color: #0f172a; }
.deal-card-date { font-size: 12px; color: #94a3b8; }
.deal-card-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 12px 20px; }
.deal-card-stat-label { font-size: 11px; color: #94a3b8; text-transform: uppercase; letter-spacing: 0.5px; font-weight: 600; margin-bottom: 2px; }
.deal-card-stat-value { font-size: 15px; color: #0f172a; font-weight: 700; }
.deal-card-stat-value.muted { color: #64748b; font-weight: 500; }
.deal-card-arrow { font-size: 22px; color: #cbd5e1; flex-shrink: 0; }
.deal-card:hover .deal-card-arrow { color: #C9A84C; }
.status-badge.badge-sm { font-size: 10px; padding: 3px 10px; margin-bottom: 0; }

.section-heading { font-family: 'Playfair Display', serif; font-size: 18px; font-weight: 700; color: #0f172a; margin: 24px 0 12px; display: flex; align-items: center; gap: 10px; }
.section-heading::before { content: ''; width: 4px; height: 18px; background: #C9A84C; border-radius: 2px; }

.progress-wrap { background: #f8fafc; padding: 18px 22px; border-radius: 10px; margin-bottom: 16px; }
.progress-label { display: flex; justify-content: space-between; font-size: 13px; font-weight: 600; color: #475569; margin-bottom: 8px; }
.progress-label span:last-child { color: #C9A84C; }
.progress-bar { width: 100%; height: 10px; background: #e2e8f0; border-radius: 5px; overflow: hidden; }
.progress-bar-fill { height: 100%; background: linear-gradient(90deg, #C9A84C, #A88A35); border-radius: 5px; transition: width 0.4s ease; width: 0%; }

.data-table-wrap { border: 1px solid #e2e8f0; border-radius: 10px; overflow: hidden; margin-bottom: 8px; background: #fff; }
.data-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.data-table thead { background: #f8fafc; }
.data-table th { text-align: left; padding: 12px 16px; font-size: 11px; text-transform: uppercase; letter-spacing: 0.5px; color: #64748b; font-weight: 700; border-bottom: 1px solid #e2e8f0; }
.data-table td { padding: 12px 16px; border-bottom: 1px solid #f1f5f9; color: #1e293b; }
.data-table tbody tr:last-child td { border-bottom: none; }
.data-table tbody tr:hover { background: #f8fafc; }
.data-table td.num { font-variant-numeric: tabular-nums; font-weight: 600; }
.data-table td.muted { color: #64748b; }
.data-empty { text-align: center; padding: 28px 16px; color: #94a3b8; font-size: 13px; }

@media (max-width: 640px) {
    .portal-header { padding: 18px 20px; }
    .portal-header h1 { font-size: 20px; }
    .portal-body { padding: 20px; }
    .deal-card { grid-template-columns: 1fr; }
    .deal-card-arrow { display: none; }
}
@media (max-width: 580px) {
    .card-body { padding: 32px 24px; }
    .otp-input { width: 44px; height: 52px; font-size: 20px; }
    .card-heading { font-size: 22px; }
}
