:root {
  --navy: #06265f;
  --blue: #0b4b9d;
  --ink: #112b55;
  --muted: #72809a;
  --surface: #f4f7fc;
  --line: #dfe7f2;
  --gold: #dfb768;
  --gold-deep: #c99d45;
  --success: #1f8a70;
  --radius: 18px;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", "Noto Sans", Arial, sans-serif;
  color: var(--ink);
  background: #dfe7f2;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: #dfe7f2; }
button, select, input { font: inherit; }
button { border: 0; cursor: pointer; }
button:focus-visible, select:focus-visible, input:focus-visible { outline: 3px solid rgba(11, 75, 157, .32); outline-offset: 2px; }
[hidden] { display: none !important; }

.app-shell { position: relative; min-height: 100vh; max-width: 450px; margin: 0 auto; background: var(--surface); box-shadow: 0 0 42px rgba(6, 38, 95, .12); overflow: hidden; }
.topbar { display: flex; align-items: center; justify-content: space-between; min-height: 76px; padding: 14px 18px 12px; color: #fff; background: var(--navy); }
.brand { display: inline-flex; align-items: center; gap: 9px; color: #fff; text-decoration: none; }
.brand-mark { display: grid; place-items: center; width: 38px; height: 38px; border: 2px solid var(--gold); border-radius: 13px 4px 13px 4px; color: var(--gold); font-size: 22px; font-weight: 800; transform: rotate(-7deg); }
.brand-copy { display: flex; flex-direction: column; gap: 1px; }
.brand-copy strong { font-size: 18px; letter-spacing: .03em; }
.brand-copy small { color: rgba(255,255,255,.62); font-size: 9px; letter-spacing: .12em; }
.topbar-actions { display: flex; align-items: center; gap: 9px; }
.language-select { display: inline-flex; align-items: center; gap: 5px; padding: 8px 10px; border: 1px solid rgba(255,255,255,.48); border-radius: 18px; background: rgba(255,255,255,.04); }
.language-select select { max-width: 84px; border: 0; color: #fff; background: transparent; font-size: 12px; appearance: none; }
.language-select select option { color: #112b55; background: #fff; }
.globe { color: var(--gold); font-size: 17px; line-height: 1; }
.icon-button, .settings-button { position: relative; color: #fff; background: transparent; font-size: 27px; line-height: 1; }
.bell-dot { position: absolute; width: 7px; height: 7px; right: 2px; top: 0; border-radius: 50%; background: var(--gold); }

main { padding-bottom: 78px; }
.view { animation: fade-in .22s ease both; }
.hidden { display: none !important; }
@keyframes fade-in { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }

.auth-modal { position: fixed; inset: 0; z-index: 40; display: grid; place-items: center; padding: 22px; background: rgba(4, 22, 55, .58); backdrop-filter: blur(5px); }
.auth-dialog { position: relative; width: min(100%, 390px); padding: 25px 20px 20px; border-radius: 20px; background: #fff; box-shadow: 0 18px 42px rgba(2, 25, 65, .25); }
.auth-dialog h2 { margin: 4px 0 8px; color: var(--navy); font-size: 23px; }
.auth-help { margin: 0 0 19px; color: var(--muted); font-size: 12px; line-height: 1.55; }
.auth-close { position: absolute; top: 10px; right: 13px; width: 30px; height: 30px; border-radius: 50%; color: #7f8da4; background: #f1f4f8; font-size: 22px; line-height: 1; }
.auth-field { display: grid; gap: 6px; margin-top: 12px; color: #52627c; font-size: 12px; }
.auth-field input { width: 100%; min-height: 44px; padding: 0 13px; border: 1px solid #d7e0ec; border-radius: 10px; color: var(--ink); background: #f8faff; }
.auth-captcha-row { display: grid; grid-template-columns: minmax(0, 1fr) 112px; gap: 10px; align-items: end; }
.auth-captcha-input { min-width: 0; }
.auth-captcha-refresh { display: grid; place-items: center; min-height: 44px; margin-top: 12px; padding: 4px; border: 1px solid #d7e0ec; border-radius: 10px; background: #f8faff; cursor: pointer; }
.auth-captcha-refresh img { display: block; width: 100%; height: 36px; object-fit: contain; }
.auth-mode-switch { display: flex; justify-content: center; gap: 5px; margin-top: 14px; color: var(--muted); font-size: 12px; }
.auth-mode-switch button { padding: 0; color: var(--blue); font-size: 12px; font-weight: 700; }
.auth-submit { width: 100%; margin: 20px 0 0; justify-content: center; }
.auth-status { min-height: 17px; margin: 10px 0 0; color: #c34c45; font-size: 11px; text-align: center; }

.hero { position: relative; height: 282px; color: #fff; overflow: hidden; background: var(--navy); }
.hero-slide { position: absolute; inset: 0; padding: 42px 24px 30px; opacity: 0; background-image: linear-gradient(90deg, rgba(3,24,67,.94) 0%, rgba(3,30,77,.78) 41%, rgba(3,30,77,.06) 100%), var(--hero-image); background-position: center; background-size: cover; transition: opacity .42s ease; }
.hero-slide.active { opacity: 1; z-index: 1; }
.hero-copy { max-width: 68%; position: relative; z-index: 2; }
.eyebrow { display: inline-flex; margin-bottom: 14px; color: #f1d28d; font-size: 12px; letter-spacing: .08em; }
.hero h1 { margin: 0 0 8px; font-size: clamp(29px, 8vw, 38px); line-height: 1.14; letter-spacing: .01em; }
.hero p { margin: 0 0 20px; color: rgba(255,255,255,.78); font-size: 14px; }
.gold-button, .primary-button { display: inline-flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 46px; padding: 0 19px; border-radius: 12px; color: #1e2c45; background: linear-gradient(135deg, #f6dda4, var(--gold)); box-shadow: 0 9px 18px rgba(38, 38, 38, .12); font-weight: 800; }
.gold-button { min-width: 202px; }
.gold-button span:last-child, .outline-button span:last-child { font-size: 24px; font-weight: 400; line-height: 0; }
.hero-controls { position: absolute; z-index: 3; bottom: 12px; left: 17px; right: 17px; display: flex; align-items: center; justify-content: space-between; }
.hero-arrow { width: 30px; height: 30px; border-radius: 50%; color: #fff; background: rgba(255,255,255,.13); font-size: 24px; line-height: 24px; }
.hero-dots { display: flex; align-items: center; gap: 6px; }
.dot { width: 7px; height: 7px; padding: 0; border-radius: 9px; background: rgba(255,255,255,.38); transition: all .24s ease; }
.dot.active { width: 22px; background: var(--gold); }

.notice-bar { display: flex; align-items: center; gap: 9px; margin: 13px 14px 4px; padding: 12px 13px; border: 1px solid #e1e7f0; border-radius: 14px; color: #425477; background: #fff; box-shadow: 0 5px 14px rgba(14, 51, 102, .04); font-size: 11px; }
.notice-bar strong { color: var(--navy); font-size: 12px; white-space: nowrap; }
.notice-bar time { margin-left: auto; color: var(--muted); white-space: nowrap; }
.notice-icon { display: grid; place-items: center; width: 21px; height: 21px; border-radius: 7px; color: #fff; background: var(--blue); font-weight: 800; }
.divider { width: 1px; height: 18px; background: var(--line); }

.section-block, .calculator-card, .trust-strip, .page-header, .product-tabs, .product-detail, .requirement-card, .account-hero, .balance-card, .todo-card, .history-card, .account-menu { margin-left: 14px; margin-right: 14px; }
.section-block { padding: 16px 0 3px; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 13px; }
.section-heading.compact { align-items: center; }
.section-kicker { display: block; margin-bottom: 4px; color: #8795aa; font-size: 11px; letter-spacing: .04em; }
h1, h2, p { margin-top: 0; }
.section-heading h2, .page-header h1 { margin: 0; color: var(--navy); font-size: 20px; }
.text-button { padding: 4px 0; color: var(--blue); background: transparent; font-size: 12px; font-weight: 700; }
.product-stack { display: grid; gap: 10px; }
.product-card { display: flex; align-items: center; gap: 14px; width: 100%; padding: 15px 14px; border-radius: 15px; text-align: left; transition: transform .18s ease, box-shadow .18s ease; }
.product-card:active { transform: scale(.985); }
.product-card.credit { background: #eef4fd; }
.product-card.secured { background: #fbf5eb; }
.product-icon { display: grid; place-items: center; width: 45px; height: 45px; border-radius: 50%; color: #fff; background: var(--blue); font-size: 18px; }
.secured .product-icon { background: var(--gold-deep); font-size: 27px; }
.product-copy { display: flex; flex: 1; flex-direction: column; gap: 4px; }
.product-copy strong { color: var(--navy); font-size: 17px; }
.secured .product-copy strong { color: #76551a; }
.product-copy small { color: var(--muted); font-size: 12px; }
.product-arrow { color: var(--blue); font-size: 31px; font-weight: 300; }
.secured .product-arrow { color: var(--gold-deep); }

.calculator-card { margin-top: 17px; padding: 17px 16px 15px; border: 1px solid var(--line); border-radius: 17px; background: #fff; box-shadow: 0 7px 18px rgba(14, 51, 102, .045); }
.info-badge { display: inline-grid; place-items: center; width: 18px; height: 18px; border: 1px solid #8fa5c3; border-radius: 50%; color: #6f84a1; font-size: 11px; font-weight: 700; }
.calc-row { display: flex; align-items: center; justify-content: space-between; padding: 5px 0 6px; color: #465675; font-size: 13px; }
.calc-row strong { color: var(--navy); font-size: 22px; }
.amount-range { display: block; width: 100%; margin: 10px 0 5px; accent-color: var(--blue); }
.range-labels { display: flex; justify-content: space-between; color: #95a1b4; font-size: 11px; }
.calc-grid { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 16px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.calc-grid > div { display: flex; min-height: 74px; flex-direction: column; justify-content: center; gap: 6px; padding: 0 10px; border-right: 1px solid var(--line); }
.calc-grid > div:first-child { padding-left: 0; }
.calc-grid > div:last-child { padding-right: 0; border-right: 0; }
.calc-grid span, .calc-grid small { color: #7d8aa0; font-size: 11px; }
.calc-grid strong { color: var(--navy); font-size: 15px; white-space: nowrap; }
.calc-grid strong small { display: inline; margin-left: 2px; }
.outline-button { display: flex; width: 100%; align-items: center; justify-content: space-between; margin-top: 15px; padding: 10px 15px; border: 1px solid var(--blue); border-radius: 11px; color: var(--blue); background: #fff; font-weight: 700; }
.fine-print, .data-note { margin: 11px 0 0; color: #98a4b6; font-size: 10px; text-align: center; line-height: 1.5; }

.trust-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; margin-top: 15px; padding: 13px 7px; border-radius: 14px; background: #edf3fc; }
.trust-strip > div { display: grid; justify-items: center; gap: 4px; padding: 0 5px; text-align: center; border-right: 1px solid #d8e1ee; }
.trust-strip > div:last-child { border-right: 0; }
.trust-symbol { display: grid; place-items: center; width: 24px; height: 24px; border: 1px solid var(--blue); border-radius: 8px; color: var(--blue); font-size: 12px; font-weight: 800; }
.trust-strip strong { color: var(--navy); font-size: 11px; }
.trust-strip small { color: #7c8da6; font-size: 9px; }

.page-header { display: flex; align-items: center; justify-content: space-between; padding: 25px 3px 17px; }
.page-header h1 { font-size: 25px; }
.header-pill { padding: 7px 11px; border: 1px solid #c4d0e2; border-radius: 13px; color: var(--blue); font-size: 12px; font-weight: 800; }
.product-tabs { display: flex; padding: 4px; border: 1px solid #e0e6ef; border-radius: 14px; background: #fff; }
.tab { flex: 1; padding: 10px 9px; border-radius: 10px; color: #7e8ba3; background: transparent; font-size: 14px; font-weight: 700; }
.tab.active { color: #fff; background: var(--navy); box-shadow: 0 5px 10px rgba(6,38,95,.18); }
.product-detail { display: grid; grid-template-columns: auto 1fr; gap: 10px 13px; margin-top: 15px; padding: 19px 16px; border-radius: 17px; background: #edf3fc; }
.detail-icon { display: grid; place-items: center; width: 45px; height: 45px; border-radius: 50%; color: #fff; font-size: 18px; }
.detail-icon.blue { background: var(--blue); }
.product-detail h2 { margin: 1px 0 4px; color: var(--navy); font-size: 19px; }
.product-detail p { margin: 0; color: #6c7d96; font-size: 13px; }
.detail-stats { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 9px; }
.detail-stats > div { display: grid; gap: 6px; padding: 0 9px; border-right: 1px solid #ccd9ea; }
.detail-stats > div:first-child { padding-left: 0; }
.detail-stats > div:last-child { padding-right: 0; border-right: 0; }
.detail-stats span { color: #7989a0; font-size: 11px; }
.detail-stats strong { color: var(--navy); font-size: 13px; }
.info-note { grid-column: 1 / -1; display: flex !important; align-items: center; gap: 7px; margin-top: 2px !important; padding: 10px; border-radius: 9px; color: #6e7e97 !important; background: rgba(255,255,255,.48); font-size: 10px !important; }
.term-picker { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border-radius: 10px; color: #71819a; background: rgba(255,255,255,.72); font-size: 11px; }
.term-picker select { min-width: 126px; padding: 6px 8px; border: 1px solid #c8d7e9; border-radius: 8px; color: var(--navy); background: #fff; font-size: 12px; }
.requirement-card { margin-top: 14px; padding: 17px 16px; border: 1px solid var(--line); border-radius: 17px; background: #fff; }
.requirement-card h2 { display: flex; align-items: center; gap: 9px; margin: 0 0 9px; color: var(--navy); font-size: 18px; }
.line-icon { display: grid; place-items: center; width: 24px; height: 24px; border: 1px solid var(--blue); border-radius: 7px; color: var(--blue); font-size: 13px; }
.requirement-card ul { padding: 0; margin: 0; list-style: none; }
.requirement-card li { position: relative; padding: 11px 25px 11px 30px; border-top: 1px solid #edf0f5; color: #4d5e79; font-size: 13px; }
.requirement-card li::before { content: "✓"; position: absolute; left: 2px; color: var(--blue); font-weight: 800; }
.requirement-card li::after, .account-menu button::after { content: "›"; position: absolute; right: 2px; color: #91a0b6; font-size: 22px; font-weight: 300; }
.primary-button { width: calc(100% - 28px); margin: 16px 14px 0; justify-content: center; color: #1e2c45; font-size: 16px; }
.auth-dialog .auth-submit { width: 100%; margin: 20px 0 0; }
.panel-modal { position: fixed; inset: 0; z-index: 41; display: grid; place-items: center; padding: 22px; background: rgba(4, 22, 55, .58); backdrop-filter: blur(5px); }
.panel-dialog { position: relative; width: min(100%, 390px); max-height: min(78vh, 620px); overflow: auto; padding: 25px 20px 20px; border-radius: 20px; background: #fff; box-shadow: 0 18px 42px rgba(2, 25, 65, .25); }
.panel-dialog h2 { margin: 4px 0 8px; color: var(--navy); font-size: 23px; }
.identity-dialog { max-height: min(88vh, 760px); }
.identity-grid { display:grid; grid-template-columns:1fr 1fr; gap:10px; }
.identity-grid .auth-field { min-width:0; }
.notification-list { display: grid; gap: 9px; margin-top: 16px; }
.notification-item { display: grid; gap: 7px; padding: 13px 12px; border: 1px solid var(--line); border-radius: 12px; color: var(--ink); background: #f7f9fd; }
.notification-item strong { font-size: 13px; line-height: 1.5; }
.notification-item time { color: var(--muted); font-size: 11px; }
.notification-empty { margin: 16px 0 4px; color: var(--muted); font-size: 12px; line-height: 1.6; text-align: center; }
.estimate-result { display: grid; gap: 0; margin-top: 16px; border: 1px solid var(--line); border-radius: 13px; overflow: hidden; }
.estimate-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 12px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.estimate-row:last-child { border-bottom: 0; }
.estimate-row strong { color: var(--navy); font-size: 13px; text-align: right; }
.estimate-row.total { background: #f4f7fc; }
.estimate-row.total strong { color: var(--blue); font-size: 15px; }

.account-hero { display: flex; align-items: center; gap: 13px; padding: 25px 2px 19px; color: #fff; }
.account-hero::before { content: ""; position: absolute; left: 0; right: 0; top: 76px; height: 178px; z-index: 0; background: linear-gradient(145deg, var(--navy), #0d4d9d); }
.account-hero > * { position: relative; z-index: 1; }
.avatar { display: grid; place-items: center; width: 62px; height: 62px; border: 3px solid #f0d493; border-radius: 50%; color: #fff; background: linear-gradient(145deg, #efd08d, #c4933b); font-size: 28px; }
.account-hero .section-kicker { color: rgba(255,255,255,.64); }
.account-hero h1 { margin: 0 0 3px; font-size: 22px; }
.account-hero p { margin: 0 0 5px; color: rgba(255,255,255,.77); font-size: 12px; }
.verified, .status-ok { display: inline-flex; padding: 3px 8px; border-radius: 9px; color: #caefdf; background: rgba(22, 133, 99, .32); font-size: 10px; }
.settings-button { margin-left: auto; color: #fff; }
.balance-card { position: relative; z-index: 2; margin-top: 0; padding: 17px 16px 0; border: 1px solid rgba(155, 186, 224, .42); border-radius: 15px; color: #fff; background: rgba(6,38,95,.88); box-shadow: 0 12px 24px rgba(6,38,95,.17); }
.balance-state, .balance-link { display: flex; align-items: center; justify-content: space-between; }
.balance-state { color: rgba(255,255,255,.82); font-size: 13px; }
.balance-grid { display: grid; grid-template-columns: 1fr 1fr; margin-top: 16px; }
.balance-grid > div { display: grid; gap: 5px; }
.balance-grid > div + div { padding-left: 16px; border-left: 1px solid rgba(255,255,255,.24); }
.balance-grid span, .balance-card > p { color: rgba(255,255,255,.7); font-size: 12px; }
.balance-grid strong { color: #f0d493; font-size: 25px; }
.balance-card > p { padding-bottom: 14px; margin: 15px 0 0; border-bottom: 1px solid rgba(255,255,255,.16); }
.balance-link { width: 100%; padding: 14px 0; color: #fff; background: transparent; font-size: 12px; }
.todo-card, .history-card { position: relative; z-index: 2; margin-top: 13px; padding: 15px 14px; border-radius: 15px; background: #edf3fc; }
.todo-title { display: flex; align-items: center; gap: 9px; color: var(--navy); }
.round-icon { display: grid; place-items: center; width: 25px; height: 25px; border-radius: 50%; color: #fff; background: var(--blue); font-size: 15px; }
.todo-row { display: grid; grid-template-columns: 1.2fr 1fr auto; align-items: center; gap: 9px; margin-top: 15px; }
.todo-row > div { display: grid; gap: 5px; }
.todo-row span { color: #75849c; font-size: 11px; }
.todo-row strong { color: var(--navy); font-size: 15px; }
.small-gold { padding: 10px 11px; border-radius: 9px; color: #5e4514; background: #e3bc6e; font-size: 11px; font-weight: 800; white-space: nowrap; }
.history-card { background: #edf3fc; }
.history-row { display: flex; justify-content: space-between; width: 100%; margin-top: 8px; padding: 10px 0; border-top: 1px solid #dce6f2; color: #425577; background: transparent; font-size: 12px; text-align: left; }
.history-row em { color: var(--success); font-style: normal; }
.account-menu { position: relative; z-index: 2; margin-top: 13px; border: 1px solid var(--line); border-radius: 15px; overflow: hidden; background: #fff; }
.account-menu button { position: relative; display: block; width: 100%; padding: 13px 30px 13px 16px; border-bottom: 1px solid #eef1f5; color: #40516f; background: #fff; text-align: left; font-size: 13px; }
.account-menu button:last-child { border-bottom: 0; }
.data-note { position: relative; z-index: 2; margin-bottom: 3px; }
.guest-card { margin: 24px 14px; padding: 25px 18px; border: 1px solid var(--line); border-radius: 18px; text-align: center; background: #fff; box-shadow: 0 8px 18px rgba(14, 51, 102, .05); }
.guest-icon { display: grid; place-items: center; width: 55px; height: 55px; margin: 0 auto 13px; border-radius: 50%; color: #fff; background: var(--blue); font-size: 23px; }
.guest-card h2 { margin: 0 0 8px; color: var(--navy); font-size: 19px; }
.guest-card p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.guest-card .primary-button { margin-top: 18px; }
.empty-state { margin: 14px 0 2px; color: #8b98ab; font-size: 12px; text-align: center; }
.history-list-row { display: flex; align-items: center; justify-content: space-between; width: 100%; margin-top: 8px; padding: 10px 0; border-top: 1px solid #dce6f2; color: #425577; background: transparent; font-size: 12px; text-align: left; }
.history-list-row strong { color: var(--navy); }

.bottom-nav { position: fixed; z-index: 10; bottom: 0; left: 50%; display: grid; grid-template-columns: repeat(4, 1fr); width: min(450px, 100%); min-height: 70px; transform: translateX(-50%); border-top: 1px solid #dde4ee; background: rgba(255,255,255,.96); backdrop-filter: blur(10px); }
.nav-item { display: grid; justify-items: center; align-content: center; gap: 5px; color: #7f8a9c; background: transparent; font-size: 11px; }
.nav-item.active { color: var(--navy); font-weight: 800; }
.nav-icon { display: block; width: 23px; height: 23px; background-position: center; background-size: contain; background-repeat: no-repeat; opacity: .66; }
.nav-item.active .nav-icon { opacity: 1; }
.home-icon { background-image: url('/static/images/common/home.png'); }
.nav-item.active .home-icon { background-image: url('/static/images/common/home-active.png'); }
.products-icon { background-image: url('/static/images/common/loan.png'); }
.nav-item.active .products-icon { background-image: url('/static/images/common/loan-active.png'); }
.account-icon { background-image: url('/static/images/common/my.png'); }
.nav-item.active .account-icon { background-image: url('/static/images/common/my-active.png'); }
.support-icon { position: relative; border: 2px solid currentColor; border-radius: 7px; background: transparent; opacity: .66; }
.support-icon::before { position:absolute; top:5px; left:4px; width:3px; height:3px; border-radius:50%; background:currentColor; box-shadow:5px 0 currentColor,10px 0 currentColor; content:""; }
.support-icon::after { position:absolute; right:2px; bottom:-5px; width:7px; height:7px; border-right:2px solid currentColor; border-bottom:2px solid currentColor; background:#fff; content:""; transform:skewY(-28deg); }
.nav-item.active .support-icon { opacity:1; }
.support-page-header { padding-bottom:11px; }
.support-status { padding:5px 9px; border-radius:999px; color:#a1772b; background:#fff5dc; font-size:11px; font-weight:800; }
.support-status.online { color:#16815a; background:#e6f7ee; }
.support-status.offline { color:#9b6426; background:#fff2d9; }
.support-intro { margin:0 14px 10px; padding:11px 12px; border:1px solid #e2e9f3; border-radius:11px; color:#687c98; background:#f6f9fd; font-size:11px; line-height:1.5; }
.support-messages { display:flex; min-height:290px; max-height:calc(100vh - 300px); margin:0 14px; padding:14px 11px; overflow:auto; flex-direction:column; border:1px solid #e1e8f2; border-radius:15px; background:linear-gradient(180deg,#f6f9fd,#fff); }
.support-message { display:flex; margin:0 0 11px; }
.support-message.mine { justify-content:flex-end; }
.support-message.system { justify-content:center; }
.support-bubble { max-width:82%; padding:9px 11px; border-radius:12px; color:#3f5574; background:#fff; box-shadow:0 4px 12px rgba(17,43,85,.06); font-size:12px; line-height:1.5; white-space:pre-wrap; word-break:break-word; }
.support-message.mine .support-bubble { color:#fff; background:var(--blue); }
.support-message.system .support-bubble { max-width:90%; color:#755d2d; background:#fff6df; text-align:center; }
.support-bubble time { display:block; margin-top:4px; color:#a0adbd; font-size:9px; }
.support-message.mine .support-bubble time { color:rgba(255,255,255,.72); }
.support-image { display:block; max-width:220px; max-height:180px; border-radius:8px; object-fit:contain; }
.support-empty { width:100%; margin:auto; color:#91a0b4; font-size:12px; text-align:center; }
.support-quick-replies { display:flex; gap:6px; margin:9px 14px 0; overflow:auto; }
.support-quick-replies button { flex:0 0 auto; padding:6px 9px; border:1px solid #d6e3f4; border-radius:999px; color:var(--blue); background:#f5f9ff; font-size:10px; }
.support-composer { margin:9px 14px 16px; padding:10px 11px; border:1px solid #e1e8f2; border-radius:14px; background:#fff; }
.support-composer textarea { display:block; width:100%; min-height:56px; padding:7px; border:0; outline:0; resize:vertical; color:var(--ink); background:transparent; font:inherit; font-size:12px; }
.support-compose-footer { display:flex; align-items:center; gap:10px; padding-top:7px; border-top:1px solid #edf1f6; }
.support-compose-footer .primary-button { min-height:35px; padding:0 16px; margin-left:auto; }
.support-attach { color:var(--blue); font-size:11px; cursor:pointer; }
.support-attach input { display:none; }
#supportAttachmentName { overflow:hidden; max-width:45%; color:#8b99ab; font-size:10px; text-overflow:ellipsis; white-space:nowrap; }
.bank-account-list { display:grid; gap:8px; margin:0 0 10px; }
.bank-account-card { padding:11px 12px; border:1px solid #dbe6f3; border-radius:12px; color:#40516f; background:#f7faff; font-size:12px; }
.bank-account-card strong { display:block; margin-bottom:4px; color:var(--navy); }
.bank-account-card small { color:#7f8da4; }
.payment-summary { display:flex; align-items:center; justify-content:space-between; margin:8px 0 12px; padding:12px; border-radius:12px; color:#52627c; background:#f4f8fd; font-size:12px; }
.payment-summary strong { color:var(--navy); font-size:20px; }
.payment-details { display:grid; gap:8px; padding:12px; border:1px solid #e0e8f3; border-radius:12px; }
.payment-details div { display:flex; align-items:flex-start; justify-content:space-between; gap:12px; color:#7d8ca2; font-size:11px; }
.payment-details strong { max-width:65%; color:var(--ink); font-size:12px; text-align:right; word-break:break-all; }
.payment-instructions { margin:11px 0 0; color:#6b7c94; font-size:11px; line-height:1.55; white-space:pre-wrap; }
.payment-proof { display:block; margin-top:12px; padding:10px 12px; border:1px dashed #cbd9ea; border-radius:10px; color:var(--blue); background:#f8fbff; font-size:11px; text-align:center; cursor:pointer; }
.payment-proof-name { display:block; margin-top:6px; overflow:hidden; color:#8b99ab; font-size:10px; text-overflow:ellipsis; white-space:nowrap; }
.account-panel-dialog { max-height: min(84vh, 700px); }
.account-panel-body { display:grid; gap:10px; margin-top:15px; }
.account-record-card { padding:13px 12px; border:1px solid #dfe7f2; border-radius:13px; background:#f8faff; }
.account-record-heading { display:flex; align-items:center; justify-content:space-between; gap:10px; margin-bottom:10px; color:var(--navy); font-size:14px; }
.record-status { flex:0 0 auto; padding:4px 8px; border-radius:999px; color:#176f55; background:#e5f5ed; font-size:10px; font-weight:700; }
.account-record-grid { display:grid; gap:7px; }
.account-record-meta { display:flex; align-items:flex-start; justify-content:space-between; gap:12px; color:#7b8ba2; font-size:11px; }
.account-record-meta strong { max-width:65%; color:#30486e; font-size:12px; text-align:right; word-break:break-word; }
.record-action { width:100%; min-height:37px; margin-top:11px; border:1px solid var(--blue); border-radius:9px; color:var(--blue); background:#fff; font-size:12px; font-weight:700; }
.record-back { padding:0; color:var(--blue); background:transparent; font-size:12px; font-weight:700; }
.contract-paper { max-height:52vh; margin:0; padding:14px; overflow:auto; border:1px solid #e0e7f1; border-radius:12px; color:#3f5270; background:#fbfcfe; font:inherit; font-size:12px; line-height:1.7; white-space:pre-wrap; word-break:break-word; }
.toast { position: fixed; z-index: 20; bottom: 84px; left: 50%; max-width: calc(100% - 48px); padding: 11px 16px; border-radius: 11px; color: #fff; background: rgba(17,43,85,.92); box-shadow: 0 8px 20px rgba(17,43,85,.24); opacity: 0; pointer-events: none; transform: translate(-50%, 10px); transition: all .24s ease; font-size: 12px; text-align: center; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (min-width: 700px) {
  body { padding: 26px 0; }
  .app-shell { min-height: calc(100vh - 52px); border-radius: 28px; }
  .bottom-nav { bottom: 26px; border-bottom-left-radius: 28px; border-bottom-right-radius: 28px; }
}

@media (max-width: 370px) {
  .brand-copy strong { font-size: 16px; }
  .language-select { padding-left: 7px; padding-right: 7px; }
  .hero { height: 270px; }
  .hero-copy { max-width: 76%; }
  .hero h1 { font-size: 28px; }
  .calc-grid strong { font-size: 13px; }
  .todo-row { grid-template-columns: 1fr 1fr; }
  .small-gold { grid-column: 1 / -1; }
  .identity-grid { grid-template-columns:1fr; gap:0; }
}
