/* IBFT Styles (HSBC-like) */
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: Arial, Helvetica, sans-serif; background: #f6f6f6; color: #222; }

/* Header */
.header { background: #fff; color: #000; position: sticky; top: 0; z-index: 10; border-bottom: 1px solid #e5e5e5; }
.header-container { max-width: 1200px; margin: 0 auto; padding: 0 20px; height: 60px; display: flex; align-items: center; justify-content: space-between; }
.logo img { height: 28px; width: auto; display: block; }
.nav-menu { display: flex; gap: 24px; }
.nav-link { color: #000; text-decoration: none; font-size: 14px; }
.nav-link:hover { color: #333; }
.mobile-menu-toggle { display: none; background: none; border: 0; color: #000; font-size: 20px; }

/* Main containers */
.main-content, .edit-form-container { max-width: 1200px; margin: 0 auto; padding: 30px 20px; }
.card { background: #fff; border: 1px solid #e5e5e5; border-radius: 6px; padding: 18px; }
.section-header { font-size: 18px; font-weight: 700; color: #333; margin: 10px 0 12px; }

/* Transfer summary layout (2x2) */
.transfer-grid { display: grid; grid-template-columns: 1fr 1fr; grid-auto-rows: minmax(150px, auto); gap: 16px; }
.cell { border: 1px solid #e5e5e5; border-radius: 6px; padding: 14px; background: #fff; }
.field-label { font-size: 12px; color: #666; margin-bottom: 6px; font-weight: 600; }
.field-value { font-size: 14px; color: #111; font-weight: 700; }
.amount-value { font-size: 16px; font-weight: 800; }

/* Progress bar */
.status-wrap { margin-top: 10px; }
.progress-bar { height: 6px; background: #e0e0e0; border-radius: 4px; overflow: hidden; margin: 6px 0; }
.progress-fill { height: 100%; background: #2e7d32; width: 0; transition: width .3s ease; }
.status-row { display: flex; justify-content: space-between; font-size: 12px; color: #666; }

/* Credit score */
.credit-score { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.field-label .warn { vertical-align: middle; margin-left: 6px; }
.warn { width: 16px; height: 16px; background: #d32f2f; color: #fff; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 800; }
.score-ring { width: 56px; height: 56px; }
.ring-bg { fill: none; stroke: #e0e0e0; stroke-width: 4; }
.ring-progress { fill: none; stroke: #2e7d32; stroke-width: 4; stroke-linecap: round; transform-origin: 50% 50%; transform-box: fill-box; }
.ring-progress.red { stroke: #d32f2f; }
.ring-progress.amber { stroke: #ff9800; }
.ring-progress.green { stroke: #2e7d32; }
.ring-text { fill: #333; font-size: 9px; font-weight: 700; text-anchor: middle; dominant-baseline: middle; }
@keyframes spin360 { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
.spin { animation: spin360 1.2s linear infinite; }

/* Recipient */
.recipient-title { margin: 16px 0 10px; padding-left: 2px; font-size: 18px; font-weight: 700; color: #333; }
.recipient-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.recipient-cell { background: #fff; border: 1px solid #e5e5e5; border-radius: 6px; padding: 14px; }
.recipient-cell.full { grid-column: 1 / -1; }
.code-prefix { font-size: 14px; color: #333; margin-bottom: 6px; }
.code-input { width: 100%; border: 1px solid #ccc; border-radius: 4px; padding: 9px 12px; font-size: 14px; }
.note { font-size: 12px; color: #666; }

.action-section { text-align: center; margin-top: 18px; }
.edit-link { background: #db0011; color: #fff; padding: 10px 22px; border-radius: 4px; text-decoration: none; font-weight: 700; display: inline-block; }

/* Form page */
.form-card { background: #fff; border: 1px solid #e5e5e5; border-radius: 6px; padding: 22px; }
.form-title { text-align: center; font-size: 22px; margin-bottom: 18px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; }
.form-group label { font-size: 12px; color: #666; margin-bottom: 6px; font-weight: 600; }
.form-group input { padding: 10px 12px; border: 1px solid #ccc; border-radius: 4px; font-size: 14px; }
.submit-btn { margin-top: 16px; display: inline-block; background: #db0011; color: #fff; padding: 10px 18px; border-radius: 4px; border: 0; font-weight: 700; cursor: pointer; }

@media (max-width: 768px) {
  .nav-menu { display: none; }
  .mobile-menu-toggle { display: block; }
  .transfer-grid, .recipient-grid, .form-grid { grid-template-columns: 1fr; }
}


