.app-header {
  position: sticky;
  top: 0;
  z-index: 40;
  padding: 10px 16px 12px;
  border-radius: 0 0 28px 28px;
  border-bottom: 1px solid var(--c-line);
  background: var(--c-header-bg);
  backdrop-filter: blur(20px) saturate(140%);
  box-shadow: var(--c-header-shadow);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.theme-ico {
  display: grid;
  place-items: center;
}

.theme-ico .ico {
  width: 18px;
  height: 18px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.brand-mark {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  border-radius: 13px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(140deg, #2E6BE6 0%, #114A9F 52%, #8F0FBF 100%);
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 10px 24px -12px rgba(46, 107, 230, 0.95), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.brand-mark .ico {
  width: 20px;
  height: 20px;
  stroke-width: 2.1;
}

.brand-txt {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
  min-width: 0;
}

.brand-txt b {
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: -0.2px;
  white-space: nowrap;
}

.brand-txt i {
  font-style: normal;
  font-size: 7.5px;
  font-weight: 600;
  letter-spacing: 2.2px;
  color: var(--c-text-3);
}

.icon-btn {
  position: relative;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: var(--c-text);
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}

.icon-btn:hover {
  background: var(--c-surface-2);
  border-color: var(--c-line-2);
}

.icon-btn:active {
  transform: scale(0.96);
}

.icon-btn.ghost {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  color: var(--c-text-2);
  background: transparent;
  border-color: transparent;
}

.icon-btn.ghost:hover {
  background: var(--c-surface);
  color: var(--c-text);
}

.ping {
  position: absolute;
  top: 10px;
  left: 10px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--c-pink);
  box-shadow: 0 0 0 3px rgba(207, 71, 105, 0.22);
}

.cards-block {
  margin-top: 16px;
}

.cards-viewport {
  overflow: hidden;
  border-radius: var(--r-xl);
}

.cards-track {
  display: flex;
  transition: transform 0.52s var(--ease);
}

.bank-card {
  position: relative;
  flex: 0 0 100%;
  min-height: 214px;
  padding: 16px 18px 15px;
  border-radius: var(--r-xl);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  color: #fff;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 26px 50px -28px rgba(3, 9, 24, 0.95), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.card-main {
  background:
    radial-gradient(120% 130% at 100% 4%, rgba(143, 15, 191, 0.5) 0%, transparent 46%),
    radial-gradient(90% 120% at 0% 108%, rgba(207, 71, 105, 0.34) 0%, transparent 52%),
    linear-gradient(135deg, #1D5CBD 0%, #114A9F 44%, #092552 100%);
}

.card-credit {
  background:
    radial-gradient(110% 130% at 100% 0%, rgba(207, 71, 105, 0.55) 0%, transparent 48%),
    radial-gradient(100% 120% at 0% 100%, rgba(46, 107, 230, 0.5) 0%, transparent 55%),
    linear-gradient(135deg, #6B1A9B 0%, #8F0FBF 46%, #3A0A50 100%);
}

.bank-card::before {
  content: '';
  position: absolute;
  z-index: 0;
  width: 220px;
  height: 220px;
  top: -108px;
  left: -62px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 0 0 24px rgba(255, 255, 255, 0.06), 0 0 0 50px rgba(255, 255, 255, 0.04);
}

.bank-card::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0.055;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

.card-sheen {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: radial-gradient(120% 90% at 86% -12%, rgba(255, 255, 255, 0.26) 0%, transparent 46%);
}

.card-top,
.card-mid,
.card-bottom {
  position: relative;
  z-index: 2;
}

.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.card-brand {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 10.5px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
}

.card-logo-mini {
  width: 25px;
  height: 25px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.24);
}

.card-logo-mini .ico {
  width: 14px;
  height: 14px;
  stroke-width: 2.1;
}

.card-top-side {
  display: flex;
  align-items: center;
  gap: 8px;
}

.card-pill {
  font-size: 9px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.94);
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.22);
  white-space: nowrap;
}

.contactless {
  width: 21px;
  height: 21px;
  opacity: 0.9;
}

.card-mid {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.card-cap {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.7);
}

.card-amount {
  display: flex;
  align-items: baseline;
  gap: 7px;
}

.card-amount b {
  font-size: 27px;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.6px;
}

.card-amount span {
  font-size: 10.5px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.68);
}

.card-no {
  direction: ltr;
  text-align: right;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 1.9px;
  color: rgba(255, 255, 255, 0.82);
  margin-top: 4px;
}

.card-progress {
  height: 5px;
  margin-top: 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  overflow: hidden;
}

.card-progress i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #FCE9F3, #FF8AA6);
  box-shadow: 0 0 12px rgba(252, 233, 243, 0.7);
}

.card-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 5px;
  font-size: 9px;
  color: rgba(255, 255, 255, 0.66);
}

.card-bottom {
  display: grid;
  grid-template-columns: 1.35fr 0.8fr 0.72fr;
  gap: 8px;
  align-items: end;
  padding-top: 9px;
  border-top: 1px solid rgba(255, 255, 255, 0.17);
}

.card-field {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.card-field span {
  font-size: 8.5px;
  letter-spacing: 0.4px;
  color: rgba(255, 255, 255, 0.6);
}

.card-field b {
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-cvv {
  display: flex;
  align-items: center;
  gap: 4px;
}

.cvv-toggle {
  width: 19px;
  height: 19px;
  border-radius: 6px;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.82);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.cvv-toggle .ico {
  width: 12px;
  height: 12px;
}

.carousel-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 4px 0;
}

.dots {
  display: flex;
  align-items: center;
  gap: 6px;
}

.dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--c-dot);
  transition: width 0.3s var(--ease), background 0.3s var(--ease);
}

.dot.is-active {
  width: 20px;
  background: var(--c-dot-active);
  box-shadow: 0 0 12px rgba(207, 71, 105, 0.55);
}

.arrows {
  display: flex;
  gap: 6px;
}

.arrow-btn {
  width: 32px;
  height: 32px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  color: var(--c-text-2);
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  transition: var(--dur) var(--ease);
}

.arrow-btn .ico {
  width: 16px;
  height: 16px;
}

.arrow-btn:hover {
  color: var(--c-text);
  background: var(--c-surface-2);
  border-color: var(--c-line-2);
}

.quick {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
  margin-top: 14px;
}

.qbtn {
  position: relative;
  height: 56px;
  border-radius: 17px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--c-text);
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: var(--dur) var(--ease);
}

.qbtn:hover {
  background: var(--c-surface-2);
  border-color: var(--c-line-2);
  transform: translateY(-1px);
}

.qbtn:active {
  transform: translateY(0) scale(0.98);
}

.qbtn-primary {
  color: #fff;
  background: linear-gradient(135deg, #2E6BE6 0%, #114A9F 58%, #8F0FBF 100%);
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow: var(--shadow-blue);
}

.qico {
  width: 28px;
  height: 28px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: var(--c-icon-chip);
}

.qico .ico {
  width: 17px;
  height: 17px;
}

.qbtn-primary .qico {
  background: rgba(255, 255, 255, 0.18);
}

.insight {
  width: 100%;
  margin-top: 14px;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 13px;
  text-align: right;
  border-radius: var(--r-lg);
  border: 1px solid transparent;
  background:
    linear-gradient(var(--c-insight-bg), var(--c-insight-bg)) padding-box,
    linear-gradient(135deg, rgba(207, 71, 105, 0.75), rgba(143, 15, 191, 0.5) 50%, rgba(17, 74, 159, 0.55)) border-box;
  transition: var(--dur) var(--ease);
}

.insight:hover {
  transform: translateY(-1px);
  filter: brightness(1.06);
}

.insight-ico {
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: var(--c-accent-text);
  background: linear-gradient(135deg, rgba(207, 71, 105, 0.22), rgba(143, 15, 191, 0.18));
  border: 1px solid rgba(207, 71, 105, 0.28);
}

.insight-body {
  flex: 1;
  min-width: 0;
}

.insight-body b {
  display: block;
  font-size: 12px;
  font-weight: 700;
}

.insight-body p {
  font-size: 10.5px;
  color: var(--c-text-2);
}

.insight-sub {
  display: block;
  font-size: 10.5px;
  color: var(--c-text-2);
}

.insight-cta {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 2px;
  font-size: 10px;
  color: var(--c-accent-text);
}

.insight-cta .ico {
  width: 14px;
  height: 14px;
}

.section {
  margin-top: 20px;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 9px;
}

.section-head h2 {
  font-size: 13.5px;
  font-weight: 700;
}

.link-btn {
  font-size: 11px;
  color: var(--c-text-2);
  transition: color var(--dur) var(--ease);
}

.link-btn:hover {
  color: var(--c-accent-text);
}

.panel {
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, var(--c-panel-a), var(--c-panel-b));
  border: 1px solid var(--c-line);
  box-shadow: var(--shadow-sm);
}

.tx-list {
  padding: 4px 6px;
}

.tx {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 8px;
  border-radius: 14px;
}

.tx + .tx {
  border-top: 1px solid var(--c-line);
}

.tx-ico {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  border-radius: 11px;
  display: grid;
  place-items: center;
}

.tx-ico .ico {
  width: 16px;
  height: 16px;
}

.tx-ico.is-in {
  color: var(--c-green);
  background: rgba(46, 211, 160, 0.11);
  border: 1px solid rgba(46, 211, 160, 0.22);
}

.tx-ico.is-out {
  color: var(--c-pink);
  background: rgba(207, 71, 105, 0.11);
  border: 1px solid rgba(207, 71, 105, 0.22);
}

.tx-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  line-height: 1.5;
}

.tx-main b {
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tx-main span {
  font-size: 10px;
  color: var(--c-text-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tx-amount {
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.tx-amount.is-in {
  color: var(--c-green);
}

.tx-amount.is-out {
  color: var(--c-accent-text);
}

.greet {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 2px;
}

.greet-date {
  font-size: 10.5px;
  color: var(--c-text-3);
}

.greet h1 {
  font-size: 19px;
  font-weight: 500;
  letter-spacing: -0.3px;
  line-height: 1.5;
}

.greet h1 b {
  font-weight: 800;
}

.greet-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 5px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 9.5px;
  color: var(--c-text-2);
  background: var(--c-surface);
  border: 1px solid var(--c-line);
}

.greet-chip .ico {
  width: 12px;
  height: 12px;
  color: var(--c-green);
}

.tabbar {
  position: fixed;
  left: 50%;
  bottom: calc(12px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  z-index: 45;
  width: min(calc(100% - 24px), 406px);
  height: var(--nav-h);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: stretch;
  padding: 0 6px;
  border-radius: 24px;
  background: var(--c-tabbar);
  border: 1px solid var(--c-tabbar-line);
  backdrop-filter: blur(24px) saturate(150%);
  box-shadow: var(--c-tabbar-shadow);
}

.tab {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  font-size: 9px;
  font-weight: 500;
  color: var(--c-text-3);
  transition: color var(--dur) var(--ease);
}

.tab .ico {
  width: 20px;
  height: 20px;
}

.tab.is-active {
  color: var(--c-accent-text);
}

.tab.is-active .ico {
  filter: drop-shadow(0 0 10px rgba(207, 71, 105, 0.7));
}

.tab-home {
  justify-content: flex-end;
  padding-bottom: 12px;
  gap: 0;
}

.tab-home-btn {
  position: absolute;
  top: -22px;
  left: 50%;
  transform: translateX(-50%);
  width: 46px;
  height: 46px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(140deg, #2E6BE6 0%, #114A9F 52%, #8F0FBF 100%);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 16px 30px -14px rgba(46, 107, 230, 0.95), inset 0 1px 0 rgba(255, 255, 255, 0.4);
  transition: box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease);
}

.tab-home-btn .ico {
  width: 22px;
  height: 22px;
}

.tab-home:hover .tab-home-btn {
  transform: translateX(-50%) translateY(-2px);
}

.tab-home.is-active .tab-home-btn {
  box-shadow: 0 18px 36px -12px rgba(207, 71, 105, 0.8), 0 0 0 4px rgba(207, 71, 105, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.sheet-root {
  position: fixed;
  inset: 0;
  z-index: 80;
  pointer-events: none;
}

.sheet-root.is-open {
  pointer-events: auto;
}

.scrim {
  position: absolute;
  inset: 0;
  background: var(--c-scrim);
  backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}

.sheet-root.is-open .scrim {
  opacity: 1;
}

.sheet {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: min(100%, 430px);
  max-height: 91dvh;
  display: flex;
  flex-direction: column;
  padding: 8px 16px calc(18px + env(safe-area-inset-bottom));
  border-radius: 28px 28px 0 0;
  border: 1px solid var(--c-elev-line);
  border-bottom: 0;
  background: linear-gradient(180deg, var(--c-elev) 0%, var(--c-elev-2) 100%);
  box-shadow: var(--c-elev-shadow);
  transform: translate(-50%, 103%);
  transition: transform 0.42s var(--ease);
}

.sheet-root.is-open .sheet {
  transform: translate(-50%, 0);
}

.sheet-grip {
  width: 40px;
  height: 4px;
  flex: 0 0 auto;
  margin: 0 auto 8px;
  border-radius: 999px;
  background: var(--c-grip);
}

.sheet-head {
  flex: 0 0 auto;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 10px;
}

.sheet-head h3 {
  font-size: 16px;
  font-weight: 700;
}

.sheet-head p {
  margin-top: 2px;
  font-size: 11px;
  color: var(--c-text-2);
}

.sheet-body {
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-bottom: 4px;
}

.sheet.chat-sheet {
  max-height: 88dvh;
}

.sheet.chat-sheet .sheet-body {
  display: flex;
  flex-direction: column;
}

.btn {
  height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 18px;
  border-radius: 16px;
  border: 1px solid transparent;
  font-size: 13px;
  font-weight: 600;
  transition: var(--dur) var(--ease);
}

.btn .ico {
  width: 18px;
  height: 18px;
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, #2E6BE6 0%, #114A9F 55%, #8F0FBF 100%);
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: var(--shadow-blue);
}

.btn-primary:hover {
  filter: brightness(1.08);
}

.btn-primary:disabled {
  opacity: 0.45;
  box-shadow: none;
  cursor: not-allowed;
}

.btn-soft {
  color: var(--c-text);
  background: var(--c-surface-2);
  border-color: var(--c-line-2);
}

.btn-soft:hover {
  background: var(--c-soft-2);
}

.btn-block {
  width: 100%;
}

.sheet-form {
  display: grid;
  gap: 13px;
}

.field {
  display: grid;
  gap: 6px;
}

.field > label {
  font-size: 11px;
  font-weight: 500;
  color: var(--c-text-2);
}

.input-wrap {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 52px;
  padding: 0 12px;
  border-radius: 15px;
  background: var(--c-field);
  border: 1px solid var(--c-line);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease), background var(--dur) var(--ease);
}

.input-wrap:focus-within {
  border-color: rgba(46, 107, 230, 0.75);
  background: var(--c-field-strong);
  box-shadow: 0 0 0 4px rgba(46, 107, 230, 0.13);
}

.input-wrap input {
  flex: 1;
  min-width: 0;
  height: 100%;
  border: 0;
  outline: none;
  background: none;
  font-size: 15px;
  font-weight: 600;
}

.input-wrap input::placeholder {
  font-size: 12px;
  font-weight: 400;
  color: var(--c-text-3);
}

.input-wrap.is-error {
  border-color: rgba(255, 107, 138, 0.7);
  box-shadow: 0 0 0 4px rgba(255, 107, 138, 0.12);
}

.input-ico {
  color: var(--c-text-3);
}

.input-ico .ico {
  width: 18px;
  height: 18px;
}

.input-suffix {
  padding-inline-start: 9px;
  border-inline-start: 1px solid var(--c-line);
  font-size: 10.5px;
  color: var(--c-text-3);
}

.input-ltr input {
  direction: ltr;
  text-align: left;
  font-size: 13px;
  letter-spacing: 1.1px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.chip {
  height: 30px;
  padding: 0 11px;
  border-radius: 999px;
  font-size: 10.5px;
  color: var(--c-text-2);
  background: var(--c-field);
  border: 1px solid var(--c-line);
  transition: var(--dur) var(--ease);
}

.chip:hover {
  color: var(--c-text);
  background: var(--c-soft-2);
  border-color: var(--c-line-2);
}

.form-error {
  margin: 0;
  padding: 8px 11px;
  border-radius: 12px;
  font-size: 10.5px;
  color: var(--c-red);
  background: rgba(255, 107, 138, 0.09);
  border: 1px solid rgba(255, 107, 138, 0.24);
}

.row-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.sheet-note {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 9.5px;
  line-height: 1.6;
  color: var(--c-text-3);
}

.sheet-note .ico {
  width: 13px;
  height: 13px;
  flex: 0 0 auto;
}

.result {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  padding: 12px 2px 4px;
  text-align: center;
}

.result-ico {
  width: 64px;
  height: 64px;
  border-radius: 22px;
  display: grid;
  place-items: center;
  color: var(--c-green);
  background: radial-gradient(circle at 34% 26%, rgba(46, 211, 160, 0.35), rgba(46, 211, 160, 0.08));
  border: 1px solid rgba(46, 211, 160, 0.35);
  box-shadow: 0 0 44px -10px rgba(46, 211, 160, 0.5);
}

.result-ico .ico {
  width: 30px;
  height: 30px;
  stroke-width: 2.4;
}

.result h4 {
  font-size: 15.5px;
}

.result p {
  font-size: 11.5px;
  color: var(--c-text-2);
}

.result-box {
  width: 100%;
  margin: 5px 0;
  padding: 11px 14px;
  display: grid;
  gap: 8px;
  border-radius: 16px;
  background: var(--c-tint);
  border: 1px solid var(--c-line);
}

.result-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 11px;
  color: var(--c-text-2);
}

.result-row b {
  color: var(--c-text);
  font-weight: 600;
}

.copy-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 13px;
  border-radius: 14px;
  background: var(--c-tint);
  border: 1px solid var(--c-line);
}

.copy-row span {
  display: block;
  font-size: 9.5px;
  color: var(--c-text-3);
}

.copy-row b {
  display: block;
  margin-top: 1px;
  font-size: 12px;
  letter-spacing: 0.4px;
}

.copy-btn {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: var(--c-text-2);
  background: var(--c-soft);
  border: 1px solid var(--c-line);
}

.copy-btn .ico {
  width: 15px;
  height: 15px;
}

.chat-scroll {
  flex: 1;
  min-height: 230px;
  max-height: 42dvh;
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow-y: auto;
  padding: 4px 2px;
}

.msg {
  max-width: 87%;
  padding: 9px 12px;
  border-radius: 16px;
  font-size: 12px;
  line-height: 1.85;
}

.msg.bot {
  align-self: flex-start;
  background: var(--c-soft);
  border: 1px solid var(--c-line);
  border-end-start-radius: 6px;
}

.msg.user {
  align-self: flex-end;
  color: #fff;
  background: linear-gradient(135deg, rgba(46, 107, 230, 0.92), rgba(17, 74, 159, 0.92));
  border-end-end-radius: 6px;
}

.chat-form {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}

.chat-form input {
  flex: 1;
  height: 46px;
  padding: 0 14px;
  border-radius: 14px;
  font-size: 12px;
  outline: none;
  background: var(--c-field);
  border: 1px solid var(--c-line);
}

.chat-form input:focus {
  border-color: rgba(46, 107, 230, 0.7);
}

.chat-send {
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, #2E6BE6, #114A9F);
  box-shadow: var(--shadow-blue);
}

.chat-send .ico {
  width: 19px;
  height: 19px;
}

.toast-root {
  position: fixed;
  left: 50%;
  bottom: calc(var(--nav-h) + 34px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  z-index: 120;
  width: min(calc(100% - 44px), 380px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 15px;
  border-radius: 14px;
  font-size: 11.5px;
  background: var(--c-toast);
  border: 1px solid var(--c-line-2);
  box-shadow: var(--shadow-md);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.28s var(--ease), transform 0.28s var(--ease);
}

.toast.is-in {
  opacity: 1;
  transform: none;
}

.toast .ico {
  width: 15px;
  height: 15px;
  color: var(--c-green);
}

.drawer-root {
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
}

.drawer-root.is-open {
  pointer-events: auto;
}

.drawer-scrim {
  position: absolute;
  inset: 0;
  background: var(--c-scrim-soft);
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}

.drawer-root.is-open .drawer-scrim {
  opacity: 1;
}

.drawer-port {
  position: absolute;
  top: 0;
  right: max(0px, calc(50% - 215px));
  bottom: 0;
  width: min(100%, 430px);
  overflow: hidden;
  pointer-events: none;
}

.drawer {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  width: min(84%, 342px);
  pointer-events: auto;
  display: flex;
  flex-direction: column;
  padding: 20px 16px calc(18px + env(safe-area-inset-bottom));
  overflow-y: auto;
  background: linear-gradient(180deg, var(--c-elev) 0%, var(--c-elev-2) 100%);
  border-left: 1px solid var(--c-line);
  box-shadow: -30px 0 80px -30px #000;
  transform: translateX(103%);
  visibility: hidden;
  transition: transform 0.38s var(--ease), visibility 0s linear 0.38s;
}

.drawer-root.is-open .drawer {
  transform: none;
  visibility: visible;
  transition: transform 0.38s var(--ease), visibility 0s linear 0s;
}

.drawer-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.avatar {
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  border-radius: 15px;
  display: grid;
  place-items: center;
  font-size: 16px;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(140deg, #2E6BE6, #8F0FBF);
  border: 1px solid rgba(255, 255, 255, 0.24);
}

.drawer-name {
  flex: 1;
  min-width: 0;
}

.drawer-name b {
  display: block;
  font-size: 13px;
}

.drawer-name span {
  display: block;
  font-size: 10px;
  color: var(--c-text-3);
}

.drawer-balance {
  margin-top: 16px;
  padding: 13px 14px;
  border-radius: 18px;
  background: radial-gradient(120% 130% at 100% 0%, var(--c-violet-veil), transparent 60%), var(--c-tint);
  border: 1px solid var(--c-line);
}

.drawer-balance span {
  font-size: 10px;
  color: var(--c-text-3);
}

.drawer-balance b {
  display: block;
  margin-top: 2px;
  font-size: 18px;
  font-weight: 800;
}

.drawer-nav {
  display: grid;
  gap: 3px;
  margin-top: 16px;
}

.drawer-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 10px;
  border-radius: 13px;
  font-size: 12px;
  color: var(--c-text-2);
  width: 100%;
  text-align: right;
  transition: var(--dur) var(--ease);
}

.drawer-item:hover {
  color: var(--c-text);
  background: var(--c-surface);
}

.drawer-item .ico {
  width: 18px;
  height: 18px;
  color: var(--c-text-3);
}

.drawer-sep {
  height: 1px;
  margin: 12px 4px;
  background: var(--c-line);
}

.drawer-foot {
  margin-top: auto;
  padding-top: 18px;
  font-size: 9.5px;
  color: var(--c-text-3);
}
