/* ===== Design system · 专业消费金融风 ===== */
:root {
  --primary: #1677ff;
  --primary-deep: #0958d9;
  --primary-soft: #e8f3ff;
  --primary-grad: linear-gradient(145deg, #3b8cff 0%, #1677ff 48%, #0958d9 100%);
  --bg: #f3f5f9;
  --bg-elevated: #ffffff;
  --text: #1f2329;
  --text-2: #4e5969;
  --muted: #86909c;
  --border: #e5e6eb;
  --border-soft: #f2f3f5;
  --danger: #f53f3f;
  --danger-soft: #ffece8;
  --ok: #00b42a;
  --ok-soft: #e8ffea;
  --warn: #ff7d00;
  --warn-soft: #fff7e8;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .04);
  --shadow: 0 8px 24px rgba(15, 23, 42, .06);
  --shadow-lg: 0 16px 40px rgba(22, 119, 255, .18);
  --radius: 16px;
  --radius-sm: 12px;
  --tab-h: 56px;
  --safe-b: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  font-family: "PingFang SC", "SF Pro Display", -apple-system, BlinkMacSystemFont,
    "Segoe UI", "Helvetica Neue", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
a { color: inherit; text-decoration: none; }
button, input { font-family: inherit; }
.num {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
  letter-spacing: -0.02em;
}

.page {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  background: var(--bg);
  padding-bottom: calc(var(--tab-h) + var(--safe-b) + 8px);
  position: relative;
}
.page--notab { padding-bottom: 0; }
body.body-cs {
  height: 100%;
  overflow: hidden;
  background: #fff;
}
body.body-cs .page--cs {
  height: 100vh;
  height: 100dvh;
  max-height: 100vh;
  max-height: 100dvh;
  overflow: hidden;
  padding-bottom: 0;
  background: #fff;
}

/* ===== Tabbar ===== */
.tabbar {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  width: 100%;
  max-width: 480px;
  height: calc(var(--tab-h) + var(--safe-b));
  padding-bottom: var(--safe-b);
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-top: 1px solid rgba(0, 0, 0, .06);
  display: flex;
  align-items: stretch;
  justify-content: space-around;
  z-index: 100;
  box-shadow: 0 -4px 20px rgba(15, 23, 42, .04);
}
.tab-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 500;
  color: var(--muted);
  flex: 1;
  gap: 2px;
  transition: color .15s ease;
}
.tab-icon {
  width: 22px;
  height: 22px;
  color: inherit;
  display: block;
  opacity: .85;
}
.tab-item.active {
  color: var(--primary);
}
.tab-item.active .tab-icon { opacity: 1; }

/* ===== Top nav ===== */
.nav {
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-soft);
  position: sticky;
  top: 0;
  z-index: 50;
}
.nav .back {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  color: var(--text);
  padding: 0;
  margin-left: -6px;
  cursor: pointer;
  border-radius: 50%;
}
.nav .back:active { background: rgba(0, 0, 0, .05); }
.nav .back svg { width: 22px; height: 22px; display: block; }
.nav .title { font-size: 17px; font-weight: 600; letter-spacing: .02em; }
.nav .right-placeholder { width: 32px; }

/* ===== Home ===== */
.home {
  padding: 0 0 calc(12px + var(--safe-b));
  background:
    radial-gradient(120% 60% at 50% -10%, rgba(22, 119, 255, .16), transparent 55%),
    var(--bg);
}

.top-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px 10px;
}
.brand-lockup { display: flex; align-items: center; gap: 10px; }
.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--primary-grad);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -.02em;
  box-shadow: var(--shadow-lg);
  flex-shrink: 0;
}
.brand-logo {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  object-fit: cover;
  display: block;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
  background: #fff;
}
.top-header .title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
}
.top-header .sub-title {
  margin-top: 2px;
  font-size: 12px;
  color: var(--muted);
  font-weight: 400;
}
.brand-badge {
  font-size: 11px;
  color: var(--primary);
  background: var(--primary-soft);
  padding: 4px 10px;
  border-radius: 999px;
  font-weight: 500;
}

.hero-wrap { padding: 0 16px 12px; }
.hero-card {
  position: relative;
  overflow: hidden;
  background: var(--primary-grad);
  border-radius: 20px;
  padding: 22px 20px 20px;
  color: #fff;
  box-shadow: var(--shadow-lg);
}
.hero-card::before {
  content: "";
  position: absolute;
  right: -40px;
  top: -50px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .12);
  pointer-events: none;
}
.hero-card::after {
  content: "";
  position: absolute;
  right: 30px;
  bottom: -60px;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .08);
  pointer-events: none;
}
.hero-card--overdue {
  background: linear-gradient(145deg, #ff6b6b 0%, #f53f3f 45%, #cb2634 100%);
  box-shadow: 0 16px 40px rgba(245, 63, 63, .22);
}
.hero-card--settled {
  background: linear-gradient(145deg, #23c343 0%, #00b42a 50%, #009a29 100%);
  box-shadow: 0 16px 40px rgba(0, 180, 42, .2);
}
.hero-eyebrow {
  position: relative;
  z-index: 1;
  font-size: 13px;
  opacity: .88;
  margin-bottom: 6px;
}
.hero-hello {
  position: relative;
  z-index: 1;
  font-size: 15px;
  font-weight: 500;
  opacity: .95;
  margin-bottom: 18px;
}
.hero-label {
  position: relative;
  z-index: 1;
  font-size: 12px;
  opacity: .85;
  margin-bottom: 6px;
}
.hero-amount {
  position: relative;
  z-index: 1;
  font-size: 40px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -.03em;
  font-variant-numeric: tabular-nums;
}
.hero-amount .unit {
  font-size: 16px;
  font-weight: 500;
  margin-left: 4px;
  opacity: .9;
}
.hero-meta {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 16px;
  margin-top: 14px;
  font-size: 12px;
  opacity: .9;
}
.hero-meta span { display: inline-flex; align-items: center; gap: 4px; }
.hero-btn {
  position: relative;
  z-index: 1;
  margin-top: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 46px;
  border-radius: 23px;
  border: none;
  background: #fff;
  color: var(--primary-deep);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .08);
  transition: transform .12s ease;
}
.hero-btn:active { transform: scale(.98); }
.hero-btn--overdue { background: #fff; color: #cb2634; }
.hero-btn--ghost {
  background: rgba(255, 255, 255, .16);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .35);
  box-shadow: none;
  margin-top: 10px;
}
.hero-foot {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 14px;
  font-size: 11px;
  opacity: .75;
  letter-spacing: .08em;
}
.hero-foot-text { padding: 0 10px; white-space: nowrap; }
.hero-line { flex: 1; max-width: 56px; height: 1px; background: rgba(255, 255, 255, .35); }
.overdue-name, .settled-name {
  position: relative; z-index: 1;
  font-size: 15px; font-weight: 500; opacity: .95; margin-bottom: 8px;
}
.overdue-tip, .settled-tip {
  position: relative; z-index: 1;
  font-size: 22px; font-weight: 700; margin-bottom: 8px;
}
.overdue-amount {
  position: relative; z-index: 1;
  font-size: 28px; font-weight: 700;
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
}
.settled-desc {
  position: relative; z-index: 1;
  font-size: 13px; opacity: .85; margin-bottom: 8px;
}

.home-body { padding: 0 16px; }

.notice {
  display: flex;
  align-items: center;
  padding: 10px 14px;
  background: var(--warn-soft);
  border: 1px solid rgba(255, 125, 0, .12);
  border-radius: 12px;
  margin-bottom: 14px;
  font-size: 12px;
  color: #a85500;
  overflow: hidden;
}
.horn-icon { width: 16px; height: 16px; margin-right: 8px; color: var(--warn); flex-shrink: 0; }
.notice-scroll-wrapper { flex: 1; height: 20px; overflow: hidden; position: relative; }
.notice-scroll-content { position: absolute; top: 0; left: 0; right: 0; }
.notice-item {
  height: 20px;
  line-height: 20px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.entry-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px 0;
  background: var(--bg-elevated);
  border-radius: var(--radius);
  padding: 16px 8px 12px;
  margin-bottom: 14px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(255, 255, 255, .8);
}
.entry-item {
  text-align: center;
  padding: 8px 4px 10px;
  border-radius: 12px;
  transition: background .15s;
}
.entry-item:active { background: var(--border-soft); }
.entry-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  margin: 0 auto 8px;
  background: var(--primary-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.entry-icon img { width: 100%; height: 100%; object-fit: cover; display: block; }
.entry-text { font-size: 12px; color: var(--text-2); font-weight: 500; }

.impact-card,
.section-card {
  background: var(--bg-elevated);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 14px;
  box-shadow: var(--shadow-sm);
}
.impact-title,
.section-title {
  font-size: 16px;
  font-weight: 650;
  margin: 0 0 14px;
  color: var(--text);
  letter-spacing: .01em;
}
.section-title { text-align: left; }
.impact-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.impact-item {
  text-align: center;
  font-size: 11px;
  color: var(--text-2);
  padding: 6px 2px;
  border-radius: 12px;
  background: transparent;
}
.impact-item:active { background: var(--border-soft); }
.impact-img {
  width: 40px;
  height: 40px;
  display: block;
  margin: 0 auto 8px;
  border-radius: 10px;
  object-fit: contain;
  background: transparent;
}
.impact-text { line-height: 1.35; }

.detail-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  font-size: 13px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-soft);
  gap: 16px;
}
.detail-row:last-child { border-bottom: none; padding-bottom: 0; }
.detail-row:first-of-type { padding-top: 0; }
.detail-row .label { color: var(--muted); flex-shrink: 0; }
.detail-row .value { color: var(--text); text-align: right; font-weight: 500; }
.sub-title {
  margin: 18px 0 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}
.about-img, .partners img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
}

.steps-card {
  margin-bottom: 14px;
  padding: 18px 16px 14px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, #eef5ff, #f7faff);
  border: 1px solid rgba(22, 119, 255, .08);
}
.steps-row { display: flex; width: 100%; justify-content: space-between; align-items: center; }
.steps-row--icons { margin-bottom: 10px; }
.steps-col { display: flex; justify-content: center; align-items: center; flex: 0 0 72px; }
.steps-icon { width: 44px; height: 44px; display: block; }
.steps-arrow { width: 18px; height: auto; opacity: .45; }
.steps-text-col { display: flex; flex-direction: column; align-items: center; flex: 1; }
.steps-time { font-size: 14px; color: var(--primary-deep); margin: 0 0 4px; font-weight: 650; }
.steps-desc { font-size: 12px; color: var(--text-2); margin: 0; }

/* ===== Login ===== */
.login-page {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(90% 50% at 50% 0%, rgba(22, 119, 255, .14), transparent 60%),
    var(--bg);
  padding-bottom: 0;
}
.login-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 28px 20px 8px;
}
.login-brand-logo {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  object-fit: cover;
  display: block;
  background: #fff;
  box-shadow: var(--shadow);
}
.login-brand-mark {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: var(--primary-grad);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  font-weight: 700;
  box-shadow: var(--shadow-lg);
}
.login-brand-name {
  margin-top: 14px;
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: .02em;
}
.login-brand-slogan {
  margin-top: 6px;
  font-size: 13px;
  color: var(--muted);
}
.login-hero {
  padding: 36px 20px 12px;
}
.login-hero h1 {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: .01em;
}
.login-hero p {
  margin: 8px 0 0;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}
.feature-wrapper { margin: 12px 16px 16px; }
.feature-img {
  width: 100%;
  display: block;
  border-radius: 16px;
  box-shadow: var(--shadow);
}
.form-card {
  background: var(--bg-elevated);
  margin: 0 16px;
  border-radius: var(--radius);
  padding: 4px 16px 4px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0, 0, 0, .03);
}
#stepPhone:not([hidden]) {
  margin-top: 8px;
}
.login-agree {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 14px 20px 0;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
  cursor: pointer;
  user-select: none;
}
.login-agree[hidden] { display: none !important; }
.login-agree input {
  margin-top: 2px;
  width: 16px;
  height: 16px;
  accent-color: var(--primary);
  flex-shrink: 0;
}
.login-agree-text a {
  color: var(--primary);
  font-weight: 500;
}
.form-row { display: flex; align-items: center; padding: 14px 0; }
.form-row .icon {
  width: 24px; height: 24px; margin-right: 12px;
  display: flex; align-items: center; justify-content: center; color: var(--muted);
}
.form-row .icon svg { width: 20px; height: 20px; fill: currentColor; }
.form-row .input {
  flex: 1; border: none; outline: none; font-size: 16px; color: var(--text); background: transparent;
}
.form-row .input::placeholder { color: #c9cdd4; }
.form-divider { height: 1px; background: var(--border-soft); }
.login-btn {
  margin: 28px 16px 0;
  width: calc(100% - 32px);
  height: 48px;
  border-radius: 24px;
  border: none;
  background: var(--primary-grad);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(22, 119, 255, .28);
}
.login-btn:disabled { opacity: .55; cursor: not-allowed; box-shadow: none; }
.login-btn:active:not(:disabled) { transform: scale(.99); }
.login-footer {
  margin-top: auto;
  padding: 24px 16px calc(20px + env(safe-area-inset-bottom, 0px));
  text-align: center;
  font-size: 13px;
  color: var(--muted);
}
.login-footer a {
  color: var(--primary);
  font-weight: 500;
}
.login-hero[hidden] { display: none !important; }
.login-step .step-tip {
  padding: 14px 0 4px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}
#stepId:not([hidden]) {
  margin-top: 40px;
}
.login-step .step-tip--id {
  padding: 28px 4px 14px;
  font-size: 17px;
  font-weight: 650;
  color: var(--text);
  text-align: center;
  letter-spacing: .02em;
}
.pin-boxes {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 4px 20px;
}
.pin-box {
  flex: 1;
  max-width: 58px;
  height: 58px;
  margin: 0 auto;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  background: #fafbfc;
  text-align: center;
  font-size: 22px;
  font-weight: 650;
  color: var(--text);
  outline: none;
  caret-color: var(--primary);
  font-variant-numeric: tabular-nums;
}
.pin-box:focus {
  border-color: var(--primary);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(22, 119, 255, .15);
}

.captcha-mask {
  position: fixed; inset: 0; z-index: 320;
  background: rgba(15, 23, 42, .48);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.captcha-mask[hidden] { display: none !important; }
.captcha-dialog {
  width: 100%; max-width: 340px;
  background: #fff; border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 48px rgba(0, 0, 0, .22);
}
.captcha-dialog-hd {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 18px;
  border-bottom: 1px solid var(--border-soft);
  font-size: 16px; font-weight: 650; color: var(--text);
}
.captcha-close {
  width: 28px; height: 28px; border: none; background: transparent;
  font-size: 22px; line-height: 1; color: var(--muted); cursor: pointer; padding: 0;
}
.captcha-dialog-bd { padding: 12px 18px 20px; }

.captcha-panel { margin-top: 8px; user-select: none; -webkit-user-select: none; }
.captcha-bg {
  position: relative;
  height: 140px;
  border-radius: 12px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .18) 25%, transparent 25%) -12px 0 / 24px 24px,
    linear-gradient(225deg, rgba(255, 255, 255, .18) 25%, transparent 25%) -12px 0 / 24px 24px,
    linear-gradient(45deg, rgba(255, 255, 255, .18) 25%, transparent 25%) 0 0 / 24px 24px,
    linear-gradient(135deg, #5b8def, #1677ff 45%, #6aa1ff);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .15);
}
.captcha-notch {
  position: absolute;
  top: 42px;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: rgba(0, 0, 0, .28);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .2);
  pointer-events: none;
}
.captcha-piece {
  position: absolute;
  top: 42px;
  left: 0;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: linear-gradient(145deg, #fff, #e8f1ff);
  box-shadow: 0 4px 12px rgba(0, 0, 0, .25), inset 0 0 0 1px rgba(255, 255, 255, .8);
  will-change: transform;
}
.captcha-track {
  position: relative;
  margin-top: 12px;
  height: 44px;
  border-radius: 22px;
  background: #f2f3f5;
  overflow: hidden;
}
.captcha-track-text {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: var(--muted);
  pointer-events: none;
}
.captcha-slider {
  position: absolute;
  left: 0;
  top: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: 0 2px 8px rgba(0, 0, 0, .12);
  cursor: grab;
  display: flex;
  align-items: center;
  justify-content: center;
  will-change: transform;
  z-index: 2;
}
.captcha-slider::after {
  content: '››';
  color: var(--primary);
  font-size: 16px;
  letter-spacing: -2px;
  font-weight: 700;
  margin-right: 2px;
}
.captcha-slider:active { cursor: grabbing; }
.captcha-panel.ok .captcha-track { background: var(--ok-soft); }
.captcha-panel.ok .captcha-track-text { color: var(--ok); }
.captcha-panel.ok .captcha-slider { border-color: var(--ok); }
.captcha-panel.ok .captcha-slider::after { content: '✓'; color: var(--ok); letter-spacing: 0; }
.captcha-panel.fail .captcha-track { background: var(--danger-soft); }
.captcha-panel.fail .captcha-track-text { color: var(--danger); }

/* ===== Repay ===== */
.repay-page {
  padding: 0 0 calc(16px + var(--safe-b));
  background:
    radial-gradient(100% 40% at 50% 0%, rgba(22, 119, 255, .12), transparent 55%),
    var(--bg);
}
.page-header {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  padding: 18px 20px 8px;
  letter-spacing: .02em;
}
.summary-card {
  background: var(--bg-elevated);
  border-radius: var(--radius);
  margin: 0 16px 14px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid rgba(0, 0, 0, .03);
}
.summary-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--primary-grad);
  color: #fff;
  padding: 14px 16px;
  font-size: 12px;
  font-weight: 500;
}
.summary-amount-block {
  padding: 20px 16px 8px;
  text-align: center;
  border-bottom: 1px solid var(--border-soft);
}
.summary-amount-label {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 6px;
}
.summary-amount-value {
  font-size: 34px;
  font-weight: 700;
  color: var(--danger);
  letter-spacing: -.03em;
  font-variant-numeric: tabular-nums;
  line-height: 1.15;
}
.summary-amount-value.is-settled { color: var(--ok); }
.summary-amount-value .yen { font-size: 18px; font-weight: 600; margin-right: 2px; }
.summary-body { padding: 8px 16px 16px; }
.tag-overdue, .tag-settled {
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 999px;
  font-weight: 600;
}
.tag-overdue { background: rgba(255, 255, 255, .22); color: #fff; }
.tag-settled { background: rgba(255, 255, 255, .22); color: #fff; }
.s-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  padding: 9px 0;
  color: var(--text-2);
  border-bottom: 1px dashed var(--border-soft);
}
.s-row:last-of-type { border-bottom: none; }
.s-row span:last-child {
  color: var(--text);
  font-weight: 550;
  font-variant-numeric: tabular-nums;
}
.s-row.red span:last-child { color: var(--danger); }
.s-row.emphasis {
  margin-top: 4px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  border-bottom: none;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}
.btn-row { display: flex; justify-content: space-between; margin-top: 16px; gap: 10px; }
.btn-primary, .btn-outline, .btn-settled {
  flex: 1;
  height: 44px;
  border-radius: 22px;
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.btn-primary {
  border: none;
  background: var(--primary-grad);
  color: #fff;
  box-shadow: 0 6px 16px rgba(22, 119, 255, .28);
}
.btn-settled {
  border: none;
  background: linear-gradient(145deg, #23c343, #00b42a);
  color: #fff;
}
.btn-outline {
  border: 1.5px solid rgba(22, 119, 255, .35);
  background: var(--primary-soft);
  color: var(--primary-deep);
}
.list-card {
  background: transparent;
  margin: 0 16px;
  padding: 0;
}
.list-title {
  font-size: 15px;
  font-weight: 650;
  margin: 4px 2px 12px;
  color: var(--text);
}
.term-card {
  background: var(--bg-elevated);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  margin-bottom: 10px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, .03);
  border-left: 3px solid var(--danger);
}
.term-card--paid { border-left-color: var(--ok); }
.term-card--overdue { border-left-color: var(--danger); }
.term-container { display: flex; justify-content: space-between; gap: 8px; }
.term-left { flex: 1.6; display: flex; flex-direction: column; gap: 5px; padding: 14px 12px; }
.term-name {
  font-size: 14px;
  font-weight: 650;
  color: var(--text);
  margin: 0 0 2px;
}
.term-row {
  font-size: 12px;
  color: var(--text-2);
  margin: 0;
  line-height: 1.45;
  font-variant-numeric: tabular-nums;
}
.term-right {
  flex: 0 0 92px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-end;
  padding: 12px 12px 12px 0;
}
.term-tag-wrapper { width: 100%; display: flex; justify-content: flex-end; }
.term-tag {
  font-size: 11px;
  color: #fff;
  padding: 3px 8px;
  border-radius: 6px;
  font-weight: 600;
}
.term-tag--overdue { background: var(--danger); }
.term-tag--paid { background: var(--ok); }
.term-btn {
  border: none;
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  background: var(--primary);
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(22, 119, 255, .25);
}

/* ===== Profile ===== */
.profile-page {
  padding: 0 0 calc(24px + var(--safe-b));
  background:
    radial-gradient(100% 45% at 50% 0%, rgba(22, 119, 255, .18), transparent 55%),
    var(--bg);
}
.profile-page > .page-header {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  padding: 18px 20px 6px;
  letter-spacing: .02em;
}
.user-card {
  display: flex;
  align-items: center;
  margin: 12px 16px 12px;
  padding: 20px 18px;
  border-radius: var(--radius);
  background: var(--primary-grad);
  color: #fff;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}
.user-card::after {
  content: "";
  position: absolute;
  right: -20px;
  top: -30px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .12);
}
.avatar {
  width: 56px; height: 56px; border-radius: 50%;
  background: rgba(255, 255, 255, .2);
  display: flex; align-items: center; justify-content: center;
  margin-right: 14px;
  position: relative;
  z-index: 1;
  border: 2px solid rgba(255, 255, 255, .35);
  flex-shrink: 0;
}
.avatar svg { width: 36px; height: 36px; }
.avatar svg path { fill: rgba(255, 255, 255, .9); }
.user-info { position: relative; z-index: 1; flex: 1; min-width: 0; }
.user-info .name { font-size: 18px; font-weight: 700; margin-bottom: 4px; }
.user-info .phone { font-size: 13px; opacity: .85; letter-spacing: .04em; }
.user-status {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 650;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .2);
  color: #fff;
}
.user-status.is-ok { background: rgba(0, 180, 42, .28); }
.user-status.is-danger { background: rgba(245, 63, 63, .35); }
.user-status.is-muted { background: rgba(255, 255, 255, .16); }

.profile-stats {
  display: flex;
  align-items: stretch;
  margin: 0 16px 12px;
  padding: 16px 8px;
  background: var(--bg-elevated);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.profile-stat {
  flex: 1;
  text-align: center;
  padding: 0 6px;
}
.profile-stat-divider {
  width: 1px;
  background: var(--border-soft);
  margin: 4px 0;
}
.profile-stat-label {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 8px;
}
.profile-stat-value {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -.02em;
  line-height: 1.2;
}
.profile-stat-value.is-danger { color: var(--danger); }
.profile-stat-value.is-ok { color: var(--ok); font-size: 15px; }
.profile-stat-unit {
  font-size: 12px;
  font-weight: 500;
  margin-left: 1px;
  color: var(--muted);
}

.profile-empty-loan {
  margin: 0 16px 12px;
  padding: 20px 16px;
  background: var(--bg-elevated);
  border-radius: var(--radius);
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.profile-empty-title {
  font-size: 15px;
  font-weight: 650;
  color: var(--text);
  margin-bottom: 6px;
}
.profile-empty-desc {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 14px;
}
.profile-empty-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 34px;
  padding: 0 18px;
  border-radius: 17px;
  background: var(--primary-soft);
  color: var(--primary-deep);
  font-size: 13px;
  font-weight: 600;
}

.profile-block {
  margin: 12px 16px 0;
  padding: 14px 14px 16px;
  background: var(--bg-elevated);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.profile-block-title {
  font-size: 15px;
  font-weight: 650;
  color: var(--text);
  margin-bottom: 12px;
}
.profile-service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.profile-service {
  text-align: center;
  padding: 8px 4px 4px;
}
.profile-service-icon {
  width: 40px;
  height: 40px;
  margin: 0 auto 8px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
}
.profile-service-icon.is-blue { background: linear-gradient(145deg, #4c9bff, #1677ff); }
.profile-service-icon.is-green { background: linear-gradient(145deg, #34d399, #00b42a); }
.profile-service-icon.is-orange { background: linear-gradient(145deg, #ffb65a, #ff7d00); }
.profile-service-icon.is-red { background: linear-gradient(145deg, #ff7a7a, #f53f3f); }
.profile-service-icon.is-purple { background: linear-gradient(145deg, #a78bfa, #7c3aed); }
.profile-service-text {
  font-size: 12px;
  color: var(--text-2);
  font-weight: 500;
}

.profile-tips {
  margin: 12px 16px 0;
  padding: 14px 16px;
  background: var(--warn-soft);
  border: 1px solid rgba(255, 125, 0, .1);
  border-radius: var(--radius);
}
.profile-tips-title {
  font-size: 14px;
  font-weight: 650;
  color: #a85500;
  margin-bottom: 8px;
}
.profile-tips ul {
  margin: 0;
  padding-left: 18px;
  color: #9a6412;
  font-size: 12px;
  line-height: 1.8;
}

.profile-safe {
  margin: 12px 16px 0;
  padding: 16px;
  border-radius: var(--radius);
  background: linear-gradient(145deg, #eef5ff, #f7faff);
  border: 1px solid rgba(22, 119, 255, .08);
  text-align: center;
}
.profile-safe-title {
  font-size: 13px;
  font-weight: 650;
  color: var(--primary-deep);
  margin-bottom: 12px;
}
.profile-safe-row {
  display: flex;
  justify-content: space-around;
  gap: 8px;
  font-size: 12px;
  color: var(--text-2);
  font-weight: 500;
}
.profile-safe-row span {
  position: relative;
  padding: 0 4px;
}
.profile-logout-wrap {
  margin-top: 12px !important;
}
.menu-list {
  background: var(--bg-elevated);
  border-radius: var(--radius);
  overflow: hidden;
  margin: 0 16px;
  box-shadow: var(--shadow-sm);
}
.menu-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  font-size: 15px;
  font-weight: 500;
  border-bottom: 1px solid var(--border-soft);
  color: var(--text);
}
.menu-item:last-child { border-bottom: none; }
.menu-item:active { background: #f7f8fa; }
.menu-item-main {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.menu-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
  display: block;
}
.menu-icon--svg {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-soft);
  color: var(--primary);
}
.menu-icon--svg svg {
  width: 18px;
  height: 18px;
  display: block;
}
.menu-item .arrow { color: #c9cdd4; font-size: 18px; font-weight: 400; }
.menu-item.logout { color: var(--danger); justify-content: center; font-weight: 600; }
.menu-item.logout .arrow { display: none; }

/* ===== Shared card ===== */
.card {
  background: var(--bg-elevated);
  margin: 12px 16px;
  border-radius: var(--radius);
  padding: 16px 18px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0, 0, 0, .03);
}
.card .s-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  padding: 12px 0;
  color: var(--text-2);
  border-bottom: 1px solid var(--border-soft);
}
.card .s-row:last-child { border-bottom: none; }
.card .s-row span:last-child {
  color: var(--text);
  font-weight: 550;
  font-variant-numeric: tabular-nums;
  text-align: right;
  max-width: 65%;
  word-break: break-all;
}

/* ===== Cashier ===== */
.cashier-page { padding-bottom: calc(24px + var(--safe-b)); background: var(--bg); }
.info-title, .c-section-title {
  font-size: 15px;
  font-weight: 650;
  margin-bottom: 12px;
  color: var(--text);
}
.cashier-page .info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  padding: 8px 0;
  color: var(--text-2);
  border-bottom: 1px dashed var(--border-soft);
}
.cashier-page .info-row:last-child { border-bottom: none; }
.cashier-page .info-row span:last-child {
  color: var(--text);
  font-weight: 550;
  font-variant-numeric: tabular-nums;
}
.cashier-page .info-row.total {
  color: var(--text);
  font-weight: 650;
  font-size: 15px;
  margin-top: 6px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  border-bottom: none;
}
.cashier-page .info-row.total span:last-child { color: var(--danger); font-size: 18px; }
.cashier-page .info-row.penalty span:last-child { color: var(--danger); }
.channel-select {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--border-soft);
  font-size: 14px;
  cursor: pointer;
}
.channel-select-right { color: var(--primary); font-weight: 500; }
.bank-detail { padding-top: 4px; }
.bank-detail .detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--border-soft);
}
.bank-detail .detail-row:last-child { border-bottom: none; }
.bank-detail .label { color: var(--muted); }
.bank-detail .account { display: flex; align-items: center; gap: 8px; font-weight: 550; }
.copy-btn {
  border: none;
  background: var(--primary-soft);
  color: var(--primary-deep);
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}
.qrcode-img { max-width: 180px; display: block; margin: 12px auto; border-radius: 12px; }
.channel-empty { color: var(--muted); font-size: 13px; padding: 12px 0; }
.voucher-tip { font-size: 12px; color: var(--muted); margin-bottom: 12px; }
.voucher-upload {
  width: 108px; height: 108px;
  border: 1.5px dashed #c9cdd4;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  overflow: hidden;
  background: #fafbfc;
}
.voucher-upload .plus { font-size: 32px; color: #c9cdd4; font-weight: 300; }
.voucher-upload img { width: 100%; height: 100%; object-fit: cover; }
.primary-submit-btn {
  width: 100%;
  height: 48px;
  border: none;
  border-radius: 24px;
  background: var(--primary-grad);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(22, 119, 255, .28);
}
.primary-submit-btn:disabled { opacity: .5; box-shadow: none; }
.channel-sheet {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, .45);
  z-index: 200;
  align-items: flex-end;
  justify-content: center;
}
.channel-sheet.show { display: flex; }
.channel-sheet-inner {
  width: 100%;
  max-width: 480px;
  background: #fff;
  border-radius: 20px 20px 0 0;
  padding: 18px 16px calc(16px + var(--safe-b));
  max-height: 60vh;
  overflow: auto;
}
.channel-option {
  padding: 15px 10px;
  border-bottom: 1px solid var(--border-soft);
  font-size: 15px;
  cursor: pointer;
  border-radius: 8px;
}
.channel-option.active {
  color: var(--primary);
  font-weight: 650;
  background: var(--primary-soft);
}

/* ===== Contract / Settlement / Impact ===== */
.doc-page { padding: 0 0 72px; }
.settlement {
  background: #fff;
  margin: 12px 16px;
  padding: 22px 20px;
  border-radius: var(--radius);
  line-height: 1.7;
  font-size: 14px;
  box-shadow: var(--shadow-sm);
}
.seal { max-width: 120px; display: block; margin-top: 16px; }

.contract-page {
  min-height: 100vh;
  background: var(--bg);
  padding-bottom: 20px;
  position: relative;
}
.contract-content {
  background: #ffffff;
  margin: 12px 16px;
  padding: 24px 20px 32px;
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.contract-title {
  font-size: 22px;
  font-weight: 700;
  text-align: center;
  margin: 0 0 24px;
  color: var(--text);
  letter-spacing: 2px;
}
.watermark {
  position: fixed;
  top: 52px;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.watermark-item {
  position: absolute;
  font-size: 12px;
  color: #b8c0d0;
  white-space: nowrap;
  transform: rotate(-45deg);
  opacity: 0.28;
  font-weight: 500;
}
.watermark-item:nth-child(1) { top: 30px; left: -180px; }
.watermark-item:nth-child(2) { top: 30px; left: 40px; }
.watermark-item:nth-child(3) { top: 30px; left: 260px; }
.watermark-item:nth-child(4) { top: 30px; left: 480px; }
.watermark-item:nth-child(5) { top: 110px; left: -180px; }
.watermark-item:nth-child(6) { top: 110px; left: 40px; }
.watermark-item:nth-child(7) { top: 110px; left: 260px; }
.watermark-item:nth-child(8) { top: 110px; left: 480px; }
.watermark-item:nth-child(9) { top: 190px; left: -180px; }
.watermark-item:nth-child(10) { top: 190px; left: 40px; }
.watermark-item:nth-child(11) { top: 190px; left: 260px; }
.watermark-item:nth-child(12) { top: 190px; left: 480px; }
.watermark-item:nth-child(13) { top: 270px; left: -180px; }
.watermark-item:nth-child(14) { top: 270px; left: 40px; }
.watermark-item:nth-child(15) { top: 270px; left: 260px; }
.watermark-item:nth-child(16) { top: 270px; left: 480px; }
.watermark-item:nth-child(17) { top: 350px; left: -180px; }
.watermark-item:nth-child(18) { top: 350px; left: 40px; }
.watermark-item:nth-child(19) { top: 350px; left: 260px; }
.watermark-item:nth-child(20) { top: 350px; left: 480px; }
.watermark-item:nth-child(21) { top: 430px; left: -180px; }
.watermark-item:nth-child(22) { top: 430px; left: 40px; }
.watermark-item:nth-child(23) { top: 430px; left: 260px; }
.watermark-item:nth-child(24) { top: 430px; left: 480px; }
.watermark-item:nth-child(25) { top: 510px; left: -180px; }
.watermark-item:nth-child(26) { top: 510px; left: 40px; }
.watermark-item:nth-child(27) { top: 510px; left: 260px; }
.watermark-item:nth-child(28) { top: 510px; left: 480px; }
.watermark-item:nth-child(29) { top: 590px; left: -180px; }
.watermark-item:nth-child(30) { top: 590px; left: 40px; }
.watermark-item:nth-child(31) { top: 590px; left: 260px; }
.watermark-item:nth-child(32) { top: 590px; left: 480px; }
.watermark-item:nth-child(33) { top: 670px; left: -180px; }
.watermark-item:nth-child(34) { top: 670px; left: 40px; }
.watermark-item:nth-child(35) { top: 670px; left: 260px; }
.watermark-item:nth-child(36) { top: 670px; left: 480px; }
.watermark-item:nth-child(37) { top: 750px; left: -180px; }
.watermark-item:nth-child(38) { top: 750px; left: 40px; }
.watermark-item:nth-child(39) { top: 750px; left: 260px; }
.watermark-item:nth-child(40) { top: 750px; left: 480px; }

.greeting { margin-bottom: 20px; position: relative; z-index: 1; }
.greeting p {
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-2);
  margin: 6px 0;
  text-align: justify;
}
.contract-info { margin-bottom: 20px; position: relative; z-index: 1; }
.contract-info .info-row {
  display: flex;
  align-items: flex-start;
  margin-bottom: 10px;
  font-size: 14px;
  line-height: 1.8;
  position: relative;
  justify-content: flex-start;
  padding: 0;
  border: none;
  color: inherit;
}
.contract-info .info-row .label {
  color: var(--muted);
  min-width: 108px;
  flex-shrink: 0;
}
.contract-info .info-row .value {
  color: var(--text);
  flex: 1;
  word-break: break-all;
  font-weight: 500;
}
.info-row-seal { position: relative; }
.seal-img {
  position: absolute;
  top: -60px;
  left: 40%;
  transform: translateX(-25%);
  width: 110px;
  height: 110px;
  object-fit: contain;
  z-index: 2;
  pointer-events: none;
}
.rate-note {
  position: relative;
  z-index: 1;
  font-size: 14px;
  color: var(--text);
  font-weight: 600;
  margin: 8px 0 20px;
}
.contract-sections { position: relative; z-index: 1; }
.contract-sections .section { margin-bottom: 24px; }
.contract-sections .section-title {
  font-size: 15px;
  font-weight: 650;
  color: var(--text);
  margin: 0 0 10px;
  padding-top: 4px;
  text-align: left;
}
.section-content {
  font-size: 13px;
  line-height: 2;
  color: var(--text-2);
  text-align: justify;
}
.subsection {
  margin: 0 0 8px;
  text-align: justify;
}
.subsection strong {
  font-weight: 650;
  color: var(--text);
}
.impact-page { padding: 12px 16px 72px; }
.impact-page .card { margin: 0; }
.impact-page ul { padding-left: 18px; line-height: 1.8; font-size: 14px; color: var(--text-2); }
.muted { color: var(--muted); font-size: 13px; }

/* ===== Customer service (embedded) ===== */
.cs-page {
  height: 100%;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  background: #fff;
  overflow: hidden;
}
.cs-page .nav {
  position: relative;
  flex: 0 0 48px;
  height: 48px;
  z-index: 2;
}
.cs-frame-wrap {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  background: #f5f6f8;
  overflow: hidden;
}
.cs-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  background: #fff;
}
.cs-empty {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 28px;
  text-align: center;
  background: var(--bg);
}
.cs-empty-title {
  font-size: 18px;
  font-weight: 650;
  color: var(--text);
  margin-bottom: 8px;
}
.cs-empty-desc {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
  word-break: break-all;
}
.cs-call-btn {
  margin-top: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 160px;
  height: 44px;
  padding: 0 24px;
  border-radius: 22px;
  background: var(--primary-grad);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  box-shadow: 0 8px 20px rgba(22, 119, 255, .28);
}

/* ===== Toast dialog ===== */
.toast-mask {
  position: fixed; inset: 0; z-index: 400;
  background: rgba(15, 23, 42, .45);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
}
.toast-mask[hidden] { display: none !important; }
.toast-box {
  width: 100%; max-width: 300px;
  background: #fff; border-radius: 16px;
  overflow: hidden; text-align: center;
  box-shadow: 0 16px 40px rgba(0, 0, 0, .2);
}
.toast-msg {
  padding: 28px 22px 20px;
  font-size: 16px; color: var(--text); line-height: 1.55; font-weight: 500;
}
.toast-actions {
  display: flex;
  border-top: 1px solid var(--border-soft);
}
.toast-btn {
  flex: 1;
  height: 50px;
  border: none;
  background: #fff;
  font-size: 16px;
  font-weight: 550;
  cursor: pointer;
}
.toast-btn + .toast-btn { border-left: 1px solid var(--border-soft); }
.toast-cancel { color: var(--text-2); }
.toast-ok { color: var(--primary); }
.toast-confirm { color: var(--primary); font-weight: 650; }
.toast-btn:active { background: #f7f8fa; }

/* ===== Capsule toast ===== */
.capsule-toast {
  position: fixed;
  left: 50%;
  top: 18%;
  z-index: 450;
  transform: translate(-50%, -8px);
  max-width: calc(100% - 48px);
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(29, 33, 41, .88);
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  text-align: center;
  white-space: nowrap;
  pointer-events: none;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .18);
  opacity: 0;
}
.capsule-toast[hidden] { display: none !important; }
.capsule-toast.is-in {
  opacity: 1;
  transform: translate(-50%, 0);
  transition: opacity .22s ease, transform .22s ease;
}
.capsule-toast.is-out {
  opacity: 0;
  transform: translate(-50%, -6px);
  transition: opacity .2s ease, transform .2s ease;
}

/* profile-info */
.profile-info-page { padding: 12px 16px 72px; }

.agreement-card {
  margin-bottom: 24px;
}
.agreement-meta {
  margin: 0 0 16px !important;
  font-size: 12px !important;
  color: var(--muted) !important;
  line-height: 1.7 !important;
}
.agreement-card h3 {
  margin: 20px 0 10px;
  font-size: 15px;
  font-weight: 650;
  color: var(--text);
}
.agreement-card h3:first-of-type { margin-top: 8px; }
.agreement-card p {
  margin: 0 0 10px;
  font-size: 13px;
  line-height: 1.8;
  color: var(--text-2);
  text-align: justify;
}
.agreement-end {
  margin-top: 24px !important;
  text-align: center !important;
  color: var(--muted) !important;
}
