:root { color-scheme: light; }
* { box-sizing: border-box; }
body { margin: 0; overflow-x: hidden; background: #f8fafc; color: #0f172a; font-family: Inter, system-ui, sans-serif; }
main { width: min(100%, 600px); margin: auto; padding: 16px 14px calc(36px + env(safe-area-inset-bottom)); }
.brand { display: flex; align-items: center; gap: 10px; margin: 4px 0 14px; }
.brand img { width: 42px; height: 42px; object-fit: contain; }
.brand strong { display: block; color: #1e3a8a; font-size: 1.25rem; }
.brand span { display: block; color: #64748b; font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; }
.lang-switch { margin-left: auto; padding: 7px 10px; border: 1px solid #bfdbfe; border-radius: 8px; background: #fff; color: #1e40af; font-size: .78rem; font-weight: 800; text-decoration: none; }
.step-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 20px; }
.step-nav a, .step-nav span { padding: 11px 8px; border-radius: 9px; text-align: center; font-size: .82rem; font-weight: 800; text-decoration: none; }
.step-nav a { border: 1px solid #bfdbfe; background: #fff; color: #1e40af; }
.step-nav .active { background: #1e3a8a; color: #fff; }
.hero { border-left: 4px solid #2563eb; padding-left: 14px; margin-bottom: 18px; }
.hero h1 { margin: 0 0 5px; font-size: 1.55rem; line-height: 1.2; }
.hero p { margin: 0; color: #475569; font-size: .92rem; }
.panel { margin-top: 14px; padding: 17px; border: 1px solid #dbe3ef; border-radius: 14px; background: #fff; box-shadow: 0 8px 24px rgba(15,23,42,.05); }
.panel h2 { margin: 0 0 12px; color: #172554; font-size: 1.08rem; }
.fee-scroll { overflow-x: visible; }
.fee-table { width: 100%; table-layout: fixed; border-collapse: collapse; font-size: .68rem; }
.fee-table th, .fee-table td { padding: 8px 4px; border-bottom: 1px solid #e2e8f0; text-align: left; vertical-align: top; overflow-wrap: anywhere; }
.fee-table th { background: #1e3a8a; color: #fff; font-weight: 800; }
.fee-table th.current-period { background: #1e40af; box-shadow: inset 0 -3px 0 #60a5fa; }
.fee-table td.current-period { background: #eff6ff; color: #172554; font-weight: 800; }
.fee-table th:first-child { border-radius: 7px 0 0 0; }
.fee-table th:last-child { border-radius: 0 7px 0 0; }
.fee-table td:first-child { color: #172554; font-weight: 800; }
.fee-table th:first-child, .fee-table td:first-child { width: 31%; }
.notice { padding: 12px; border: 1px solid #bfdbfe; border-radius: 9px; background: #eff6ff; color: #1e3a8a; font-size: .86rem; }
.account { border-color: #a7f3d0; background: #ecfdf5; }
.account-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.account-header h2 { margin: 0; }
.account-header button { flex: none; padding: 8px 10px; border: 1px solid #6ee7b7; border-radius: 8px; background: #fff; color: #065f46; font: inherit; font-size: .78rem; font-weight: 800; }
.account-header button:disabled { opacity: .55; }
.account p { margin: 4px 0; color: #065f46; overflow-wrap: anywhere; }
.account-status-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-top: 6px; }
.account-status-row p { flex: 1; margin: 0; }
.account-status-row button { flex: none; padding: 0; border: 0; background: transparent; color: #1d4ed8; font: inherit; font-size: .82rem; font-weight: 800; text-decoration: underline; }
.interest-editor { margin-top: 16px; padding-top: 14px; border-top: 1px solid #a7f3d0; }
.interest-editor label { display: block; margin-bottom: 6px; color: #064e3b; font-size: .88rem; font-weight: 800; }
.interest-editor select { display: block; width: 100%; min-height: 46px; padding: 10px; border: 1px solid #94a3b8; border-radius: 9px; background: #fff; color: #0f172a; font: inherit; font-size: 16px; }
.interest-editor select:focus { outline: 3px solid #dbeafe; border-color: #2563eb; }
.interest-editor button { width: 100%; min-height: 44px; margin-top: 10px; border: 0; border-radius: 9px; background: #1e3a8a; color: #fff; font: inherit; font-size: .9rem; font-weight: 800; }
.interest-editor button:disabled { cursor: wait; opacity: .6; }
.account .interest-status { min-height: 18px; margin-top: 8px; font-size: .82rem; }
.account .interest-status.pending, .account .interest-status.error { color: #b91c1c; font-weight: 800; }
.account .interest-status.saved { color: #047857; font-weight: 700; }
.account .interest-status.saving { color: #1e40af; }
.field { display: block; margin: 14px 0; font-size: .88rem; font-weight: 750; }
.field input, .field select { display: block; width: 100%; min-height: 46px; margin-top: 6px; padding: 11px; border: 1px solid #cbd5e1; border-radius: 9px; background: #fff; font: inherit; font-size: 16px; }
.field input:focus, .field select:focus { outline: 3px solid #dbeafe; border-color: #2563eb; }
.field-hint { display: block; margin-top: 5px; color: #64748b; font-size: .76rem; font-weight: 400; }
.button { display: inline-flex; width: 100%; min-height: 48px; align-items: center; justify-content: center; border: 0; border-radius: 10px; background: #1e3a8a; color: #fff; font-size: .95rem; font-weight: 800; text-decoration: none; }
.button.secondary { border: 1px solid #bfdbfe; background: #fff; color: #1e40af; }
.button:disabled { cursor: not-allowed; opacity: .5; }
.qr-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.qr-grid figure { margin: 0; padding: 8px; border: 1px solid #dbeafe; border-radius: 10px; text-align: center; }
.qr-grid img { display: block; width: 100%; max-height: 360px; object-fit: contain; }
.qr-grid figcaption { margin-top: 5px; color: #1e3a8a; font-size: .8rem; font-weight: 800; }
.bank { padding: 12px; border-radius: 9px; background: #f8fafc; font-size: .84rem; line-height: 1.65; overflow-wrap: anywhere; }
.bank + .bank { margin-top: 10px; }
.bank strong { color: #172554; }
.remark { margin-top: 12px; padding: 11px; border: 1px solid #fcd34d; border-radius: 9px; background: #fffbeb; color: #92400e; font-size: .82rem; font-weight: 700; }
.evidence { margin: 14px 0; padding: 12px; border: 1px solid #dbe3ef; border-radius: 10px; background: #f8fafc; }
.evidence legend { padding: 0 5px; font-size: .88rem; font-weight: 800; }
.status { display: none; margin-top: 12px; padding: 11px; border-radius: 9px; font-size: .87rem; }
.status.show { display: block; }
.status.success { background: #ecfdf5; color: #065f46; }
.status.error { background: #fef2f2; color: #991b1b; }
.foot { margin-top: 18px; text-align: center; color: #64748b; font-size: .8rem; }
.invoice-modal { position: fixed; z-index: 1000; inset: 0; display: grid; place-items: center; padding: 14px; }
.invoice-modal-backdrop { position: absolute; inset: 0; background: rgba(15,23,42,.62); }
.invoice-modal-content { position: relative; width: min(100%, 520px); max-height: calc(100dvh - 28px); overflow-y: auto; padding: 20px; border-radius: 15px; background: #fff; box-shadow: 0 24px 64px rgba(15,23,42,.3); }
.invoice-modal-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.invoice-modal-header small { color: #1d4ed8; font-weight: 900; letter-spacing: .14em; }
.invoice-modal-header h2 { margin: 3px 0 0; color: #0f172a; font-size: 1.4rem; }
.invoice-modal-header button { width: 40px; height: 40px; border: 0; border-radius: 50%; background: #f1f5f9; color: #334155; font-size: 1.6rem; line-height: 1; }
.invoice-modal-content > p { margin: 12px 0 0; color: #475569; font-size: .86rem; }
.invoice-modal-content form { margin-top: 16px; }
.invoice-privacy { color: #64748b; font-size: .76rem; line-height: 1.45; }
.invoice-refund { margin-top: 8px; color: #b91c1c; font-size: .76rem; font-weight: 700; line-height: 1.45; }
.hidden { display: none !important; }
@media (max-width: 390px) { .qr-grid { grid-template-columns: 1fr; } .account-status-row { flex-direction: column; } }
