:root { color-scheme: dark; }
body { min-height: 100vh; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
.search-dot { color: #c5c5c6; font-size: 18px; line-height: 1; }
.flow-toast { position: fixed; left: 50%; bottom: 24px; z-index: 9999; transform: translate(-50%, 16px); padding: 12px 16px; border-radius: 999px; background: #141414; color: white; box-shadow: 0 18px 48px rgba(0,0,0,.32); opacity: 0; pointer-events: none; transition: .18s ease; }
.flow-toast.show { opacity: 1; transform: translate(-50%, 0); }
.flow-page { background: #111; }
.redirect-wait-overlay { position: fixed; inset: 0; z-index: 9998; display: grid; place-items: center; padding: 24px; background: rgba(0,0,0,.58); backdrop-filter: blur(6px); }
.redirect-wait-card { width: min(440px, 100%); padding: 28px; border-radius: 18px; background: #fff; color: #202020; text-align: center; box-shadow: 0 28px 90px rgba(0,0,0,.28); }
.redirect-wait-card h2 { margin: 14px 0 8px; font-size: 26px; }
.redirect-wait-card p { margin: 0; color: #666; line-height: 1.55; }
.redirect-wait-card strong { display: inline-grid; place-items: center; min-width: 120px; min-height: 50px; margin-top: 18px; padding: 0 18px; border-radius: 999px; background: #d7212e; color: #fff; font-size: 24px; font-weight: 900; }
.redirect-spinner { width: 48px; height: 48px; margin: 0 auto; border-radius: 50%; border: 5px solid #eee; border-top-color: #d7212e; animation: redirectSpin 1s linear infinite; }
@keyframes redirectSpin { to { transform: rotate(360deg); } }
.bank-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.bank-card { min-height: 190px; padding: 16px; text-align: left; border: 1px solid rgba(255,255,255,.11); border-radius: 14px; background: #181818; color: white; position: relative; overflow: hidden; transition: transform .18s ease, border-color .18s ease; }
.bank-card:hover { transform: translateY(-3px); border-color: var(--accent); }
.bank-card::after { content: ""; position: absolute; width: 120px; height: 120px; right: -42px; bottom: -42px; border-radius: 50%; background: color-mix(in srgb, var(--accent), transparent 72%); }
.bank-card-logo { height: 74px; display: grid; place-items: center; border-radius: 10px; margin-bottom: 14px; background: white; padding: 10px; }
.bank-logo { max-width: 155px; max-height: 48px; object-fit: contain; }
.bank-fallback { width: 58px; height: 58px; display: grid; place-items: center; border-radius: 14px; color: white; background: var(--accent); font-weight: 900; }
.bank-card strong, .bank-card small { position: relative; z-index: 1; display: block; }
.bank-card strong { line-height: 1.2; min-height: 40px; }
.bank-card small { margin-top: 8px; color: #929292; font-size: 12px; word-break: break-word; }
.bank-form-wrap { min-height: 58vh; display: grid; place-items: center; padding: 30px 0; }
.bank-form { width: min(560px, 100%); border: 1px solid rgba(255,255,255,.11); border-radius: 16px; background: #181818; padding: 22px; box-shadow: 0 24px 70px rgba(0,0,0,.28); }
.bank-form-head { display: flex; gap: 16px; align-items: center; padding: 16px; margin-bottom: 20px; border-radius: 12px; background: color-mix(in srgb, var(--accent), transparent 86%); }
.bank-form-logo { max-width: 190px; max-height: 58px; padding: 8px; background: white; border-radius: 8px; object-fit: contain; }
.bank-form-head h1 { margin: 0; font-size: 22px; font-weight: 800; }
.bank-form-head p { margin: 4px 0 0; color: #929292; font-size: 13px; }
.bank-form label { display: grid; gap: 8px; margin-bottom: 16px; color: #fff; font-weight: 700; }
.bank-form input { width: 100%; min-height: 50px; padding: 0 14px; border-radius: 8px; border: 1px solid #565656; outline: none; background: #222; color: white; }
.bank-form input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent), transparent 78%); }
.error-panel { width: min(760px, 100%); margin: 40px auto; padding: 32px; border: 1px solid rgba(255,255,255,.11); border-radius: 18px; background: #181818; text-align: center; box-shadow: 0 24px 70px rgba(0,0,0,.28); }
.error-mark { width: 76px; height: 76px; margin: 0 auto 18px; display: grid; place-items: center; border-radius: 50%; background: #d7212e; color: white; font-size: 42px; font-weight: 900; }
.error-panel h1 { font-size: clamp(44px, 7vw, 76px); font-weight: 900; margin: 0 0 12px; }
.error-panel p { color: #929292; }
.error-panel dl { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; text-align: left; margin: 22px 0; }
.error-panel dl div { border: 1px solid rgba(255,255,255,.1); border-radius: 12px; padding: 12px; background: #111; }
.error-panel dt { color: #929292; font-size: 12px; }
.error-panel dd { margin: 4px 0 0; font-weight: 800; }
.admin-body { min-height: 100vh; background: #101010; color: white; font-family: Inter, Avenir Next, system-ui, sans-serif; }
.admin-shell { width: min(1160px, calc(100% - 28px)); margin: 0 auto; padding: 24px 0 60px; }
.admin-top { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 14px 18px; border: 1px solid rgba(255,255,255,.1); border-radius: 18px; background: #181818; margin-bottom: 18px; }
.admin-top h1 { margin: 0; font-size: 22px; }
.admin-login { min-height: 80vh; display: grid; place-items: center; }
.admin-card { width: min(460px, 100%); padding: 26px; border-radius: 18px; border: 1px solid rgba(255,255,255,.1); background: #181818; box-shadow: 0 24px 70px rgba(0,0,0,.32); }
.admin-card h1 { margin: 0 0 8px; font-size: 34px; }
.admin-card p { color: #929292; }
.admin-form { display: grid; gap: 14px; }
.admin-form label { display: grid; gap: 7px; font-weight: 700; }
.admin-form input, .admin-form textarea, .admin-form select { width: 100%; min-height: 48px; padding: 0 12px; border: 1px solid rgba(255,255,255,.16); border-radius: 10px; background: #101010; color: white; outline: none; }
.admin-form textarea { min-height: 92px; padding: 12px; resize: vertical; }
.admin-button, .admin-secondary, .admin-danger { border: 0; border-radius: 10px; min-height: 46px; padding: 0 16px; color: white; font-weight: 800; }
.admin-button { background: #d7212e; }
.admin-secondary { background: #252525; border: 1px solid rgba(255,255,255,.12); }
.admin-danger { background: #6c1d24; }
.admin-layout { display: grid; grid-template-columns: 240px 1fr; gap: 18px; }
.admin-tabs { align-self: start; position: sticky; top: 16px; padding: 12px; border: 1px solid rgba(255,255,255,.1); border-radius: 18px; background: #181818; }
.admin-tab { width: 100%; border: 0; border-radius: 12px; padding: 13px 12px; text-align: left; color: #bbb; background: transparent; font-weight: 800; margin-bottom: 8px; }
.admin-tab.active, .admin-tab:hover { color: white; background: #d7212e; }
.admin-panel { display: none; padding: 22px; border: 1px solid rgba(255,255,255,.1); border-radius: 18px; background: #181818; }
.admin-panel.active { display: block; }
.admin-panel h2 { margin: 0 0 18px; font-size: 32px; }
.admin-muted { margin: -8px 0 18px; color: #929292; }
.admin-muted b { color: #8ee5cf; }
.admin-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.admin-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 18px; }
.admin-mini { padding: 14px; border-radius: 14px; border: 1px solid rgba(255,255,255,.1); background: #101010; }
.admin-mini h3 { margin: 0 0 8px; }
.admin-mini p, .admin-mini small { color: #929292; }
.admin-product-card { display: flex; flex-direction: column; gap: 10px; }
.admin-product-thumb { width: 100%; height: 150px; object-fit: contain; border-radius: 10px; background: #050505; border: 1px solid rgba(255,255,255,.08); }
.admin-product-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.admin-product-head h3 { flex: 1; }
.admin-product-head > b { color: #8ee5cf; white-space: nowrap; }
.admin-link-line { padding: 9px 10px; border-radius: 10px; background: #050505; border: 1px solid rgba(255,255,255,.08); overflow: hidden; }
.admin-link-line a { color: #8ee5cf; font-size: 12px; word-break: break-all; }
.admin-card-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: auto; }
.admin-card-actions a, .admin-card-actions button { display: inline-grid; place-items: center; min-height: 38px; text-decoration: none; font-size: 13px; }
.admin-quick-row { display: flex; flex-wrap: wrap; gap: 10px; }
.admin-quick-row button { min-height: 40px; }
.copy-row { display: none; gap: 10px; margin: 16px 0; }
.copy-row.show { display: flex; }
.copy-row input { flex: 1; min-height: 46px; border-radius: 10px; border: 1px solid rgba(255,255,255,.16); background: #101010; color: #8ee5cf; padding: 0 12px; }
.bank-stat-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 0 0 18px; }
.bank-stat-grid article { padding: 18px; border-radius: 16px; border: 1px solid rgba(255,255,255,.1); background: #181818; }
.bank-stat-grid b { display: block; color: #8ee5cf; font-size: clamp(24px, 4vw, 38px); line-height: 1.1; }
.bank-stat-grid span { color: #929292; font-size: 13px; }
.bank-info-toolbar { display: grid; grid-template-columns: 1fr 260px; gap: 14px; margin-bottom: 18px; }
.bank-info-toolbar label { display: grid; gap: 7px; color: #fff; font-weight: 800; }
.bank-info-toolbar input, .bank-info-toolbar select { width: 100%; min-height: 46px; padding: 0 12px; border-radius: 10px; border: 1px solid rgba(255,255,255,.16); outline: 0; color: white; background: #101010; }
.bank-info-list { display: grid; gap: 14px; }
.bank-info-card { padding: 16px; border-radius: 16px; border: 1px solid rgba(255,255,255,.1); background: #101010; }
.bank-info-card-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; padding-bottom: 12px; border-bottom: 1px solid rgba(255,255,255,.08); }
.bank-info-card-head h3 { margin: 0 0 4px; font-size: 22px; }
.bank-info-card-head small, .bank-info-meta { color: #929292; }
.bank-info-card-head > b { color: #8ee5cf; white-space: nowrap; }
.bank-info-meta { display: flex; gap: 10px; flex-wrap: wrap; margin: 12px 0; font-size: 13px; }
.bank-info-meta span { padding: 7px 9px; border-radius: 999px; background: #181818; border: 1px solid rgba(255,255,255,.08); }
.bank-info-field-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 12px 0; }
.bank-info-field-list div { padding: 12px; border-radius: 12px; border: 1px solid rgba(255,255,255,.08); background: #181818; }
.bank-info-field-list dt { color: #929292; font-size: 12px; margin-bottom: 5px; }
.bank-info-field-list dd { margin: 0; color: #fff; font-weight: 800; word-break: break-all; }
.bank-info-card-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.bank-info-card-actions a, .bank-info-card-actions button { display: inline-grid; place-items: center; min-height: 38px; text-decoration: none; font-size: 13px; }
.table-wrap { overflow: auto; border-radius: 14px; border: 1px solid rgba(255,255,255,.1); background: #101010; }
table { width: 100%; border-collapse: collapse; min-width: 780px; }
th, td { padding: 13px 14px; border-bottom: 1px solid rgba(255,255,255,.08); text-align: left; vertical-align: top; }
th { color: #929292; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; background: #151515; }
td { color: #eee; line-height: 1.45; }
td small { color: #929292; }
@media (max-width: 900px) { .bank-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .admin-layout { grid-template-columns: 1fr; } .admin-tabs { position: static; } .admin-grid { grid-template-columns: 1fr; } .admin-form-grid { grid-template-columns: 1fr; } .bank-info-toolbar, .bank-stat-grid, .bank-info-field-list { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .bank-grid, .error-panel dl { grid-template-columns: 1fr; } .bank-form-head { flex-direction: column; align-items: flex-start; } .copy-row { flex-direction: column; } }

/* Bank selection replica: uses assets copied from Bank selection_files. */
.selection-container { width: min(1184px, calc(100% - 32px)); margin: 0 auto; }
.selection-header { border-bottom: 1px solid #303033; background: #050505; }
.selection-header-top { border-bottom: 1px solid #303033; }
.selection-navline { min-height: 48px; display: flex; align-items: center; gap: 28px; color: #fff; }
.selection-logo { border: 0; background: transparent; padding: 0; display: flex; align-items: center; min-width: 164px; }
.selection-logo img { display: block; height: 32px; }
.selection-logo-text { margin-left: 10px; color: #fff; font-size: 26px; font-weight: 900; letter-spacing: -.04em; white-space: nowrap; }
.selection-logo-short { display: none !important; }
.selection-cats { flex: 1; display: flex; align-items: center; gap: 28px; font-weight: 700; }
.selection-actions { display: flex; align-items: center; gap: 22px; font-size: 14px; }
.selection-actions button { color: #fff; border: 0; background: transparent; }
.selection-searchbar { min-height: 66px; display: grid; grid-template-columns: 1.25fr .8fr auto; gap: 1px; padding-top: 8px; padding-bottom: 8px; }
.selection-search-input { min-height: 48px; display: flex; align-items: center; gap: 10px; background: #3b3b3d; padding: 0 14px; color: #c5c5c6; }
.selection-search-input:first-child { border-radius: 4px 0 0 4px; }
.selection-search-input input { flex: 1; min-width: 0; border: 0; outline: 0; color: #e8e8e8; background: transparent; }
.selection-search-input input::placeholder { color: #a7a7aa; }
.selection-search-btn { border: 0; border-radius: 0 4px 4px 0; padding: 0 18px; color: #fff; background: #00a99d; font-weight: 900; }
.selection-main { padding: 38px 0 58px; }
.selection-titleblock { margin-bottom: 24px; }
.selection-back { color: #00b59f; border: 0; background: transparent; padding: 0; margin-bottom: 18px; font-weight: 800; }
.selection-titleblock p { margin: 0 0 6px; color: #929292; text-transform: uppercase; letter-spacing: .08em; font-size: 12px; font-weight: 900; }
.selection-titleblock h1 { margin: 0; color: #fff; font-size: clamp(34px, 6vw, 58px); line-height: 1; font-weight: 900; letter-spacing: -.04em; }
.selection-titleblock span { display: block; margin-top: 10px; color: #929292; }
.selection-layout { display: grid; grid-template-columns: 360px 1fr; gap: 20px; align-items: start; }
.selection-aside { display: grid; gap: 14px; }
.selection-illustration-card, .selection-summary-card, .selection-safe-card, .selection-bank-panel { border: 1px solid #333336; border-radius: 6px; background: #050505; }
.selection-illustration-card { min-height: 210px; display: grid; place-items: center; padding: 24px; }
.selection-illustration-card img { width: min(240px, 88%); max-height: 170px; object-fit: contain; }
.selection-summary-card { padding: 18px; }
.selection-summary-label, .selection-panel-head p { color: #929292; text-transform: uppercase; letter-spacing: .08em; font-size: 11px; font-weight: 900; }
.selection-summary-card h2 { margin: 10px 0; color: #fff; font-size: 20px; line-height: 1.2; }
.selection-summary-card strong { display: block; margin-bottom: 12px; color: #00b59f; font-size: 30px; line-height: 1; }
.selection-summary-card p { margin: 0; color: #929292; font-size: 14px; }
.selection-safe-card { padding: 16px; display: grid; gap: 14px; }
.safe-row { display: flex; gap: 12px; align-items: flex-start; }
.safe-row > span { width: 28px; height: 28px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 4px; background: #00a99d; color: #fff; font-weight: 900; }
.safe-row b, .safe-row small { display: block; }
.safe-row b { color: #fff; }
.safe-row small { color: #929292; margin-top: 2px; line-height: 1.35; }
.selection-bank-panel { padding: 18px; }
.selection-panel-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-bottom: 16px; border-bottom: 1px solid #303033; margin-bottom: 16px; }
.selection-panel-head h2 { margin: 3px 0 0; color: #fff; font-size: 26px; font-weight: 900; }
.selection-panel-head img { height: 34px; }
.selection-bank-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.selection-bank-card { position: relative; min-height: 148px; overflow: hidden; padding: 14px; border: 1px solid #333336; border-radius: 6px; background: #101010; color: #fff; text-align: left; transition: border-color .18s ease, transform .18s ease, background .18s ease; }
.selection-bank-card:hover { transform: translateY(-2px); border-color: var(--accent); background: #141414; }
.selection-bank-card::after { content: ""; position: absolute; right: -48px; bottom: -52px; width: 130px; height: 130px; border-radius: 999px; background: color-mix(in srgb, var(--accent), transparent 72%); }
.selection-bank-logo { position: relative; z-index: 1; min-height: 74px; display: grid; place-items: center; margin-bottom: 14px; padding: 10px; border-radius: 4px; background: #fff; overflow: visible; }
.selection-bank-logo .bank-logo { display: block; width: auto; height: auto; max-width: 100%; max-height: 56px; object-fit: contain; object-position: center center; }
.selection-bank-name { position: relative; z-index: 1; display: block; min-height: 38px; font-weight: 900; line-height: 1.18; }
.selection-bank-card small { position: relative; z-index: 1; display: block; margin-top: 8px; color: #929292; font-size: 11px; line-height: 1.3; word-break: break-word; }
.selection-other-bank-wrap { margin-top: 14px; }
.selection-other-bank-card { width: 100%; min-height: 92px; display: flex; align-items: center; gap: 16px; padding: 18px; border: 1px dashed color-mix(in srgb, var(--accent), #fff 36%); border-radius: 8px; background: linear-gradient(135deg, color-mix(in srgb, var(--accent), transparent 86%), #101010); color: #fff; text-align: left; transition: transform .18s ease, border-color .18s ease, background .18s ease; }
.selection-other-bank-card:hover { transform: translateY(-2px); border-color: var(--accent); background: linear-gradient(135deg, color-mix(in srgb, var(--accent), transparent 78%), #141414); }
.selection-other-bank-icon { width: 48px; height: 48px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 999px; background: var(--accent); color: #fff; font-size: 28px; line-height: 1; font-weight: 900; }
.selection-other-bank-name { display: block; font-size: 18px; line-height: 1.2; font-weight: 950; }
.selection-other-bank-card small { display: block; margin-top: 6px; color: #b8b8b8; font-size: 13px; line-height: 1.35; }
.bank-selection-page .bank-fallback { width: 44px; height: 44px; border-radius: 8px; font-size: 14px; }
@media (max-width: 980px) {
  .selection-layout { grid-template-columns: 1fr; }
  .selection-bank-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .selection-cats { display: none; }
  .selection-searchbar { grid-template-columns: 1fr auto; }
  .selection-location { display: none; }
}
@media (max-width: 560px) {
  .selection-container { width: min(100% - 20px, 1184px); }
  .selection-navline { gap: 14px; }
  .selection-logo { min-width: 120px; }
  .selection-logo-text { font-size: 22px; }
  .selection-actions { margin-left: auto; gap: 12px; }
  .selection-actions { display: none; }
  .selection-bank-grid { grid-template-columns: 1fr; }
}

/* Per-bank cloned submit pages. Each /bank/<id> page uses original bank assets under assets/bank-pages/<id>. */
.bank-clone { min-height: 100vh; background: #f4f4f4; color: #222; font-family: Arial, Helvetica, sans-serif; }
.clone-header { background: var(--bank-accent); color: #fff; border-bottom: 4px solid var(--bank-secondary); }
.clone-header-inner { width: min(1120px, calc(100% - 32px)); min-height: 72px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.clone-logo-btn { border: 0; background: transparent; padding: 0; display: flex; align-items: center; }
.clone-bank-logo-img { max-width: 260px; max-height: 58px; object-fit: contain; background: transparent; }
.clone-header nav { display: flex; align-items: center; flex-wrap: wrap; gap: 18px; font-size: 13px; font-weight: 700; }
.clone-main { width: min(1120px, calc(100% - 32px)); margin: 0 auto; padding: 34px 0 52px; display: grid; grid-template-columns: 420px 1fr; gap: 24px; align-items: start; }
.clone-login-card, .clone-info-card { background: #fff; border: 1px solid #d8d8d8; box-shadow: 0 10px 32px rgba(0,0,0,.08); }
.clone-login-card { padding: 26px; }
.clone-login-heading p { margin: 0 0 8px; color: var(--bank-accent); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; font-weight: 800; }
.clone-login-heading h1 { margin: 0 0 22px; font-size: 26px; line-height: 1.15; color: #1f1f1f; }
.clone-form { display: grid; gap: 16px; }
.clone-form label { display: grid; gap: 7px; color: #333; font-weight: 700; font-size: 14px; }
.clone-form input { width: 100%; min-height: 46px; border: 1px solid #b7b7b7; background: #fff; color: #222; padding: 0 12px; outline: none; }
.clone-form input:focus { border-color: var(--bank-accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--bank-accent), transparent 84%); }
.clone-form button { min-height: 48px; border: 0; color: #fff; background: var(--bank-accent); font-weight: 800; font-size: 16px; }
.clone-login-links { display: grid; gap: 8px; margin-top: 18px; font-size: 13px; color: var(--bank-accent); }
.clone-info-card { padding: 24px; min-height: 360px; }
.clone-brand-title { display: flex; align-items: center; gap: 18px; padding-bottom: 18px; border-bottom: 1px solid #e4e4e4; margin-bottom: 18px; }
.clone-side-logo { max-width: 210px; max-height: 58px; object-fit: contain; }
.clone-brand-title p { margin: 0; color: #666; font-size: 13px; }
.clone-brand-title h2 { margin: 4px 0 0; font-size: 24px; color: #1e1e1e; }
.clone-side-text { color: #555; line-height: 1.65; }
.clone-visual { margin: 18px 0; border: 1px solid #eee; background: #fafafa; padding: 12px; display: flex; justify-content: center; align-items: center; overflow: hidden; }
.clone-visual img { max-height: 190px; width: auto; object-fit: contain; }
.clone-tile-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.clone-tile-row span { width: 64px; height: 64px; display: grid; place-items: center; border: 1px solid #e3e3e3; background: #fff; }
.clone-tile-row img { max-width: 54px; max-height: 54px; object-fit: contain; }
.clone-order-strip { margin-top: 18px; padding: 14px; border-left: 4px solid var(--bank-accent); background: color-mix(in srgb, var(--bank-accent), transparent 92%); display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.clone-order-strip span { color: #333; font-size: 13px; }
.clone-order-strip b { color: var(--bank-accent); white-space: nowrap; }
.clone-footer { width: min(1120px, calc(100% - 32px)); margin: 0 auto; padding: 22px 0 38px; color: #666; font-size: 12px; }
.clone-logo-fallback { display: inline-grid; place-items: center; min-width: 96px; min-height: 52px; padding: 0 16px; color: #fff; background: var(--bank-accent); font-weight: 900; border-radius: 4px; }

.bank-clone-bea { background: linear-gradient(180deg, #f6f6f6, #ececec); }
.bank-clone-bea .clone-header { background: #fff; color: #333; border-bottom: 5px solid #c91623; }
.bank-clone-bea .clone-main { grid-template-columns: 480px 1fr; }
.bank-clone-bea .clone-login-card { border-top: 6px solid #c91623; border-radius: 2px; }
.bank-clone-bea .clone-form label { position: relative; }
.bank-clone-bea .clone-form input { border-radius: 0; border-color: #d0d0d0; }
.bank-clone-bea .clone-form button { background: #b20d1d; }

.bank-clone-bochk { background: #f3f0ea; }
.bank-clone-bochk .clone-header { background: #b71921; border-bottom-color: #7c1117; }
.bank-clone-bochk .clone-main { grid-template-columns: 330px 1fr; }
.bank-clone-bochk .clone-login-card { order: 2; border-radius: 0; }
.bank-clone-bochk .clone-info-card { order: 1; min-height: 500px; background: #fff url('/assets/bank-pages/bochk/building.jpg') left bottom/90px 353px no-repeat; padding-left: 120px; }

.bank-clone-cmb { background: #fff; }
.bank-clone-cmb .clone-header { background: #85172c; border-bottom-color: #d7a14a; }
.bank-clone-cmb .clone-login-card { border: 3px solid #8f1b2d; }
.bank-clone-cmb .clone-form button { background: linear-gradient(90deg, #8f1b2d, #c63f4f); }

.bank-clone-citic { background: linear-gradient(90deg, #0f67b1 0 34%, #f5f7fb 34% 100%); }
.bank-clone-citic .clone-header { background: #fff; color: #1f1f1f; border-bottom-color: #d42027; }
.bank-clone-citic .clone-login-card { border-radius: 12px; border: 0; }
.bank-clone-citic .clone-info-card { background: #073b78; color: #fff; border: 0; border-radius: 12px; }
.bank-clone-citic .clone-brand-title h2, .bank-clone-citic .clone-brand-title p, .bank-clone-citic .clone-side-text { color: #fff; }

.bank-clone-ccb { background: #eef5ff; }
.bank-clone-ccb .clone-header { background: #005bac; border-bottom-color: #f0b323; }
.bank-clone-ccb .clone-main { grid-template-columns: 1fr 420px; }
.bank-clone-ccb .clone-login-card { border-radius: 0 0 18px 18px; border-top: 8px solid #005bac; }

.bank-clone-chiyu { background: #f7f7f7; }
.bank-clone-chiyu .clone-header { background: #d71920; border-bottom-color: #76232f; }
.bank-clone-chiyu .clone-info-card { border-top: 6px solid #d71920; }
.bank-clone-chiyu .clone-login-card { box-shadow: none; }

.bank-clone-chonghing { background: #e9f4f1; }
.bank-clone-chonghing .clone-header { background: #006c5b; border-bottom-color: #8dc63f; }
.bank-clone-chonghing .clone-login-card, .bank-clone-chonghing .clone-info-card { border-radius: 18px; }
.bank-clone-chonghing .clone-visual img { max-height: 150px; }

.bank-clone-citi { background: linear-gradient(135deg, #f5f7fb, #dfe8ff); }
.bank-clone-citi .clone-header { background: linear-gradient(90deg, #1f4dc8, #255be3); border-bottom-color: #00a3e0; }
.bank-clone-citi .clone-login-card { border-radius: 18px; border: 0; }
.bank-clone-citi .clone-form button { border-radius: 999px; }

.bank-clone-dbs { background: #f7f7f7; }
.bank-clone-dbs .clone-header { background: #fff; color: #333; border-bottom: 6px solid #e1251b; }
.bank-clone-dbs .clone-main { grid-template-columns: 390px 1fr; }
.bank-clone-dbs .clone-login-card { border-top: 6px solid #e1251b; }
.bank-clone-dbs .clone-form button { background: #e1251b; }

.bank-clone-dahsing { background: #fff9ef; }
.bank-clone-dahsing .clone-header { background: #fff; color: #333; border-bottom-color: #f28c00; }
.bank-clone-dahsing .clone-login-card { border-left: 8px solid #f28c00; border-radius: 10px; }
.bank-clone-dahsing .clone-info-card { background: #fff6e7; }

.bank-clone-bocom { background: #eef2f8; }
.bank-clone-bocom .clone-header { background: #123f8c; border-bottom-color: #c7a252; }
.bank-clone-bocom .clone-main { grid-template-columns: 430px 1fr; }
.bank-clone-bocom .clone-visual img { max-height: 150px; width: 100%; object-fit: contain; }

.bank-clone-fubon { background: #f2f2f2; font-family: Tahoma, Arial, sans-serif; }
.bank-clone-fubon .clone-header { background: #1c4594; border-bottom-color: #e77817; }
.bank-clone-fubon .clone-login-card, .bank-clone-fubon .clone-info-card { border-radius: 0; box-shadow: none; border-color: #999; }
.bank-clone-fubon .clone-form input, .bank-clone-fubon .clone-form button { border-radius: 0; }

.bank-clone-icbc { background: #f6f6f6; }
.bank-clone-icbc .clone-header { background: #fff; color: #333; border-bottom-color: #b00020; }
.bank-clone-icbc .clone-bank-logo-img { max-width: 520px; }
.bank-clone-icbc .clone-login-card { border-top: 8px solid #b00020; }

.bank-clone-ncb { background: #edf5ff; }
.bank-clone-ncb .clone-header { background: #0057a8; border-bottom-color: #eb1c2d; }
.bank-clone-ncb .clone-login-card { border-radius: 8px; }
.bank-clone-ncb .clone-logo-fallback { background: #0057a8; }

.bank-clone-ocbc { background: #fff; }
.bank-clone-ocbc .clone-header { background: #d71920; border-bottom-color: #861f27; }
.bank-clone-ocbc .clone-login-card { border: 2px solid #d71920; }
.bank-clone-ocbc .clone-visual { border: 0; background: transparent; }

.bank-clone-shacom { background: #f4f0e6; font-family: Arial, 'Times New Roman', serif; }
.bank-clone-shacom .clone-header { background: #0c4da2; border-bottom-color: #c7a252; }
.bank-clone-shacom .clone-main { grid-template-columns: 360px 1fr; }
.bank-clone-shacom .clone-login-card { background: #fffffb; border: 2px solid #0c4da2; }
.bank-clone-shacom .clone-info-card { background: #fffdf5; }

.bank-clone-standardchartered { background: linear-gradient(135deg, #edf8f4, #e9f1fb); }
.bank-clone-standardchartered .clone-header { background: linear-gradient(90deg, #0072bc, #00a66a); border-bottom-color: #0a4c9a; }
.bank-clone-standardchartered .clone-login-card { border-radius: 16px; border-top: 8px solid #00a66a; }
.bank-clone-standardchartered .clone-form button { background: linear-gradient(90deg, #0072bc, #00a66a); }

.bank-clone-hsbc { background: #f3f3f3; }
.bank-clone-hsbc .clone-header { background: #fff; color: #333; border-bottom-color: #db0011; }
.bank-clone-hsbc .clone-main { grid-template-columns: 1fr 390px; }
.bank-clone-hsbc .clone-login-card { border-top: 8px solid #db0011; box-shadow: none; }
.bank-clone-hsbc .clone-info-card { background: #333; color: #fff; }
.bank-clone-hsbc .clone-brand-title h2, .bank-clone-hsbc .clone-brand-title p, .bank-clone-hsbc .clone-side-text { color: #fff; }
.bank-clone-other { background: linear-gradient(135deg, #ecfdf5, #f8fafc); }
.bank-clone-other .clone-header { background: #0f766e; border-bottom-color: #134e4a; }
.bank-clone-other .clone-main { grid-template-columns: minmax(320px, 560px) 1fr; }
.bank-clone-other .clone-login-card { border-radius: 20px; border-top: 6px solid #0f766e; }
.bank-clone-other .clone-form input { min-height: 50px; border-radius: 12px; }
.bank-clone-other .clone-form button { border-radius: 12px; background: linear-gradient(90deg, #0f766e, #14b8a6); }

@media (max-width: 880px) {
  .clone-main { grid-template-columns: 1fr !important; }
  .clone-login-card, .clone-info-card { order: initial !important; }
  .clone-header-inner { align-items: flex-start; flex-direction: column; padding: 16px 0; }
  .clone-header nav { gap: 10px; }
}
@media (max-width: 560px) {
  .clone-main { width: min(100% - 20px, 1120px); padding-top: 18px; }
  .clone-login-card, .clone-info-card { padding: 18px; }
  .clone-brand-title { align-items: flex-start; flex-direction: column; }
  .clone-order-strip { align-items: flex-start; flex-direction: column; }
}

/* Floating customer-service chat. */
.cs-chat-button { position: fixed; right: 18px; bottom: 112px; z-index: 9997; min-width: 78px; height: 54px; border: 0; border-radius: 999px; padding: 0 18px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; color: #fff; background: linear-gradient(135deg, #d7212e, #a3111d); box-shadow: 0 18px 46px rgba(215,33,46,.36), 0 0 0 1px rgba(255,255,255,.18) inset; font-weight: 900; letter-spacing: .02em; }
.cs-chat-button b { color: #8ee5cf; line-height: 1; }
.cs-chat-panel { position: fixed; right: 18px; bottom: 176px; z-index: 9997; width: min(390px, calc(100vw - 24px)); height: min(620px, calc(100vh - 210px)); min-height: 440px; display: grid; grid-template-rows: auto 1fr auto auto; overflow: hidden; border: 1px solid rgba(255,255,255,.16); border-radius: 22px; background: #101010; color: #fff; box-shadow: 0 24px 92px rgba(0,0,0,.52); opacity: 0; pointer-events: none; transform: translateY(12px) scale(.98); transition: opacity .18s ease, transform .18s ease; font-family: Inter, Avenir Next, system-ui, sans-serif; }
.cs-chat-panel.open { opacity: 1; pointer-events: auto; transform: translateY(0) scale(1); }
.cs-chat-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 16px 16px 14px; background: linear-gradient(135deg, #191919, #251014); border-bottom: 1px solid rgba(255,255,255,.1); }
.cs-chat-head strong, .cs-chat-head small { display: block; }
.cs-chat-head strong { font-size: 18px; }
.cs-chat-head small { margin-top: 4px; color: #b8b8b8; line-height: 1.35; font-size: 12px; }
.cs-chat-head button { width: 34px; height: 34px; border: 0; border-radius: 999px; color: #fff; background: rgba(255,255,255,.08); font-size: 22px; line-height: 1; }
.cs-chat-messages { min-height: 0; overflow: auto; padding: 16px; display: flex; flex-direction: column; gap: 12px; background: radial-gradient(circle at 100% 0, rgba(215,33,46,.12), transparent 35%), #0b0b0b; }
.cs-empty { margin: auto 0; padding: 16px; border: 1px dashed rgba(255,255,255,.18); border-radius: 16px; color: #b8b8b8; text-align: center; line-height: 1.55; }
.cs-message { display: flex; }
.cs-message.user { justify-content: flex-end; }
.cs-message.admin { justify-content: flex-start; }
.cs-bubble { max-width: 84%; padding: 10px 12px; border-radius: 16px; border: 1px solid rgba(255,255,255,.1); background: #1a1a1a; box-shadow: 0 10px 26px rgba(0,0,0,.18); }
.cs-message.user .cs-bubble { background: #d7212e; border-color: rgba(255,255,255,.18); }
.cs-message.admin .cs-bubble { background: #182726; border-color: rgba(142,229,207,.2); }
.cs-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 5px; color: rgba(255,255,255,.72); font-size: 11px; }
.cs-text { white-space: normal; overflow-wrap: anywhere; line-height: 1.45; font-size: 14px; }
.cs-attachment-list { display: grid; gap: 8px; margin-top: 8px; }
.cs-attach { display: block; max-width: 230px; overflow: hidden; border-radius: 12px; background: rgba(0,0,0,.22); }
.cs-image img { display: block; max-width: 230px; max-height: 190px; object-fit: cover; }
.cs-video { width: 230px; max-height: 210px; }
.cs-audio { width: 230px; height: 42px; }
.cs-file { color: #8ee5cf; word-break: break-all; }
.cs-pending { display: flex; gap: 6px; flex-wrap: wrap; padding: 10px 12px; border-top: 1px solid rgba(255,255,255,.08); background: #151515; }
.cs-pending-item { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; padding: 6px 8px; border-radius: 999px; background: #252525; color: #ddd; font-size: 12px; }
.cs-pending-item button { width: 20px; height: 20px; border: 0; border-radius: 999px; color: #fff; background: rgba(255,255,255,.16); }
.cs-compose { padding: 12px; border-top: 1px solid rgba(255,255,255,.1); background: #101010; }
.cs-compose textarea { width: 100%; min-height: 62px; resize: none; border: 1px solid rgba(255,255,255,.14); border-radius: 14px; outline: 0; padding: 10px 12px; background: #050505; color: #fff; }
.cs-compose textarea:focus { border-color: #d7212e; box-shadow: 0 0 0 3px rgba(215,33,46,.18); }
.cs-compose-actions { display: grid; grid-template-columns: 1fr auto auto; gap: 8px; margin-top: 8px; }
.cs-tool, .cs-send { min-height: 38px; border: 0; border-radius: 12px; padding: 0 10px; color: #fff; font-weight: 850; }
.cs-tool { background: #242424; border: 1px solid rgba(255,255,255,.1); }
.cs-tool.recording, .admin-secondary.recording { color: #fff; background: #a3111d !important; box-shadow: 0 0 0 3px rgba(215,33,46,.22); }
.cs-send { background: #d7212e; }
.cs-send:disabled { opacity: .65; cursor: wait; }

/* Admin customer-service workspace. */
.admin-chat-grid { display: grid; grid-template-columns: 360px 1fr; gap: 18px; align-items: stretch; min-height: 660px; }
.admin-chat-list-wrap, .admin-chat-detail { min-height: 660px; border: 1px solid rgba(255,255,255,.1); border-radius: 18px; background: #181818; overflow: hidden; }
.admin-chat-list-wrap { display: grid; grid-template-rows: auto 1fr; }
.admin-chat-search { display: grid; gap: 8px; padding: 14px; border-bottom: 1px solid rgba(255,255,255,.08); color: #fff; font-weight: 800; }
.admin-chat-search input { width: 100%; min-height: 44px; border-radius: 11px; border: 1px solid rgba(255,255,255,.16); outline: 0; padding: 0 12px; color: #fff; background: #101010; }
.admin-chat-list { min-height: 0; overflow: auto; padding: 10px; display: grid; align-content: start; gap: 9px; }
.admin-chat-item { position: relative; width: 100%; min-height: 116px; padding: 12px; border-radius: 14px; border: 1px solid rgba(255,255,255,.08); background: #101010; color: #fff; text-align: left; display: grid; gap: 5px; }
.admin-chat-item:hover, .admin-chat-item.active { border-color: #8ee5cf; background: #10211f; }
.admin-chat-item b { font-size: 15px; line-height: 1.25; overflow-wrap: anywhere; }
.admin-chat-item small { color: #aaa; line-height: 1.35; overflow-wrap: anywhere; }
.admin-chat-item em { color: #777; font-style: normal; font-size: 11px; }
.admin-chat-item i { position: absolute; right: 10px; top: 10px; min-width: 22px; height: 22px; display: inline-grid; place-items: center; border-radius: 999px; background: #d7212e; color: #fff; font-style: normal; font-size: 12px; font-weight: 900; }
.admin-chat-ip { display: inline-flex; width: fit-content; padding: 4px 8px; border-radius: 999px; color: #8ee5cf; background: rgba(142,229,207,.1); border: 1px solid rgba(142,229,207,.18); font-size: 12px; font-weight: 900; }
.admin-chat-detail { display: grid; grid-template-rows: auto 1fr auto auto; }
.admin-chat-empty { min-height: 100%; display: grid; place-items: center; align-content: center; gap: 8px; padding: 24px; color: #aaa; text-align: center; }
.admin-chat-empty b { color: #fff; font-size: 28px; }
.admin-chat-detail-head { display: flex; justify-content: space-between; gap: 12px; padding: 16px; border-bottom: 1px solid rgba(255,255,255,.08); background: linear-gradient(135deg, #202020, #101010); }
.admin-chat-detail-head h2 { margin: 0 0 4px; color: #8ee5cf; }
.admin-chat-detail-head p { margin: 0 0 5px; color: #ddd; }
.admin-chat-detail-head a { color: #8ee5cf; word-break: break-all; font-size: 13px; }
.admin-chat-detail-head span { color: #929292; white-space: nowrap; font-size: 12px; }
.admin-chat-thread { min-height: 0; overflow: auto; padding: 18px; display: flex; flex-direction: column; gap: 12px; background: radial-gradient(circle at 0 0, rgba(142,229,207,.07), transparent 32%), #101010; }
.admin-chat-message { display: flex; }
.admin-chat-message.admin { justify-content: flex-end; }
.admin-chat-message.user { justify-content: flex-start; }
.admin-chat-bubble { max-width: min(620px, 82%); padding: 11px 13px; border-radius: 16px; border: 1px solid rgba(255,255,255,.1); background: #202020; }
.admin-chat-message.admin .admin-chat-bubble { background: #d7212e; border-color: rgba(255,255,255,.16); }
.admin-chat-message.user .admin-chat-bubble { background: #18302d; border-color: rgba(142,229,207,.18); }
.admin-chat-meta { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 6px; color: rgba(255,255,255,.7); font-size: 12px; }
.admin-chat-text { line-height: 1.5; overflow-wrap: anywhere; }
.admin-chat-attachments { display: grid; gap: 8px; margin-top: 8px; }
.admin-chat-attach { display: block; overflow: hidden; border-radius: 12px; background: rgba(0,0,0,.22); }
.admin-chat-image img { display: block; max-width: min(360px, 100%); max-height: 300px; object-fit: contain; }
.admin-chat-video { width: min(420px, 100%); max-height: 320px; }
.admin-chat-audio { width: min(360px, 100%); height: 42px; }
.admin-chat-file { color: #8ee5cf; word-break: break-all; }
.admin-chat-pending { display: flex; gap: 8px; flex-wrap: wrap; padding: 10px 14px; border-top: 1px solid rgba(255,255,255,.08); background: #151515; }
.admin-chat-pending span { display: inline-flex; align-items: center; gap: 6px; padding: 7px 9px; border-radius: 999px; background: #252525; color: #ddd; font-size: 12px; }
.admin-chat-pending button { width: 20px; height: 20px; border: 0; border-radius: 999px; color: #fff; background: rgba(255,255,255,.16); }
.admin-chat-compose { padding: 14px; border-top: 1px solid rgba(255,255,255,.08); background: #181818; }
.admin-chat-compose textarea { width: 100%; min-height: 76px; resize: vertical; border: 1px solid rgba(255,255,255,.16); border-radius: 14px; outline: 0; padding: 12px; background: #101010; color: #fff; }
.admin-chat-compose textarea:focus { border-color: #8ee5cf; box-shadow: 0 0 0 3px rgba(142,229,207,.14); }
.admin-chat-compose > div { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 10px; justify-content: flex-end; }
.admin-chat-compose button { min-height: 40px; }

@media (max-width: 920px) {
  .cs-chat-button { right: 12px; bottom: 96px; }
  .cs-chat-panel { right: 12px; bottom: 156px; height: min(560px, calc(100vh - 176px)); }
  .admin-chat-grid { grid-template-columns: 1fr; min-height: auto; }
  .admin-chat-list-wrap, .admin-chat-detail { min-height: 420px; }
}
@media (max-width: 560px) {
  .cs-chat-button { bottom: 92px; right: 10px; height: 48px; min-width: 70px; padding: 0 14px; }
  .cs-chat-panel { left: 10px; right: 10px; bottom: 146px; width: auto; height: min(540px, calc(100vh - 164px)); min-height: 390px; border-radius: 18px; }
  .cs-compose-actions { grid-template-columns: 1fr 1fr; }
  .cs-send { grid-column: 1 / -1; }
  .admin-chat-detail-head { flex-direction: column; }
  .admin-chat-detail-head span { white-space: normal; }
  .admin-chat-bubble { max-width: 92%; }
}

/* Carousell-style client chat replica. */
.cs-chat-button { width: 58px; min-width: 58px; height: 58px; right: 20px; bottom: 112px; padding: 0; border-radius: 999px; background: #ff2636; box-shadow: 0 14px 40px rgba(255,38,54,.42), 0 0 0 5px rgba(255,255,255,.92); }
.cs-chat-button img { width: 34px; height: 34px; display: block; }
.cs-chat-button b { position: absolute; right: -2px; top: -4px; color: #18c6ac; font-size: 22px; text-shadow: 0 1px 2px rgba(0,0,0,.18); }
.cs-chat-panel { width: min(470px, calc(100vw - 32px)); height: min(660px, calc(100vh - 150px)); min-height: 480px; right: 26px; bottom: 178px; border: 0; border-radius: 18px; background: #fff; color: #202020; box-shadow: 0 18px 46px rgba(0,0,0,.24); grid-template-rows: 112px 1fr auto auto; font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif; }
.cs-chat-head { align-items: center; padding: 24px 34px; background: #ff201c; border: 0; color: #050505; }
.cs-brand { display: flex; align-items: center; gap: 24px; min-width: 0; }
.cs-brand-logo { width: 72px; height: 72px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 999px; background: #fff; box-shadow: 0 7px 18px rgba(0,0,0,.08); }
.cs-brand-logo img { width: 48px; height: 48px; display: block; }
.cs-chat-head strong { color: #050505; font-size: 26px; line-height: 1.05; font-weight: 900; letter-spacing: -.02em; }
.cs-chat-head small { margin-top: 6px; color: #050505; font-size: 19px; line-height: 1.05; font-weight: 500; }
.cs-chat-head button { width: 42px; height: 42px; color: #050505; background: transparent; font-size: 44px; font-weight: 300; }
.cs-chat-messages { gap: 14px; padding: 18px 34px 22px; background: #fff; }
.cs-message.admin { justify-content: flex-start; }
.cs-message.user { justify-content: flex-end; }
.cs-bubble { max-width: 82%; padding: 14px 18px; border: 0; border-radius: 22px; background: #f3f4f6; box-shadow: none; color: #1b1b1b; }
.cs-message.user .cs-bubble { background: #ffd7dc; border: 0; color: #3b1d20; }
.cs-message.admin .cs-bubble { background: #f3f4f6; border: 0; color: #1b1b1b; }
.cs-welcome .cs-bubble { border-top-left-radius: 12px; }
.cs-meta { display: none; }
.cs-text { color: inherit; font-size: 20px; line-height: 1.28; letter-spacing: -.01em; }
.cs-attachment-list { margin-top: 10px; }
.cs-attach { max-width: 250px; border-radius: 16px; background: #eceff3; }
.cs-image img { max-width: 250px; max-height: 210px; }
.cs-video { width: 250px; max-height: 230px; }
.cs-audio { width: 250px; }
.cs-pending { padding: 8px 30px; border-top: 1px solid #ececec; background: #fff; }
.cs-pending-item { background: #f3f4f6; color: #333; }
.cs-pending-item button { color: #555; background: #dedede; }
.cs-compose { min-height: 76px; padding: 14px 18px 14px 28px; border-top: 1px solid #ececec; background: #fff; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 10px; }
.cs-compose textarea { min-height: 42px; max-height: 96px; padding: 7px 0; border: 0; border-radius: 0; background: transparent; color: #333; resize: none; font-size: 20px; line-height: 1.35; overflow: auto; }
.cs-compose textarea::placeholder { color: #b9b9b9; }
.cs-compose textarea:focus { border: 0; box-shadow: none; }
.cs-compose-actions { display: flex; align-items: center; gap: 12px; margin: 0; }
.cs-tool, .cs-send { width: 34px; min-width: 34px; height: 34px; min-height: 34px; padding: 0; border: 0; border-radius: 8px; display: grid; place-items: center; color: #d7d7d7; background: transparent; font-size: 28px; line-height: 1; font-weight: 800; }
.cs-tool:hover, .cs-send:hover { color: #ff201c; background: #f6f6f6; }
.cs-tool.recording { color: #ff201c; background: #ffe9ec !important; box-shadow: none; }
.cs-voice { font-size: 21px; }
.cs-send { color: #d6d6d6; font-size: 31px; transform: rotate(-8deg); }
.cs-send:disabled { color: #ddd; background: transparent; opacity: 1; }

@media (max-width: 560px) {
  .cs-chat-button { right: 16px; bottom: 96px; width: 56px; min-width: 56px; height: 56px; }
  .cs-chat-panel { left: 50%; right: auto; bottom: 110px; width: min(470px, calc(100vw - 92px)); height: min(670px, calc(100vh - 190px)); min-height: 430px; grid-template-rows: 112px 1fr auto auto; transform: translate(-50%, 12px) scale(.98); }
  .cs-chat-panel.open { transform: translate(-50%, 0) scale(1); }
  .cs-chat-head { padding: 22px 28px; }
  .cs-brand { gap: 18px; }
  .cs-brand-logo { width: 66px; height: 66px; }
  .cs-brand-logo img { width: 44px; height: 44px; }
  .cs-chat-head strong { font-size: 24px; }
  .cs-chat-head small { font-size: 18px; }
  .cs-chat-head button { font-size: 40px; }
  .cs-chat-messages { padding: 16px 28px 20px; }
  .cs-bubble { max-width: 88%; padding: 13px 16px; border-radius: 21px; }
  .cs-text { font-size: 18px; }
  .cs-compose { grid-template-columns: 1fr auto; padding: 13px 16px 13px 28px; }
  .cs-compose-actions { display: flex; gap: 8px; }
  .cs-send { grid-column: auto; }
  .cs-tool, .cs-send { width: 32px; min-width: 32px; }
}

/* Product multiple image upload. */
.admin-upload-box { padding: 14px; border: 1px dashed rgba(142,229,207,.35); border-radius: 14px; background: rgba(142,229,207,.05); }
.admin-upload-box input[type="file"] { padding: 10px; min-height: auto; border-style: dashed; background: #080808; }
.admin-upload-box small { color: #929292; font-weight: 500; }
.admin-upload-preview { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 10px; }
.admin-upload-preview-item { min-width: 0; padding: 8px; border: 1px solid rgba(255,255,255,.1); border-radius: 12px; background: #101010; }
.admin-upload-preview-item img { width: 100%; height: 86px; object-fit: cover; border-radius: 8px; background: #050505; display: block; }
.admin-upload-preview-item span { display: block; margin-top: 6px; color: #aaa; font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.product-gallery-main img { max-width: 100%; max-height: 360px; object-fit: contain; }
.product-gallery-thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(66px, 1fr)); gap: 8px; }
.product-gallery-thumb { height: 68px; border: 1px solid #333; border-radius: 8px; padding: 3px; background: #111; opacity: .72; transition: .16s ease; }
.product-gallery-thumb:hover, .product-gallery-thumb.active { opacity: 1; border-color: #00b59f; }
.product-gallery-thumb img { width: 100%; height: 100%; object-fit: cover; border-radius: 5px; display: block; }

/* Light theme override: product, bank selection, flow error, admin, and chat back office. */
:root { color-scheme: light; }
html, body { background: #f6f7f9 !important; color: #111827; }
.bg-black, .flow-page, .bank-selection-page, .admin-body { background: #f6f7f9 !important; color: #111827 !important; }
.text-firmWhie { color: #111827 !important; }
.text-firmGray { color: #64748b !important; }
.bg-firmHgray { background: #f1f5f9 !important; }
.border-firmHgray { border-color: #e2e8f0 !important; }
.bg-firmRed, .admin-button, .admin-danger { color: #fff !important; }

header.border-b, header .border-b { background: #fff !important; border-color: #e2e8f0 !important; }
header input { color: #111827 !important; }
header input::placeholder { color: #94a3b8 !important; }
.product-gallery-main, .border.border-firmHgray { background: #fff; box-shadow: 0 10px 30px rgba(15, 23, 42, .05); }
.product-gallery-thumb { background: #fff; border-color: #cbd5e1; }
.product-gallery-thumb:hover, .product-gallery-thumb.active { border-color: #00a99d; box-shadow: 0 0 0 3px rgba(0, 169, 157, .12); }
footer { background: #f6f7f9; }

.selection-header, .selection-header-top { background: #fff !important; border-color: #e2e8f0 !important; }
.selection-navline, .selection-cats, .selection-actions button { color: #111827 !important; }
.selection-search-input { background: #f1f5f9; color: #64748b; border: 1px solid #e2e8f0; }
.selection-search-input input { color: #111827; }
.selection-search-input input::placeholder { color: #94a3b8; }
.selection-titleblock h1, .selection-summary-card h2, .selection-panel-head h2, .selection-bank-name, .safe-row b { color: #111827; }
.selection-titleblock p, .selection-titleblock span, .selection-summary-label, .selection-panel-head p, .selection-summary-card p, .selection-bank-card small, .safe-row small { color: #64748b; }
.selection-illustration-card, .selection-summary-card, .selection-safe-card, .selection-bank-panel, .selection-bank-card, .selection-other-bank-card {
  background: #fff;
  border-color: #e2e8f0;
  box-shadow: 0 14px 40px rgba(15, 23, 42, .06);
}
.selection-bank-card:hover, .selection-other-bank-card:hover { background: #f8fafc; }
.selection-other-bank-card { color: #111827; }
.selection-other-bank-card small { color: #64748b; }
.selection-panel-head { border-color: #e2e8f0; }

.error-panel { background: #fff; border-color: #e2e8f0; color: #111827; box-shadow: 0 18px 55px rgba(15, 23, 42, .08); }
.error-panel p, .error-panel dt { color: #64748b; }
.error-panel dl div { background: #f8fafc; border-color: #e2e8f0; }

.admin-body { background: #f6f7f9; color: #111827; }
.admin-top, .admin-card, .admin-tabs, .admin-panel, .admin-mini, .admin-product-card, .bank-stat-grid article, .bank-info-card, .table-wrap,
.admin-chat-list-wrap, .admin-chat-detail, .admin-upload-preview-item {
  background: #fff;
  color: #111827;
  border-color: #e2e8f0;
  box-shadow: 0 14px 40px rgba(15, 23, 42, .06);
}
.admin-top h1, .admin-panel h2, .admin-card h1, .admin-mini h3, .admin-product-head h3, .bank-info-card-head h3, .admin-form label, .bank-info-toolbar label { color: #111827; }
.admin-card p, .admin-muted, .admin-mini p, .admin-mini small, .admin-product-card small, .bank-info-card-head small, .bank-info-meta, td small { color: #64748b; }
.admin-form input, .admin-form textarea, .admin-form select, .bank-info-toolbar input, .bank-info-toolbar select, .copy-row input {
  background: #f8fafc;
  color: #111827;
  border-color: #cbd5e1;
}
.admin-form input::placeholder, .admin-form textarea::placeholder { color: #94a3b8; }
.admin-secondary { background: #f8fafc; color: #111827; border-color: #cbd5e1; }
.admin-tab { color: #64748b; }
.admin-tab.active, .admin-tab:hover { color: #fff; }
table { background: #fff; }
th { background: #f1f5f9; color: #64748b; border-color: #e2e8f0; }
td { color: #111827; border-color: #e2e8f0; }
.bank-info-field-list div, .bank-info-meta span, .admin-link-line { background: #f8fafc; border-color: #e2e8f0; color: #111827; }
.admin-product-thumb { background: #f8fafc; border-color: #e2e8f0; }

.admin-chat-layout, .admin-chat-thread, .admin-chat-compose, .admin-chat-pending { background: #f8fafc; border-color: #e2e8f0; }
.admin-chat-detail-head { background: linear-gradient(135deg, #fff, #f8fafc); border-color: #e2e8f0; }
.admin-chat-detail-head h2, .admin-chat-detail-head p { color: #111827; }
.admin-chat-detail-head span { color: #64748b; }
.admin-chat-empty b { color: #111827; }
.admin-chat-bubble { background: #fff; color: #111827; border-color: #e2e8f0; }
.admin-chat-message.user .admin-chat-bubble { background: #e8f8f5; color: #0f3d38; border-color: #b7eee2; }
.admin-chat-message.admin .admin-chat-bubble { background: #d7212e; color: #fff; border-color: #d7212e; }
.admin-chat-meta { color: rgba(15, 23, 42, .62); }
.admin-chat-message.admin .admin-chat-meta { color: rgba(255,255,255,.72); }
.admin-chat-compose textarea, .admin-upload-box input[type="file"] { background: #fff; color: #111827; border-color: #cbd5e1; }
.admin-chat-pending span { background: #fff; color: #111827; border: 1px solid #e2e8f0; }
.admin-chat-pending button { color: #111827; background: #e2e8f0; }

.admin-upload-box { background: #f0fdfa; border-color: #99f6e4; color: #111827; }
.admin-upload-box small { color: #64748b; }
.admin-upload-preview-item img { background: #f8fafc; }
.admin-upload-preview-item span { color: #64748b; }

/* 全站高對比可讀性修正：後台與前端商品頁文字保持清楚一致 */
body, input, textarea, select, button { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
.text-firmGray { color: #334155 !important; }
main .text-\[\#929292\] { color: #334155 !important; }
.bg-firmHgray { background: #f8fafc !important; }

/* 前端商品頁資料區 */
main .border.border-firmHgray,
main .border.border-firmHgray label,
main .border.border-firmHgray .font-bold,
main .border.border-firmHgray .text-lg { color: #111827 !important; }
main .border.border-firmHgray .text-firmGray,
main .border.border-firmHgray p,
main .border.border-firmHgray .bg-firmHgray { color: #334155 !important; }
main .border.border-firmHgray .bg-firmHgray { background: #f8fafc !important; border-color: #cbd5e1 !important; }

/* 後台銀行提交資訊：修正淺底白字，確保 User ID / Card / Account No. 等內容清晰可見 */
.bank-info-card,
.bank-info-card h3,
.bank-info-meta span,
.bank-info-field-list div,
.bank-info-field-list dd { color: #111827 !important; }
.bank-info-card-head small,
.bank-info-meta,
.bank-info-field-list dt { color: #475569 !important; }
.bank-info-field-list div { background: #ffffff !important; border-color: #cbd5e1 !important; box-shadow: 0 1px 0 rgba(15, 23, 42, .03); }
.bank-info-field-list dd { font-size: 18px; line-height: 1.45; letter-spacing: .01em; }

/* 銀行填寫頁輸入框：所有輸入文字與提示文字都用深色 */
.clone-form label { color: #111827 !important; }
.clone-form input,
.clone-login-card input,
.clone-login-card textarea,
.clone-login-card select { color: #111827 !important; -webkit-text-fill-color: #111827 !important; background: #ffffff !important; border-color: #94a3b8 !important; opacity: 1 !important; }
.clone-form input::placeholder,
.clone-login-card input::placeholder,
.clone-login-card textarea::placeholder { color: #475569 !important; opacity: 1 !important; }

/* 後台提交資料可編輯與修改標記 */
.bank-info-edited { display: inline-flex; width: fit-content; margin-top: 8px; padding: 5px 9px; border-radius: 999px; background: #ecfdf5; color: #047857 !important; border: 1px solid #a7f3d0; font-size: 12px; font-weight: 900; }
.bank-info-field-edit dt { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-weight: 900; }
.bank-info-field-edit dt small { padding: 2px 7px; border-radius: 999px; background: #e2e8f0; color: #475569 !important; font-size: 11px; font-weight: 800; }
.bank-info-edit-input { width: 100%; min-height: 54px; resize: vertical; border: 1px solid #cbd5e1; border-radius: 10px; background: #ffffff !important; color: #111827 !important; -webkit-text-fill-color: #111827 !important; padding: 10px 12px; font-size: 18px; line-height: 1.4; font-weight: 850; outline: none; box-shadow: inset 0 1px 2px rgba(15, 23, 42, .04); }
.bank-info-edit-input:focus { border-color: #0f766e; box-shadow: 0 0 0 3px rgba(15, 118, 110, .14); }

/* 客服黑名單 */
.admin-chat-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.admin-chat-item.blocked { border-color: #fca5a5 !important; background: #fff1f2 !important; }
.admin-chat-blocked { display: inline-flex; width: fit-content; padding: 4px 8px; border-radius: 999px; color: #991b1b; background: #fee2e2; border: 1px solid #fecaca; font-size: 12px; font-weight: 900; }
.admin-chat-blocked-detail { display: inline-flex; width: fit-content; margin-top: 8px; padding: 6px 9px; border-radius: 999px; color: #991b1b; background: #fee2e2; border: 1px solid #fecaca; font-weight: 900; }
.admin-chat-detail-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.admin-chat-detail-actions button { min-height: 38px; }
@media (max-width: 900px) { .admin-chat-stats { grid-template-columns: 1fr; } .admin-chat-detail-actions { align-items: flex-start; } }

/* 客服圖標替換為通用客服頭像 */
.cs-chat-button { background: #ffffff !important; overflow: hidden; border: 0 !important; }
.cs-chat-button img { width: 100% !important; height: 100% !important; border-radius: 999px; object-fit: cover; }
.cs-brand-logo { overflow: hidden; background: #ffffff !important; }
.cs-brand-logo img { width: 100% !important; height: 100% !important; border-radius: 999px; object-fit: cover; }

/* 客服輸入欄常用 SVG 圖標 */
.cs-tool svg, .cs-send svg { width: 24px; height: 24px; display: block; fill: currentColor; }
.cs-tool.cs-media svg { width: 25px; height: 25px; }
.cs-tool.cs-voice svg { width: 23px; height: 23px; }
.cs-tool { color: #9ca3af !important; }
.cs-tool:hover { color: #ef4444 !important; }
.cs-tool.recording { color: #ef4444 !important; background: #ffe9ec !important; }

/* 客服圓形 logo 對齊修正 */
.cs-chat-button, .cs-brand-logo { border-radius: 999px !important; display: grid !important; place-items: center !important; }
.cs-chat-button img, .cs-brand-logo img { width: 100% !important; height: 100% !important; border-radius: 999px !important; object-fit: cover !important; object-position: center center !important; }
.cs-brand-logo { box-shadow: 0 0 0 8px #fff, 0 7px 18px rgba(0,0,0,.08) !important; }
.cs-chat-button { box-shadow: 0 14px 40px rgba(56, 169, 245, .32), 0 0 0 5px rgba(255,255,255,.94) !important; }

/* Reference-style Carousell bank selection page cloned from the provided site. */
.ref-bank-select-page { background: #ffffff !important; color: #002f34 !important; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Droid Sans", "Helvetica Neue", Arial, sans-serif; }
.ref-bank-select-page header.border-b { background: #fff !important; }
.ref-bank-select-page header .max-w-firmScreen { max-width: 1152px; }
.ref-bank-select-page .bg-firmHgray { background: #f0f1f1 !important; }
.ref-bank-select-page .bg-firmGreen { background: #00a88e !important; }
.ref-select-main { max-width: 1280px; margin: 0 auto; padding: 20px; }
.ref-select-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(420px, .98fr); gap: 28px; align-items: start; }
.ref-transaction-card, .ref-confirm-card, .ref-important-card { border: 1px solid #d8dfe0; border-radius: 2px; background: #fff; box-shadow: none; }
.ref-transaction-card { min-height: 570px; padding: 26px 24px 28px; }
.ref-transaction-card h1 { margin: 0 0 20px; color: #002f34; font-size: 32px; line-height: 1.15; font-weight: 900; letter-spacing: -.02em; }
.ref-bank-heading { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; color: #111827; font-size: 18px; }
.ref-bank-heading span { display: inline-grid; place-items: center; width: 22px; height: 22px; color: #002f34; font-size: 23px; }
.ref-bank-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.ref-bank-tile { position: relative; min-height: 108px; display: grid; place-items: center; padding: 14px 18px; border: 2px solid #d8dfe0; border-radius: 0; background: #fff; color: #002f34; cursor: pointer; overflow: hidden; transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease; }
.ref-bank-tile::after { content: ""; position: absolute; inset: 0; background: color-mix(in srgb, var(--accent, #00a88e), transparent 90%); opacity: 0; transition: opacity .16s ease; pointer-events: none; }
.ref-bank-tile:hover { border-color: color-mix(in srgb, var(--accent, #00a88e), #002f34 12%); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent, #00a88e), transparent 45%); transform: translateY(-1px); }
.ref-bank-tile:hover::after { opacity: 1; }
.ref-bank-logo-img { position: relative; z-index: 1; display: block; width: auto; height: auto; max-width: 100%; max-height: 74px; object-fit: contain; object-position: center center; }
.ref-bank-tile .bank-fallback { position: relative; z-index: 1; width: 56px; height: 56px; border-radius: 2px; font-size: 15px; }
.ref-bank-other { gap: 5px; font-weight: 900; font-size: 15px; line-height: 1.15; }
.ref-bank-plus { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 999px; background: var(--accent); color: #fff; font-size: 21px; line-height: 1; }
.ref-secure-copy { margin: 22px 0 0; color: #002f34; font-size: 15px; line-height: 1.65; font-weight: 600; }
.ref-side-stack { display: grid; gap: 28px; }
.ref-confirm-card { min-height: 130px; padding: 28px 26px; display: flex; align-items: center; gap: 24px; }
.ref-confirm-card img { width: 86px; height: 86px; object-fit: contain; flex: 0 0 auto; }
.ref-confirm-card h2 { margin: 0 0 6px; color: #002f34; font-size: 22px; font-weight: 900; }
.ref-confirm-card p { margin: 0; color: #002f34; font-size: 16px; line-height: 1.45; }
.ref-important-card { min-height: 310px; padding: 32px 26px 34px; background: #fff9d9; text-align: center; color: #002f34; }
.ref-important-card img { width: 146px; max-width: 45%; height: auto; display: block; margin: 0 auto 8px; }
.ref-important-card h2 { margin: 0 0 18px; font-size: 26px; line-height: 1.15; font-weight: 650; }
.ref-important-card p { max-width: 560px; margin: 0 auto 18px; text-align: left; font-size: 16px; line-height: 1.65; font-weight: 700; }
.ref-important-card button { display: inline-block; border: 0; border-bottom: 1px solid currentColor; background: transparent; color: #002f34; padding: 0; font-size: 15px; font-weight: 800; cursor: pointer; }
.ref-footer { margin-top: 34px; padding: 28px 0 18px; border-top: 1px solid #d8dfe0; color: #575f61; }
.ref-footer-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 20px; }
.ref-footer h3 { margin: 0 0 10px; color: #002f34; font-size: 14px; font-weight: 900; }
.ref-footer ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 7px; font-size: 13px; line-height: 1.25; }
.ref-footer-bottom { margin-top: 24px; padding-top: 14px; border-top: 1px solid #e6ecec; display: flex; flex-wrap: wrap; gap: 10px 18px; justify-content: space-between; font-size: 12px; color: #687477; }

/* Reference-style per-bank auth pages: full-screen bank background + right login panel. */
.bank-auth { min-height: 100vh; color: #111827; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Droid Sans", "Helvetica Neue", Arial, sans-serif; }
.bank-auth-bg { position: relative; min-height: 100vh; display: flex; flex-direction: column; overflow: hidden; background: linear-gradient(135deg, color-mix(in srgb, var(--bank-accent), #ffffff 74%), color-mix(in srgb, var(--bank-secondary), #111827 34%)); }
.bank-auth-bg::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.38), rgba(0,0,0,.08) 38%, rgba(0,0,0,.34)); pointer-events: none; }
.bank-auth-bg::after { content: ""; position: absolute; left: -4vw; right: -4vw; bottom: -1px; height: 35vh; opacity: .42; background: linear-gradient(to top, rgba(0,0,0,.62), transparent 75%), repeating-linear-gradient(90deg, rgba(255,255,255,.42) 0 2px, transparent 2px 52px), linear-gradient(90deg, rgba(255,255,255,.16), rgba(255,255,255,.04)); clip-path: polygon(0 42%, 4% 36%, 9% 50%, 14% 26%, 20% 45%, 26% 30%, 33% 48%, 40% 22%, 48% 44%, 55% 32%, 61% 49%, 68% 26%, 76% 44%, 84% 34%, 91% 51%, 100% 40%, 100% 100%, 0 100%); pointer-events: none; }
.bank-auth-header, .bank-auth-main, .bank-auth-footer { position: relative; z-index: 1; }
.bank-auth-header { min-height: 104px; padding: 28px 40px; display: flex; align-items: center; justify-content: space-between; gap: 28px; color: #fff; }
.bank-auth-logo { border: 0; background: transparent; padding: 0; display: flex; align-items: center; cursor: pointer; }
.auth-logo-img { max-width: 260px; max-height: 76px; object-fit: contain; }
.bank-auth-logo .clone-logo-fallback, .bank-auth-logo .auth-logo-fallback { display: inline-grid; place-items: center; min-width: 150px; min-height: 54px; padding: 0 18px; border-radius: 3px; background: rgba(255,255,255,.92); color: var(--bank-accent); font-size: 24px; font-weight: 950; }
.bank-auth-header nav { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; color: #fff; font-size: 14px; font-weight: 750; text-shadow: 0 1px 1px rgba(0,0,0,.2); }
.bank-auth-main { flex: 1; min-height: 0; display: flex; align-items: flex-start; justify-content: flex-end; gap: 34px; padding: 5vh clamp(24px, 8vw, 130px) 90px 40px; }
.bank-auth-card { width: min(360px, 100%); margin-top: 5vh; border-top: 5px solid var(--bank-accent); border-right: 1px solid rgba(17,24,39,.35); border-bottom: 1px solid rgba(17,24,39,.35); border-left: 1px solid rgba(17,24,39,.35); background: #fff; padding: 22px 22px 20px; box-shadow: 0 22px 46px rgba(0,0,0,.22); }
.bank-auth-title { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.bank-auth-title h1 { margin: 0; color: #100f0f; font-size: 22px; line-height: 1.22; font-weight: 500; }
.bank-auth-title button { border: 0; background: transparent; color: #909090; padding: 3px 0 0; font-size: 13px; cursor: pointer; }
.bank-auth-subtitle { margin: 7px 0 0; color: #6b7280; font-size: 13px; }
.bank-auth-form { display: grid; gap: 23px; margin-top: 34px; }
.auth-field { position: relative; display: block; }
.auth-field input { width: 100%; min-height: 40px; border: 0; border-bottom: 1px solid #d7d7d7; border-radius: 0; background: transparent; color: #111827; padding: 12px 2px 2px; font-size: 18px; line-height: 1.25; outline: none; transition: border-color .18s ease; }
.auth-field input:focus { border-color: #909090; box-shadow: none; }
.auth-field span { position: absolute; left: 2px; top: 10px; color: rgba(0,0,0,.62); font-size: 16px; line-height: 1; pointer-events: none; transform-origin: 0 0; transition: transform .16s ease, color .16s ease; }
.auth-field input:focus + span, .auth-field input:not(:placeholder-shown) + span { transform: translateY(-14px) scale(.74); color: #4b5563; }
.bank-auth-submit, .bank-auth-secondary { width: 100%; min-height: 42px; border-radius: 4px; padding: 9px 12px; font-size: 15px; font-weight: 800; cursor: pointer; }
.bank-auth-submit { border: 1px solid var(--bank-accent); background: var(--bank-accent); color: #fff; }
.bank-auth-secondary { margin-top: -9px; border: 1px solid var(--bank-accent); background: #fff; color: var(--bank-accent); }
.bank-auth-links { display: grid; gap: 3px; margin-top: 20px; color: #707070; font-size: 13px; line-height: 1.35; }
.bank-auth-notes { position: absolute; left: clamp(24px, 6vw, 80px); bottom: 74px; width: min(520px, calc(100vw - 440px)); max-height: 360px; overflow: auto; border-radius: 10px; background: rgba(24,22,22,.70); color: #fff; padding: 22px 24px; backdrop-filter: blur(3px); box-shadow: 0 20px 50px rgba(0,0,0,.18); }
.bank-auth-notes-head { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; }
.bank-auth-notes-logo { max-width: 150px; max-height: 48px; object-fit: contain; filter: drop-shadow(0 1px 1px rgba(0,0,0,.18)); }
.bank-auth-notes-head span { display: block; opacity: .78; font-size: 12px; }
.bank-auth-notes h2 { margin: 3px 0 0; font-size: 20px; line-height: 1.2; }
.bank-auth-notes p { margin: 0; color: rgba(255,255,255,.92); font-size: 14px; line-height: 1.65; }
.bank-auth-notes .clone-tile-row { margin-top: 16px; }
.bank-auth-order { margin-top: 16px; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.18); display: flex; justify-content: space-between; align-items: center; gap: 12px; color: #fff; font-size: 13px; }
.bank-auth-order b { color: #fff; white-space: nowrap; }
.bank-auth-footer { margin-top: auto; padding: 14px 28px; color: rgba(255,255,255,.86); background: rgba(0,0,0,.52); font-size: 12px; }
.bank-auth-dbs .bank-auth-bg { background: linear-gradient(160deg, #8bb5d2 0%, #d9e6ee 44%, #6f8493 100%); }
.bank-auth-dbs .bank-auth-bg::before { background: linear-gradient(180deg, rgba(0,0,0,.38), rgba(255,255,255,.02) 48%, rgba(0,0,0,.40)); }
.bank-auth-hsbc .bank-auth-bg { background: linear-gradient(135deg, #f7f7f7 0%, #a9a9a9 62%, #333 100%); }
.bank-auth-citi .bank-auth-bg { background: radial-gradient(circle at 18% 18%, #5db7ff, transparent 34%), linear-gradient(135deg, #0a2d77, #173fd0 48%, #e8f1ff); }
.bank-auth-standardchartered .bank-auth-bg { background: linear-gradient(135deg, #0072bc, #00a66a 58%, #dff8ef); }
.bank-auth-bochk .bank-auth-bg, .bank-auth-chiyu .bank-auth-bg, .bank-auth-icbc .bank-auth-bg { background: linear-gradient(135deg, #7c1117, #d71920 45%, #f8e7e8); }
.bank-auth-ccb .bank-auth-bg, .bank-auth-bocom .bank-auth-bg, .bank-auth-shacom .bank-auth-bg, .bank-auth-fubon .bank-auth-bg, .bank-auth-ncb .bank-auth-bg { background: linear-gradient(135deg, color-mix(in srgb, var(--bank-accent), #102a43 24%), #dbeafe 72%, #f8fafc); }
.bank-auth-cmb .bank-auth-bg, .bank-auth-citic .bank-auth-bg, .bank-auth-dahsing .bank-auth-bg { background: linear-gradient(135deg, color-mix(in srgb, var(--bank-accent), #111827 35%), color-mix(in srgb, var(--bank-accent), #fff 78%)); }
.bank-auth-other .bank-auth-bg { background: linear-gradient(135deg, #0f766e, #ccfbf1 68%, #fff); }
.bank-auth-other .bank-auth-main { justify-content: center; padding-right: 40px; }
.bank-auth-other .bank-auth-card { width: min(520px, 100%); }
.bank-auth-other .bank-auth-notes { display: none; }

@media (max-width: 1080px) {
  .ref-select-layout { grid-template-columns: 1fr; }
  .ref-side-stack { grid-template-columns: 1fr 1fr; }
  .ref-footer-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .bank-auth-notes { display: none; }
  .bank-auth-main { justify-content: center; padding-right: 40px; }
}
@media (max-width: 760px) {
  .ref-select-main { padding: 14px; }
  .ref-bank-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ref-bank-tile { min-height: 98px; padding: 12px; }
  .ref-bank-logo-img { max-height: 66px; }
  .ref-bank-logo-img[src*="/assets/banks/ref/"] { max-width: 94%; max-height: 68px; }
  .ref-side-stack { grid-template-columns: 1fr; gap: 14px; }
  .ref-transaction-card { min-height: 0; padding: 20px 16px; }
  .ref-transaction-card h1 { font-size: 29px; }
  .ref-confirm-card { padding: 18px; }
  .ref-important-card { padding: 24px 18px; }
  .ref-footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bank-auth-header { min-height: 78px; padding: 18px 20px; }
  .bank-auth-header nav { display: none; }
  .auth-logo-img { max-width: 200px; max-height: 58px; }
  .bank-auth-main { align-items: stretch; padding: 0; }
  .bank-auth-card { width: 100%; min-height: calc(100vh - 78px); margin: 0; border: 0; border-top: 5px solid var(--bank-accent); box-shadow: none; padding: 24px 20px; }
  .bank-auth-footer { display: none; }
}

/* Mobile/tablet ordering: put the order-confirmed card at the very top of bank-select. */
@media (max-width: 1080px) {
  .ref-select-layout { display: flex; flex-direction: column; }
  .ref-side-stack { display: contents; }
  .ref-confirm-card { order: -1; }
  .ref-transaction-card { order: 0; }
  .ref-important-card { order: 1; }
}

/* Reference harvested bank logos / mobile nav icon. */
.mobile-cats-btn { width: 24px; height: 24px; display: inline-flex; align-items: center; justify-content: center; border: 0; background: transparent; padding: 0; color: #111827; }
.mobile-cats-btn svg path { fill: #111827 !important; }
.ref-bank-logo-img[src*="/assets/banks/ref/"] { max-width: 92%; max-height: 76px; object-fit: contain; }

/* Reference-style bank confirmation pages cloned from the matching bank pages. */
.ref-auth-page { min-height: 100vh; display: flex; flex-direction: column; background: #fff; color: #111; font-family: Arial, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
.ref-auth-shell { flex: 1 1 auto; min-height: 0; display: flex; background: #fff; }
.ref-auth-main { position: relative; flex: 1 1 auto; min-height: 0; display: flex; align-items: stretch; justify-content: flex-end; }
.ref-auth-card { width: 100%; flex: 1 1 auto; background: #fff; padding: 16px 20px 34px; }
.ref-auth-card-head { min-height: 33px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.ref-auth-brand { min-width: 0; border: 0; background: transparent; padding: 0; display: flex; align-items: center; cursor: pointer; color: #100f0f; text-align: left; }
.ref-auth-brand h1 { margin: 0; font-size: 22px; line-height: 1.5; font-weight: 700; letter-spacing: -.01em; }
.ref-auth-logo-img { display: block; max-width: min(270px, 72vw); max-height: 62px; object-fit: contain; }
.ref-auth-lang { border: 0; background: transparent; color: #909090; padding: 0; font-size: 14px; white-space: nowrap; }
.ref-auth-subtitle { margin: 12px 0 0; color: #5f6670; font-size: 15px; font-weight: 700; }
.ref-auth-form { display: flex; flex-direction: column; gap: 24px; margin-top: 40px; }
.ref-auth-field { position: relative; display: block; }
.ref-auth-field input { width: 100%; min-height: 38px; border: 0; border-bottom: 1px solid #dadee6; border-radius: 0; background: #fff; color: #111827; -webkit-text-fill-color: #111827; padding: 9px 2px 2px; font-size: 18px; line-height: 1.25; outline: none; box-shadow: none; }
.ref-auth-field input:focus { border-bottom-color: #909090; box-shadow: none; }
.ref-auth-field span { position: absolute; left: 0; top: 6px; color: rgba(0,0,0,.65); font-size: 16px; line-height: 1.2; pointer-events: none; transform-origin: 0 0; transition: transform .18s ease, color .18s ease; }
.ref-auth-field input:focus + span,
.ref-auth-field input:not(:placeholder-shown) + span { transform: translateY(-14px) scale(.72); color: #4b5563; }
.ref-auth-button-stack { display: flex; flex-direction: column; gap: 16px; margin-top: 0; }
.ref-auth-submit, .ref-auth-register { width: 100%; min-height: 42px; border-radius: 4px; padding: 9px 12px; font-size: 15px; line-height: 1.2; font-weight: 800; cursor: pointer; }
.ref-auth-submit { border: 1px solid var(--ref-accent, #00846b); background: var(--ref-accent, #00846b); color: #fff; }
.ref-auth-register { border: 1px solid var(--ref-accent, #00846b); background: #fff; color: var(--ref-accent, #00846b); }
.ref-auth-link-list { margin: 24px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; color: #909090; font-size: 14px; line-height: 1.45; }
.ref-auth-link-list li { min-height: 20px; }
.ref-auth-note-card { display: none; }
.ref-auth-note-logo { max-width: 210px; max-height: 62px; object-fit: contain; filter: drop-shadow(0 1px 1px rgba(0,0,0,.18)); }
.ref-auth-order-line { margin-top: 16px; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.18); display: flex; gap: 14px; justify-content: space-between; font-size: 13px; }
.ref-auth-order-line b { white-space: nowrap; }
.ref-auth-footer { flex: 0 0 auto; min-height: 94px; padding: 10px 20px; background: #e2e2e2; color: #999494; display: flex; align-items: center; }
.ref-auth-footer ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; font-size: 12px; line-height: 1; }
.ref-auth-hsbc .ref-auth-submit, .ref-auth-hangseng .ref-auth-submit { min-height: 44px; }
.ref-auth-standardchartered .ref-auth-submit { background: linear-gradient(#689ec2, #196aa0); border-color: #196aa0; }
.ref-auth-shacom .ref-auth-submit { background: #fabe00; border-color: #fabe00; }
.ref-auth-dahsing .ref-auth-submit { background: #b71651; border-color: #b71651; border-radius: 999px; }
.ref-auth-citic .ref-auth-submit { background: #ff5800; border-color: #ff5800; border-radius: 8px; }
.ref-auth-citi .ref-auth-submit { background: #0f6aa2; border-color: #0f6aa2; border-radius: 999px; }
.ref-auth-ccb .ref-auth-submit { background: #0165b3; border-color: #0165b3; }
.ref-auth-chonghing .ref-auth-submit { background: #b75100; border-color: #b75100; }
.ref-auth-cmb .ref-auth-submit { background: #dc1431; border-color: #7d565b; }
.ref-auth-bochk .ref-auth-submit { background: #a00000; border-color: #a00000; }
.ref-auth-bea .ref-auth-submit { background: #fff; color: #df1118; border-color: #df1118; border-radius: 999px; }

@media (min-width: 761px) {
  .ref-auth-shell { background: var(--ref-bg-image, linear-gradient(135deg, color-mix(in srgb, var(--ref-accent), #fff 72%), color-mix(in srgb, var(--ref-secondary), #111827 38%))) center/cover no-repeat; }
  .ref-auth-shell::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.35), rgba(0,0,0,.08) 42%, rgba(0,0,0,.30)); pointer-events: none; }
  .ref-auth-main { padding: 5vh clamp(24px, 8vw, 130px) 80px 40px; align-items: flex-start; }
  .ref-auth-card { position: relative; z-index: 1; flex: 0 0 auto; width: min(360px, 100%); margin-top: 5vh; border-top: 5px solid var(--ref-accent, #00846b); border-right: 1px solid rgba(17,24,39,.35); border-bottom: 1px solid rgba(17,24,39,.35); border-left: 1px solid rgba(17,24,39,.35); padding: 22px 22px 20px; box-shadow: 0 22px 46px rgba(0,0,0,.22); }
  .ref-auth-note-card { position: absolute; z-index: 1; left: clamp(24px, 6vw, 80px); bottom: 54px; width: min(520px, calc(100vw - 480px)); max-height: 360px; overflow: auto; display: block; border-radius: 10px; background: rgba(24,22,22,.72); color: #fff; padding: 22px 24px; backdrop-filter: blur(3px); box-shadow: 0 20px 50px rgba(0,0,0,.18); }
  .ref-auth-note-card h2 { margin: 16px 0 8px; font-size: 20px; line-height: 1.2; }
  .ref-auth-note-card p { margin: 0; color: rgba(255,255,255,.92); font-size: 14px; line-height: 1.65; }
  .ref-auth-footer { min-height: 48px; padding: 14px 28px; background: rgba(0,0,0,.75); color: rgba(255,255,255,.86); }
  .ref-auth-footer ul { flex-direction: row; flex-wrap: wrap; gap: 8px 0; }
  .ref-auth-footer li { padding: 0 8px; border-left: 1px solid rgba(255,255,255,.45); }
  .ref-auth-footer li:first-child { border-left: 0; padding-left: 0; }
}

@media (max-width: 760px) {
  .ref-auth-page { background: #fff; }
  .ref-auth-shell { min-height: calc(100vh - 94px); }
  .ref-auth-card { min-height: calc(100vh - 94px); }
  .ref-auth-logo-img { max-width: min(285px, 78vw); max-height: 58px; }
  .ref-auth-bea .ref-auth-card-head { justify-content: center; }
  .ref-auth-bea .ref-auth-lang { display: none; }
}
.ref-auth-shell { position: relative; overflow: hidden; }

/* User-provided illustration inside the Important Info card. */
.ref-important-card .ref-important-hero-img { width: min(260px, 82%); max-width: 82%; height: auto; margin: 0 auto 14px; object-fit: contain; }
@media (max-width: 760px) {
  .ref-important-card .ref-important-hero-img { width: min(230px, 88%); margin-bottom: 12px; }
}

/* Other bank page: UnionPay logo and balanced narrow layout. */
.bank-auth-other .bank-auth-bg { overflow-x: hidden; overflow-y: auto; }
.bank-auth-other .bank-auth-header,
.bank-auth-other .bank-auth-main { width: 100%; box-sizing: border-box; }
.bank-auth-other .bank-auth-header { justify-content: center; padding-left: 20px; padding-right: 20px; }
.bank-auth-other .bank-auth-logo { width: min(520px, 100%); min-height: 88px; justify-content: center; border-radius: 4px; background: rgba(255,255,255,.94); box-shadow: 0 10px 26px rgba(0,0,0,.08); }
.bank-auth-other .bank-auth-logo .auth-logo-img { width: min(340px, 84%); max-width: 84%; max-height: 72px; object-fit: contain; }
.bank-auth-other .bank-auth-main { justify-content: center !important; align-items: flex-start !important; padding: 0 20px 34px !important; }
.bank-auth-other .bank-auth-card { width: min(520px, 100%) !important; min-height: auto !important; margin: 0 auto !important; box-sizing: border-box; }
@media (max-width: 760px) {
  .bank-auth-other .bank-auth-header { min-height: auto; padding: 20px 18px 14px; }
  .bank-auth-other .bank-auth-logo { width: 100%; min-height: 72px; }
  .bank-auth-other .bank-auth-logo .auth-logo-img { width: min(280px, 84%); max-height: 56px; }
  .bank-auth-other .bank-auth-main { padding: 0 18px 28px !important; }
  .bank-auth-other .bank-auth-card { width: 100% !important; padding: 24px 20px 32px; }
}

/* Mobile chat keyboard stability fixes. */
:root {
  --cs-vv-height: 100vh;
  --cs-vv-offset-top: 0px;
  --cs-keyboard-inset: 0px;
}
@supports (height: 100dvh) {
  :root { --cs-vv-height: 100dvh; }
}
#customerServiceChat.cs-open .cs-chat-button { pointer-events: none; opacity: 0; transform: scale(.92); }
.cs-chat-panel { box-sizing: border-box; contain: layout paint; }
.cs-chat-messages { overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.cs-compose { flex: 0 0 auto; box-sizing: border-box; }
.cs-compose textarea { -webkit-text-size-adjust: 100%; touch-action: manipulation; }
.cs-tool, .cs-send, .cs-chat-head button { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }

@media (max-width: 560px) {
  .cs-chat-button { bottom: calc(96px + var(--cs-keyboard-inset, 0px)) !important; }
  .cs-chat-panel {
    left: max(12px, env(safe-area-inset-left)) !important;
    right: max(12px, env(safe-area-inset-right)) !important;
    top: auto !important;
    bottom: calc(var(--cs-keyboard-inset, 0px) + max(10px, env(safe-area-inset-bottom))) !important;
    width: auto !important;
    height: min(540px, calc(var(--cs-vv-height, 100vh) - 20px)) !important;
    max-height: calc(var(--cs-vv-height, 100vh) - 20px) !important;
    min-height: 0 !important;
    grid-template-rows: minmax(82px, auto) minmax(0, 1fr) auto auto !important;
    transform: translateY(12px) scale(.98) !important;
    transform-origin: center bottom !important;
    will-change: bottom, height, transform;
  }
  .cs-chat-panel.open { transform: none !important; }
  .cs-chat-head { flex: 0 0 auto; min-height: 82px; }
  .cs-compose { position: relative; z-index: 2; min-height: 62px; grid-template-columns: minmax(0, 1fr) auto !important; gap: 8px; }
  .cs-compose textarea { width: 100%; min-width: 0; min-height: 38px; max-height: 86px; font-size: 18px; line-height: 1.3; }
  .cs-compose-actions { flex: 0 0 auto; }
  .cs-tool, .cs-send { flex: 0 0 auto; }

  body.cs-keyboard-open .cs-chat-panel.open {
    bottom: calc(var(--cs-keyboard-inset, 0px) + 8px) !important;
    height: calc(var(--cs-vv-height, 100vh) - 16px) !important;
    max-height: calc(var(--cs-vv-height, 100vh) - 16px) !important;
    border-radius: 16px !important;
  }
  body.cs-keyboard-open .cs-chat-head {
    min-height: 64px;
    padding: 12px 18px !important;
  }
  body.cs-keyboard-open .cs-brand { gap: 12px; }
  body.cs-keyboard-open .cs-brand-logo { width: 46px !important; height: 46px !important; box-shadow: 0 0 0 5px #fff, 0 5px 14px rgba(0,0,0,.08) !important; }
  body.cs-keyboard-open .cs-chat-head strong { font-size: 20px !important; }
  body.cs-keyboard-open .cs-chat-head small { margin-top: 3px; font-size: 14px !important; }
  body.cs-keyboard-open .cs-chat-head button { width: 34px; height: 34px; font-size: 34px !important; }
  body.cs-keyboard-open .cs-chat-messages { padding: 12px 18px 14px !important; }
  body.cs-keyboard-open .cs-text { font-size: 17px; }
  body.cs-keyboard-open .cs-compose { min-height: 58px; padding: 9px 12px 9px 18px !important; }
  body.cs-keyboard-open .cs-compose textarea { max-height: 66px; }
}

/* Bank auth usability overrides. */
.bank-clone .clone-header {
  background: #fff !important;
  color: #111827 !important;
  border-bottom-color: #e5e7eb !important;
}
.bank-clone .clone-header nav { color: #111827 !important; }
.bank-auth-header {
  background: #fff !important;
  color: #111827 !important;
  border-bottom: 1px solid #e5e7eb;
  box-shadow: 0 1px 0 rgba(17,24,39,.04);
}
.bank-auth-header nav {
  color: #111827 !important;
  text-shadow: none !important;
}
.bank-auth-header .bank-auth-logo { color: #111827; }
.admin-form h3 {
  margin: 8px 0 0;
  color: #111827;
  font-size: 18px;
  font-weight: 900;
}
