:root {
  --brand-blue: #1976d2; --brand-sky: #29b6f6; --brand-deep: #0d47a1;
  --ink: #222; --text: #333; --muted: #777; --subtle: #666; --line: #e8edf2; --page: #f7f9fc; --white: #fff;
  --blue-pale: #e3f2fd; --shadow: 0 8px 30px rgba(28, 67, 105, .08);
  font-family: "Noto Sans TC", "Microsoft JhengHei", Inter, ui-sans-serif, system-ui, sans-serif;
  color: var(--text); background: var(--page);
}
* { box-sizing: border-box; }
body { min-width: 320px; margin: 0; background: var(--page); color: var(--text); }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; } button { cursor: pointer; }
h1, h2, h3, p { margin-top: 0; } h1 { margin-bottom: 0; color: var(--ink); font-size: clamp(28px, 3vw, 40px); letter-spacing: -.06em; line-height: 1.15; } h2 { margin-bottom: 4px; color: var(--ink); font-size: 21px; letter-spacing: -.04em; }
.eyebrow { margin: 0 0 8px; color: var(--brand-blue); font-size: 11px; font-weight: 800; letter-spacing: .13em; } .eyebrow-light { color: rgba(255,255,255,.8); }
.brand { display: inline-flex; align-items: center; gap: 8px; color: var(--brand-blue); } .brand-light { color: #fff; }
.brand-mark { display: inline-grid; width: 34px; height: 34px; place-items: center; border: 3px solid currentColor; border-radius: 50%; font-size: 24px; font-weight: 900; line-height: 1; transform: rotate(-10deg); } .brand-word { font-size: 27px; font-weight: 900; letter-spacing: -.09em; }

/* Login */
.login-page { min-height: 100vh; background: var(--white); } .login-layout { display: grid; min-height: 100vh; grid-template-columns: minmax(360px, .9fr) minmax(360px, 1.1fr); }
.login-brand-panel { position: relative; overflow: hidden; padding: 46px 8vw; background: linear-gradient(135deg, var(--brand-sky) 0%, var(--brand-blue) 58%, var(--brand-deep) 100%); color: #fff; }
.login-copy { position: relative; z-index: 1; max-width: 420px; margin-top: 24vh; } .login-copy h1 { margin-bottom: 24px; color: #fff; font-size: clamp(42px, 5vw, 70px); line-height: 1.08; } .login-copy > p:last-child { max-width: 320px; color: rgba(255,255,255,.84); font-size: 14px; line-height: 1.9; }
.login-orbit { position: absolute; border: 1px solid rgba(255,255,255,.25); border-radius: 50%; } .orbit-one { width: 500px; height: 500px; right: -200px; bottom: -110px; box-shadow: 0 0 0 42px rgba(255,255,255,.04), 0 0 0 84px rgba(255,255,255,.035); } .orbit-two { width: 230px; height: 230px; top: 22%; right: 12%; opacity: .65; }
.login-form-panel { display: flex; flex-direction: column; justify-content: center; padding: 46px clamp(28px, 8vw, 120px); } .login-form { width: min(390px, 100%); margin: auto; } .login-form h2 { margin-bottom: 10px; font-size: 30px; } .form-intro { margin-bottom: 30px; color: var(--muted); font-size: 13px; line-height: 1.8; }
.field-label { display: block; margin-bottom: 8px; color: var(--ink); font-size: 12px; font-weight: 800; } .email-input { width: 100%; border: 1px solid var(--line); border-radius: 8px; padding: 14px; outline: none; background: #fbfcfe; color: var(--ink); } .email-input:focus { border-color: var(--brand-blue); box-shadow: 0 0 0 3px rgba(25,118,210,.12); }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent; border-radius: 999px; padding: 12px 18px; font-size: 12px; font-weight: 800; transition: .2s ease; } .button:hover { transform: translateY(-2px); } .button-wide { width: 100%; margin-top: 14px; padding: 14px 18px; } .button-primary { background: var(--brand-blue); color: #fff; box-shadow: 0 5px 16px rgba(25,118,210,.25); } .button-primary:hover { background: var(--brand-deep); } .button-white { background: #fff; color: var(--brand-blue); box-shadow: 0 4px 16px rgba(0,0,0,.15); } .button-outline { border-color: var(--brand-blue); background: transparent; color: var(--brand-blue); } .button-outline:hover { background: var(--blue-pale); }
.login-success { display: none; margin-top: 16px; padding: 12px; border-radius: 8px; background: #e8f5e9; color: #2e7d32; font-size: 12px; line-height: 1.6; } .login-success.show { display: block; } .login-note { margin: 20px 0 0; color: var(--muted); font-size: 11px; text-align: center; } .demo-link { display: block; margin: 20px auto 0; color: var(--brand-blue); font-size: 11px; font-weight: 800; text-align: center; text-decoration: underline; } .login-footer { color: #aaa; font-size: 10px; text-align: center; }

/* Shared member notifications */
.baypay-toastr-container { display: flex; position: fixed; z-index: 3000; top: max(16px, env(safe-area-inset-top)); right: max(16px, env(safe-area-inset-right)); width: min(360px, calc(100vw - 32px)); flex-direction: column; gap: 10px; pointer-events: none; }
.baypay-toast { display: grid; grid-template-columns: 30px minmax(0, 1fr) 22px; align-items: start; gap: 10px; padding: 14px; border: 1px solid var(--line); border-left: 4px solid var(--brand-blue); border-radius: 12px; background: rgba(255,255,255,.98); box-shadow: 0 12px 30px rgba(28,67,105,.18); opacity: 0; transform: translateY(-10px); transition: opacity .2s ease, transform .2s ease; pointer-events: auto; }
.baypay-toast.is-visible { opacity: 1; transform: translateY(0); }
.baypay-toast.is-leaving { opacity: 0; transform: translateY(-8px); }
.baypay-toast.success { border-left-color: #2e7d32; }
.baypay-toast.error { border-left-color: #c62828; }
.baypay-toast-icon { display: grid; width: 30px; height: 30px; place-items: center; border-radius: 50%; background: var(--blue-pale); color: var(--brand-blue); font-size: 15px; font-weight: 900; }
.baypay-toast.success .baypay-toast-icon { background: #e8f5e9; color: #2e7d32; }
.baypay-toast.error .baypay-toast-icon { background: #ffebee; color: #c62828; }
.baypay-toast-content { min-width: 0; }
.baypay-toast-content strong { display: block; color: var(--ink); font-size: 13px; }
.baypay-toast-content p { margin: 3px 0 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.baypay-toast-close { width: 22px; height: 22px; border: 0; border-radius: 50%; background: #f2f5f8; color: var(--muted); font-size: 17px; line-height: 1; }
.baypay-toast-close:hover { background: var(--blue-pale); color: var(--brand-blue); }

/* Shared authenticated layout */
.app-shell { display: flex; min-height: 100vh; } .sidebar { display: flex; width: 240px; min-height: 100vh; flex: 0 0 240px; flex-direction: column; padding: 30px 18px; background: var(--white); border-right: 1px solid var(--line); } .sidebar .brand { padding: 0 12px; margin-bottom: 58px; }
.nav-label { margin: 0 12px 14px; color: #aaa; font-size: 10px; font-weight: 800; letter-spacing: .13em; } .nav { display: grid; gap: 5px; } .nav-link { display: flex; align-items: center; gap: 13px; border-radius: 9px; padding: 13px 12px; color: var(--muted); font-size: 13px; font-weight: 700; transition: .2s ease; } .nav-link span { width: 20px; color: #a0aab4; font-size: 16px; text-align: center; } .nav-link:hover, .nav-link.active { background: var(--blue-pale); color: var(--brand-blue); } .nav-link.active span { color: var(--brand-blue); }
.sidebar-bottom { margin-top: auto; padding: 16px 12px 2px; border-top: 1px solid var(--line); } .mini-user, .header-user { display: flex; align-items: center; gap: 10px; } .mini-user { margin-bottom: 16px; } .mini-user strong, .header-user strong { display: block; color: var(--ink); font-size: 12px; } .mini-user small, .header-user small { display: block; margin-top: 3px; color: var(--muted); font-size: 10px; }
.avatar { display: inline-grid; width: 34px; height: 34px; flex: 0 0 34px; place-items: center; border-radius: 50%; font-size: 12px; font-weight: 800; } .avatar-blue { background: var(--blue-pale); color: var(--brand-blue); } .support-link, .logout-link { display: block; color: var(--muted); font-size: 11px; } .logout-link { margin-top: 14px; color: #aaa; } .support-link:hover, .logout-link:hover, .text-link:hover { color: var(--brand-blue); text-decoration: underline; }
.main-content { width: 100%; max-width: 1440px; padding: 34px 42px 50px; overflow: hidden; } .topbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 36px; } .top-actions { display: flex; align-items: center; gap: 16px; } .icon-button { position: relative; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 50%; background: #fff; color: var(--ink); } .icon-button:hover { border-color: var(--brand-blue); color: var(--brand-blue); } .notice-dot { position: absolute; top: 6px; right: 7px; width: 6px; height: 6px; border: 1px solid #fff; border-radius: 50%; background: #ef5350; } .page-intro { margin-bottom: 22px; } .page-intro p { margin-bottom: 0; color: var(--muted); font-size: 12px; }

/* Wallet */
.hero-grid { display: grid; grid-template-columns: minmax(340px, 1.15fr) minmax(270px, .85fr); gap: 20px; } .balance-card { position: relative; min-height: 248px; overflow: hidden; padding: 29px 31px; border-radius: 16px; background: linear-gradient(135deg, var(--brand-sky) 0%, var(--brand-blue) 65%, var(--brand-deep) 100%); color: #fff; box-shadow: 0 10px 24px rgba(25,118,210,.2); } .balance-card::after { content: ""; position: absolute; width: 270px; height: 270px; top: -118px; right: -48px; border: 1px solid rgba(255,255,255,.25); border-radius: 50%; box-shadow: 0 0 0 30px rgba(255,255,255,.05), 0 0 0 60px rgba(255,255,255,.04); } .balance-label { position: relative; z-index: 1; margin-bottom: 8px; color: rgba(255,255,255,.76); font-size: 12px; } .balance { position: relative; z-index: 1; display: flex; align-items: baseline; gap: 8px; margin: 0 0 31px; } .balance strong { font-size: clamp(48px, 5vw, 68px); letter-spacing: -.08em; line-height: .95; } .balance span { color: #fff; font-size: 14px; font-weight: 800; } .balance-footer { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 16px; } .balance-footer p { margin: 0; color: rgba(255,255,255,.7); font-size: 11px; }
.quick-card, .panel-card { border: 1px solid var(--line); border-radius: 16px; background: var(--white); box-shadow: var(--shadow); } .quick-card { display: flex; min-height: 248px; flex-direction: column; justify-content: space-between; padding: 26px; } .quick-heading { display: flex; align-items: flex-start; justify-content: space-between; } .quick-symbol { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 12px; background: var(--blue-pale); color: var(--brand-blue); font-size: 20px; } .quick-card > p { max-width: 260px; margin: 20px 0; color: var(--muted); font-size: 12px; line-height: 1.8; }
.content-section { margin-top: 38px; } .section-heading { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 16px; } .section-heading p { margin: 0; color: var(--muted); font-size: 11px; } .text-link { color: var(--brand-blue); font-size: 11px; font-weight: 800; } .asset-grid { display: grid; grid-template-columns: repeat(2, minmax(220px, 1fr)); gap: 14px; }
.asset-card { position: relative; min-height: 150px; overflow: hidden; padding: 19px 20px 50px; border-radius: 14px; } .asset-card::after { content: ""; position: absolute; width: 108px; height: 108px; right: -27px; bottom: -43px; border: 1px solid rgba(25,118,210,.2); border-radius: 50%; } .asset-blue { background: #e3f2fd; } .asset-sky { background: #e1f5fe; } .asset-blue-light { background: #edf6fd; } .asset-blue-pale { background: #e8f1fb; } .asset-top { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 12px; } .asset-kind { display: flex; align-items: center; gap: 8px; color: var(--brand-deep); font-size: 11px; font-weight: 800; } .asset-badge { display: grid; width: 25px; height: 25px; place-items: center; border-radius: 8px; background: rgba(255,255,255,.75); color: var(--brand-blue); font-size: 12px; } .asset-date { color: rgba(51,51,51,.5); font-size: 10px; } .asset-number { position: relative; z-index: 1; margin: 17px 0 2px; color: var(--ink); font-size: 30px; font-weight: 900; letter-spacing: -.06em; } .asset-number span { margin-left: 4px; color: var(--brand-deep); font-size: 11px; letter-spacing: 0; } .asset-caption { position: relative; z-index: 1; margin: 0; color: rgba(51,51,51,.6); font-size: 10px; } .asset-pay-button { position: absolute; z-index: 2; right: 16px; bottom: 14px; border: 0; border-radius: 999px; padding: 7px 11px; background: rgba(255,255,255,.82); color: var(--brand-blue); font-size: 10px; font-weight: 900; } .asset-pay-button:hover { background: #fff; transform: translateY(-2px); box-shadow: 0 5px 12px rgba(25,118,210,.15); }
.lower-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(250px, .75fr); gap: 20px; align-items: start; } .panel-card { padding: 23px; } .transaction-row { display: flex; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); } .transaction-row:last-child { border-bottom: 0; } .tx-icon { display: grid; width: 36px; height: 36px; flex: 0 0 36px; place-items: center; border-radius: 10px; background: #f2f5f8; color: var(--subtle); font-size: 15px; } .tx-blue { background: var(--blue-pale); color: var(--brand-blue); } .tx-info { min-width: 0; flex: 1; } .tx-info strong { display: block; overflow: hidden; color: var(--ink); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; } .tx-info small { display: block; margin-top: 4px; color: var(--muted); font-size: 10px; } .tx-amount { font-size: 13px; font-weight: 900; text-align: right; white-space: nowrap; } .tx-plus { color: #2e7d32; } .tx-minus { color: #e05555; } .profile-promo { min-height: 190px; padding: 24px; border-radius: 16px; background: var(--brand-blue); color: #fff; box-shadow: 0 8px 25px rgba(25,118,210,.18); } .profile-promo h3 { margin-bottom: 10px; font-size: 18px; } .profile-promo p { max-width: 230px; margin-bottom: 22px; color: rgba(255,255,255,.82); font-size: 11px; line-height: 1.8; } .profile-promo .button-outline { border-color: rgba(255,255,255,.65); color: #fff; } .profile-promo .button-outline:hover { background: rgba(255,255,255,.12); }

/* Transactions and profile */
.transaction-list { padding-top: 14px; } .transaction-filter { display: flex; align-items: center; gap: 7px; padding-bottom: 13px; border-bottom: 1px solid var(--line); } .filter-button { border: 0; border-radius: 999px; padding: 8px 13px; background: transparent; color: var(--muted); font-size: 11px; font-weight: 800; } .filter-button.active, .filter-button:hover { background: var(--blue-pale); color: var(--brand-blue); } .filter-date { margin-left: auto; color: var(--muted); font-size: 10px; }
.profile-layout { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(240px, .7fr); gap: 20px; align-items: start; } .profile-card { padding: 28px; } .profile-header { display: flex; align-items: center; gap: 15px; padding-bottom: 25px; border-bottom: 1px solid var(--line); } .profile-avatar { display: grid; width: 62px; height: 62px; place-items: center; border-radius: 50%; background: var(--blue-pale); color: var(--brand-blue); font-size: 22px; font-weight: 900; } .profile-header h2 { margin-bottom: 5px; font-size: 22px; } .profile-header p { margin: 0; color: var(--muted); font-size: 11px; } .profile-fields { display: grid; gap: 18px; padding: 25px 0; } .profile-field span { display: block; margin-bottom: 5px; color: var(--muted); font-size: 10px; } .profile-field strong { color: var(--ink); font-size: 13px; } .profile-side { display: grid; gap: 14px; } .security-card, .support-card { padding: 24px; border: 1px solid var(--line); border-radius: 16px; background: #fff; box-shadow: var(--shadow); } .security-icon { display: grid; width: 36px; height: 36px; margin-bottom: 19px; place-items: center; border-radius: 50%; background: var(--blue-pale); color: var(--brand-blue); font-weight: 900; } .security-card h3, .support-card h3 { margin-bottom: 8px; color: var(--ink); font-size: 17px; } .security-card p, .support-card p:not(.eyebrow) { margin-bottom: 0; color: var(--muted); font-size: 11px; line-height: 1.8; } .support-card { background: #eef7fe; border-color: transparent; }

/* QR */
.modal-backdrop { display: none; align-items: center; justify-content: center; position: fixed; z-index: 10; inset: 0; padding: 20px; background: rgba(34,34,34,.55); backdrop-filter: blur(4px); } .modal-backdrop.open { display: flex; } .close-modal { position: absolute; top: 15px; right: 15px; width: 30px; height: 30px; border: 0; border-radius: 50%; background: #f2f5f8; color: var(--muted); } .asset-picker, .qr-modal { position: relative; width: min(470px, 100%); padding: 28px; border-radius: 16px; background: #fff; box-shadow: 0 15px 50px rgba(0,0,0,.2); } .asset-picker h2, .qr-modal h2 { margin-bottom: 7px; font-size: 23px; } .asset-picker > p:not(.eyebrow), .qr-modal > p { margin-bottom: 20px; color: var(--muted); font-size: 11px; line-height: 1.7; } .asset-choice-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; } .asset-choice { display: flex; align-items: center; gap: 10px; min-height: 76px; padding: 13px; border: 1px solid var(--line); border-radius: 11px; background: #fff; color: var(--ink); text-align: left; } .asset-choice:hover { border-color: var(--brand-blue); background: #f7fbff; transform: translateY(-2px); } .choice-icon { display: grid; width: 32px; height: 32px; flex: 0 0 32px; place-items: center; border-radius: 9px; background: var(--blue-pale); color: var(--brand-blue); font-weight: 900; } .asset-choice strong { display: block; font-size: 12px; } .asset-choice small { display: block; margin-top: 4px; color: var(--muted); font-size: 10px; } .qr-modal { width: min(390px, 100%); text-align: center; } .selected-asset { display: inline-flex; align-items: center; gap: 7px; margin: 0 auto 14px; padding: 7px 11px; border-radius: 999px; background: var(--blue-pale); color: var(--brand-deep); font-size: 11px; font-weight: 900; } .qr-code { display: grid; width: 190px; height: 190px; grid-template-columns: repeat(21, 1fr); grid-template-rows: repeat(21, 1fr); gap: 1px; margin: 0 auto 19px; padding: 10px; border: 8px solid #fff; outline: 1px solid var(--line); background: #fff; } .qr-cell { background: transparent; } .qr-cell.on { background: var(--ink); } .qr-modal small { display: block; color: var(--muted); font-size: 10px; }
.mobile-nav { display: flex; position: fixed; z-index: 50; right: 0; bottom: 0; left: 0; height: 68px; align-items: center; justify-content: space-around; padding-bottom: env(safe-area-inset-bottom); border-top: 1px solid var(--line); background: rgba(255,255,255,.98); box-shadow: 0 -4px 18px rgba(28, 67, 105, .1); backdrop-filter: blur(10px); }
.mobile-nav a { min-width: 58px; color: var(--muted); font-size: 10px; text-align: center; }
.mobile-nav a span { display: block; margin-bottom: 4px; color: #9aa4ad; font-size: 17px; }
.mobile-nav a.active { color: var(--brand-blue); font-weight: 800; }
.mobile-nav a.active span { color: var(--brand-blue); }
@media (min-width: 1025px) { .mobile-nav { display: none !important; } }
.mobile-menu-toggle, .mobile-menu, .mobile-menu-backdrop { display: none; }
.real-qr { display: block; width: 220px; height: 220px; margin: 18px auto; image-rendering: pixelated; background: #fff; }
.qr-loading { display: grid; width: 220px; height: 220px; place-items: center; margin: 18px auto; border: 1px solid var(--line); border-radius: 10px; background: #f7f9fc; color: var(--muted); font-size: 11px; }
.qr-stage { position: relative; width: 220px; height: 220px; margin: 18px auto; }
.qr-stage .real-qr, .qr-stage .qr-loading { position: absolute; inset: 0; width: 220px; height: 220px; margin: 0; }
.qr-status-overlay { display: grid; position: absolute; z-index: 2; inset: 0; place-items: center; border-radius: 10px; backdrop-filter: blur(1px); }
.qr-status-overlay[hidden] { display: none !important; }
.qr-status-overlay[data-state="processing"] { background: rgba(255, 193, 7, .68); }
.qr-status-overlay[data-state="succeeded"] { background: rgba(76, 175, 80, .42); }
.qr-status-overlay[data-state="failed"] { background: rgba(244, 67, 54, .42); }
.qr-status-icon { display: grid; width: 80%; height: 80%; place-items: center; border: 10px solid currentColor; border-radius: 50%; background: rgba(255,255,255,.42); font-size: 110px; font-weight: 900; line-height: .85; }
.qr-status-overlay[data-state="processing"] .qr-status-icon { color: #806000; border-color: rgba(128,96,0,.42); border-top-color: #806000; background: rgba(255,255,255,.32); font-size: 0; animation: qr-spin .8s linear infinite; }
.qr-status-overlay[data-state="succeeded"] .qr-status-icon { color: #1b6e2a; animation: qr-pop .25s ease-out both; }
.qr-status-overlay[data-state="succeeded"] .qr-status-icon::after { content: "✓"; }
.qr-status-overlay[data-state="failed"] .qr-status-icon { color: #a92323; animation: qr-pop .25s ease-out both; }
.qr-status-overlay[data-state="failed"] .qr-status-icon::after { content: "×"; }
@keyframes qr-spin { to { transform: rotate(360deg); } }
@keyframes qr-pop { from { opacity: 0; transform: scale(.5); } to { opacity: 1; transform: scale(1); } }
.payment-state.waiting { border-color: #90caf9; background: #e3f2fd; color: #1565c0; }
.payment-state.processing { border-color: #ffe082; background: #fff8e1; color: #8d6e00; }
.payment-state.succeeded { border-color: #a5d6a7; background: #e8f5e9; color: #2e7d32; }
.payment-state.failed { border-color: #ef9a9a; background: #ffebee; color: #b71c1c; }
.qr-loading[hidden], .real-qr[hidden] { display: none !important; }
.payment-countdown { color: var(--brand-blue) !important; font-size: 14px !important; font-weight: 900; }
.payment-countdown.expired { color: #b71c1c !important; font-size: 16px !important; }
.payment-refresh { display: inline-flex; align-items: center; justify-content: center; margin: 0 auto 2px; border: 1px solid #e57373; border-radius: 999px; padding: 9px 18px; background: #ffebee; color: #b71c1c; font-size: 12px; font-weight: 900; }
.payment-refresh:hover { background: #ffcdd2; }
.payment-refresh[hidden] { display: none; }
.login-success.error { border: 1px solid #ef9a9a; font-weight: 800; }
.empty-state { padding: 28px; color: var(--muted); font-size: 12px; text-align: center; }
.transaction-status { display: block; margin-top: 3px; color: inherit; font-size: 10px; font-weight: 700; }
.error { background: #ffebee !important; color: #b71c1c !important; }
.nft-selector { position: relative; z-index: 2; width: 100%; margin-top: 10px; border: 1px solid rgba(25,118,210,.2); border-radius: 7px; padding: 7px; background: rgba(255,255,255,.75); color: var(--ink); font-size: 10px; }
.logout-link { border: 0; padding: 0; background: transparent; text-align: left; }
/* Some mobile browsers report a desktop-sized layout viewport. Touch input still
   identifies the device as mobile, so keep the mobile navigation available. */
@media (hover: none), (pointer: coarse) {
  .mobile-nav { display: flex !important; position: fixed !important; z-index: 1000 !important; right: 0 !important; bottom: 0 !important; left: 0 !important; visibility: visible !important; opacity: 1 !important; transform: none !important; pointer-events: auto !important; }
  .mobile-menu-toggle { display: flex; }
}
@media (max-width: 900px) { .sidebar { width: 205px; flex-basis: 205px; } .main-content { padding: 28px 24px 40px; } .hero-grid, .lower-grid, .profile-layout { grid-template-columns: 1fr; } }
@media (max-width: 1024px) { .login-layout { display: block; } .login-brand-panel { min-height: 300px; padding: 26px; } .login-copy { margin-top: 48px; } .login-copy h1 { font-size: 42px; } .login-form-panel { min-height: calc(100vh - 300px); padding: 40px 24px 25px; } .sidebar { display: none; } .app-shell { display: block; padding-bottom: 84px; } .main-content { padding: 23px 17px 30px; } .topbar { margin-bottom: 28px; } .header-user { display: none; } .balance-card, .quick-card { min-height: 220px; } .balance-card { padding: 25px; } .balance strong { font-size: 52px; } .asset-grid { grid-template-columns: 1fr; } .section-heading { align-items: flex-start; flex-direction: column; gap: 4px; } .panel-card, .profile-card { padding: 18px; } .mobile-nav { display: flex !important; position: fixed; z-index: 50; right: 0; bottom: 0; left: 0; height: 68px; align-items: center; justify-content: space-around; padding-bottom: env(safe-area-inset-bottom); border-top: 1px solid var(--line); background: rgba(255,255,255,.98); box-shadow: 0 -4px 18px rgba(28, 67, 105, .1); backdrop-filter: blur(10px); } .mobile-nav a { min-width: 58px; color: var(--muted); font-size: 10px; text-align: center; } .mobile-nav a span { display: block; margin-bottom: 4px; color: #9aa4ad; font-size: 17px; } .mobile-nav a.active { color: var(--brand-blue); font-weight: 800; } .mobile-nav a.active span { color: var(--brand-blue); } .mobile-menu-toggle { display: flex; position: fixed; z-index: 70; top: 14px; right: 17px; align-items: center; gap: 7px; border: 1px solid var(--line); border-radius: 999px; padding: 8px 12px; background: rgba(255,255,255,.98); color: var(--brand-blue); box-shadow: 0 4px 14px rgba(28, 67, 105, .12); font-size: 11px; font-weight: 800; } .mobile-menu-toggle span:first-child { font-size: 18px; line-height: 1; } .mobile-menu-backdrop { position: fixed; z-index: 60; inset: 0; border: 0; background: rgba(16, 30, 45, .42); opacity: 0; pointer-events: none; } .mobile-menu { display: block; position: fixed; z-index: 65; top: 0; bottom: 0; left: 0; width: min(310px, 86vw); padding: 24px 18px; background: #fff; box-shadow: 12px 0 34px rgba(28, 67, 105, .2); transform: translateX(-105%); transition: transform .22s ease; } .mobile-menu-header { display: flex; align-items: center; justify-content: space-between; padding: 7px 10px 22px; border-bottom: 1px solid var(--line); color: var(--ink); } .mobile-menu-close { width: 32px; height: 32px; border: 0; border-radius: 50%; background: #f2f5f8; color: var(--muted); font-size: 22px; line-height: 1; } .mobile-menu-links { display: grid; gap: 6px; padding-top: 20px; } .mobile-menu-links a { display: flex; align-items: center; gap: 13px; border-radius: 10px; padding: 14px 12px; color: var(--muted); font-size: 13px; font-weight: 800; } .mobile-menu-links a span { width: 22px; color: #9aa4ad; font-size: 17px; text-align: center; } .mobile-menu-links a.active, .mobile-menu-links a:hover { background: var(--blue-pale); color: var(--brand-blue); } .mobile-menu-links a.active span { color: var(--brand-blue); } .mobile-menu-support { display: block; margin: 24px 10px 0; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; } .mobile-menu-open .mobile-menu { transform: translateX(0); } .mobile-menu-open .mobile-menu-backdrop { opacity: 1; pointer-events: auto; } .mobile-menu-open { overflow: hidden; } .asset-choice-grid { grid-template-columns: 1fr; } .transaction-filter { flex-wrap: wrap; } .filter-date { width: 100%; margin: 3px 0 0; } }

/* Keep the bottom navigation in the viewport on emulated and touch devices. */
@media (max-width: 1024px), (hover: none), (pointer: coarse) {
  html, body { overflow-x: hidden; }
  .app-shell { display: block; padding-bottom: calc(50px + env(safe-area-inset-bottom)); }
  .mobile-menu-toggle { display: none !important; }
  .mobile-nav {
    display: flex !important;
    position: fixed !important;
    inset: auto 0 0 !important;
    width: 100% !important;
    height: calc(50px + env(safe-area-inset-bottom)) !important;
    min-height: 50px !important;
    z-index: 2000 !important;
    visibility: visible !important;
    opacity: 1 !important;
    transform: translateZ(0) !important;
    padding: 0 10px env(safe-area-inset-bottom) !important;
  }
  .mobile-nav a { display: flex; flex: 1 1 0; min-width: 0; flex-direction: column; align-items: center; justify-content: center; color: var(--muted); font-size: 10px; line-height: 1.2; text-align: center; }
  .mobile-nav a span { display: block; margin-bottom: 4px; color: #9aa4ad; font-size: 17px; line-height: 1; }
}

.profile-edit-form { margin-top: 2px; padding-top: 22px; border-top: 1px solid var(--line); }
.profile-edit-controls { display: flex; align-items: center; gap: 10px; }
.profile-edit-controls .email-input { min-width: 0; flex: 1; }
.profile-form-error { display: block; margin-top: 7px; color: #b71c1c; font-size: 11px; }
.profile-message { margin: 0 0 18px; }
@media (max-width: 768px) { .profile-edit-controls { align-items: stretch; flex-direction: column; } }
