/* ============================================================
   STANDARD CHARTERED BANK — styles
   Mobile-first. Font scales up on larger screens.
   ============================================================ */
:root{
  --bg:#eff2f7;--surface:#fff;--ink:#0f1a2e;--muted:#5a6a82;--line:#dae1ec;
  --brand:#0a2a5e;--btn:#0a2a5e;--btn-ink:#fff;--gold:#d8323c;
  --bad:#b3261e;--good:#1d7a4a;color-scheme:light;
  box-sizing:border-box;
  padding-top:env(safe-area-inset-top,0px);
  padding-bottom:env(safe-area-inset-bottom,0px);
}
@media (prefers-color-scheme:dark){
  :root:not([data-theme="light"]){
    --bg:#0b1220;--surface:#142036;--ink:#e8edf6;--muted:#93a3bd;--line:#26364f;
    --brand:#071b3f;--btn:#5b8def;--btn-ink:#06132b;--bad:#ff8a80;--good:#6fd6a0;
    color-scheme:dark;
  }
}
html{font-size:18px;scroll-padding-top:env(safe-area-inset-top,0px)}
@media (min-width:768px){html{font-size:19px}}
@media (min-width:1024px){html{font-size:20px}}
@media (min-width:1440px){html{font-size:22px}}
@media (min-width:1920px){html{font-size:23px}}
*,*::before,*::after{box-sizing:inherit}
body{
  margin:0;background:var(--bg);color:var(--ink);
  font:400 1rem/1.6 "IBM Plex Sans","Noto Sans KR","Malgun Gothic","Apple SD Gothic Neo",system-ui,sans-serif;
  -webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;
  text-rendering:optimizeLegibility;-webkit-tap-highlight-color:transparent;
}
h1,h2,.mark,.big{font-family:"Bricolage Grotesque","Noto Sans KR",system-ui,sans-serif;margin:0}
button,input,select,textarea{font:inherit;color:inherit}
textarea{min-height:5.5rem;resize:vertical}
img{max-width:100%;height:auto;display:block}
:focus-visible{outline:3px solid var(--gold);outline-offset:2px}

.btn{border:0;border-radius:8px;padding:.75rem 1.25rem;font-weight:500;cursor:pointer;background:var(--btn);color:var(--btn-ink);transition:filter .12s ease,transform .08s ease;touch-action:manipulation}
.btn:hover{filter:brightness(.94)}.btn:active{transform:scale(.98)}
.btn.wide{width:100%;padding:.9rem}
.btn.ghost{background:transparent;border:1px solid var(--line);color:var(--ink)}
.btn.ghost:hover{background:var(--bg)}
.link{background:none;border:0;cursor:pointer;color:var(--muted);text-decoration:underline;padding:.35rem;touch-action:manipulation}

label{display:block;font-size:.92rem;color:var(--muted);margin:.9rem 0 .35rem;font-weight:500}
input,select,textarea{width:100%;padding:.75rem .9rem;background:var(--surface);border:1px solid var(--line);border-radius:8px;transition:border-color .12s ease}
input:focus,select:focus,textarea:focus{border-color:var(--btn);outline:none}
.row{display:grid;grid-template-columns:1fr;gap:0 .9rem}
@media (min-width:520px){.row{grid-template-columns:1fr 1fr}}
.msg{min-height:1.4em;margin:.8rem 0 0;font-weight:500}
.msg.bad{color:var(--bad)}.msg.good{color:var(--good)}
.note{font-size:.88rem;color:var(--muted);margin:.9rem 0 0;line-height:1.5}
.mail{background:var(--bg);border:1px dashed var(--line);border-radius:8px;padding:.8rem;font-size:.9rem;margin:.8rem 0;line-height:1.5}

.auth{min-height:100dvh;display:grid;grid-template-columns:1fr}
@media (min-width:900px){.auth{grid-template-columns:1.15fr 1fr}}
.hero{color:#fff;padding:2rem 1.5rem 1.5rem;display:flex;flex-direction:column;gap:1rem;overflow:hidden;background:linear-gradient(180deg,#1a4f9c 0%,#0a2a5e 55%,#050f26 100%)}
@media (min-width:900px){.hero{padding:2.75rem 3rem 0;gap:1.75rem}}
.mark{display:flex;align-items:center;gap:.6rem;font-weight:800;font-size:1.05rem;letter-spacing:.05em;color:#fff}
.mark svg{flex:none}
.hero h1{font-size:1.85rem;font-weight:800;line-height:1.1;max-width:15ch}
@media (min-width:900px){.hero h1{font-size:clamp(2rem,4.4vw,3.4rem)}}
.hero p,.feat,.hero small,.art{display:none}
@media (min-width:900px){
  .hero p{display:block;max-width:44ch;opacity:.85;margin:1rem 0 1.5rem}
  .feat{display:grid;list-style:none;margin:0;padding:0;gap:.7rem}
  .feat li{display:flex;gap:.7rem;align-items:center}
  .feat li::before{content:"";width:1.2rem;height:1.2rem;flex:none;border:1.5px solid var(--gold);border-radius:50%;background:radial-gradient(var(--gold) 0 3px,transparent 4px)}
  .hero small{display:block;opacity:.6}
  .art{display:block;margin:auto -3rem 0;width:calc(100% + 6rem);max-width:none;height:clamp(15rem,46vh,28rem);object-fit:cover;object-position:50% 72%;-webkit-mask-image:linear-gradient(to bottom,transparent,#000 28%);mask-image:linear-gradient(to bottom,transparent,#000 28%)}
}
.fside{display:flex;flex-direction:column;padding:1.5rem;background:var(--surface)}
@media (min-width:900px){.fside{padding:1.25rem 1.75rem}}
.fside .lang{text-align:right}
.login{margin:auto;width:100%;max-width:24rem;padding:1rem 0}
@media (min-width:900px){.login{padding:1.5rem 0}}
.login h2{font-size:1.75rem;margin-bottom:.35rem}
@media (min-width:900px){.login h2{font-size:1.9rem}}
.muted{color:var(--muted);margin:.35rem 0 .75rem;font-size:.95rem}

.app{display:grid;grid-template-columns:1fr;min-height:100dvh}
@media (min-width:900px){.app{grid-template-columns:17rem 1fr}}
.side{background:var(--brand);color:#fff;padding:.75rem 1rem;display:flex;flex-direction:row;align-items:center;gap:.5rem;overflow-x:auto;-webkit-overflow-scrolling:touch}
@media (min-width:900px){.side{flex-direction:column;align-items:stretch;padding:1.4rem .9rem;gap:1.4rem;overflow-x:visible}}
@media (max-width:899px){.mark span{display:none}}
.chip{font-size:.78rem;border:1px solid var(--gold);color:var(--gold);padding:.15rem .55rem;border-radius:99px;align-self:flex-start;margin-left:.8rem;display:none}
@media (min-width:900px){.chip{display:inline-block}}
.nav{display:flex;gap:.25rem}
@media (min-width:900px){.nav{display:grid;gap:.25rem}}
.nav button{text-align:left;background:none;border:0;color:inherit;opacity:.75;padding:.7rem .9rem;border-radius:8px;cursor:pointer;white-space:nowrap;transition:background .12s ease,opacity .12s ease;touch-action:manipulation;font-size:.95rem}
.nav button:hover{opacity:1;background:rgba(255,255,255,.08)}
.nav button[aria-current="true"]{background:rgba(255,255,255,.12);opacity:1;box-shadow:inset 0 -3px 0 var(--gold)}
@media (min-width:900px){.nav button[aria-current="true"]{box-shadow:inset 3px 0 0 var(--gold)}}

.content{min-width:0;display:flex;flex-direction:column}
.top{display:flex;justify-content:space-between;align-items:center;gap:.7rem;padding:1rem 1.25rem;background:var(--surface);border-bottom:1px solid var(--line)}
@media (min-width:900px){.top{padding:1.1rem 1.75rem}}
.top h1{font-size:1.25rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}
@media (min-width:900px){.top h1{font-size:1.4rem}}
.who{display:flex;align-items:center;gap:.65rem;flex-shrink:0}
.who>span{display:none}
@media (min-width:600px){.who>span{display:inline}}
.av{width:2.3rem;height:2.3rem;border-radius:50%;object-fit:cover;background:var(--brand);color:#fff;display:inline-grid;place-items:center;font-weight:600;font-size:.85rem;flex:none;overflow:hidden}
.av.lg{width:5.5rem;height:5.5rem;font-size:1.9rem}
.banner{background:#f6e7c3;color:#3d2e07;padding:.7rem 1.25rem;font-weight:500;font-size:.92rem}
@media (min-width:900px){.banner{padding:.75rem 1.75rem}}
.body{padding:1.25rem 1rem;flex:1;max-width:90rem;margin:0 auto;width:100%}
@media (min-width:768px){.body{padding:1.75rem}}
@media (min-width:1024px){.body{padding:2rem 2.25rem}}
@media (min-width:1440px){.body{padding:2.5rem 3rem}}

.grid{display:grid;grid-template-columns:1fr;gap:1.25rem;align-items:start}
@media (min-width:1200px){.grid{grid-template-columns:minmax(0,3fr) minmax(0,2fr);gap:1.5rem}}
.panel{background:var(--surface);border:1px solid var(--line);border-radius:12px;padding:1.25rem;margin-bottom:1.25rem}
@media (min-width:768px){.panel{padding:1.5rem;margin-bottom:1.5rem}}
@media (min-width:1024px){.panel{padding:1.75rem}}
.head{display:flex;justify-content:space-between;align-items:center;gap:.75rem;flex-wrap:wrap}
h2{font-size:1.2rem;margin-bottom:.75rem}
@media (min-width:768px){h2{font-size:1.3rem}}
.head h2{margin:0}
.lbl{color:var(--muted);font-size:.92rem;display:flex;align-items:center;gap:.5rem;flex-wrap:wrap}
.big{font-weight:800;font-size:clamp(2.2rem,7vw,3.4rem);line-height:1.05;margin:.25rem 0 .9rem;letter-spacing:-.02em}
.list,.tx{list-style:none;margin:0;padding:0}
.list li,.tx li{display:flex;justify-content:space-between;align-items:flex-start;gap:.75rem;padding:.8rem 0;border-top:1px solid var(--line)}
.list li:first-child,.tx li:first-child{border-top:0;padding-top:0}
.list li:last-child,.tx li:last-child{padding-bottom:0}
small{color:var(--muted);display:block;font-size:.85rem;line-height:1.45}
.amt{font-variant-numeric:tabular-nums;white-space:nowrap;font-weight:600;align-self:center;font-size:1.02rem}
.in{color:var(--good)}

.cardwrap{position:relative;filter:drop-shadow(0 14px 22px rgba(7,27,63,.3))}
.cardwrap svg{display:block;width:100%;height:auto}
.cardwrap.off svg{filter:grayscale(1);opacity:.75}
.fzb{position:absolute;top:.7rem;right:.9rem;background:#fff;color:#b3261e;border-radius:99px;padding:.15rem .65rem;font-size:.78rem;font-weight:600}
.scroll{overflow-x:auto;-webkit-overflow-scrolling:touch}
table{width:100%;border-collapse:collapse}
th,td{text-align:left;padding:.75rem .6rem;border-bottom:1px solid var(--line);font-size:.95rem}
th{color:var(--muted);font-weight:500;font-size:.88rem}
.badge{display:inline-block;padding:.15rem .55rem;border-radius:99px;font-size:.8rem;border:1px solid var(--line);font-weight:500}

/* ============ HIDDEN HELPER ============ */
.hidden { display: none !important; }

/* ============ FLOATING SUPPORT BUBBLE ============ */
.support-fab {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 50%;
  border: 0;
  background: var(--brand);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(10, 42, 94, 0.35);
  z-index: 90;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
  touch-action: manipulation;
}
.support-fab:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(10, 42, 94, 0.4); }
.support-fab:active { transform: scale(0.96); }
.support-modal {
  position: fixed;
  inset: 0;
  background: rgba(18, 33, 51, 0.45);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  padding: 1.5rem;
  z-index: 91;
}
.support-modal.hidden { display: none; }
@media (max-width: 520px) {
  .support-modal { padding: 0.75rem; }
}
.support-bubble {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.25rem;
  width: 100%;
  max-width: 22rem;
  box-shadow: 0 24px 60px rgba(16, 42, 74, 0.25);
  max-height: calc(100dvh - 3rem);
  overflow-y: auto;
}
.support-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}
.support-head h3 { font-size: 1.1rem; margin: 0; }
.support-phone { margin: 0.5rem 0 0.75rem; font-size: 0.92rem; }
.support-phone a { color: var(--brand); font-weight: 600; text-decoration: none; }
.support-phone a:hover { text-decoration: underline; }
.support-status { min-height: 1.2em; font-size: 0.85rem; color: var(--muted); margin: 0.5rem 0; }
.support-bubble .btn { width: 100%; margin-top: 0.5rem; }
.badge.f{color:var(--bad);border-color:var(--bad)}
.badge.b{color:var(--gold);border-color:var(--gold)}
.acts{display:flex;gap:.7rem;flex-wrap:wrap;margin-top:.5rem}
.acts .btn{flex-shrink:0}
.narrow{max-width:40rem}