:root {
  --brand: #f26b21;
  --brand-deep: #d94f15;
  --brand-light: #ff8a3d;
  --brand-soft: #fff1e8;
  --brand-pale: #fffaf6;
  --tea: #684535;
  --sage: #6f8f86;
  --sage-deep: #4f756c;
  --sage-soft: #eef5f2;
  --text: #1f2329;
  --muted: #747a84;
  --light: #9a8f87;
  --bg: #f7f3ee;
  --line: #ece2d8;
  --blue: var(--sage-deep);
  --green: var(--sage-deep);
  --red: #e5484d;
  --gray: #8a8f98;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--text);
  background: #e9edf3;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

button {
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.app-shell {
  width: 100%;
  max-width: 430px;
  min-height: 100vh;
  margin: 0 auto;
  background: var(--bg);
  position: relative;
  overflow-x: hidden;
  box-shadow: 0 0 40px rgba(31, 35, 41, 0.12);
}

.page {
  display: none;
  min-height: 100vh;
  padding-bottom: calc(86px + env(safe-area-inset-bottom));
}

.page.active {
  display: block;
}

.detail-page,
#authPage,
#preCreditPage {
  padding-bottom: 110px;
}

.hero {
  min-height: 300px;
  padding: 56px 24px 28px;
  background: #fff3ea url("./assest/hero-banner.jpg") center / cover no-repeat;
  position: relative;
  overflow: hidden;
}

.hero h1 {
  margin: 0;
  color: var(--brand-deep);
  font-size: 38px;
  line-height: 1.1;
  letter-spacing: 0;
}

.hero h1 span {
  display: block;
}

.hero h1 span:nth-child(2) {
  padding-left: 18px;
}

.hero p {
  margin: 12px 0 0;
  color: var(--tea);
  font-size: 17px;
  font-weight: 800;
}

.notice {
  height: 58px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  background: #fff;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}

.notice-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: transparent;
}

.notice-icon img {
  width: 38px;
  height: 38px;
  object-fit: contain;
}

.safe-note {
  margin: 0;
  color: var(--light);
  font-size: 12px;
  line-height: 1.6;
  word-break: break-all;
}

.top-note {
  padding: 12px 16px 0;
}

.block {
  padding: 18px 16px 0;
}

.last-block {
  padding-bottom: 18px;
}

.block-title {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 10px;
}

.block-title strong {
  font-size: 22px;
  font-weight: 900;
}

.block-title span {
  color: var(--muted);
  font-size: 14px;
}

.compact {
  align-items: center;
}

.card {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.auth-card,
.auth-status {
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.auth-card > div,
.auth-status > div,
.agreement-card > span {
  min-width: 0;
}

.card h2,
.auth-status h2 {
  margin: 0 0 8px;
  font-size: 17px;
}

.card p,
.auth-status p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.primary,
.secondary,
.outline,
.danger {
  min-width: 88px;
  height: 40px;
  padding: 0 14px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 850;
  white-space: nowrap;
}

.primary {
  color: #fff;
  background: var(--brand);
}

.secondary {
  color: var(--brand-deep);
  background: var(--brand-soft);
}

.outline {
  color: var(--brand-deep);
  border: 1px solid #ffd0ad;
  background: #fff;
}

.danger {
  color: #fff;
  background: var(--red);
}

.full-btn {
  width: 100%;
  height: 48px;
}

.agreement-card {
  width: 100%;
  min-height: 98px;
  padding: 16px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  background: linear-gradient(125deg, #ffe8d2, #ff9b56);
}

.agreement-card strong {
  display: block;
  color: var(--brand-deep);
  font-size: 20px;
  margin-bottom: 6px;
}

.agreement-card small {
  color: #744229;
  font-size: 13px;
}

.agreement-card b {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #fff;
}

.agreement-card b img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.stat-card {
  min-height: 88px;
  border: 1px solid var(--line);
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: #fff;
}

.stat-card strong {
  color: var(--brand-deep);
  font-size: 26px;
}

.stat-card span {
  color: var(--muted);
  font-size: 13px;
}

.service-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.service-card {
  min-height: 112px;
  padding: 14px 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  text-align: center;
  background: #fff;
}

.service-card i {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: transparent;
}

.service-card i img {
  width: 38px;
  height: 38px;
  object-fit: contain;
}

.service-card strong {
  font-size: 16px;
  font-weight: 900;
}

.service-card span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.nav-head {
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 5;
}

.nav-head h1 {
  margin: 0;
  font-size: 18px;
}

.back-btn {
  position: absolute;
  left: 10px;
  top: 10px;
  width: 36px;
  height: 36px;
  font-size: 30px;
  line-height: 1;
}

.hidden {
  display: none !important;
}

.filter-bar {
  height: 54px;
  padding: 10px 14px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  overflow: visible;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.filter-bar::-webkit-scrollbar {
  display: none;
}

.chip {
  height: 32px;
  width: 100%;
  padding: 0 6px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 0;
  color: #b85c2f;
  background: #fffaf6;
  box-shadow: inset 0 0 0 1px rgba(242, 107, 33, 0.14);
  font-size: 12px;
  font-weight: 800;
}

.chip span {
  min-width: 0;
  white-space: nowrap;
}

.chip .count {
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ef6a27;
  background: #ffe3d1;
  font-size: 10px;
  line-height: 1;
  font-weight: 900;
}

.chip.active {
  color: #ffffff;
  background: linear-gradient(135deg, #ff8a3d 0%, #f26621 100%);
  box-shadow: 0 8px 16px rgba(242, 107, 33, 0.22);
}

.chip.active .count {
  color: #f26621;
  background: #ffffff;
}

.contract-list {
  padding: 14px;
}

.contract-card {
  margin-bottom: 12px;
  padding: 16px 17px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
}

.contract-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(226, 218, 210, 0.72);
}

.contract-title {
  font-size: 17px;
  font-weight: 900;
}

.tag {
  min-width: 58px;
  height: 24px;
  padding: 0 8px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 900;
}

.tag-orange { color: var(--brand-deep); background: var(--brand-soft); }
.tag-blue { color: var(--sage-deep); background: var(--sage-soft); }
.tag-red { color: var(--red); background: #fff0f0; }
.tag-green { color: var(--green); background: #eaf7f1; }
.tag-gray { color: var(--gray); background: #f1f2f4; }

.meta {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
}

.meta-row,
.info-list div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
}

.meta-row b,
.info-list b {
  color: var(--text);
  text-align: right;
}

.meta-row.amount-row b {
  color: var(--brand-deep);
  font-size: 16px;
}

.card-actions {
  margin-top: 14px;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.empty-card {
  padding: 38px 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  text-align: center;
  color: var(--muted);
  background: #fff;
}

.detail-hero {
  min-height: 126px;
  padding: 18px;
  color: #fff;
  background: linear-gradient(145deg, var(--brand), #ffaf70);
}

.detail-hero h2 {
  margin: 16px 0 8px;
  font-size: 23px;
}

.detail-hero p {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  opacity: 0.9;
}

.info-list,
.timeline {
  padding: 0 15px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.info-list div {
  min-height: 48px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.info-list div:last-child {
  border-bottom: 0;
}

.orange-text {
  color: var(--brand-deep) !important;
}

.timeline {
  padding: 16px;
  display: grid;
  gap: 14px;
}

.step {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 10px;
}

.step i {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--brand);
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}

.step i.off {
  background: #d5d9df;
}

.step strong {
  display: block;
  font-size: 15px;
  margin-bottom: 4px;
}

.step span {
  color: var(--muted);
  font-size: 12px;
}

.file-row {
  width: 100%;
  min-height: 52px;
  padding: 0 15px;
  border: 1px solid var(--line);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  font-weight: 850;
}

.file-row b {
  color: var(--brand-deep);
}

.detail-note {
  padding: 14px 16px 0;
}

.auth-dashboard {
  padding: 14px 14px 28px;
  min-height: calc(100vh - 58px);
  background:
    radial-gradient(circle at 12% 4%, rgba(255, 174, 108, 0.16), transparent 28%),
    linear-gradient(180deg, #fffaf6 0%, #f7f3ee 38%, #f7f3ee 100%);
}

.auth-user {
  min-height: 74px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.auth-user-avatar {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, #ffffff 0%, #fff3ea 100%);
  box-shadow: 0 12px 24px rgba(179, 91, 32, 0.14);
}

.auth-user-avatar img {
  width: 52px;
  height: 52px;
  object-fit: contain;
}

.auth-user-main {
  flex: 1;
  min-width: 0;
}

.auth-user-main > div {
  display: flex;
  align-items: center;
  gap: 8px;
}

.auth-user-main strong {
  color: #1f2a3a;
  font-size: 18px;
  font-weight: 900;
}

.auth-user-main span,
.auth-progress-head span {
  height: 22px;
  padding: 0 9px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  color: #f26b21;
  background: #fff0e6;
  font-size: 12px;
  font-weight: 850;
}

.auth-user-main p {
  margin: 8px 0 0;
  color: #657188;
  font-size: 13px;
}

.auth-city {
  align-self: flex-start;
  margin-top: 6px;
  color: var(--sage-deep);
  font-size: 13px;
  font-weight: 850;
}

.auth-progress-card {
  margin-top: 8px;
  padding: 14px 16px 16px;
  border-radius: 14px;
  color: var(--tea);
  background:
    linear-gradient(90deg, rgba(255, 250, 246, 0.99) 0%, rgba(255, 244, 234, 0.92) 42%, rgba(255, 214, 180, 0.44) 70%, rgba(255, 214, 180, 0.14) 100%),
    url("./assest/profile-banner.jpg") right center / cover no-repeat;
  box-shadow: 0 12px 24px rgba(179, 91, 32, 0.12);
}

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

.auth-progress-head strong {
  font-size: 20px;
  font-weight: 950;
}

.auth-progress-head span {
  color: #d94f15;
  background: #fff1e8;
}

.auth-progress-card p {
  margin: 8px 0 14px;
  color: #7d5947;
  font-size: 13px;
}

.auth-progress-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #8b6048;
  font-size: 13px;
  font-weight: 850;
}

.auth-progress-row b {
  color: #d94f15;
  font-weight: 950;
}

.auth-progress-track {
  margin-top: 9px;
  height: 10px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(242, 107, 33, 0.14);
}

.auth-progress-track i {
  width: 33%;
  height: 100%;
  border-radius: inherit;
  display: block;
  background: linear-gradient(90deg, #ffb26d, #f26b21);
  transition: width 0.22s ease;
}

.auth-section-title {
  margin: 22px 0 12px;
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.auth-section-title strong {
  color: var(--text);
  font-size: 20px;
  font-weight: 950;
}

.auth-section-title span {
  color: var(--light);
  font-size: 12px;
}

.base-auth-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.base-auth-card {
  min-height: 82px;
  padding: 12px 12px;
  border-radius: 12px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 10px;
  color: #7b6f68;
  border: 1px solid rgba(236, 226, 216, 0.72);
  background: linear-gradient(135deg, #ffffff 0%, #fffaf6 100%);
  box-shadow: var(--shadow-sm);
}

.base-auth-card.done {
  color: var(--tea);
  border-color: rgba(242, 107, 33, 0.38);
  background: linear-gradient(135deg, #fffaf6 0%, #fff1e8 100%);
  box-shadow: 0 10px 24px rgba(242, 107, 33, 0.1);
}

.base-auth-card span {
  font-size: 15px;
  font-weight: 900;
}

.base-auth-card b {
  height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  color: #8d8279;
  background: rgba(247, 243, 238, 0.9);
  font-size: 13px;
  font-weight: 850;
}

.base-auth-card.done b {
  color: var(--brand-deep);
  background: rgba(255, 255, 255, 0.76);
  box-shadow: inset 0 0 0 1px rgba(255, 207, 175, 0.76);
}

.base-auth-card img {
  position: absolute;
  right: 10px;
  bottom: 8px;
  width: 44px;
  height: 44px;
  object-fit: contain;
  opacity: 0.9;
  display: none;
}

.base-auth-card img,
.base-auth-card.done img {
  display: block;
}

.base-auth-card::before {
  content: none;
  position: absolute;
  right: 12px;
  bottom: 10px;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: linear-gradient(180deg, #ffffff 0%, #fffaf6 100%);
  box-shadow:
    inset 0 0 0 1px rgba(236, 226, 216, 0.92),
    0 7px 13px rgba(104, 69, 53, 0.06);
}

.base-auth-card.done::before {
  content: none;
}

.base-auth-card::after {
  content: none;
  position: absolute;
  right: 23px;
  bottom: 20px;
  width: 13px;
  height: 9px;
  border-left: 3px solid var(--brand-deep);
  border-bottom: 3px solid var(--brand-deep);
  transform: rotate(-45deg);
}

.base-auth-card.done::after {
  content: none;
}

.base-auth-card:not(.done)::after {
  content: none;
}

.recommend-auth-list {
  padding: 8px 14px;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: var(--shadow-sm);
}

.recommend-auth-row {
  width: 100%;
  min-height: 78px;
  display: grid;
  grid-template-columns: 46px 1fr auto;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid rgba(232, 222, 213, 0.82);
  background: transparent;
  text-align: left;
}

.recommend-auth-row:last-child {
  border-bottom: 0;
}

.recommend-auth-row i {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #fff2ea;
}

.recommend-auth-row i img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.recommend-auth-row span strong {
  display: block;
  color: var(--text);
  font-size: 16px;
  font-weight: 900;
}

.recommend-auth-row span small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
}

.recommend-auth-row b {
  min-width: 74px;
  height: 32px;
  padding: 0 12px;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: linear-gradient(135deg, #ff8a3d 0%, #f26621 100%);
  font-size: 13px;
  font-weight: 900;
}

.auth-dashboard .full-btn {
  margin-top: 20px;
}

.auth-dashboard .detail-note {
  padding: 14px 0 0;
  color: var(--light);
}

.precredit-dashboard {
  padding: 14px 14px 28px;
  min-height: calc(100vh - 58px);
  background:
    radial-gradient(circle at 14% 2%, rgba(255, 174, 108, 0.14), transparent 30%),
    linear-gradient(180deg, #fffaf6 0%, #f7f3ee 42%, #f7f3ee 100%);
}

.precredit-hero {
  min-height: 112px;
  padding: 18px 16px;
  border-radius: 14px;
  display: grid;
  align-content: center;
  gap: 8px;
  color: var(--tea);
  background:
    linear-gradient(90deg, rgba(255, 250, 246, 0.98) 0%, rgba(255, 244, 234, 0.9) 48%, rgba(255, 214, 180, 0.36) 100%),
    url("./assest/profile-banner.jpg") right center / cover no-repeat;
  box-shadow: 0 12px 24px rgba(179, 91, 32, 0.11);
}

.precredit-hero strong {
  color: var(--tea);
  font-size: 22px;
  font-weight: 950;
}

.precredit-hero span {
  max-width: 230px;
  color: #7d5947;
  font-size: 13px;
  line-height: 1.5;
}

.precredit-form {
  margin-top: 14px;
  display: grid;
  gap: 14px;
}

.profile-auth-form {
  display: grid;
  gap: 14px;
}

.profile-auth-intro {
  padding: 14px 4px 12px;
}

.profile-auth-intro h2 {
  margin: 0;
  color: var(--text);
  font-size: 20px;
  font-weight: 500;
  line-height: 1.5;
}

.profile-auth-intro h2 strong {
  color: var(--brand-deep);
  font-size: 24px;
  font-weight: 950;
}

.profile-auth-intro p {
  width: fit-content;
  margin: 10px 0 0;
  padding: 5px 11px;
  border: 1px solid rgba(242, 107, 33, 0.3);
  border-radius: 999px;
  color: var(--brand-deep);
  background: rgba(255, 241, 232, 0.72);
  font-size: 12px;
  line-height: 1.2;
}

.precredit-card {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.precredit-card h3 {
  margin: 0 0 14px;
  color: var(--text);
  font-size: 18px;
  font-weight: 950;
}

.select-row {
  min-height: 62px;
  padding: 0 16px;
  border: 1px solid rgba(236, 226, 216, 0.88);
  border-radius: 12px;
  display: grid;
  grid-template-columns: 92px 1fr;
  align-items: center;
  gap: 12px;
  background: #fffaf6;
}

.custom-select {
  position: relative;
  overflow: visible;
}

.custom-select.open {
  padding-top: 12px;
  padding-bottom: 12px;
}

.select-row + .select-row,
.select-row + .field-row,
.profile-auth-extra .field-row + .field-row {
  margin-top: 12px;
}

.select-row span {
  color: var(--text);
  font-size: 15px;
  font-weight: 900;
}

.select-row select {
  width: 100%;
  border: 0;
  outline: none;
  color: var(--tea);
  background: transparent;
  font: inherit;
  font-size: 15px;
  font-weight: 750;
}

.custom-select-trigger {
  min-width: 0;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--tea);
  text-align: left;
}

.custom-select-trigger b {
  overflow: hidden;
  color: var(--tea);
  font-size: 15px;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.custom-select-trigger i {
  width: 8px;
  height: 8px;
  border-right: 2px solid #bd8f72;
  border-bottom: 2px solid #bd8f72;
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.18s ease;
}

.custom-select.open .custom-select-trigger i {
  transform: rotate(225deg) translate(-2px, -1px);
}

.custom-select-menu {
  grid-column: 1 / -1;
  padding: 0;
  border: 0;
  border-radius: 0;
  display: none;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  background: transparent;
  box-shadow: none;
}

.custom-select.open .custom-select-menu {
  display: grid;
  margin: 6px 0 2px;
}

.custom-select-menu button {
  min-height: 36px;
  padding: 0 10px;
  border: 1px solid rgba(236, 226, 216, 0.8);
  border-radius: 999px;
  color: #6f625a;
  background: #ffffff;
  font-size: 13px;
  font-weight: 850;
}

.custom-select-menu button.active {
  color: var(--brand-deep);
  border-color: rgba(242, 107, 33, 0.46);
  background: #fff1e8;
}

.profile-auth-extra {
  display: none;
  margin-top: 12px;
}

.profile-auth-extra.show {
  display: block;
}

#preCreditForm .full-btn {
  display: none;
}

#preCreditForm.ready .full-btn {
  display: inline-flex;
}

.profile-step {
  display: none;
}

.profile-step.show {
  display: grid;
  animation: stepIn 0.18s ease-out;
}

.profile-step.field-row.show {
  display: grid;
}

@keyframes stepIn {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.profile-auth-extra .field-row {
  box-shadow: none;
  background: #fffaf6;
}

.profile-auth-extra .profile-step:not(.show) {
  display: none;
}

.profile-auth-extra .profile-step.show {
  display: grid;
}

.asset-step,
.field-row.asset-step {
  display: none;
}

.asset-step.show {
  display: grid;
  animation: stepIn 0.18s ease-out;
}

.asset-step.field-row.show {
  display: grid;
}

#assetInfoPage .field-row + .field-row,
#assetInfoPage .asset-step.show + .asset-step.show {
  margin-top: 12px;
}

.form-block {
  margin-top: 14px;
}

.form-label,
.field-column span {
  margin-bottom: 9px;
  display: block;
  color: var(--tea);
  font-size: 14px;
  font-weight: 900;
}

.option-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.option-grid.compact button {
  min-width: 86px;
}

.option-grid button {
  min-height: 34px;
  padding: 0 13px;
  border: 1px solid rgba(236, 226, 216, 0.96);
  border-radius: 999px;
  color: #6f625a;
  background: #fffaf6;
  font-size: 13px;
  font-weight: 850;
}

.option-grid button.active {
  color: var(--brand-deep);
  border-color: rgba(242, 107, 33, 0.5);
  background: linear-gradient(180deg, #fff7f0 0%, #fff0e6 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 214, 180, 0.65);
}

.upload-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.upload-grid button {
  min-height: 76px;
  padding: 13px;
  border: 1px dashed rgba(242, 107, 33, 0.42);
  border-radius: 12px;
  display: grid;
  align-content: center;
  gap: 9px;
  text-align: left;
  background:
    radial-gradient(circle at 88% 78%, rgba(242, 107, 33, 0.14), transparent 28%),
    #fffaf6;
}

.upload-grid span {
  color: var(--tea);
  font-size: 15px;
  font-weight: 900;
}

.upload-grid b {
  width: fit-content;
  min-width: 58px;
  height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-deep);
  background: #fff1e8;
  font-size: 13px;
}

.field-column {
  display: grid;
  gap: 0;
}

.field-column + .field-column {
  margin-top: 14px;
}

.field-column textarea {
  width: 100%;
  resize: none;
  padding: 13px 14px;
  border: 1px solid rgba(236, 226, 216, 0.88);
  border-radius: 12px;
  outline: none;
  color: var(--text);
  background: #fffaf6;
  font: inherit;
  font-size: 14px;
  line-height: 1.55;
}

.field-column textarea::placeholder {
  color: #aaa098;
}

.field-column textarea:focus {
  border-color: rgba(242, 107, 33, 0.44);
  box-shadow: 0 10px 22px rgba(242, 107, 33, 0.09);
}

.idphoto-dashboard {
  padding: 14px 18px 34px;
  min-height: calc(100vh - 58px);
  background: linear-gradient(180deg, #fffaf6 0%, #ffffff 74%);
}

.idphoto-intro {
  display: grid;
  grid-template-columns: 1fr 82px;
  gap: 16px;
  align-items: start;
  padding: 4px 0 18px;
}

.idphoto-intro h2 {
  margin: 0 0 10px;
  color: var(--text);
  font-size: 20px;
  font-weight: 500;
}

.idphoto-intro h2 strong {
  color: var(--brand-deep);
  font-size: 24px;
  font-weight: 950;
}

.idphoto-intro p {
  margin: 0;
  color: #6f7a8a;
  font-size: 14px;
  line-height: 1.75;
}

.idphoto-icon {
  width: 82px;
  height: 82px;
  object-fit: contain;
  display: block;
}

.upload-section {
  margin-top: 22px;
}

.upload-title {
  margin: 0 auto 14px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px;
  color: #1f2329;
  font-size: 16px;
  font-weight: 850;
}

.upload-title i {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(242, 107, 33, 0.22));
}

.upload-title i:last-child {
  background: linear-gradient(90deg, rgba(242, 107, 33, 0.22), transparent);
}

.upload-title span::before,
.upload-title span::after {
  content: "";
  width: 6px;
  height: 6px;
  margin: 0 10px 2px;
  border-radius: 50%;
  display: inline-block;
  background: var(--brand);
  vertical-align: middle;
}

.id-upload-card {
  width: 100%;
  aspect-ratio: 1935 / 813;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 18px;
  position: relative;
  overflow: hidden;
  display: block;
  background: transparent;
  box-shadow: 0 12px 24px rgba(242, 107, 33, 0.08);
}

.id-card-preview {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.id-upload-card b {
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  min-height: 34px;
  padding: 0 16px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  color: #fff;
  background: linear-gradient(135deg, #ff7d4b 0%, #ee4f33 100%);
  font-size: 13px;
  font-weight: 900;
  box-shadow: 0 10px 18px rgba(238, 79, 51, 0.22);
}

.id-upload-card.uploaded {
  background: transparent;
}

.id-upload-card.uploaded b {
  background: linear-gradient(135deg, #ff9b62 0%, #f26b21 100%);
}

.idphoto-help {
  margin: 34px 0 0;
  text-align: center;
  color: #9aa3b2;
  font-size: 14px;
}

.idphoto-help button {
  color: var(--brand-deep);
}

.realname-form {
  margin-top: 16px;
  display: grid;
  gap: 14px;
}

.loan-summary-card,
.loan-info-card,
.repay-card {
  margin: 14px 16px 0;
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.loan-summary-card {
  min-height: 112px;
  padding: 18px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.loan-summary-card h2 {
  margin: 0 0 8px;
  color: #26313f;
  font-size: 18px;
  font-weight: 850;
  line-height: 1.3;
}

.loan-summary-card strong {
  color: #f26b21;
  font-size: 34px;
  font-weight: 900;
  line-height: 1;
}

.loan-summary-card > span {
  flex: 0 0 auto;
  color: var(--brand-deep);
  font-size: 14px;
  font-weight: 850;
  line-height: 1.8;
}

.loan-info-card {
  padding: 17px 18px;
}

.loan-info-card h3 {
  margin: 0 0 18px;
  color: #26313f;
  font-size: 18px;
  font-weight: 900;
}

.loan-info-list {
  display: grid;
  gap: 13px;
}

.loan-info-list div,
.loan-info-list button {
  min-height: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #27313f;
  background: transparent;
  font-size: 14px;
  text-align: left;
}

.loan-info-list span {
  color: #27313f;
}

.loan-info-list b {
  color: #27313f;
  font-weight: 500;
  text-align: right;
}

.repay-card {
  overflow: hidden;
}

.repay-tabs {
  height: 52px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #f7f3ee;
}

.repay-tabs button {
  color: #6c7480;
  background: transparent;
  font-size: 16px;
}

.repay-tabs button.active {
  color: var(--brand-deep);
  background: #fff;
}

.repay-plan {
  padding: 20px 36px 24px;
  display: grid;
  gap: 24px;
}

.repay-row {
  display: grid;
  grid-template-columns: 52px 16px 1fr;
  align-items: start;
  gap: 10px;
  position: relative;
}

.repay-row:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 59px;
  top: 14px;
  bottom: -26px;
  width: 1px;
  background: rgba(236, 226, 216, 0.9);
}

.repay-row div strong,
.repay-row b {
  color: #27313f;
  font-size: 16px;
  font-weight: 850;
}

.repay-row div span {
  display: block;
  margin-top: 2px;
  color: #9aa3af;
  font-size: 12px;
}

.repay-row i {
  width: 6px;
  height: 6px;
  margin-top: 8px;
  border-radius: 50%;
  background: #93a0ad;
  position: relative;
  z-index: 1;
}

.repay-row b {
  padding-top: 2px;
}

.record-empty {
  min-height: 128px;
  display: grid;
  place-items: center;
  color: #9aa3af;
  font-size: 14px;
}

.bottom-actions {
  position: fixed;
  left: 50%;
  bottom: 0;
  width: 100%;
  max-width: 430px;
  transform: translateX(-50%);
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  background: #fff;
  border-top: 1px solid var(--line);
  z-index: 20;
}

.bottom-actions button {
  width: 100%;
  height: 48px;
}

.bottom-actions .full-detail-action {
  grid-column: 1 / -1;
  border-radius: 999px;
}

.profile-head {
  min-height: 178px;
  padding: 38px 18px 18px;
  color: #fff;
  background: linear-gradient(145deg, var(--brand), #ffb06c);
}

.profile-head h1 {
  margin: 0;
  font-size: 19px;
}

.profile-card {
  margin-top: 18px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.avatar {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: linear-gradient(180deg, #ffffff 0%, #fff3eb 100%);
}

.avatar img {
  width: 58px;
  height: 58px;
  object-fit: contain;
}

.profile-card strong {
  display: block;
  margin-bottom: 8px;
  font-size: 21px;
}

.profile-card span {
  height: 24px;
  padding: 0 9px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.22);
  font-size: 12px;
  font-weight: 850;
}

.menu {
  padding: 14px;
  display: grid;
  gap: 12px;
}

.menu-group {
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}

.menu-row {
  width: 100%;
  min-height: 54px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  background: #fff;
  font-size: 15px;
  font-weight: 850;
}

.menu-row:last-child {
  border-bottom: 0;
}

.menu-row span {
  display: flex;
  align-items: center;
  gap: 10px;
}

.menu-row i {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-style: normal;
  background: transparent;
}

.menu-row i img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.menu-row b {
  color: var(--light);
  font-size: 20px;
}

.logout {
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--red);
  background: #fff;
  font-size: 16px;
  font-weight: 900;
}

.legal-links {
  padding: 2px 0 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.legal-links button {
  color: var(--light);
  font-size: 12px;
}

.legal-links i {
  width: 1px;
  height: 12px;
  background: #ddd5ce;
}

.password-panel {
  min-height: calc(100vh - 58px);
  padding: 16px;
  background:
    radial-gradient(circle at 14% 2%, rgba(255, 174, 108, 0.14), transparent 28%),
    linear-gradient(180deg, #fffaf6 0%, var(--bg) 42%, var(--bg) 100%);
}

.password-form {
  padding: 4px 0 0;
  display: grid;
  gap: 14px;
}

.field-row {
  min-height: 62px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  display: grid;
  grid-template-columns: 96px 1fr;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-sm);
}

.field-row span {
  color: var(--text);
  font-size: 15px;
  font-weight: 900;
}

.field-row input {
  width: 100%;
  min-width: 0;
  height: 42px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 15px;
}

.field-row input::placeholder {
  color: var(--light);
}

.field-row:focus-within {
  border-color: rgba(242, 107, 33, 0.46);
  box-shadow: 0 10px 22px rgba(242, 107, 33, 0.11);
}

.password-form .full-btn {
  margin-top: 8px;
  border-radius: 14px;
}

.tabbar {
  position: fixed;
  left: 50%;
  bottom: 0;
  width: 100%;
  max-width: 430px;
  height: calc(74px + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: center;
  background: #fff;
  border-top: 1px solid var(--line);
  z-index: 30;
}

.tabbar.hidden {
  display: none;
}

.tab {
  height: 74px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: var(--light);
  font-size: 12px;
  font-weight: 850;
}

.tab.active {
  color: var(--brand);
}

.tab i {
  font-style: normal;
  font-size: 20px;
  position: relative;
}

.tab i img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  opacity: 0.72;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.tab .active-icon {
  display: none;
}

.tab .normal-icon {
  display: block;
}

.tab.active .active-icon {
  display: block;
}

.tab.active .normal-icon {
  display: none;
}

.tab.active i img {
  opacity: 1;
  transform: translateY(-1px);
}

.tab.center i {
  width: 52px;
  height: 52px;
  margin-top: -24px;
  border: 5px solid #fff;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, #ffffff 0%, #fff3eb 100%);
  box-shadow: 0 10px 18px rgba(244, 123, 42, 0.2);
}

.tab.center i img {
  width: 38px;
  height: 38px;
  filter: none;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 96px;
  max-width: 310px;
  padding: 10px 14px;
  border-radius: 20px;
  transform: translateX(-50%);
  color: #fff;
  background: rgba(31, 35, 41, 0.88);
  font-size: 13px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 60;
}

.toast.show {
  opacity: 1;
}

.modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: flex-end;
  justify-content: center;
  background: rgba(0, 0, 0, 0.42);
  z-index: 70;
}

.modal.show {
  display: flex;
}

.sheet {
  width: 100%;
  max-width: 430px;
  padding: 20px 16px calc(16px + env(safe-area-inset-bottom));
  border-radius: 18px 18px 0 0;
  background: #fff;
}

.sheet h2 {
  margin: 0 0 10px;
  font-size: 19px;
}

.sheet p {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.sheet-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.sheet-actions button {
  width: 100%;
}

@media (min-width: 760px) {
  body {
    padding: 28px 0;
  }

  .app-shell {
    min-height: 896px;
    border-radius: 28px;
    overflow: hidden;
  }
}

/* Visual polish v2 */
:root {
  --brand: #f26b21;
  --brand-deep: #d94f15;
  --brand-soft: #fff3ea;
  --text: #141820;
  --muted: #667085;
  --light: #98a2b3;
  --bg: #f6f3ef;
  --line: #ece5dd;
  --surface: rgba(255, 255, 255, 0.92);
  --shadow-sm: 0 8px 20px rgba(24, 28, 35, 0.06);
  --shadow-md: 0 16px 36px rgba(24, 28, 35, 0.11);
  --shadow-brand: 0 14px 26px rgba(242, 107, 33, 0.24);
}

body {
  background:
    linear-gradient(180deg, #eef2f7 0%, #e6ebf2 100%);
}

button {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

button:active,
.agreement-card:active,
.service-card:active,
.contract-card:active,
.menu-row:active {
  transform: scale(0.985);
}

.app-shell {
  background:
    linear-gradient(180deg, #fbf7f2 0%, #f5f1ec 48%, #f4f5f7 100%);
}

.page {
  padding-bottom: calc(96px + env(safe-area-inset-bottom));
}

.hero {
  min-height: 248px;
  padding: 0 22px 18px;
  border-radius: 0 0 28px 28px;
  display: flex;
  align-items: center;
  background:
    linear-gradient(90deg, rgba(255, 247, 239, 0.98) 0%, rgba(255, 247, 239, 0.9) 38%, rgba(255, 247, 239, 0.24) 68%, rgba(255, 247, 239, 0.05) 100%),
    url("./assest/hero-banner.jpg") 57% center / cover no-repeat;
}

.hero-copy {
  width: 52%;
  min-width: 190px;
  position: relative;
  z-index: 1;
  transform: translateY(8px);
}

.hero h1 {
  color: #d74f16;
  font-size: 32px;
  line-height: 1.12;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.35);
}

.hero p {
  width: fit-content;
  max-width: 100%;
  margin-top: 16px;
  padding: 7px 11px;
  border: 1px solid rgba(255, 213, 184, 0.72);
  border-radius: 999px;
  color: #5b4033;
  background: rgba(255, 255, 255, 0.58);
  box-shadow: 0 8px 18px rgba(179, 91, 32, 0.08);
  font-size: 12px;
  font-weight: 750;
  line-height: 1.2;
  white-space: nowrap;
}

.notice {
  height: 54px;
  margin: -12px 16px 0;
  padding: 0 14px;
  border: 0;
  border-radius: 12px;
  color: #667085;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 250, 246, 0.84));
  box-shadow: 0 12px 30px rgba(153, 89, 42, 0.07);
  position: relative;
  z-index: 2;
}

.bottom-hint {
  margin: 20px 0 calc(18px + env(safe-area-inset-bottom));
  color: #b0a8a0;
  font-size: 12px;
  line-height: 1;
  text-align: center;
  letter-spacing: 0;
}

.bottom-hint::before,
.bottom-hint::after {
  content: "";
  display: inline-block;
  width: 38px;
  height: 1px;
  margin: 0 10px 4px;
  background: linear-gradient(90deg, transparent, rgba(176, 168, 160, 0.42));
}

.bottom-hint::after {
  background: linear-gradient(90deg, rgba(176, 168, 160, 0.42), transparent);
}

.block {
  padding: 20px 16px 0;
}

.block-title {
  margin-bottom: 12px;
}

.block-title strong {
  font-size: 21px;
  letter-spacing: 0;
}

.block-title span {
  color: #7b8494;
  font-size: 13px;
}

.card,
.contract-card,
.info-list,
.timeline,
.file-row,
.menu-group,
.logout,
.empty-card {
  border-color: rgba(232, 222, 213, 0.86);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(10px);
}

.auth-card {
  min-height: 96px;
  padding: 18px;
  border-radius: 14px;
  position: relative;
  overflow: hidden;
}

.auth-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 18px;
  width: 4px;
  height: 48px;
  border-radius: 0 8px 8px 0;
  background: linear-gradient(180deg, #ff9b55, #f26b21);
}

.card h2,
.auth-status h2 {
  font-size: 17px;
  letter-spacing: 0;
}

.auth-card h2 span {
  margin-left: 8px;
  color: #7b8494;
  font-size: 13px;
  font-weight: 650;
  white-space: nowrap;
}

.card p,
.auth-status p {
  color: #6f7785;
}

.primary {
  border-radius: 10px;
  background: linear-gradient(135deg, #ff8a3d 0%, #f26b21 100%);
  box-shadow: 0 8px 18px rgba(242, 107, 33, 0.23);
}

.secondary {
  border-radius: 10px;
  background: #fff1e8;
}

.outline {
  border-radius: 10px;
}

.agreement-card {
  min-height: 104px;
  padding: 18px;
  border: 1px solid rgba(255, 204, 167, 0.72);
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(255, 244, 234, 0.94), rgba(255, 156, 88, 0.92)),
    radial-gradient(circle at 92% 16%, rgba(255, 255, 255, 0.75), transparent 28%);
  box-shadow: 0 14px 30px rgba(242, 107, 33, 0.16);
  overflow: hidden;
  position: relative;
}

.agreement-card::after {
  content: "";
  position: absolute;
  right: -22px;
  bottom: -34px;
  width: 118px;
  height: 86px;
  border-radius: 60px 0 0 0;
  background: rgba(255, 255, 255, 0.16);
}

.agreement-card strong {
  font-size: 21px;
  color: #d94f15;
}

.agreement-card small {
  color: #6d4531;
}

.agreement-card b {
  width: 58px;
  height: 58px;
  flex: 0 0 58px;
  box-shadow: 0 10px 24px rgba(148, 74, 28, 0.18);
  position: relative;
  z-index: 1;
}

.service-grid {
  gap: 12px;
}

.service-card {
  min-height: 122px;
  padding: 16px 12px;
  border-color: rgba(232, 222, 213, 0.86);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-sm);
}

.service-card i {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: #fff4ec;
  box-shadow: inset 0 0 0 1px rgba(255, 217, 190, 0.8);
}

.service-card i img {
  width: 34px;
  height: 34px;
}

.service-card strong {
  font-size: 16px;
}

.service-card span {
  color: #7b8494;
}

.nav-head {
  height: 60px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  border-bottom-color: rgba(232, 222, 213, 0.85);
}

.filter-bar {
  height: 58px;
  padding: 12px 14px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  overflow: visible;
  background: rgba(255, 255, 255, 0.84);
  backdrop-filter: blur(12px);
}

.chip {
  height: 34px;
  width: 100%;
  padding: 0 5px;
  border-radius: 999px;
  gap: 4px;
  background: #fffaf6;
  color: #b85c2f;
  font-size: 12px;
  box-shadow: inset 0 0 0 1px rgba(242, 107, 33, 0.14);
}

.chip.active {
  color: #ffffff;
  background: linear-gradient(135deg, #ff8a3d 0%, #f26621 100%);
  box-shadow: 0 8px 16px rgba(242, 107, 33, 0.22);
}

.contract-list {
  padding: 16px;
}

.contract-card {
  margin-bottom: 14px;
  padding: 17px;
  border-radius: 14px;
}

.contract-title {
  font-size: 17px;
}

.tag {
  height: 26px;
  border-radius: 999px;
}

.meta {
  gap: 9px;
  color: #717987;
}

.card-actions {
  margin-top: 16px;
}

.detail-hero,
.profile-head {
  background:
    linear-gradient(135deg, rgba(242, 107, 33, 0.96), rgba(255, 176, 108, 0.96)),
    url("./assest/hero-bg.png") center / cover no-repeat;
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.18);
}

.detail-hero {
  border-radius: 0 0 24px 24px;
}

.info-list,
.timeline {
  border-radius: 14px;
}

.bottom-actions {
  padding-top: 14px;
  border-top: 1px solid rgba(232, 222, 213, 0.86);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px);
}

.profile-head {
  min-height: 190px;
  padding: 54px 18px 22px;
  border-radius: 0 0 28px 28px;
}

.profile-head {
  background:
    linear-gradient(90deg, rgba(242, 107, 33, 0.34), rgba(255, 176, 108, 0.08)),
    url("./assest/profile-banner.jpg") right center / cover no-repeat;
}

.avatar {
  border: 3px solid rgba(255, 255, 255, 0.86);
  box-shadow: 0 12px 26px rgba(131, 58, 18, 0.18);
}

.profile-card span {
  background: rgba(255, 255, 255, 0.25);
}

.menu {
  padding: 18px 16px;
  gap: 14px;
}

.menu-group {
  border-radius: 14px;
}

.menu-row {
  min-height: 58px;
  padding: 0 16px;
}

.menu-row i {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: #fff4ec;
  box-shadow: inset 0 0 0 1px rgba(255, 217, 190, 0.86);
}

.menu-row i img {
  width: 30px;
  height: 30px;
}

.menu-row .menu-auth-icon {
  position: relative;
  overflow: hidden;
}

.menu-row .menu-auth-icon img {
  display: block;
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.menu-row .menu-auth-icon::before {
  content: none;
}

.menu-row .menu-auth-icon::after {
  content: none;
}

.logout {
  height: 52px;
  border-radius: 14px;
  color: #df3f45;
}

.tabbar {
  height: calc(82px + env(safe-area-inset-bottom));
  border-top: 1px solid rgba(232, 222, 213, 0.86);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(18px);
  box-shadow: 0 -12px 34px rgba(24, 28, 35, 0.07);
}

.tab {
  height: 82px;
  gap: 5px;
}

.tab i img {
  width: 30px;
  height: 30px;
}

.tab.center i {
  width: 58px;
  height: 58px;
  margin-top: -28px;
  background: linear-gradient(180deg, #ffffff 0%, #fff0e7 100%);
  box-shadow: 0 14px 26px rgba(242, 107, 33, 0.22);
}

.tab.center i img {
  width: 44px;
  height: 44px;
  filter: none;
}

.toast {
  border-radius: 999px;
}

.sheet {
  border-radius: 22px 22px 0 0;
}

@media (prefers-reduced-motion: no-preference) {
  .page.active {
    animation: pageIn 180ms ease-out;
  }

  @keyframes pageIn {
    from {
      opacity: 0;
      transform: translateY(6px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}

.contract-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 0;
}

.summary-main {
  min-width: 0;
  display: grid;
  gap: 8px;
}

.summary-amount {
  display: flex;
  align-items: baseline;
  gap: 6px;
  color: #3f454d;
  font-size: 14px;
  line-height: 1.2;
}

.summary-amount span {
  font-weight: 650;
}

.summary-amount strong {
  color: #252b33;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0;
}

.summary-time {
  color: #a1a8b3;
  font-size: 13px;
  line-height: 1.2;
  white-space: nowrap;
}

.summary-side {
  min-width: 80px;
  display: grid;
  justify-items: end;
}

.summary-action {
  height: 30px;
  padding: 0 15px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, #ff8a3d, #f26b21);
  box-shadow: 0 8px 16px rgba(242, 107, 33, 0.22);
  font-size: 12px;
  font-weight: 800;
  line-height: 30px;
  white-space: nowrap;
}

.agreement-card {
  min-height: 94px;
  border: 0;
  background-image:
    linear-gradient(90deg, rgba(255, 253, 249, 0.99) 0%, rgba(255, 253, 249, 0.94) 40%, rgba(255, 253, 249, 0.46) 62%, rgba(255, 253, 249, 0.1) 78%),
    url("./assest/card-sign-agreement.jpg");
  background-position: center, center;
  background-size: auto, auto 112%;
  background-repeat: no-repeat;
  background-clip: padding-box;
  box-shadow: 0 7px 18px rgba(167, 98, 52, 0.045);
}

.agreement-card::after,
.agreement-card b {
  display: none;
}

.agreement-card > span {
  max-width: 62%;
}

.agreement-card strong {
  color: #d94f15;
}

.agreement-card small {
  color: #6f5f55;
}

.service-card-image {
  position: relative;
  overflow: hidden;
  justify-content: flex-end;
  align-items: center;
  min-height: 128px;
  padding: 78px 10px 12px;
  border-color: rgba(255, 247, 239, 0.96);
  text-align: center;
  isolation: isolate;
  background-position: center top;
  background-size: 100% 100%;
  background-repeat: no-repeat;
  filter: saturate(0.92) brightness(1.06);
  box-shadow: 0 8px 18px rgba(167, 98, 52, 0.04);
}

.service-card-image::before {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 48%;
  background: linear-gradient(180deg, rgba(255, 253, 248, 0), rgba(255, 251, 246, 0.86) 28%, rgba(255, 253, 249, 0.98) 68%);
  pointer-events: none;
  z-index: 0;
}

.customer-service-card {
  background-image: url("./assest/card-customer-service.jpg");
}

.risk-query-card {
  background-image: url("./assest/card-risk-query.jpg");
}

.service-card-image i {
  display: none;
}

.service-card-image strong,
.service-card-image span {
  position: relative;
  z-index: 1;
}

.service-card-image strong {
  color: #805844;
  line-height: 1.1;
  font-size: 15px;
  font-weight: 850;
}

.service-card-image span {
  max-width: 100%;
  color: #a79a91;
  font-size: 10.5px;
  line-height: 1.25;
}

@media (max-width: 390px) {
  .hero {
    min-height: 242px;
    padding: 0 20px 18px;
  }

  .hero h1 {
    font-size: 29px;
  }

  .hero h1 span:nth-child(2) {
    padding-left: 14px;
  }

  .hero p {
    padding: 6px 9px;
    font-size: 11px;
  }

  .auth-card {
    padding: 16px 14px;
    gap: 10px;
  }

  .auth-card .primary {
    min-width: 78px;
    padding: 0 12px;
  }

  .card h2,
  .auth-status h2 {
    font-size: 16px;
  }

  .card p,
  .auth-status p {
    font-size: 12px;
  }

  .agreement-card {
    padding: 16px 14px;
  }

  .agreement-card b {
    width: 52px;
    height: 52px;
    flex-basis: 52px;
  }

  .agreement-card b img {
    width: 38px;
    height: 38px;
  }

  .service-card {
    min-height: 116px;
  }

  .contract-summary {
    gap: 8px;
  }

  .contract-summary .meta-row {
    font-size: 12px;
  }

  .summary-side {
    min-width: 74px;
  }

  .summary-side strong {
    font-size: 16px;
  }
}
