/* src/styles/01-base.css */
:root {
  --blue: #2b4acb;
  --blue-2: #4a63db;
  --blue-d: #1f38a8;
  --gold: #f3c35b;
  --ink: #14171f;
  --ink-2: #5c667a;
  --ink-3: #9aa4b6;
  --line: rgba(16, 24, 40, 0.07);
  --bg: #eef1f6;
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-l: env(safe-area-inset-left, 0px);
  --safe-r: env(safe-area-inset-right, 0px);
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}
html,
body {
  height: 100%;
  overflow: hidden;
  overscroll-behavior: none;
  background: #fff;
}
body {
  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "SF Pro Text",
    "PingFang SC",
    "HarmonyOS Sans SC",
    "Noto Sans SC",
    "Microsoft YaHei",
    sans-serif;
  color: var(--ink);
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  touch-action: manipulation;
}
button {
  font: inherit;
  color: inherit;
}
#app {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  height: 100vh;
  height: 100dvh;
  height: var(--vh100, 100dvh);
  background: #fff;
  overflow: hidden;
}
html.kb-open #app {
  top: var(--app-top, 0px);
  height: var(--app-h, 100dvh);
}
@supports not (height: 100dvh) {
  #app {
    top: var(--app-top, 0px);
    height: var(--app-h, 100vh);
  }
  html.kb-open #app {
    top: var(--app-top, 0px);
    height: var(--app-h, 100vh);
  }
}
#stack {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.view {
  position: absolute;
  inset: 0;
  display: none;
  flex-direction: column;
  background: #fff;
  overflow: hidden;
}
.view.active {
  display: flex;
}
.view[data-view=chat] {
  display: flex;
  z-index: 20;
  background: var(--bg);
  transform: translateX(100%);
  visibility: hidden;
  box-shadow: -8px 0 26px rgba(16, 24, 40, 0.13);
  transition: transform 0.28s cubic-bezier(0.32, 0.8, 0.26, 1), visibility 0.28s;
}
.view[data-view=chat].active {
  transform: none;
  visibility: visible;
}
.page-hd {
  flex-shrink: 0;
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  padding: calc(var(--safe-t) + 10px) calc(14px + var(--safe-r)) 10px calc(16px + var(--safe-l));
  background: #fff;
  border-bottom: 1px solid var(--line);
}
html.sxq-in-app .page-hd,
html.sxq-in-app .chat-hd {
  padding-top: calc(var(--android-status, 24px) + 10px);
}
.brand {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.2px;
}
.pill {
  font-style: normal;
  font-size: 10px;
  font-weight: 600;
  color: var(--blue);
  background: #eef3ff;
  padding: 2px 6px;
  border-radius: 6px;
  letter-spacing: 0.3px;
}
.hd-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}
.hd-btn {
  width: 38px;
  height: 38px;
  border: none;
  background: none;
  border-radius: 50%;
  color: #38404f;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.16s ease, transform 0.12s ease;
}
.hd-btn:active {
  background: #f1f3f7;
  transform: scale(0.92);
}
.search-bar {
  display: none;
  flex: 1;
  align-items: center;
  gap: 8px;
}
.page-hd.searching .brand,
.page-hd.searching .hd-actions {
  display: none;
}
.page-hd.searching .search-bar {
  display: flex;
}
.search-input {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  background: #f2f4f8;
  border-radius: 16px;
  padding: 8px 14px;
  font-size: 15px;
  color: var(--ink);
  -webkit-user-select: text;
  user-select: text;
}
.search-cancel {
  border: none;
  background: none;
  color: var(--blue);
  font-size: 14.5px;
  padding: 4px 2px;
}
.scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: contain;
  touch-action: pan-y;
  padding-bottom: calc(70px + var(--safe-b));
  scrollbar-width: none;
}
.scroll::-webkit-scrollbar {
  width: 0;
  height: 0;
}
.conv-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: #fff;
  transition: background 0.16s ease;
}
.conv-item:active {
  background: #f4f5f8;
}
.cava {
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  border-radius: 13px;
  background: #eef1f7;
  color: var(--blue);
  font-size: 17px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}
.cava img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.cmain {
  flex: 1;
  min-width: 0;
}
.ctop {
  display: flex;
  align-items: center;
  gap: 6px;
}
.cname {
  flex: 1;
  min-width: 0;
  font-size: 16px;
  font-weight: 500;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ctime {
  flex-shrink: 0;
  font-size: 11.5px;
  color: #a2aab8;
}
.cbot {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 3px;
}
.cprev {
  flex: 1;
  min-width: 0;
  font-size: 13.5px;
  color: #8b95a6;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.conv-item.unread .cprev {
  color: #6b7686;
}
.cbdg {
  flex-shrink: 0;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  background: #ff3b30;
  color: #fff;
  font-size: 11px;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
}
.tagline {
  flex-shrink: 0;
  font-size: 10px;
  font-weight: 500;
  padding: 1px 5px;
  border-radius: 5px;
  color: #b26a00;
  background: #fff4e0;
}
.tagline.off {
  color: #7b8494;
  background: #f0f2f6;
}
.sect-title {
  font-size: 12.5px;
  color: #98a1b0;
  padding: 16px 16px 8px;
  letter-spacing: 0.3px;
}
.notice {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 14px;
  padding: 18px 16px;
  background: #f7f9fc;
  border-radius: 16px;
}
.notice-ico {
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  border-radius: 12px;
  background:
    linear-gradient(
      160deg,
      #4a63db,
      var(--blue));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}
.notice-main {
  flex: 1;
  min-width: 0;
}
.notice-title {
  font-size: 17px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}
.notice-text {
  font-size: 15.5px;
  color: #e02020;
  font-weight: 500;
  margin-top: 5px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.foot-tip {
  text-align: center;
  font-size: 11.5px;
  color: #b3bac6;
  padding: 26px 20px 10px;
  line-height: 1.6;
}
.cells {
  background: #fff;
}
.cell {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  width: 100%;
  border: none;
  background: #fff;
  text-align: left;
  position: relative;
}
.cell[hidden] {
  display: none;
}
.cell:active {
  background: #f4f5f8;
}
.cell + .cell::before {
  content: "";
  position: absolute;
  left: 16px;
  right: 0;
  top: 0;
  height: 1px;
  background: var(--line);
}
.cell-ico {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  border-radius: 8px;
  background: #eef3ff;
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
}
.cell-main {
  flex: 1;
  min-width: 0;
  font-size: 15.5px;
}
.cell-sub {
  display: block;
  font-size: 12.5px;
  color: #98a1b0;
  margin-top: 2px;
}
.cell-arrow {
  color: #c6ccd6;
  flex-shrink: 0;
}
.cell-ico.warn {
  background: #fff1e4;
  color: #d97a26;
}
.switch {
  width: 46px;
  height: 27px;
  flex-shrink: 0;
  border: none;
  border-radius: 14px;
  background: #dfe3ea;
  position: relative;
  transition: background 0.2s ease;
}
.switch::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 21px;
  height: 21px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(16, 24, 40, 0.2);
  transition: transform 0.22s cubic-bezier(0.3, 0.8, 0.3, 1);
}
.switch.on {
  background: #34c759;
}
.switch.on::after {
  transform: translateX(19px);
}
.contact-card {
  display: flex;
  align-items: center;
  gap: 13px;
  margin: 0 16px;
  padding: 16px 15px;
  border-radius: 16px;
  background:
    linear-gradient(
      135deg,
      #23349b 0%,
      #2b4acb 45%,
      #4a6ae0 100%);
  box-shadow: 0 9px 22px rgba(43, 74, 203, 0.28);
  position: relative;
  overflow: hidden;
}
.contact-card::after {
  content: "";
  position: absolute;
  right: -34px;
  top: -46px;
  width: 128px;
  height: 128px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  pointer-events: none;
}
.contact-card .cava {
  width: 50px;
  height: 50px;
  border-radius: 15px;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.6);
}
.contact-name {
  font-size: 16px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 7px;
  color: #fff;
}
.contact-sub {
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.82);
  margin-top: 4px;
}
.contact-go {
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  border: none;
  background: #fff;
  color: var(--blue);
  font-size: 13px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(9, 18, 48, 0.18);
}
.contact-go:active {
  transform: scale(0.95);
}

/* src/styles/02-pages.css */
.flow3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 0 14px;
}
.flow-step {
  background:
    linear-gradient(
      180deg,
      #f6f8ff 0%,
      #eaf0fd 100%);
  border: 1px solid #e3eafb;
  border-radius: 14px;
  padding: 14px 8px 13px;
  text-align: center;
  box-shadow: 0 1px 3px rgba(16, 24, 40, 0.04);
}
.flow-step:nth-child(2) {
  background:
    linear-gradient(
      180deg,
      #eef3fe 0%,
      #dde7fb 100%);
  border-color: #d3dffa;
}
.flow-step:nth-child(3) {
  background:
    linear-gradient(
      180deg,
      #fff9ea 0%,
      #fbedc9 100%);
  border-color: #f6e1b0;
}
.flow-n {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  font-style: normal;
  box-shadow: 0 2px 6px rgba(43, 74, 203, 0.28);
}
.flow-step:nth-child(3) .flow-n {
  background:
    linear-gradient(
      135deg,
      #f7d07c 0%,
      #e8b34a 100%);
  color: #4a3200;
  box-shadow: 0 2px 6px rgba(232, 179, 74, 0.32);
}
.flow-t {
  font-size: 13.5px;
  font-weight: 600;
  margin-top: 7px;
  color: #1c2437;
}
.flow-d {
  font-size: 11px;
  color: #7f8a9e;
  margin-top: 4px;
  line-height: 1.45;
}
.faq-card {
  margin: 0 14px;
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(16, 24, 40, 0.05);
}
.faq-card .cell + .cell::before {
  left: 14px;
  right: 14px;
}
.loan-hero {
  margin: 12px 16px 0;
  padding: 22px 20px 20px;
  border-radius: 18px;
  background:
    linear-gradient(
      150deg,
      #121b40 0%,
      #1d2f6d 52%,
      #2b46a0 100%);
  color: #fff;
  box-shadow: 0 10px 26px rgba(18, 27, 64, 0.32);
  position: relative;
  overflow: hidden;
}
.loan-hero .coin {
  position: absolute;
  right: 8px;
  top: 10px;
  width: 88px;
  height: 88px;
  color: var(--gold);
  opacity: 0.17;
  pointer-events: none;
}
.loan-label {
  font-size: 12.5px;
  letter-spacing: 0.4px;
  position: relative;
  color: rgba(255, 255, 255, 0.82);
  display: flex;
  align-items: center;
}
.loan-amount {
  font-size: 38px;
  font-weight: 700;
  margin-top: 6px;
  letter-spacing: 0.5px;
  color: var(--gold);
  position: relative;
  line-height: 1.15;
}
.loan-amount small {
  font-size: 15px;
  font-weight: 500;
  opacity: 0.85;
  margin-left: 5px;
}
.loan-desc {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.74);
  margin-top: 9px;
  line-height: 1.55;
  position: relative;
  max-width: 88%;
}
.loan-badge {
  margin-left: 7px;
  font-size: 10.5px;
  padding: 2px 7px;
  border-radius: 7px;
  background: rgba(243, 195, 91, 0.92);
  color: #4a3305;
  font-weight: 600;
  font-style: normal;
  letter-spacing: 0;
  flex: none;
}
.loan-panel {
  margin: 12px 16px 0;
  padding: 16px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 3px 14px rgba(20, 32, 60, 0.055);
}
.loan-cta {
  display: block;
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 14px;
  background:
    linear-gradient(
      135deg,
      #f7d07c 0%,
      #e8b34a 100%);
  color: #3a2905;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.5px;
  box-shadow: 0 6px 18px rgba(232, 179, 74, 0.28);
}
.loan-cta:active {
  transform: scale(0.99);
}
.loan-tags {
  display: flex;
  justify-content: space-around;
  margin-top: 14px;
}
.loan-tag {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12.5px;
  color: #7a8494;
}
.loan-tag svg {
  color: var(--gold-d);
  flex: none;
}
.loan-notice {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 12px 16px 0;
  padding: 12px 14px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 3px 14px rgba(20, 32, 60, 0.055);
  font-size: 12.5px;
  color: #5a6474;
  line-height: 1.5;
  text-align: left;
  width: calc(100% - 32px);
  border: none;
}
.loan-notice:active {
  background: #fafbfd;
}
.loan-notice .spk {
  color: var(--blue);
  flex: none;
}
.loan-notice b {
  font-weight: 600;
  color: #1b2436;
}
.loan-notice .arr {
  margin-left: auto;
  color: #c6ccd6;
  flex: none;
}
.loan-guide {
  margin: 12px 16px 0;
  padding: 16px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 3px 14px rgba(20, 32, 60, 0.055);
}
.guide-hd {
  display: flex;
  align-items: center;
  gap: 9px;
}
.guide-ico {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  flex: none;
  background:
    linear-gradient(
      150deg,
      var(--blue-2),
      var(--blue-d));
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
}
.guide-title {
  font-size: 15.5px;
  font-weight: 600;
}
.guide-more {
  margin-left: auto;
  font-size: 11.5px;
  color: #aab2c0;
}
.guide-sub {
  font-size: 12.5px;
  color: #8b95a6;
  margin-top: 9px;
}
.guide-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 12px;
}
.guide-item {
  border: none;
  background: #f8fafc;
  border-radius: 12px;
  padding: 10px 3px 9px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  font-size: 11.5px;
  color: #4a5568;
  line-height: 1.2;
}
.guide-item:active {
  background: #f1f4f9;
}
.guide-item i {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.gi-1 {
  background: #fff6e6;
  color: #c9942f;
}
.gi-2 {
  background: #eef3ff;
  color: var(--blue);
}
.gi-3 {
  background: #ecf8f0;
  color: #2f9e64;
}
.gi-4 {
  background: #fff0ed;
  color: #d4715a;
}
.loan-steps {
  margin: 12px 16px 0;
  padding: 18px 10px 16px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 3px 14px rgba(20, 32, 60, 0.055);
  display: flex;
}
.step {
  flex: 1;
  text-align: center;
  position: relative;
  padding: 0 2px;
}
.step-n {
  position: relative;
  z-index: 1;
  width: 26px;
  height: 26px;
  margin: 0 auto 8px;
  border-radius: 9px;
  background:
    linear-gradient(
      150deg,
      var(--blue-2),
      var(--blue-d));
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  font-style: normal;
  display: flex;
  align-items: center;
  justify-content: center;
}
.step + .step::before {
  content: "";
  position: absolute;
  top: 13px;
  right: 50%;
  width: 100%;
  border-top: 1px dashed #e3e9f2;
}
.step-t {
  font-size: 13px;
  font-weight: 600;
  color: #1b2436;
}
.step-d {
  font-size: 11.5px;
  color: #8b95a6;
  margin-top: 4px;
  line-height: 1.45;
}
.sheet-h {
  padding: 16px 18px 2px;
  font-size: 16.5px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.2px;
}
.sheet-body {
  padding: 6px 18px 18px;
  font-size: 13.5px;
  line-height: 1.75;
  color: #5a6474;
}
.sheet-body b {
  color: #1b2436;
}
.sheet-body p {
  margin: 0 0 10px;
}
.me-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 22px 18px;
  background:
    linear-gradient(
      160deg,
      #f7f9ff 0%,
      #eef3ff 100%);
}
.me-ava {
  width: 62px;
  height: 62px;
  flex-shrink: 0;
  border-radius: 20px;
  overflow: hidden;
  background: #dfe6f6;
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(43, 74, 203, 0.18);
}
.me-ava img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.me-name {
  font-size: 18px;
  font-weight: 600;
}
.me-sub {
  font-size: 12.5px;
  color: #8b95a6;
  margin-top: 5px;
  display: flex;
  align-items: center;
  gap: 5px;
}
.me-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #34c759;
}
.me-dot.off {
  background: #c7d2e5;
}
.me-foot {
  text-align: center;
  font-size: 11.5px;
  color: #b3bac6;
  padding: 22px 20px;
  line-height: 1.7;
}
#tabbar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: calc(56px + var(--safe-b));
  padding: 0 var(--safe-r) var(--safe-b) var(--safe-l);
  box-sizing: border-box;
  display: flex;
  z-index: 30;
  background: #fff;
  border-top: 1px solid var(--line);
  transition: transform 0.26s cubic-bezier(0.3, 0.8, 0.3, 1), opacity 0.2s ease;
}
#app.chat-open #tabbar {
  transform: translateY(100%);
  opacity: 0;
  pointer-events: none;
}
html.mode-browser #tabbar {
  display: none;
}
html.mode-browser #btn-back {
  display: none;
}
html.mode-browser .view {
  display: none !important;
}
html.mode-browser .view[data-view=chat] {
  display: flex !important;
  transform: none;
  visibility: visible;
}
.tab {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  margin: 5px 3px;
  border: none;
  background: none;
  border-radius: 14px;
  color: #98a2b3;
  font-size: 10.5px;
  transition:
    background 0.18s ease,
    color 0.18s ease,
    transform 0.12s ease;
}
.tab.on {
  background: #eef3ff;
  color: var(--blue);
}
.tab:active {
  transform: scale(0.94);
}
.ti {
  position: relative;
  display: flex;
}
.tbadge {
  position: absolute;
  top: -4px;
  right: -9px;
  min-width: 15px;
  height: 15px;
  padding: 0 4px;
  border-radius: 8px;
  background: #ff3b30;
  color: #fff;
  font-size: 9.5px;
  font-style: normal;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 1.5px #fff;
}
.tbadge[hidden] {
  display: none;
}
.tbadge.pulse {
  animation: tbPulse 1.1s ease-in-out infinite;
}
@keyframes tbPulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.22);
  }
}

/* src/styles/03-chat.css */
#msg-alert {
  position: fixed;
  left: 10px;
  right: 10px;
  top: calc(var(--safe-t) + 8px);
  z-index: 45;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 10px 10px 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.985);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  backdrop-filter: saturate(180%) blur(18px);
  box-shadow: 0 12px 32px rgba(16, 24, 40, 0.18), 0 0 0 1px rgba(16, 24, 40, 0.045);
  transform: translateY(-160%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.32s cubic-bezier(0.3, 0.9, 0.3, 1), opacity 0.22s ease;
}
#msg-alert.show {
  transform: none;
  opacity: 1;
  pointer-events: auto;
}
.ma-ava {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  flex-shrink: 0;
  overflow: hidden;
  background: #dbe5ff;
  color: #2f5bd0;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ma-ava img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.ma-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.ma-name {
  font-size: 12.5px;
  color: var(--blue);
  font-weight: 600;
}
.ma-text {
  font-size: 13px;
  color: #2b3445;
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ma-go {
  flex-shrink: 0;
  border: none;
  border-radius: 12px;
  padding: 7px 13px;
  background: var(--blue);
  color: #fff;
  font-size: 12.5px;
}
.ma-go:active {
  transform: scale(0.96);
}
.ma-x {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border: none;
  background: none;
  color: #b0b8c5;
  font-size: 13px;
  line-height: 1;
}
.chat-hd {
  flex-shrink: 0;
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: calc(var(--safe-t) + 6px) calc(8px + var(--safe-r)) 8px calc(4px + var(--safe-l));
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.back-btn {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  border: none;
  background: none;
  color: #2b3240;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}
.back-btn:active {
  background: #f1f3f7;
}
.ava-wrap {
  position: relative;
  flex-shrink: 0;
}
.avatar {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: #eef1f7;
  color: var(--blue);
  font-size: 15px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.dot {
  position: absolute;
  right: -1px;
  bottom: -1px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #c7d2e5;
  box-shadow: 0 0 0 2px #fff;
  transition: background 0.25s ease;
}
.dot.on {
  background: #34c759;
}
.dot.away {
  background: #ffb020;
}
.dot.wait {
  background: #c7d2e5;
}
.head-info {
  flex: 1;
  min-width: 0;
}
.head-name {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.head-status {
  font-size: 11.5px;
  color: var(--ink-3);
  margin-top: 1px;
  letter-spacing: 0.1px;
}
#chat {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: contain;
  touch-action: pan-y;
  padding: 14px 12px 8px;
  scrollbar-width: none;
}
#chat::-webkit-scrollbar {
  width: 0;
  height: 0;
}
.msg {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 14px;
  animation: msgIn 0.24s cubic-bezier(0.2, 0.8, 0.3, 1);
}
.msg.tight {
  margin-top: -6px;
}
.msg.me {
  flex-direction: row-reverse;
}
.msg .body {
  display: flex;
  flex-direction: column;
  gap: 3px;
  max-width: 76%;
  min-width: 0;
}
.msg.me .body {
  align-items: flex-end;
}
.ava {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  flex-shrink: 0;
  overflow: hidden;
  background: #dfe6f6;
  color: var(--blue);
  font-size: 13px;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 3px rgba(16, 24, 40, 0.08);
}
.ava img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.msg.me .ava {
  background: #d6e0fb;
  color: var(--blue-d);
}
.bubble {
  max-width: 100%;
  padding: 9px 13px;
  border-radius: 16px;
  font-size: 15.5px;
  line-height: 1.46;
  word-break: break-word;
  white-space: pre-wrap;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.07);
  -webkit-user-select: text;
  user-select: text;
  transition: transform 0.12s ease;
}
.msg.agent .bubble {
  background: #fff;
  color: var(--ink);
  border-top-left-radius: 6px;
}
.qlink {
  display: inline;
  border: none;
  background: none;
  padding: 1px 2px;
  margin: 0;
  font: inherit;
  color: #2b6cf0;
  font-weight: 600;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.qlink:active {
  opacity: 0.55;
}
.qreveal {
  margin-top: 6px;
  padding: 8px 10px;
  border-radius: 10px;
  background: #f4f7ff;
  color: #1b2b68;
  font-size: 13px;
  line-height: 1.55;
  white-space: pre-wrap;
  word-break: break-word;
}
#ended-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 10px 14px;
  background: #fff7e8;
  color: #8a5b00;
  font-size: 13px;
  border-top: 1px solid var(--line);
}
#ended-bar[hidden] {
  display: none;
}
#ended-bar button {
  border: none;
  background: var(--blue);
  color: #fff;
  border-radius: 16px;
  padding: 7px 16px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.msg.me .bubble {
  background:
    linear-gradient(
      180deg,
      #4a63db 0%,
      var(--blue) 100%);
  color: #fff;
  border-top-right-radius: 6px;
}
.time {
  font-size: 11px;
  color: var(--ink-3);
  padding: 0 3px;
}
.ts {
  display: flex;
  justify-content: center;
  margin: 4px 0 14px;
}
.ts span {
  background: rgba(16, 24, 40, 0.055);
  color: #7b8494;
  font-size: 11.5px;
  padding: 3px 10px;
  border-radius: 9px;
  letter-spacing: 0.2px;
}
.msg.system {
  justify-content: center;
  margin-bottom: 12px;
}
.msg.system .bubble {
  background: rgba(16, 24, 40, 0.055);
  color: #6c7688;
  font-size: 12.5px;
  padding: 5px 12px;
  border-radius: 9px;
  box-shadow: none;
  text-align: center;
}
.msg.system .time,
.msg.system .ava {
  display: none;
}
.bubble img {
  max-width: 190px;
  max-height: 240px;
  border-radius: 12px;
  display: block;
  cursor: zoom-in;
  -webkit-touch-callout: none;
  background: #eef1f6;
}
.bubble.img-wrap {
  background: transparent !important;
  padding: 0 !important;
  box-shadow: none;
}
.msg.me .bubble.img-wrap {
  background: transparent !important;
}
#to-bottom {
  position: absolute;
  right: calc(14px + var(--safe-r));
  bottom: calc(70px + var(--safe-b));
  width: 38px;
  height: 38px;
  border: none;
  border-radius: 50%;
  background: #fff;
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(16, 24, 40, 0.16);
  opacity: 0;
  transform: translateY(8px) scale(0.9);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 9;
}
#to-bottom.show {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
#to-bottom:active {
  transform: scale(0.92);
}
.composer {
  flex-shrink: 0;
  display: flex;
  align-items: flex-end;
  gap: 8px;
  padding: 8px calc(10px + var(--safe-r)) calc(8px + var(--safe-b)) calc(10px + var(--safe-l));
  background: rgba(255, 255, 255, 0.96);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  backdrop-filter: saturate(180%) blur(16px);
  border-top: 1px solid var(--line);
}
.round-btn {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  margin-bottom: 2px;
  border: none;
  border-radius: 50%;
  background: #f0f3f8;
  color: #667085;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.12s ease, background 0.15s ease;
}
.round-btn:active {
  transform: scale(0.88);
  background: #e4e9f2;
}
.field {
  flex: 1;
  min-width: 0;
  background: #f2f4f8;
  border-radius: 18px;
  padding: 7px 14px;
  transition: background 0.18s ease, box-shadow 0.18s ease;
}
.field:focus-within {
  background: #fff;
  box-shadow: 0 0 0 1.5px rgba(43, 74, 203, 0.35) inset;
}
#input {
  display: block;
  width: 100%;
  border: none;
  outline: none;
  background: transparent;
  font: inherit;
  font-size: 16px;
  line-height: 22px;
  height: 22px;
  max-height: 96px;
  resize: none;
  color: var(--ink);
  -webkit-user-select: text;
  user-select: text;
}
#input::placeholder {
  color: #a6afbf;
}
#send {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  margin-bottom: 2px;
  border: none;
  border-radius: 50%;
  background:
    linear-gradient(
      180deg,
      #4a63db,
      var(--blue));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(43, 74, 203, 0.38);
  transition:
    transform 0.12s ease,
    background 0.18s ease,
    box-shadow 0.18s ease;
}
#send:active:not(:disabled) {
  transform: scale(0.9);
}
#send:disabled {
  background: #e8eefb;
  color: #a9b9de;
  box-shadow: none;
}
.pick-input {
  position: fixed;
  left: -9999px;
  top: 0;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
label.round-btn {
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  -webkit-user-select: none;
  user-select: none;
}
label.round-btn.off {
  opacity: 0.4;
  pointer-events: none;
}
.qr-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin: 6px 0 0 2px;
  padding: 5px 11px;
  border: none;
  border-radius: 13px;
  background: #eaf0ff;
  color: var(--blue);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
  -webkit-tap-highlight-color: transparent;
}
.qr-chip:active {
  transform: scale(0.96);
  background: #dfe8ff;
}
.qr-chip.busy {
  opacity: 0.6;
}
.qr-chip svg {
  flex: none;
}
#tip {
  text-align: center;
  color: var(--ink-3);
  font-size: 13px;
  padding: 48px 20px 0;
  line-height: 1.6;
}
#tip button {
  margin-top: 16px;
  border: none;
  color: #fff;
  font-size: 14px;
  background: var(--blue);
  border-radius: 19px;
  padding: 9px 24px;
}

/* src/styles/04-onboarding.css */
#splash {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  background:
    linear-gradient(
      160deg,
      #101a3f 0%,
      #1c2c66 48%,
      #2b46a0 100%);
  color: #fff;
  transition: opacity 0.38s ease;
}
#splash.hide {
  opacity: 0;
  pointer-events: none;
}
.splash-logo {
  animation: pop 0.5s cubic-bezier(0.2, 0.9, 0.3, 1.2);
  filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.45));
}
.splash-logo img {
  display: block;
  width: 196px;
  height: auto;
}
.splash-sub {
  font-size: 12.5px;
  opacity: 0.68;
  letter-spacing: 0.6px;
  margin-top: -8px;
}
.splash-dots {
  display: flex;
  gap: 6px;
  margin-top: 6px;
}
.splash-dots i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  animation: blink 1.2s ease-in-out infinite;
}
.splash-dots i:nth-child(2) {
  animation-delay: 0.18s;
}
.splash-dots i:nth-child(3) {
  animation-delay: 0.36s;
}
.bubble.card-bubble {
  min-width: 218px;
  max-width: 258px;
  padding: 13px 14px 11px;
  background:
    linear-gradient(
      160deg,
      #eef4ff 0%,
      #f7faff 100%);
  border: 0.5px solid rgba(23, 95, 165, 0.22);
}
.card-bubble .gcard-title {
  font-size: 14.5px;
  font-weight: 500;
  color: #12325c;
  display: flex;
  align-items: center;
  gap: 6px;
}
.card-bubble .gcard-title::before {
  content: "";
  width: 5px;
  height: 16px;
  border-radius: 3px;
  background: #185fa5;
  flex: none;
}
.card-bubble .gcard-sub {
  font-size: 12.5px;
  line-height: 1.65;
  color: #40536e;
  margin-top: 7px;
}
.card-bubble .gcard-btn {
  width: 100%;
  margin-top: 10px;
  border: none;
  background: #185fa5;
  color: #fff;
  font-size: 13.5px;
  padding: 9px 0;
  border-radius: 10px;
}
.card-bubble .gcard-btn:active {
  opacity: 0.85;
}
.card-bubble .gcard-note {
  font-size: 11px;
  color: #7d8ba1;
  line-height: 1.6;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 0.5px dashed rgba(23, 95, 165, 0.25);
}
#hsgate {
  position: fixed;
  inset: 0;
  z-index: 95;
  display: flex;
  flex-direction: column;
  background:
    linear-gradient(
      160deg,
      #101a3f 0%,
      #1c2c66 48%,
      #2b46a0 100%);
  color: #fff;
}
#hsgate[hidden] {
  display: none;
}
.hsgate-scroll {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 20px 16px 14px;
}
.hsgate-box {
  max-width: 360px;
  width: 100%;
  margin: 0 auto;
}
.hsgate-box > img {
  width: 78px;
  border-radius: 19px;
  display: block;
  margin: 0 auto 12px;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.35);
}
.hsgate-card {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 16px;
  padding: 14px 15px;
  text-align: left;
}
.hsgate-step {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 13.5px;
  line-height: 1.6;
  margin: 9px 0;
}
.hsgate-num {
  flex: none;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  border-radius: 7px;
  background: var(--gold);
  color: #101a3f;
  font-weight: 600;
  font-size: 12px;
  font-style: normal;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hsgate-step svg {
  vertical-align: -3px;
}
.hsgate-act {
  margin-top: 16px;
  width: 100%;
  border: none;
  cursor: pointer;
  background: var(--gold);
  color: #101a3f;
  font-size: 15px;
  font-weight: 600;
  padding: 12px 0;
  border-radius: 22px;
}
.hsgate-note {
  font-size: 12px;
  opacity: 0.62;
  margin-top: 12px;
  line-height: 1.7;
  text-align: center;
}
.hsgate-chatcard {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 16px;
  padding: 10px 12px 4px;
  margin-bottom: 12px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.22);
}
.hsgate-chathead {
  text-align: center;
  font-size: 11px;
  letter-spacing: 0.5px;
  color: rgba(255, 255, 255, 0.6);
  padding: 2px 0 8px;
  margin-bottom: 2px;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.16);
}
.hsgate-chat {
  margin: 2px 0 4px;
}
.gc-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 12px 0;
  animation: gcIn 0.28s cubic-bezier(0.2, 0.9, 0.3, 1);
}
.gc-row.me {
  flex-direction: row-reverse;
}
.gc-av {
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background:
    linear-gradient(
      160deg,
      #3c7bff,
      #2452c8);
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}
.gc-bubble {
  max-width: 76%;
  background: #fff;
  color: #2c3550;
  border-radius: 4px 14px 14px 14px;
  padding: 9px 12px;
  font-size: 13px;
  line-height: 1.65;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
  word-break: break-word;
}
.gc-row.me .gc-bubble {
  background: #95ec69;
  color: #123018;
  border-radius: 14px 4px 14px 14px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.16);
}
.gc-typing {
  display: inline-flex;
  gap: 4px;
  align-items: center;
  background: #fff;
  border-radius: 4px 14px 14px 14px;
  padding: 11px 12px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
}
.gc-typing i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #98a2b8;
  animation: gcBlink 1s ease-in-out infinite;
}
.gc-typing i:nth-child(2) {
  animation-delay: 0.15s;
}
.gc-typing i:nth-child(3) {
  animation-delay: 0.3s;
}
@keyframes gcIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes gcBlink {
  0%, 100% {
    opacity: 0.3;
  }
  50% {
    opacity: 1;
  }
}
.hsgate-loan {
  width: 100%;
  margin-bottom: 13px;
  padding: 13px 15px 12px;
  border-radius: 16px;
  text-align: left;
  position: relative;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(243, 195, 91, 0.38);
}
.hsgate-loan .hl-label {
  font-size: 11.5px;
  letter-spacing: 0.4px;
  color: rgba(255, 255, 255, 0.78);
  display: flex;
  align-items: center;
}
.hsgate-loan .hl-badge {
  margin-left: 7px;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 6px;
  background: rgba(243, 195, 91, 0.92);
  color: #4a3305;
  font-weight: 600;
  letter-spacing: 0;
  flex: none;
}
.hsgate-loan .hl-amount {
  font-size: 30px;
  font-weight: 700;
  margin-top: 3px;
  letter-spacing: 0.5px;
  color: var(--gold);
  line-height: 1.15;
}
.hsgate-loan .hl-amount small {
  font-size: 13px;
  font-weight: 500;
  opacity: 0.85;
  margin-left: 4px;
}
.hsgate-loan .hl-desc {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.62);
  margin-top: 5px;
}
.hsgate-loan .hl-coin {
  position: absolute;
  right: 6px;
  top: 6px;
  width: 64px;
  height: 64px;
  color: var(--gold);
  opacity: 0.16;
  pointer-events: none;
}
.hsgate-loan .hl-logo {
  position: absolute;
  right: 12px;
  top: 10px;
  width: 76px;
  height: auto;
  opacity: 0.96;
  pointer-events: none;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.35));
}
.hsgate-perks {
  margin-top: 11px;
  position: relative;
}
.hsgate-perk {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.92);
  margin: 6px 0;
  line-height: 1.4;
}
.hsgate-perk .pk {
  flex: none;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: rgba(243, 195, 91, 0.16);
  border: 1px solid rgba(243, 195, 91, 0.6);
  color: var(--gold);
  font-size: 10.5px;
  font-style: normal;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hsgate-brand {
  display: block;
  background: #fff;
  border-radius: 18px;
  padding: 16px 18px 15px;
  margin: 0 0 12px;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.28);
}
.hsgate-brand img {
  display: block;
  width: 134px;
  height: auto;
  margin: 0 auto 11px;
}
.hsgate-brand .bdesc {
  font-size: 12.5px;
  line-height: 1.75;
  color: #3a4358;
  text-align: center;
}
.hsgate-step svg {
  width: 22px !important;
  height: 22px !important;
  vertical-align: -6px;
}
.hsgate-step .a2hs-ico {
  color: var(--gold);
  margin-right: 2px;
}
.hsgate-step .a2hs-ico svg {
  vertical-align: -5px;
}
#welmodal-mask {
  position: fixed;
  inset: 0;
  z-index: 92;
  background: rgba(10, 14, 22, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
}
#welmodal-mask.show {
  opacity: 1;
  pointer-events: auto;
}
#welmodal {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 93;
  padding: 8px 12px calc(12px + var(--safe-b));
  transform: translateY(100%);
  transition: transform 0.28s cubic-bezier(0.3, 0.85, 0.3, 1);
}
#welmodal.show {
  transform: none;
}
.wel-card {
  background: #fff;
  border-radius: 20px;
  max-width: 440px;
  margin: 0 auto;
  overflow: hidden;
  box-shadow: 0 -4px 30px rgba(16, 24, 40, 0.18);
}
.wel-grab {
  width: 36px;
  height: 4px;
  border-radius: 2px;
  background: #e3e7ee;
  margin: 9px auto 4px;
}
.wel-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px 0;
}
.wel-ava {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  flex: none;
  background: var(--blue-2);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.wel-ava img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.wel-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}
.wel-role {
  font-size: 11.5px;
  color: var(--ink-3);
  margin-top: 1px;
  display: flex;
  align-items: center;
  gap: 5px;
}
.wel-role .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #34c759;
}
.wel-body {
  margin: 12px 18px 0;
  padding: 12px 14px;
  background: #f4f6fa;
  border-radius: 4px 14px 14px 14px;
  font-size: 14px;
  line-height: 1.8;
  color: #2a3346;
  white-space: pre-wrap;
  word-break: break-word;
}
.wel-body .qlink {
  display: inline-block;
  margin: 3px 2px;
  padding: 3px 10px;
  border: 1px solid rgba(43, 108, 240, 0.35);
  border-radius: 15px;
  background: #eef3fe;
  white-space: nowrap;
}
.wel-foot {
  display: flex;
  gap: 10px;
  padding: 14px 18px 16px;
}
.wel-btn {
  flex: 1;
  border: none;
  border-radius: 21px;
  padding: 11px 0;
  font-size: 14.5px;
  font-weight: 600;
  cursor: pointer;
}
.wel-btn.primary {
  background: var(--blue);
  color: #fff;
}
.wel-btn.primary:active {
  opacity: 0.85;
}
.wel-btn.ghost {
  background: #f1f3f8;
  color: #5c667a;
}
#pushmodal-mask {
  position: fixed;
  inset: 0;
  z-index: 94;
  background: rgba(10, 14, 22, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
}
#pushmodal-mask.show {
  opacity: 1;
  pointer-events: auto;
}
#pushmodal {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 95;
  padding: 8px 12px calc(12px + var(--safe-b));
  transform: translateY(100%);
  transition: transform 0.28s cubic-bezier(0.3, 0.85, 0.3, 1);
}
#pushmodal.show {
  transform: none;
}
.push-card {
  background: #fff;
  border-radius: 20px;
  max-width: 440px;
  margin: 0 auto;
  padding: 20px 20px 15px;
  text-align: center;
  box-shadow: 0 -4px 30px rgba(16, 24, 40, 0.18);
}
.push-bell {
  width: 54px;
  height: 54px;
  margin: 0 auto;
  border-radius: 50%;
  background: #eef3fe;
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
}
.push-title {
  margin-top: 13px;
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
}
.push-desc {
  margin-top: 8px;
  font-size: 13.5px;
  line-height: 1.72;
  color: #6b7686;
}
.push-desc b {
  color: #2a3346;
  font-weight: 600;
}
.push-foot {
  display: flex;
  gap: 10px;
  margin-top: 17px;
}
.push-tip {
  margin-top: 10px;
  font-size: 11.5px;
  color: #9aa4b5;
}

/* src/styles/05-overlays.css */
#preview {
  position: fixed;
  inset: 0;
  z-index: 80;
  height: 100vh;
  height: 100dvh;
  height: var(--vh100, 100dvh);
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(8, 10, 16, 0.92);
  opacity: 0;
  transition: opacity 0.22s ease;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
#preview.show {
  display: flex;
  opacity: 1;
}
#preview img {
  max-width: 94vw;
  max-height: 88vh;
  border-radius: 8px;
  animation: zoomIn 0.26s cubic-bezier(0.2, 0.8, 0.3, 1);
}
#preview-close {
  position: absolute;
  top: calc(14px + var(--safe-t));
  right: 16px;
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  font-size: 16px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
#preview-qr {
  position: absolute;
  left: 50%;
  bottom: calc(26px + var(--safe-b));
  transform: translateX(-50%);
  padding: 11px 22px;
  border: none;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.92);
  color: #1b2233;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.35);
}
#preview-qr:active {
  transform: translateX(-50%) scale(0.97);
}
#preview-qr[hidden] {
  display: none;
}
#sheet-mask {
  position: fixed;
  inset: 0;
  z-index: 88;
  background: rgba(10, 14, 22, 0.38);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
}
#sheet-mask.show {
  opacity: 1;
  pointer-events: auto;
}
#sheet {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  padding: 8px 12px calc(12px + var(--safe-b));
  transform: translateY(100%);
  transition: transform 0.28s cubic-bezier(0.3, 0.85, 0.3, 1);
}
#sheet.show {
  transform: none;
}
#sheet-inner {
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  max-width: 440px;
  margin: 0 auto;
  box-shadow: 0 -4px 30px rgba(16, 24, 40, 0.18);
}
.sheet-grab {
  width: 36px;
  height: 4px;
  border-radius: 2px;
  background: #e3e7ee;
  margin: 9px auto 4px;
}
.sheet-title {
  font-size: 13px;
  color: #98a1b0;
  text-align: center;
  padding: 8px 16px 10px;
}
.sheet-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 15px 18px;
  border: none;
  background: #fff;
  text-align: left;
  font-size: 16px;
  color: var(--ink);
}
.sheet-item:active {
  background: #f4f5f8;
}
.sheet-item + .sheet-item {
  border-top: 1px solid var(--line);
}
.sheet-item.danger {
  color: #e5484d;
  justify-content: center;
}
.sheet-cancel {
  width: 100%;
  margin-top: 8px;
  padding: 15px;
  border: none;
  border-radius: 16px;
  background: #fff;
  font-size: 16px;
  font-weight: 500;
  color: var(--ink);
  box-shadow: 0 -2px 20px rgba(16, 24, 40, 0.1);
}
#toast {
  position: fixed;
  left: 50%;
  bottom: calc(96px + var(--safe-b));
  transform: translate(-50%, 12px);
  max-width: 82vw;
  padding: 10px 16px;
  background: rgba(24, 28, 36, 0.9);
  color: #fff;
  font-size: 13.5px;
  line-height: 1.45;
  border-radius: 12px;
  z-index: 95;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  text-align: center;
}
#toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}
#a2hs {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: none;
}
#a2hs.show {
  display: block;
}
.a2hs-scrim {
  position: absolute;
  inset: 0;
  background: rgba(8, 10, 16, 0.64);
  animation: fadeIn 0.2s ease;
}
.a2hs-card {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: calc(var(--safe-b) + 22px);
  max-width: 420px;
  margin: 0 auto;
  background: #fff;
  border-radius: 22px;
  padding: 18px 18px 12px;
  max-height: calc(100dvh - 52px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  box-shadow: 0 22px 54px rgba(6, 10, 22, 0.38);
  animation: a2hsUp 0.34s cubic-bezier(0.2, 0.9, 0.3, 1);
}
.a2hs-welcome {
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 14px;
  background: #f4f7ff;
}
.a2hs-welcome-who {
  font-size: 12px;
  font-weight: 600;
  color: #5b6b88;
  margin-bottom: 4px;
}
.a2hs-welcome-body {
  font-size: 14.5px;
  line-height: 1.55;
  color: #1b2b4b;
}
.a2hs-top {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 2px 2px;
}
.a2hs-top img {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  display: block;
  flex: none;
}
.a2hs-title {
  font-size: 16.5px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.3;
}
.a2hs-sub {
  font-size: 12.5px;
  color: var(--ink-3);
  margin-top: 3px;
  line-height: 1.5;
}
.a2hs-sub.red {
  color: #d92b1f;
  font-weight: 600;
}
.a2hs-steps {
  margin: 10px 0 2px;
}
.a2hs-shot {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 14px;
  background: #f2f2f7;
  border: 1px solid #e6e8ee;
}
.a2hs-cap {
  margin-top: 8px;
  font-size: 14.5px;
  line-height: 1.55;
  font-weight: 600;
  color: #2b3242;
}
.a2hs-step {
  display: flex;
  gap: 10px;
  padding: 7px 0;
  font-size: 14px;
  color: #2b3242;
  line-height: 1.55;
}
.a2hs-num {
  flex: none;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  border-radius: 50%;
  background: #eaf0ff;
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
  font-style: normal;
  display: flex;
  align-items: center;
  justify-content: center;
}
.a2hs-ico {
  display: inline-flex;
  vertical-align: -3px;
  margin: 0 1px;
  color: var(--blue);
}
.a2hs-act {
  width: 100%;
  padding: 13px;
  margin-top: 8px;
  border: none;
  border-radius: 14px;
  background: var(--blue);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
}
.a2hs-act:active {
  transform: scale(0.985);
  background: var(--blue-d);
}
.a2hs-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--ink-3);
}
.a2hs-note svg {
  flex: none;
  color: var(--blue);
  animation: a2hsBob 1.5s ease-in-out infinite;
}
@keyframes a2hsUp {
  from {
    opacity: 0;
    transform: translateY(26px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes a2hsBob {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(3px);
  }
}
.a2hs-mockbox {
  background: #eef1f6;
  border-radius: 12px;
  padding: 6px;
  margin: 10px 0 8px;
  overflow: hidden;
}
.a2hs-mocksvg {
  display: block;
  width: 100%;
  height: auto;
}
.a2hs-mocksvg .mk-ripple {
  animation: mkRipple 1.5s ease-out infinite;
  transform-origin: center;
  transform-box: fill-box;
}
.a2hs-mocksvg .mk-finger {
  animation: mkTap 1.5s ease-in-out infinite;
}
@keyframes mkRipple {
  0% {
    opacity: 0.8;
    transform: scale(0.4);
  }
  100% {
    opacity: 0;
    transform: scale(1.6);
  }
}
@keyframes mkTap {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(3px);
  }
}
.a2hs-big {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.6;
  min-height: 46px;
}
.a2hs-big .a2hs-num {
  margin-top: 1px;
}
.a2hs-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin: 10px 0 2px;
}
.a2hs-dots i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #dbe0ea;
  transition: all 0.2s;
}
.a2hs-dots i.on {
  background: var(--blue);
  width: 18px;
  border-radius: 4px;
}
.a2hs-btns {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}
.a2hs-btn {
  flex: 1;
  border: none;
  cursor: pointer;
  border-radius: 22px;
  padding: 12px 0;
  font-size: 14.5px;
  font-weight: 600;
  background: var(--blue);
  color: #fff;
}
.a2hs-btn:active {
  transform: scale(0.985);
}
.a2hs-btn.ghost {
  background: #eef1f6;
  color: var(--ink);
  font-weight: 500;
}
.a2hs-btn.warn {
  background: #fff;
  color: var(--ink);
  border: 1.5px solid var(--line);
  font-weight: 500;
}
.a2hs-btn.sos {
  background: #fff6e8;
  color: #a05a00;
  border: 1.5px solid #f3c35b;
}
#gc-halo {
  position: fixed;
  z-index: 130;
  pointer-events: none;
  display: none;
}
#gc-halo.show {
  display: block;
}
.gc-halo-wrap {
  position: absolute;
  transform: translate(-50%, -50%);
}
.gc-halo-ring {
  position: absolute;
  left: 0;
  top: 0;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 3px solid #ff5a5f;
  transform: translate(-50%, -50%);
  animation: gcHalo 1.5s ease-out infinite;
}
.gc-halo-ring.d2 {
  animation-delay: 0.5s;
}
.gc-halo-dot {
  position: absolute;
  left: 0;
  top: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ff5a5f;
  transform: translate(-50%, -50%);
}
.gc-halo-label {
  position: absolute;
  left: 0;
  top: -52px;
  transform: translateX(-50%);
  white-space: nowrap;
  background: rgba(20, 26, 40, 0.92);
  color: #fff;
  font-size: 12.5px;
  padding: 7px 12px;
  border-radius: 10px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}
.gc-halo-label.corner {
  top: 34px;
  left: 0;
  transform: translateX(-100%);
  white-space: normal;
  width: 168px;
  line-height: 1.45;
  text-align: left;
}
.gc-halo-label svg {
  vertical-align: -4px;
  animation: gcBob2 1.2s ease-in-out infinite;
}
@keyframes gcHalo {
  0% {
    opacity: 0.9;
    transform: translate(-50%, -50%) scale(0.5);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1.5);
  }
}
@keyframes gcBob2 {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(4px);
  }
}
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
#install-bar {
  position: fixed;
  left: 12px;
  right: 12px;
  z-index: 70;
  bottom: calc(var(--safe-b) + 78px);
  max-width: 420px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 10px 10px 12px;
  background: rgba(255, 255, 255, 0.98);
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(16, 24, 40, 0.18), 0 0 0 1px rgba(16, 24, 40, 0.04);
  transform: translateY(150%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.34s cubic-bezier(0.2, 0.9, 0.3, 1), opacity 0.24s ease;
}
#install-bar.show {
  transform: none;
  opacity: 1;
  pointer-events: auto;
}
#install-bar img {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  flex: none;
  display: block;
}
.ib-main {
  flex: 1;
  min-width: 0;
}
.ib-main b {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}
.ib-main span {
  display: block;
  font-size: 11.5px;
  color: var(--ink-3);
  margin-top: 2px;
}
#ib-go {
  border: none;
  background: var(--blue);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 15px;
  border-radius: 14px;
  flex: none;
}
#ib-go:active {
  background: var(--blue-d);
}
#ib-close {
  border: none;
  background: transparent;
  color: #b6bdc9;
  font-size: 15px;
  padding: 6px 4px;
  flex: none;
  line-height: 1;
}
@keyframes msgIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes pop {
  from {
    opacity: 0;
    transform: scale(0.82);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes blink {
  0%, 100% {
    opacity: 0.25;
    transform: translateY(0);
  }
  50% {
    opacity: 1;
    transform: translateY(-3px);
  }
}
@keyframes zoomIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@media (min-width: 600px) {
  body {
    background:
      radial-gradient(
        circle at 50% 0%,
        #eef2f9,
        #d9e0ec);
  }
  #app {
    max-width: 460px;
    margin: 0 auto;
    top: calc(var(--app-top, 0px) + 20px);
    height: calc(var(--app-h, 100dvh) - 40px);
    border-radius: 22px;
    box-shadow: 0 24px 60px rgba(16, 24, 40, 0.22), 0 0 0 1px rgba(255, 255, 255, 0.6);
  }
  html.kb-open #app {
    height: calc(var(--app-h, 100dvh) - 40px);
  }
}

/* src/styles/06-scanner.css */
#scan {
  position: fixed;
  inset: 0;
  z-index: 110;
  display: none;
  flex-direction: column;
  background: #080b12;
  color: #fff;
}
#scan.show {
  display: flex;
  animation: fadeIn 0.18s ease;
}
.scan-hd {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: calc(10px + var(--safe-t)) 14px 8px;
}
.scan-hd .scan-name {
  flex: 1;
  text-align: center;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.6px;
}
.scan-hd button {
  flex: none;
  height: 34px;
  min-width: 34px;
  padding: 0 4px;
  border: none;
  border-radius: 17px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 13px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.scan-hd .scan-album {
  padding: 0 13px;
}
.scan-stage {
  position: relative;
  flex: 1;
  overflow: hidden;
  background: #000;
}
#scan-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #000;
}
.scan-frame {
  position: absolute;
  left: 50%;
  top: 44%;
  width: 64vw;
  max-width: 268px;
  aspect-ratio: 1 / 1;
  transform: translate(-50%, -50%);
  border-radius: 16px;
  box-shadow: 0 0 0 1.5px rgba(255, 255, 255, 0.35), 0 0 0 9999px rgba(6, 9, 16, 0.58);
}
.scan-frame .cn {
  position: absolute;
  width: 26px;
  height: 26px;
  border: 3px solid var(--gold);
  border-radius: 4px;
}
.scan-frame .tl {
  left: -2px;
  top: -2px;
  border-right: 0;
  border-bottom: 0;
  border-radius: 8px 0 0 0;
}
.scan-frame .tr {
  right: -2px;
  top: -2px;
  border-left: 0;
  border-bottom: 0;
  border-radius: 0 8px 0 0;
}
.scan-frame .bl {
  left: -2px;
  bottom: -2px;
  border-right: 0;
  border-top: 0;
  border-radius: 0 0 0 8px;
}
.scan-frame .br {
  right: -2px;
  bottom: -2px;
  border-left: 0;
  border-top: 0;
  border-radius: 0 0 8px 0;
}
.scan-line {
  position: absolute;
  left: 10px;
  right: 10px;
  top: 8%;
  height: 2px;
  border-radius: 2px;
  background:
    linear-gradient(
      90deg,
      transparent,
      var(--gold),
      transparent);
  box-shadow: 0 0 10px rgba(243, 195, 91, 0.8);
  animation: scanMove 2.4s ease-in-out infinite;
}
@keyframes scanMove {
  0% {
    top: 8%;
    opacity: 0.25;
  }
  50% {
    top: 90%;
    opacity: 1;
  }
  100% {
    top: 8%;
    opacity: 0.25;
  }
}
.scan-tip {
  position: absolute;
  left: 24px;
  right: 24px;
  top: calc(44% + 34vw);
  text-align: center;
  font-size: 13px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.78);
}
.scan-tip.err {
  color: #ffd7a8;
}
.scan-foot {
  padding: 14px 24px calc(18px + var(--safe-b));
  text-align: center;
  background:
    linear-gradient(
      180deg,
      transparent,
      rgba(8, 11, 18, 0.9));
}
.scan-foot button {
  width: 100%;
  max-width: 320px;
  margin: 0 auto;
  padding: 13px;
  border: none;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 14.5px;
  font-weight: 600;
}
.scan-note {
  margin-top: 9px;
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.45);
}
.scan-res {
  margin: 2px 16px 10px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #f5f6f9;
  font-size: 13.5px;
  line-height: 1.6;
  color: #2b3242;
  word-break: break-all;
  max-height: 30vh;
  overflow: auto;
}
.scan-warn {
  margin: 0 16px 12px;
  font-size: 12px;
  line-height: 1.55;
  color: #9a6b12;
  background: #fff8e8;
  border-radius: 10px;
  padding: 9px 12px;
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* styles.css */
/*# sourceMappingURL=app.css.map */
