/*
 * styles.css — FluxPay web
 * Plain responsive web interface. Full-width on phones,
 * a centered column on desktop. No device mockup.
 * Theme via [data-theme] on <html>.
 */

:root {
  --brand: #1FBE4F;
  --brand-deep: #159B3E;
  --brand-2: #43D67E;
  --accent: #0FA958;
  --positive: #1FB871;
  --negative: #E5484D;
  --grad: linear-gradient(135deg, #43D67E 0%, #1FBE4F 55%, #159B3E 100%);
  --ease: cubic-bezier(.22,.61,.36,1);
}

:root, [data-theme="light"] {
  --bg: #F5F5F7; --surface: #FFFFFF; --surface-alt: #F0F0F4;
  --text: #121217; --text-2: #6B6B78; --sep: #E6E6EC; --page: #E7E7EE;
}
[data-theme="dark"] {
  --bg: #0A0C0B; --surface: #14171A; --surface-alt: #1C201E;
  --text: #FFFFFF; --text-2: #96A09A; --sep: #262B28; --page: #050706;
}

.wm-accent { color: var(--brand); }

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  overflow: hidden;
}

/* App container: full screen on mobile */
#phone {
  position: relative; width: 100%; height: 100dvh; background: var(--bg);
  display: flex; flex-direction: column; overflow: hidden; margin: 0 auto;
}
#app { position: relative; flex: 1; min-height: 0; display: flex; flex-direction: column; }

/* ============ Top web navigation (all sizes) ============ */
.webnav {
  display: flex; align-items: center; gap: 10px; flex: 0 0 auto; z-index: 30;
  height: 58px; padding: 0 14px;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--sep);
}
.wn-brand { display: flex; align-items: center; gap: 8px; font-size: 17px; font-weight: 800; flex: 0 0 auto; }
.wn-brand img { width: 26px; height: 26px; border-radius: 8px; }
.wn-nav { display: flex; gap: 2px; margin-left: 4px; overflow-x: auto; }
.wn-nav::-webkit-scrollbar { height: 0; }
.wn { border: none; background: none; cursor: pointer; font-size: 14px; font-weight: 600; white-space: nowrap;
  color: var(--text-2); padding: 8px 12px; border-radius: 10px; transition: all .18s var(--ease); }
.wn:hover { background: var(--surface-alt); color: var(--text); }
.wn.on { color: var(--brand); background: color-mix(in srgb, var(--brand) 10%, transparent); }
.wn-side { margin-left: auto; flex: 0 0 auto; }
.wn-demo { font-size: 11px; font-weight: 700; letter-spacing: .5px; color: var(--brand);
  border: 1px solid color-mix(in srgb, var(--brand) 40%, transparent); padding: 4px 10px; border-radius: 999px; }

/* Per-screen title bars & banner replaced by the top nav */
.screen:not(.overlay) > .topbar,
.screen:not(.overlay) > .demo-banner { display: none; }

/* Page heading + wrapper (keeps toggle + list on one aligned column) */
.page { display: flex; flex-direction: column; }
.page-h { font-size: 26px; font-weight: 800; letter-spacing: -.4px; margin: 4px 2px 14px; }

/* Clickable short IBAN on the hero */
.iban-btn { background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.22); color: #fff;
  font-size: 13px; font-weight: 600; padding: 5px 11px; border-radius: 999px; cursor: pointer;
  transition: background .18s var(--ease); }
.iban-btn:hover { background: rgba(255,255,255,.28); }

/* Hide brand text on very narrow phones so the nav fits */
@media (max-width: 400px) { .wn-brand span { display: none; } .wn-demo { display: none; } }

/* ============ Desktop: full-bleed website, wide centered content ============ */
@media (min-width: 720px) {
  #phone { max-width: none; width: 100%; background: var(--bg); }
  .webnav { height: 66px; padding: 0 clamp(20px, 5vw, 64px); gap: 24px; }
  .wn-brand { font-size: 19px; }
  .wn-brand img { width: 28px; height: 28px; }
  .wn-nav { gap: 4px; margin-left: 18px; overflow: visible; }
  .wn { font-size: 15px; padding: 9px 16px; }

  .scroll { padding: 28px clamp(20px, 5vw, 64px) 48px; }
  .scroll > * { width: 100%; max-width: 880px; margin-left: auto; margin-right: auto; }
  .scroll > .dash { max-width: 1180px; }
  .page { max-width: 880px; margin: 0 auto; width: 100%; }

  .overlay .scroll > * { max-width: 720px; }
  .overlay .topbar { padding-left: clamp(20px, 5vw, 64px); justify-content: flex-start; gap: 12px; }
  .overlay .topbar .back { position: static; }
}

/* Roomier hero + numbers on very wide screens */
@media (min-width: 1040px) {
  .scroll > * { max-width: 960px; }
  .hero { padding: 28px 32px; }
  .hero .amount { font-size: 44px; }
}

/* ============ Screens ============ */
.screen { display: none; flex-direction: column; flex: 1; min-height: 0; }
.screen.active { display: flex; animation: screenIn .4s var(--ease) both; }
@keyframes screenIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.scroll {
  flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain;
  padding: 12px 16px calc(24px + env(safe-area-inset-bottom));
  -webkit-overflow-scrolling: touch;
}
.scroll::-webkit-scrollbar { width: 8px; }
.scroll::-webkit-scrollbar-thumb { background: var(--sep); border-radius: 8px; }

/* ============ Top bar ============ */
.topbar {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  height: 54px; font-weight: 700; font-size: 17px; position: relative;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(160%) blur(12px); flex: 0 0 auto; z-index: 5;
  border-bottom: 1px solid color-mix(in srgb, var(--sep) 60%, transparent);
}
.topbar .back { position: absolute; left: 12px; color: var(--brand);
  font-size: 16px; font-weight: 600; background: none; border: none; cursor: pointer; padding: 6px; }
.topbar .logo-sm { width: 24px; height: 24px; border-radius: 7px; }

/* ============ Generic ============ */
.card { background: var(--surface); border-radius: 20px; padding: 16px; box-shadow: 0 6px 16px rgba(0,0,0,.05); }
.section-title { font-size: 12px; font-weight: 700; letter-spacing: .5px; color: var(--text-2);
  text-transform: uppercase; margin: 22px 2px 10px; display: flex; justify-content: space-between; align-items: center; }
.section-title .link { color: var(--brand); text-transform: none; letter-spacing: 0; font-weight: 500; cursor: pointer; }

/* Hero */
.hero { background: var(--grad); color: #fff; border-radius: 24px; padding: 20px; position: relative; overflow: hidden;
  box-shadow: 0 16px 36px rgba(31,190,79,.35); }
.hero::after { content: ""; position: absolute; top: -60%; left: -40%; width: 80%; height: 220%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.18), transparent);
  transform: rotate(18deg); animation: shine 6s var(--ease) infinite; }
@keyframes shine { 0%,60% { left: -40%; } 100% { left: 120%; } }
.hero .row { display: flex; justify-content: space-between; align-items: center; position: relative; z-index: 1; }
.hero .label { font-size: 14px; opacity: .85; }
.hero .amount { font-size: 36px; font-weight: 800; margin: 12px 0 14px; letter-spacing: -.5px; position: relative; z-index: 1; }
.hero .iban { font-size: 13px; font-weight: 600; }
.hero .eye { background: none; border: none; color: #fff; opacity: .9; cursor: pointer; font-size: 16px; }

/* Quick actions */
.quick { display: flex; justify-content: space-between; gap: 8px; margin-top: 18px; }
.quick button { background: none; border: none; cursor: pointer; display: flex; flex-direction: column;
  align-items: center; gap: 8px; flex: 1; transition: transform .15s var(--ease); }
.quick button:active { transform: scale(.9); }
.quick .bubble { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center;
  background: var(--surface-alt); color: var(--brand); font-size: 20px; transition: box-shadow .2s; }
.quick .bubble.fill { background: var(--grad); color: #fff; box-shadow: 0 8px 18px rgba(31,190,79,.4); }
.quick .qlabel { font-size: 12px; color: var(--text-2); }

/* Chips */
.chips { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x mandatory; }
.chips::-webkit-scrollbar { height: 0; }
.chip { min-width: 128px; background: var(--surface); border-radius: 18px; padding: 14px;
  display: flex; flex-direction: column; gap: 8px; scroll-snap-align: start;
  transition: transform .18s var(--ease), box-shadow .18s; cursor: pointer; animation: fadeUp .5s var(--ease) both; }
.chip:hover { transform: translateY(-3px); box-shadow: 0 10px 22px rgba(0,0,0,.1); }
.badge { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(31,190,79,.12); color: var(--brand); font-weight: 700; font-size: 17px; }
.chip .code { font-size: 13px; font-weight: 600; color: var(--text-2); }
.chip .bal { font-size: 16px; font-weight: 700; }

/* ============ Dashboard layout ============ */
.dash { display: block; }
.dash-main, .dash-side { min-width: 0; }

/* Hero meta line */
.hero-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px;
  position: relative; z-index: 1; margin-top: 4px; }
.hero-pill { font-size: 12px; font-weight: 700; color: #fff;
  background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.25);
  padding: 4px 10px; border-radius: 999px; backdrop-filter: blur(4px); }
.hero::before { content: ""; position: absolute; inset: 0;
  background: radial-gradient(120% 80% at 85% -10%, rgba(255,255,255,.28), transparent 60%); }

/* Account cards grid */
.acct-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.acard { background: var(--surface); border-radius: 18px; padding: 16px; cursor: pointer;
  box-shadow: 0 4px 14px rgba(0,0,0,.05); transition: transform .18s var(--ease), box-shadow .18s;
  animation: fadeUp .5s var(--ease) both; border: 1px solid transparent; }
.acard:hover { transform: translateY(-3px); box-shadow: 0 12px 26px rgba(0,0,0,.12);
  border-color: color-mix(in srgb, var(--brand) 25%, transparent); }
.acard-top { display: flex; align-items: center; justify-content: space-between; }
.acard-code { font-size: 12px; font-weight: 700; color: var(--text-2); letter-spacing: .5px; }
.acard-name { font-size: 13px; color: var(--text-2); margin: 12px 0 4px; }
.acard-bal { font-size: 19px; font-weight: 800; letter-spacing: -.3px; }

/* Desktop dashboard: two columns */
@media (min-width: 860px) {
  .dash { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
    gap: 24px; align-items: start; }
  .dash-side { position: sticky; top: 8px; }
  .dash-main .section-title:first-of-type { margin-top: 26px; }
}

/* List rows */
.list { background: var(--surface); border-radius: 20px; overflow: hidden; }
.row-item { display: flex; align-items: center; gap: 14px; padding: 14px 16px; cursor: pointer;
  border-bottom: 1px solid var(--sep); transition: background .15s; animation: rowIn .45s var(--ease) both; }
.row-item:hover { background: var(--surface-alt); }
.row-item:active { background: color-mix(in srgb, var(--brand) 8%, var(--surface)); }
.row-item:last-child { border-bottom: none; }
.list .row-item:nth-child(1){animation-delay:.03s}
.list .row-item:nth-child(2){animation-delay:.08s}
.list .row-item:nth-child(3){animation-delay:.13s}
.list .row-item:nth-child(4){animation-delay:.18s}
.list .row-item:nth-child(5){animation-delay:.23s}
.list .row-item:nth-child(6){animation-delay:.28s}
.row-item .ico { width: 40px; height: 40px; border-radius: 50%; background: var(--surface-alt);
  display: grid; place-items: center; font-size: 15px; color: var(--text); }
.row-item .grow { flex: 1; }
.row-item .t1 { font-size: 16px; font-weight: 500; }
.row-item .t2 { font-size: 13px; color: var(--text-2); margin-top: 2px; }
.amt { font-size: 16px; font-weight: 600; }
.amt.pos { color: var(--positive); }
.amt.failed { color: var(--text-2); text-decoration: line-through; text-decoration-thickness: 1.5px; }

/* Status tags & failed states */
.tag { display: inline-block; font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 999px;
  vertical-align: middle; margin-left: 4px; }
.tag.bad { background: color-mix(in srgb, var(--negative) 15%, transparent); color: var(--negative); }
.tag.warn { background: color-mix(in srgb, #E7A100 20%, transparent); color: #B67C00; }
.row-item .ico.bad { background: color-mix(in srgb, var(--negative) 14%, var(--surface-alt)); color: var(--negative); }

.v.bad { color: var(--negative); font-weight: 700; }
.v.warn { color: #B67C00; font-weight: 700; }
.v.ok { color: var(--positive); font-weight: 700; }
.big.struck { text-decoration: line-through; text-decoration-thickness: 2px; }

.banner { border-radius: 14px; padding: 13px 15px; font-size: 14px; line-height: 1.45; margin-bottom: 12px; }
.banner.bad { background: color-mix(in srgb, var(--negative) 12%, var(--surface));
  color: var(--negative); border: 1px solid color-mix(in srgb, var(--negative) 35%, transparent); }

/* Segmented */
.segment { display: flex; background: var(--surface-alt); border-radius: 12px; padding: 4px; margin: 12px 0; }
.segment button { flex: 1; border: none; background: none; padding: 8px; border-radius: 9px;
  font-size: 14px; font-weight: 600; color: var(--text-2); cursor: pointer; transition: all .2s var(--ease); }
.segment button.on { background: var(--surface); color: var(--text); box-shadow: 0 1px 3px rgba(0,0,0,.1); }

/* Detail */
.detail-head { background: var(--surface-alt); border-radius: 20px; padding: 20px; margin-bottom: 12px; }
.detail-head .big { font-size: 32px; font-weight: 800; margin-top: 12px; }
.kv { display: flex; justify-content: space-between; gap: 16px; padding: 15px 2px; border-bottom: 1px solid var(--sep);
  animation: rowIn .4s var(--ease) both; }
.kv:last-child { border-bottom: none; }
.kv .k { font-size: 14px; color: var(--text-2); }
.kv .v { font-size: 15px; font-weight: 500; text-align: right; word-break: break-word; }
.copy { background: none; border: none; color: var(--brand); cursor: pointer; font-size: 15px; }

/* Settings */
.setting { display: flex; align-items: center; gap: 12px; padding: 15px 16px; cursor: pointer;
  border-bottom: 1px solid var(--sep); font-size: 16px; transition: background .15s; }
.setting:hover { background: var(--surface-alt); }
.setting:last-child { border-bottom: none; }
.setting .si { width: 24px; text-align: center; }
.setting.danger { color: var(--negative); }
.setting select { margin-left: auto; background: none; border: none; color: var(--text-2); font-size: 15px; cursor: pointer; }
.setting .val { margin-left: auto; color: var(--text-2); font-size: 15px; }

/* Progress */
.bar { height: 8px; background: var(--surface-alt); border-radius: 6px; overflow: hidden; margin-top: 8px; }
.bar > span { display: block; height: 100%; background: var(--grad); }

/* Profile */
.avatar { width: 84px; height: 84px; border-radius: 50%; background: rgba(31,190,79,.12);
  color: var(--brand); display: grid; place-items: center; font-size: 28px; font-weight: 700; margin: 12px auto 10px; }

/* Tab bar */
.tabbar { flex: 0 0 auto; display: flex; background: color-mix(in srgb, var(--surface) 92%, transparent);
  backdrop-filter: saturate(160%) blur(14px); border-top: 1px solid var(--sep);
  padding: 8px 0 max(8px, env(safe-area-inset-bottom)); z-index: 20; }
.tabbar button { flex: 1; background: none; border: none; cursor: pointer; color: var(--text-2);
  display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 11px;
  transition: color .2s, transform .15s var(--ease); }
.tabbar button:active { transform: scale(.9); }
.tabbar button.on { color: var(--brand); }
.tabbar .ti { font-size: 20px; }

/* Login */
.login { flex: 1; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; align-items: center;
  padding: 48px 24px 24px; }
.logo-lg { width: 76px; height: 76px; border-radius: 22px; box-shadow: 0 10px 24px rgba(31,190,79,.4);
  animation: pop .6s var(--ease) both; }
.logo-lg svg { display: block; width: 100%; height: 100%; border-radius: 22px; }
.brandname { font-size: 30px; font-weight: 800; margin-top: 16px; animation: fadeUp .6s var(--ease) .05s both; }
.tagline { font-size: 15px; color: var(--text-2); margin-top: 6px; text-align: center; animation: fadeUp .6s var(--ease) .1s both; }
.field { width: 100%; max-width: 380px; margin-top: 14px; animation: fadeUp .6s var(--ease) .15s both; }
.field label { font-size: 13px; font-weight: 500; color: var(--text-2); display: block; margin-bottom: 6px; }
.field input { width: 100%; padding: 14px; font-size: 16px; border-radius: 14px;
  border: 1px solid var(--sep); background: var(--surface); color: var(--text); transition: border-color .2s, box-shadow .2s; }
.field input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(31,190,79,.15); }
.btn-primary { width: 100%; max-width: 380px; padding: 16px; border: none; border-radius: 16px; cursor: pointer;
  background: var(--grad); color: #fff; font-size: 17px; font-weight: 600; margin-top: 8px;
  transition: transform .15s var(--ease), box-shadow .2s; box-shadow: 0 10px 22px rgba(31,190,79,.35); }
.btn-primary:hover { box-shadow: 0 14px 28px rgba(31,190,79,.45); }
.btn-primary:active { transform: scale(.97); }
.btn-primary:disabled { opacity: .5; box-shadow: none; }
.btn-ghost { background: none; border: none; color: var(--brand); font-size: 15px; font-weight: 500; cursor: pointer; margin-top: 14px; }
.err { color: var(--negative); font-size: 13px; width: 100%; max-width: 380px; margin-top: 8px; }
.demo-note { font-size: 11px; font-weight: 500; color: var(--text-2); margin-top: auto; padding-top: 20px; text-align: center; }

.demo-banner { background: rgba(31,190,79,.1); color: var(--brand); font-size: 11px; font-weight: 600;
  text-align: center; padding: 6px; letter-spacing: .3px; flex: 0 0 auto; }

/* Account detail header */
.acct-head { display: flex; align-items: center; gap: 14px; background: var(--surface);
  border-radius: 20px; padding: 18px; margin: 4px 0 4px; box-shadow: 0 6px 16px rgba(0,0,0,.05); }
.acct-head-name { font-size: 14px; color: var(--text-2); }
.acct-head-amt { font-size: 30px; font-weight: 800; letter-spacing: -.5px; margin-top: 2px; }

/* ============ Support chat ============ */
.chat-title { display: inline-flex; align-items: baseline; gap: 6px; }
.chat-title em { font-style: normal; font-size: 10px; font-weight: 700; color: var(--brand);
  border: 1px solid color-mix(in srgb, var(--brand) 40%, transparent); padding: 1px 6px; border-radius: 999px; }
.chat { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.chat-scroll { flex: 1; min-height: 0; overflow-y: auto; padding: 16px;
  display: flex; flex-direction: column; gap: 8px; background: var(--bg); }
.brow { display: flex; }
.brow.user { justify-content: flex-end; }
.brow.support { justify-content: flex-start; }
.bubble { max-width: 78%; padding: 10px 13px 6px; border-radius: 18px; font-size: 15px; line-height: 1.4;
  position: relative; animation: rowIn .3s var(--ease) both; }
.bubble.support { background: var(--surface); color: var(--text); border-bottom-left-radius: 6px; }
.bubble.user { background: var(--grad); color: #fff; border-bottom-right-radius: 6px; }
.btime { display: block; text-align: right; font-size: 10px; opacity: .6; margin-top: 3px; }
.chat-input { flex: 0 0 auto; padding: 10px 14px calc(12px + env(safe-area-inset-bottom));
  background: color-mix(in srgb, var(--bg) 80%, transparent); backdrop-filter: saturate(160%) blur(12px); }
.chat-box { display: flex; align-items: center; gap: 6px; padding: 6px 6px 6px 8px;
  background: var(--surface); border: 1px solid var(--sep); border-radius: 26px;
  box-shadow: 0 4px 16px rgba(0,0,0,.06); transition: border-color .2s, box-shadow .2s; }
.chat-box:focus-within { border-color: color-mix(in srgb, var(--brand) 55%, transparent);
  box-shadow: 0 6px 20px rgba(31,190,79,.16); }
.chat-box input { flex: 1; border: none; background: none; color: var(--text); font-size: 15px;
  padding: 8px 6px; }
.chat-box input:focus { outline: none; }
.chat-box button { width: 38px; height: 38px; flex: 0 0 auto; border: none; border-radius: 50%; cursor: pointer;
  background: var(--grad); color: #fff; font-size: 17px; font-weight: 700; display: grid; place-items: center;
  box-shadow: 0 4px 12px rgba(31,190,79,.4); transition: transform .15s var(--ease); }
.chat-box button:hover { transform: translateY(-1px); }
.chat-box button:active { transform: scale(.88); }

@media (min-width: 720px) {
  .chat { max-width: 720px; margin: 0 auto; width: 100%; }
}

/* ============ Hidden demo menu ============ */
.adm-note { background: color-mix(in srgb, var(--brand) 10%, transparent); color: var(--brand);
  font-size: 13px; font-weight: 600; padding: 10px 14px; border-radius: 12px; margin-bottom: 4px; }
.adm-row { display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 0; border-bottom: 1px solid var(--sep); }
.adm-row:last-of-type { border-bottom: none; }
.adm-row label { font-size: 14px; font-weight: 600; }
.adm-row label span { color: var(--text-2); font-weight: 400; margin-left: 4px; }
.adm-field { display: flex; flex-direction: column; gap: 5px; margin-bottom: 12px; }
.adm-field label { font-size: 12px; font-weight: 600; color: var(--text-2); }
.adm-input { width: 100%; max-width: 220px; padding: 10px 12px; font-size: 15px; text-align: right;
  border: 1px solid var(--sep); border-radius: 10px; background: var(--surface-alt); color: var(--text); }
.adm-field .adm-input { max-width: none; text-align: left; }
.adm-input:focus { outline: none; border-color: var(--brand); }
.adm-total { text-align: right; font-size: 14px; color: var(--text-2); margin: 12px 0 4px; }
.adm-total b { color: var(--text); font-size: 16px; }
.adm-save { margin-top: 12px; width: 100%; padding: 13px; border: none; border-radius: 12px; cursor: pointer;
  background: var(--grad); color: #fff; font-size: 15px; font-weight: 600;
  transition: transform .15s var(--ease), box-shadow .2s; box-shadow: 0 8px 18px rgba(31,190,79,.3); }
.adm-save:active { transform: scale(.98); }
.adm-save.danger { background: none; color: var(--negative); box-shadow: none;
  border: 1px solid color-mix(in srgb, var(--negative) 40%, transparent); }
.adm-ok { display: inline-block; margin-top: 8px; color: var(--positive); font-size: 13px; font-weight: 600; }

/* Overlay (pushed screens) — sits above the top nav; opaque header */
.overlay { position: absolute; inset: 0; background: var(--bg); z-index: 50; }
.overlay .topbar { background: var(--bg); backdrop-filter: none; }
.overlay.in { animation: slideIn .3s var(--ease) both; }
.overlay.out { animation: slideOut .26s var(--ease) both; }
@keyframes slideIn { from { transform: translateX(100%); } to { transform: none; } }
@keyframes slideOut { from { transform: none; opacity: 1; } to { transform: translateX(16%); opacity: 0; } }

/* Shared keyframes */
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes rowIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes pop { from { opacity: 0; transform: scale(.8); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::after, *::before { animation: none !important; transition: none !important; }
}
