/* BankProof Public Styles */
:root {
    --bp-primary:     #1a56db;
    --bp-primary-dk:  #1e429f;
    --bp-success:     #057a55;
    --bp-warning:     #c27803;
    --bp-danger:      #c81e1e;
    --bp-border:      #e5e7eb;
    --bp-bg:          #f9fafb;
    --bp-card-bg:     #ffffff;
    --bp-text:        #111827;
    --bp-muted:       #6b7280;
    --bp-radius:      0.75rem;
    --bp-shadow:      0 1px 3px rgba(0,0,0,.1), 0 1px 2px rgba(0,0,0,.06);
    --bp-shadow-lg:   0 10px 15px rgba(0,0,0,.1), 0 4px 6px rgba(0,0,0,.05);
}

/* ── Wrap ──────────────────────────────────────────────────────────────────── */
.bankproof-wrap {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, sans-serif;
    color: var(--bp-text);
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
}

/* ── Cards ─────────────────────────────────────────────────────────────────── */
.bp-card {
    background: var(--bp-card-bg);
    border: 1px solid var(--bp-border);
    border-radius: var(--bp-radius);
    box-shadow: var(--bp-shadow);
    padding: 2rem;
    max-width: 560px;
    margin: 2rem auto;
}

.bp-auth-card-wide { max-width: 720px; }
.bp-result-card    { max-width: 640px; }

/* ── Header ────────────────────────────────────────────────────────────────── */
.bp-header { text-align: center; margin-bottom: 1.5rem; }
.bp-logo-badge {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 0.5rem;
}
.bp-header h2 { margin: 0 0 0.5rem; font-size: 1.5rem; }
.bp-subtitle   { color: var(--bp-muted); margin: 0; font-size: 0.9375rem; }

/* ── Forms ─────────────────────────────────────────────────────────────────── */
.bp-form        { display: flex; flex-direction: column; gap: 1rem; }
.bp-field       { display: flex; flex-direction: column; gap: 0.375rem; flex: 1; }
.bp-field label { font-weight: 600; font-size: 0.875rem; }
.bp-field-row   { display: flex; gap: 1rem; flex-wrap: wrap; }
.bp-field-row > .bp-field { min-width: 200px; }

.bp-input {
    padding: 0.625rem 0.875rem;
    border: 1px solid var(--bp-border);
    border-radius: 0.5rem;
    font-size: 0.9375rem;
    transition: border-color .15s, box-shadow .15s;
    width: 100%;
    box-sizing: border-box;
}
.bp-input:focus {
    outline: none;
    border-color: var(--bp-primary);
    box-shadow: 0 0 0 3px rgba(26,86,219,.15);
}

.bp-input-code {
    text-align: center;
    letter-spacing: 0.15em;
    font-size: 1.25rem;
    font-family: monospace;
    text-transform: uppercase;
}
.bp-input-otp {
    text-align: center;
    letter-spacing: 0.5em;
    font-size: 1.75rem;
    font-family: monospace;
}

.bp-monospace { font-family: monospace; }

.bp-field-hint    { font-size: 0.8125rem; color: var(--bp-muted); margin: 0; }
.bp-field-checkbox label { display: flex; align-items: center; gap: 0.5rem; font-weight: normal; cursor: pointer; }

/* ── Buttons ───────────────────────────────────────────────────────────────── */
.bp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    padding: 0.625rem 1.25rem;
    border-radius: 0.5rem;
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    border: 2px solid transparent;
    transition: background .15s, color .15s, border-color .15s;
    text-decoration: none;
}
.bp-btn-primary    { background: var(--bp-primary); color: #fff; }
.bp-btn-primary:hover { background: var(--bp-primary-dk); }
.bp-btn-ghost      { background: transparent; color: var(--bp-primary); border-color: var(--bp-primary); }
.bp-btn-ghost:hover { background: rgba(26,86,219,.05); }
.bp-btn-secondary  { background: var(--bp-bg); color: var(--bp-text); border-color: var(--bp-border); }
.bp-btn-full       { width: 100%; }
.bp-btn-sm         { padding: 0.375rem 0.75rem; font-size: 0.8125rem; }
.bp-btn-upgrade    { background: #fbbf24; color: #000; margin-left: 0.75rem; }

/* ── Banners ───────────────────────────────────────────────────────────────── */
.bp-banner {
    padding: 0.875rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}
.bp-banner-warning { background: #fef3c7; border: 1px solid #fcd34d; color: #92400e; }
.bp-banner-upgrade { background: #eff6ff; border: 1px solid #93c5fd; color: #1e40af; display: flex; align-items: center; }
.bp-banner-sm      { padding: 0.5rem 0.75rem; font-size: 0.8125rem; margin-bottom: 0.75rem; }

/* ── Notices ───────────────────────────────────────────────────────────────── */
.bp-error   { color: var(--bp-danger); font-size: 0.875rem; padding: 0.5rem 0.75rem; background: #fef2f2; border-radius: 0.375rem; border: 1px solid #fca5a5; }
.bp-message { font-size: 0.875rem; padding: 0.5rem 0.75rem; background: #f0fdf4; border-radius: 0.375rem; border: 1px solid #86efac; color: var(--bp-success); }
.bp-notice-error { color: var(--bp-danger); }

/* ── Partial info ──────────────────────────────────────────────────────────── */
.bp-partial-info    { margin-bottom: 1.5rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--bp-border); }
.bp-supplier-preview { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1rem; }
.bp-supplier-icon    { font-size: 2rem; }
.bp-supplier-details { display: flex; flex-direction: column; }
.bp-supplier-details strong { font-size: 1.125rem; }

.bp-tier-badge {
    display: inline-block;
    padding: 0.125rem 0.5rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: #e0e7ff;
    color: #3730a3;
}

.bp-bank-preview { background: var(--bp-bg); border-radius: 0.5rem; padding: 0.75rem 1rem; }
.bp-bank-row     { display: flex; justify-content: space-between; padding: 0.25rem 0; }
.bp-bank-row .bp-label { color: var(--bp-muted); font-size: 0.875rem; }
.bp-bank-row .bp-value { font-weight: 600; }

.bp-verify-cta { font-size: 0.9375rem; color: var(--bp-muted); margin: 0.75rem 0 0; text-align: center; }

/* ── Result card ───────────────────────────────────────────────────────────── */
.bp-result-header  { text-align: center; margin-bottom: 1.5rem; }
.bp-verified-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    background: var(--bp-success);
    color: #fff;
    border-radius: 50%;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}
.bp-verified-time { color: var(--bp-muted); font-size: 0.8125rem; margin-top: 0.25rem; }

.bp-result-section  { margin: 1.25rem 0; }
.bp-result-section h3 { font-size: 0.875rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--bp-muted); margin: 0 0 0.5rem; }

.bp-details-table { width: 100%; border-collapse: collapse; }
.bp-details-table th, .bp-details-table td { padding: 0.5rem 0; border-bottom: 1px solid var(--bp-border); font-size: 0.9375rem; }
.bp-details-table th { text-align: left; color: var(--bp-muted); font-weight: 500; width: 42%; }
.bp-details-table td { font-weight: 600; }

.bp-result-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-top: 1.5rem; }

/* ── Auth pages ────────────────────────────────────────────────────────────── */
.bankproof-auth .bp-auth-card { max-width: 480px; }
.bp-auth-links { text-align: center; font-size: 0.875rem; color: var(--bp-muted); margin-top: 0.5rem; }
.bp-auth-links a { color: var(--bp-primary); text-decoration: none; }
.bp-auth-links a:hover { text-decoration: underline; }

/* ── Registration steps ────────────────────────────────────────────────────── */
.bp-steps-progress {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: 2rem;
    flex-wrap: nowrap;
    overflow-x: auto;
}
.bp-step-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    opacity: 0.4;
    transition: opacity .2s;
    min-width: 60px;
}
.bp-step-indicator.active, .bp-step-indicator.done { opacity: 1; }
.bp-step-num {
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 50%;
    background: var(--bp-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8125rem;
    font-weight: 700;
}
.bp-step-indicator.active .bp-step-num { background: var(--bp-primary); color: #fff; }
.bp-step-indicator.done   .bp-step-num { background: var(--bp-success); color: #fff; }
.bp-step-label { font-size: 0.75rem; color: var(--bp-muted); }
.bp-step-line  { flex: 1; height: 2px; background: var(--bp-border); min-width: 20px; }

/* ── Dashboard ─────────────────────────────────────────────────────────────── */
.bp-dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.bp-dashboard-welcome h2 { margin: 0 0 0.25rem; }
.bp-dashboard-actions    { display: flex; gap: 0.75rem; align-items: center; }

.bp-stat-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 1rem; margin-bottom: 1.5rem; }
.bp-stat-card  {
    background: var(--bp-card-bg);
    border: 1px solid var(--bp-border);
    border-radius: var(--bp-radius);
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}
.bp-stat-card .stat-value { font-size: 2rem; font-weight: 800; line-height: 1; }
.bp-stat-card .stat-label { font-size: 0.8125rem; color: var(--bp-muted); }

/* ── Tabs ───────────────────────────────────────────────────────────────────── */
.bp-tabs {
    display: flex;
    border-bottom: 2px solid var(--bp-border);
    margin-bottom: 1.5rem;
    overflow-x: auto;
    gap: 0;
}
.bp-tab {
    padding: 0.625rem 1rem;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--bp-muted);
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    white-space: nowrap;
    margin-bottom: -2px;
    transition: color .15s, border-color .15s;
}
.bp-tab:hover  { color: var(--bp-text); }
.bp-tab.active { color: var(--bp-primary); border-bottom-color: var(--bp-primary); font-weight: 600; }

/* ── Bank cards ─────────────────────────────────────────────────────────────── */
.bp-bank-list { display: grid; gap: 1rem; }
.bp-bank-card {
    border: 1px solid var(--bp-border);
    border-radius: var(--bp-radius);
    padding: 1.25rem;
    position: relative;
    background: var(--bp-card-bg);
}
.bp-bank-card.is-primary { border-color: var(--bp-primary); }
.bp-primary-badge {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    font-size: 0.75rem;
    background: var(--bp-primary);
    color: #fff;
    padding: 0.125rem 0.5rem;
    border-radius: 999px;
    font-weight: 700;
}
.bp-bank-info    { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; align-items: center; }
.bp-bank-actions { margin-top: 0.75rem; }

/* ── Tables ─────────────────────────────────────────────────────────────────── */
.bp-table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
.bp-table th, .bp-table td { padding: 0.625rem 0.75rem; text-align: left; border-bottom: 1px solid var(--bp-border); }
.bp-table th { font-weight: 600; color: var(--bp-muted); font-size: 0.8125rem; text-transform: uppercase; letter-spacing: .05em; }

/* ── Modals ─────────────────────────────────────────────────────────────────── */
.bp-modal { position: fixed; inset: 0; z-index: 10000; display: flex; align-items: center; justify-content: center; padding: 1rem; }
.bp-modal-overlay { position: absolute; inset: 0; background: rgba(0,0,0,.5); }
.bp-modal-content {
    position: relative;
    z-index: 1;
    background: var(--bp-card-bg);
    border-radius: var(--bp-radius);
    box-shadow: var(--bp-shadow-lg);
    width: 100%;
    max-width: 480px;
    padding: 1.5rem;
}
.bp-modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.25rem; }
.bp-modal-header h3 { margin: 0; }
.bp-modal-close { background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--bp-muted); line-height: 1; }

/* ── Code result ────────────────────────────────────────────────────────────── */
.bp-code-result   { background: var(--bp-bg); border-radius: 0.5rem; padding: 1rem; }
.bp-code-display  { display: flex; align-items: center; gap: 0.75rem; }
.bp-code-display code { font-size: 1.25rem; font-family: monospace; letter-spacing: 0.1em; flex: 1; }
.bp-copy-btn      { background: var(--bp-bg); border: 1px solid var(--bp-border); border-radius: 0.375rem; padding: 0.25rem 0.625rem; cursor: pointer; font-size: 0.8125rem; }

/* ── Section header ─────────────────────────────────────────────────────────── */
.bp-section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.bp-section-header h3 { margin: 0; }

/* ── Loading ────────────────────────────────────────────────────────────────── */
.bp-loading-overlay {
    position: fixed;
    inset: 0;
    z-index: 20000;
    background: rgba(255,255,255,.7);
    display: flex;
    align-items: center;
    justify-content: center;
}
.bp-spinner {
    width: 2.5rem;
    height: 2.5rem;
    border: 3px solid var(--bp-border);
    border-top-color: var(--bp-primary);
    border-radius: 50%;
    animation: bp-spin 0.6s linear infinite;
}
@keyframes bp-spin { to { transform: rotate(360deg); } }

.bp-loading-text { color: var(--bp-muted); font-size: 0.875rem; }
.bp-empty-state  { color: var(--bp-muted); font-style: italic; }

/* ── Responsive ─────────────────────────────────────────────────────────────── */
@media (max-width: 600px) {
    .bp-card    { padding: 1.25rem; }
    .bp-tab     { padding: 0.5rem 0.75rem; font-size: 0.875rem; }
    .bp-field-row { flex-direction: column; }
    .bp-dashboard-header { flex-direction: column; }
    .bp-result-actions   { flex-direction: column; }
}
