:root {
  --bg: #f5f7f3;
  --paper: #ffffff;
  --ink: #18251f;
  --muted: #68756e;
  --green: #19aa6b;
  --green-dark: #098354;
  --green-soft: #e7f7ef;
  --warm: #ff8a61;
  --warm-dark: #ee6945;
  --warm-soft: #fff0e9;
  --plan: #ff8a3d;
  --plan-dark: #f06b2f;
  --plan-soft: #fff3ea;
  --plan-line: #ffd9bd;
  --plan-glow: rgba(240, 107, 47, .2);
  --line: #e7ece8;
  --shadow: 0 14px 40px rgba(27, 46, 37, .08);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  color: var(--ink);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  background: #ebeee9;
}

button, textarea {
  font: inherit;
}

button {
  cursor: pointer;
  border: 0;
}

button:disabled {
  opacity: .52;
  cursor: not-allowed;
}

.hidden { display: none !important; }

.phone-shell {
  min-height: 100vh;
  width: 100%;
  max-width: 460px;
  margin: 0 auto;
  background: var(--bg);
  position: relative;
  box-shadow: 0 0 45px rgba(25, 33, 29, .06);
}

.topbar {
  height: 68px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: env(safe-area-inset-top, 0) 18px 0;
  background: rgba(245, 247, 243, .94);
  position: sticky;
  top: 0;
  z-index: 4;
  backdrop-filter: blur(12px);
}

.back {
  width: 32px;
  height: 40px;
  background: transparent;
  color: var(--ink);
  font-size: 36px;
  line-height: 32px;
  margin-right: -6px;
}

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

.account strong {
  display: block;
  font-size: 15px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.account small { color: var(--muted); }

.avatar {
  width: 38px;
  height: 38px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  font-weight: bold;
  color: var(--green-dark);
  background: var(--green-soft);
}

.ghost-icon {
  border-radius: 18px;
  padding: 8px 11px;
  color: var(--green-dark);
  background: var(--green-soft);
  font-size: 13px;
}

.view {
  display: none;
  padding: 12px 18px 28px;
}

.view.active { display: block; }

.hero {
  margin-top: 10px;
  border-radius: 28px;
  background: linear-gradient(145deg, #1cb175, #08764e);
  padding: 25px 22px 22px;
  color: white;
  overflow: hidden;
  position: relative;
}

.hero::after {
  content: "";
  position: absolute;
  width: 150px;
  height: 150px;
  right: -52px;
  top: -54px;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
}

.eyebrow {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
  color: inherit;
  opacity: .76;
}

h1 {
  margin: 0 0 11px;
  font-size: 25px;
  line-height: 1.35;
}

.hero > p:not(.eyebrow) {
  margin: 0;
  color: rgba(255,255,255,.86);
  line-height: 1.6;
  font-size: 14px;
}

.status-row {
  display: flex;
  flex-wrap: wrap;
  margin-top: 20px;
  gap: 7px;
}

.pill {
  border-radius: 20px;
  background: rgba(255,255,255,.2);
  padding: 7px 12px;
  font-size: 12px;
  font-weight: 500;
}

.pill.subtle { background: rgba(0,0,0,.1); }

.welcome-card,
.benefit-card {
  background: var(--paper);
  padding: 18px;
  margin-top: 14px;
  border-radius: 22px;
  box-shadow: var(--shadow);
}

.welcome-card > p {
  color: var(--muted);
  font-size: 13px;
  margin: 0 0 12px;
}

.wechat-instruction {
  border: 1px solid #cdeedc;
  background: #f4fcf8;
  border-radius: 16px;
  padding: 15px;
  margin: 10px 0 12px;
}

.wechat-instruction strong {
  display: block;
  color: var(--green-dark);
  font-size: 16px;
  margin-bottom: 9px;
}

.wechat-instruction span {
  display: block;
  color: var(--muted);
  line-height: 1.7;
  font-size: 13px;
}

.route-card {
  height: 70px;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 32px;
  grid-template-rows: 28px 25px;
  text-align: left;
  align-items: center;
  padding: 9px 10px 8px 15px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 16px;
  margin-top: 10px;
}

.route-card.primary {
  border-color: #cdeedc;
  background: #f4fcf8;
}

.route-card strong {
  font-size: 16px;
  align-self: end;
}

.route-card span {
  grid-column: 1;
  color: var(--muted);
  font-size: 12px;
}

.route-card i {
  font-style: normal;
  font-size: 20px;
  grid-column: 2;
  grid-row: 1 / 3;
  color: var(--green);
}

.benefit-card {
  position: relative;
  padding-bottom: 15px;
  background: linear-gradient(145deg, white, #fff9f5);
}

.benefit-card h2 {
  margin: 0 70px 8px 0;
  font-size: 19px;
}

.benefit-card div > p:not(.eyebrow) {
  color: var(--muted);
  margin: 0 0 16px;
  font-size: 13px;
  line-height: 1.55;
}

.price {
  position: absolute;
  right: 19px;
  top: 36px;
  font-size: 24px;
  font-weight: 700;
  color: var(--warm-dark);
}

.button {
  height: 48px;
  border-radius: 15px;
  color: white;
  background: var(--green);
  font-weight: 600;
  padding: 0 20px;
}

.button.warm {
  background: linear-gradient(90deg, var(--plan), var(--plan-dark));
}

.button.full { width: 100%; }

.gift {
  text-align: center;
  color: var(--warm-dark);
  font-size: 12px;
  margin: 12px 0 0;
}

.chat-view.active {
  height: calc(100vh - 68px);
  padding: 0;
  display: grid;
  grid-template-rows: 52px 1fr auto;
}

.chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
}

.chat-header h2 {
  font-size: 18px;
  margin: 0;
}

.link {
  background: none;
  color: var(--warm-dark);
  font-size: 13px;
}

.messages {
  min-height: 0;
  overflow-y: auto;
  padding: 10px 18px;
}

.message {
  margin: 9px 0 19px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.message.user { align-items: flex-end; }

.bubble {
  white-space: pre-wrap;
  max-width: 88%;
  padding: 12px 14px;
  border-radius: 5px 18px 18px 18px;
  background: white;
  box-shadow: 0 3px 12px rgba(0,0,0,.03);
  font-size: 14px;
  line-height: 1.65;
}

.user .bubble {
  color: white;
  background: var(--green);
  border-radius: 18px 5px 18px 18px;
}

.message-actions {
  display: flex;
  gap: 8px;
}

.message-actions button {
  background: var(--paper);
  border: 1px solid #d6ebe0;
  color: var(--green-dark);
  font-size: 12px;
  border-radius: 16px;
  padding: 7px 12px;
}

.typing {
  color: var(--muted);
  font-size: 13px;
  margin: 10px 0 18px 8px;
}

.composer {
  display: flex;
  gap: 9px;
  align-items: end;
  border-top: 1px solid var(--line);
  background: white;
  padding: 11px 14px calc(11px + env(safe-area-inset-bottom, 0px));
}

.composer textarea {
  flex: 1;
  height: 46px;
  resize: none;
  border: 1px solid var(--line);
  background: #f6f8f6;
  border-radius: 15px;
  padding: 12px 13px;
  outline: none;
}

.composer textarea:focus { border-color: var(--green); }

.send {
  height: 45px;
  min-width: 64px;
  background: var(--green);
  color: white;
  border-radius: 14px;
  font-weight: 600;
}

.plan-view {
  padding-top: 20px;
}

.plan-intro,
.checkout {
  margin-top: 16px;
  border-radius: 24px;
  padding: 27px 21px 21px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.plan-intro h1 { font-size: 24px; }

.plan-intro > p:not(.eyebrow),
.checkout > p {
  color: var(--muted);
  line-height: 1.7;
  font-size: 14px;
}

.plan-perks {
  display: flex;
  justify-content: space-between;
  background: var(--warm-soft);
  color: var(--warm-dark);
  border-radius: 14px;
  padding: 13px 11px;
  margin: 22px 0;
  font-size: 13px;
  font-weight: 500;
}

.progress {
  width: 100%;
  height: 5px;
  border-radius: 4px;
  background: var(--line);
  margin: 8px 0 22px;
}

.progress span {
  display: block;
  background: linear-gradient(90deg, #ffb264, var(--plan-dark));
  border-radius: 4px;
  height: 100%;
  transition: width .2s;
}

.step {
  color: var(--plan-dark);
  font-weight: bold;
  margin: 0 0 12px;
  font-size: 13px;
}

.plan-view h2 {
  font-size: 21px;
  line-height: 1.5;
  margin: 0 0 25px;
}

.options {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
}

.options button {
  text-align: left;
  height: 50px;
  padding: 0 17px;
  border-radius: 14px;
  border: 1px solid var(--line);
  color: var(--ink);
  background: white;
}

.options button.selected {
  border-color: var(--plan-line);
  background: var(--plan-soft);
  color: var(--plan-dark);
  font-weight: 600;
}

.answer-textarea {
  width: 100%;
  min-height: 118px;
  resize: vertical;
  box-sizing: border-box;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid var(--line);
  color: var(--ink);
  background: #fff;
  font: inherit;
  line-height: 1.6;
}

.answer-textarea:focus {
  outline: none;
  border-color: var(--plan-line);
  box-shadow: 0 0 0 3px var(--plan-soft);
}

.success-mark {
  display: grid;
  place-items: center;
  margin: 0 auto 16px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  color: var(--plan-dark);
  background: var(--plan-soft);
  font-weight: bold;
  font-size: 26px;
}

.checkout h2 { text-align: center; margin-bottom: 6px; }
.checkout > p { text-align: center; margin-bottom: 24px; }

.checkout-line {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  padding: 15px 0;
}

.gift-line {
  color: var(--warm-dark);
  margin-bottom: 12px;
}

.plan-payment-panel {
  background: linear-gradient(180deg, #fff5eb 0%, #ffffff 42%);
}

.plan-payment-hero {
  min-height: 148px;
  background: linear-gradient(110deg, #fff2e5 0%, #fff7ef 56%, #ffffff 100%);
}

.plan-payment-hero::after {
  background: linear-gradient(90deg, rgba(255, 247, 239, .98) 0%, rgba(255, 247, 239, .88) 38%, rgba(255, 247, 239, .12) 74%);
}

.plan-payment-hero h2 {
  color: #382315;
}

.plan-payment-hero p {
  color: #7f5f4b;
}

.plan-payment-card {
  margin-top: 16px;
  border: 1px solid var(--plan-line);
  border-radius: 18px;
  box-shadow: 0 10px 24px rgba(178, 93, 38, .08);
}

.plan-payment-card .success-mark {
  color: #ffffff;
  background: linear-gradient(135deg, #ffb35e 0%, var(--plan-dark) 100%);
  box-shadow: 0 12px 22px var(--plan-glow);
}

.plan-payment-card h2 {
  color: #382315;
}

.plan-payment-card .checkout-line {
  border-top-color: #ffe2cc;
}

.plan-payment-card .gift-line {
  color: var(--plan-dark);
}

.plan-payment-submit {
  margin-top: 6px;
  background: linear-gradient(90deg, var(--plan), var(--plan-dark));
  box-shadow: 0 12px 24px var(--plan-glow);
}

.plan-payment-hint {
  margin-top: 12px;
}

.result-header {
  background: linear-gradient(135deg, #ff9d4d, var(--plan-dark));
  border-radius: 22px;
  color: white;
  padding: 20px;
  margin-bottom: 13px;
  box-shadow: 0 14px 28px var(--plan-glow);
}

.result-header h2 { margin: 0 0 10px; }

.result-header span {
  font-size: 13px;
  background: rgba(255,255,255,.18);
  border-radius: 16px;
  padding: 6px 10px;
}

.plan-result {
  white-space: pre-wrap;
  line-height: 1.75;
  font-size: 14px;
  background: white;
  border-radius: 19px;
  padding: 18px;
  margin-bottom: 14px;
}

.sheet-backdrop {
  position: fixed;
  z-index: 9;
  inset: 0;
  background: rgba(19, 27, 23, .42);
}

.sheet {
  position: fixed;
  z-index: 10;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  max-width: 460px;
  width: 100%;
  border-radius: 26px 26px 0 0;
  background: white;
  padding: 10px 20px calc(22px + env(safe-area-inset-bottom, 0px));
}

.sheet-handle {
  width: 42px;
  height: 5px;
  border-radius: 4px;
  margin: 0 auto 21px;
  background: #dce2de;
}

.sheet h2 { margin: 0 0 8px; font-size: 20px; }

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

.plan-list { display: flex; flex-direction: column; gap: 9px; }

.subscription {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: white;
  min-height: 72px;
  padding: 10px 12px;
  text-align: left;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  position: relative;
}

.subscription:hover { border-color: var(--green); }

.subscription-icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #f3f7ff;
}

.subscription-icon img {
  display: block;
  width: 44px;
  height: 44px;
}

.subscription-copy {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.subscription-copy strong { font-size: 15px; }

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

.subscription-copy span b {
  color: var(--green-dark);
  font-size: 14px;
}

.subscription-copy em {
  width: fit-content;
  color: var(--green-dark);
  background: var(--green-soft);
  font-size: 10px;
  font-style: normal;
  padding: 2px 7px;
  border-radius: 9px;
}

.subscription-side {
  min-width: 64px;
  display: grid;
  justify-items: end;
  gap: 10px;
}

.subscription-side b {
  color: var(--warm-dark);
  font-size: 20px;
  line-height: 1;
}

.subscription-side i {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid currentColor;
  color: var(--green);
}

.subscription.selected .subscription-side i {
  box-shadow: inset 0 0 0 5px white;
  background: currentColor;
}

.subscription-blue:hover,
.subscription-blue.selected { border-color: #8ab8ff; }
.subscription-blue .subscription-copy em { color: #427ff2; background: #edf4ff; }
.subscription-blue .subscription-copy span b,
.subscription-blue .subscription-side b,
.subscription-blue .subscription-side i { color: #477ff0; }

.subscription-green:hover,
.subscription-green.selected { border-color: #a6e1b9; }
.subscription-green .subscription-copy em { color: #47b56d; background: #eef9f2; }
.subscription-green .subscription-copy span b,
.subscription-green .subscription-side b,
.subscription-green .subscription-side i { color: #50b86f; }

.subscription-orange:hover,
.subscription-orange.selected { border-color: #ffd6ad; }
.subscription-orange .subscription-copy em { color: #f47d3d; background: #fff3ea; }
.subscription-orange .subscription-copy span b,
.subscription-orange .subscription-side b,
.subscription-orange .subscription-side i { color: #f27c40; }

.payment-note {
  display: block;
  margin-top: 13px;
  color: var(--muted);
}

.payment-only {
  background: #ffffff;
  overflow-x: hidden;
}

.payment-only .topbar {
  display: none;
}

.payment-only .phone-shell {
  width: min(100vw, 460px);
  max-width: 100vw;
  background: #ffffff;
  overflow-x: hidden;
}

.payment-only .view {
  padding: 0;
}

.payment-panel {
  min-height: 100vh;
  width: min(100vw, 460px);
  max-width: 100vw;
  margin-top: 0;
  border-radius: 0;
  padding: 0 16px calc(14px + env(safe-area-inset-bottom, 0px));
  background: #ffffff;
  box-shadow: none;
}

.boot-payment-panel {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 14px;
  color: #8b98ad;
}

.boot-payment-panel p {
  margin: 0;
  font-size: 14px;
}

.boot-spinner {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 3px solid #edf1f6;
  border-top-color: var(--plan);
  animation: boot-spin .8s linear infinite;
}

@keyframes boot-spin {
  to { transform: rotate(360deg); }
}

.payment-nav {
  height: 54px;
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  align-items: center;
  margin: 0 -16px;
  padding-top: env(safe-area-inset-top, 0);
  background: #fff;
}

.payment-back {
  width: 44px;
  height: 44px;
  margin-left: 7px;
  color: #111827;
  background: transparent;
  font-size: 39px;
  line-height: 36px;
}

.payment-nav h1 {
  grid-column: 2;
  margin: 0;
  text-align: center;
  font-size: 20px;
  line-height: 1;
}

.payment-hero {
  min-height: 154px;
  margin: 0 -16px;
  padding: 34px 16px 14px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(110deg, #eef6ff 0%, #eaf4ff 56%, #f6fbff 100%);
}

.payment-hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.payment-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(240, 247, 255, .98) 0%, rgba(240, 247, 255, .9) 38%, rgba(240, 247, 255, .08) 74%);
}

.payment-hero div {
  width: 58%;
  position: relative;
  z-index: 1;
}

.payment-hero h2 {
  margin: 0 0 8px;
  color: #10203f;
  font-size: 24px;
  line-height: 1.22;
  font-weight: 800;
}

.payment-hero p {
  margin: 0;
  color: #5e6b82;
  font-size: 13px;
  line-height: 1.45;
}

.payment-status {
  display: none;
}

.payment-status.payment-status-visible {
  display: block;
  border: 1px solid #cdeedc;
  border-radius: 14px;
  background: #f4fcf8;
  color: var(--green-dark);
  padding: 11px 13px;
  margin: 16px 0 0;
  font-size: 13px;
  font-weight: 600;
}

.payment-plan-list {
  margin-top: 16px;
  gap: 9px;
  width: 100%;
  max-width: 100%;
}

.payment-plan-list .subscription {
  width: calc(min(100vw, 460px) - 32px);
  max-width: calc(100vw - 32px);
  min-width: 0;
  min-height: 108px;
  border-radius: 17px;
  padding: 14px 13px 13px;
  grid-template-columns: 68px minmax(0, 1fr) 68px;
  gap: 8px;
  box-shadow: 0 8px 20px rgba(48, 83, 139, .06);
}

.payment-plan-list .subscription-icon {
  width: 62px;
  height: 62px;
}

.payment-plan-list .subscription-icon img {
  width: 62px;
  height: 62px;
}

.payment-plan-list .subscription-copy {
  min-width: 0;
  gap: 5px;
}

.payment-plan-list .subscription-copy strong {
  color: #22252c;
  font-size: 18px;
  line-height: 1.1;
}

.payment-plan-list .subscription-copy span {
  color: #2d3340;
  font-size: 13px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.payment-plan-list .subscription-copy span b {
  font-size: 15px;
  font-weight: 800;
}

.payment-plan-list .subscription-copy em {
  max-width: 100%;
  border-radius: 8px;
  padding: 4px 8px;
  font-size: 11px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.payment-plan-list .subscription-side {
  min-width: 0;
  width: 68px;
  gap: 16px;
  align-self: stretch;
  align-content: center;
}

.payment-plan-list .subscription-side b {
  font-size: 24px;
  font-weight: 800;
  white-space: nowrap;
}

.payment-plan-list .subscription-side i {
  width: 22px;
  height: 22px;
}

.payment-plan-list .subscription-blue {
  border-color: #add0ff;
}

.payment-plan-list .subscription-green {
  border-color: #bce9c9;
}

.payment-plan-list .subscription-orange {
  border-color: #ffdab8;
}

.payment-panel > .payment-note {
  display: none;
}

.payment-guard {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  margin: 14px 0 14px;
  color: #78859b;
  font-size: 10px;
}

.payment-guard span {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  white-space: normal;
  text-align: center;
  line-height: 1.2;
}

.payment-guard img {
  width: 18px;
  height: 18px;
}

.payment-submit {
  width: 100%;
  height: 52px;
  border-radius: 30px;
  color: white;
  background: linear-gradient(90deg, #66a0ff 0%, #3368f0 100%);
  box-shadow: 0 12px 24px rgba(66, 113, 242, .23);
  font-size: 19px;
  font-weight: 700;
}

.payment-agreement {
  margin: 10px 0 0;
  color: #8b98ad;
  text-align: center;
  font-size: 12px;
}

.payment-agreement img {
  width: 16px;
  height: 16px;
  margin-right: 4px;
  vertical-align: -3px;
}

.payment-agreement span {
  color: #3777ed;
}

.payment-success-panel {
  background: linear-gradient(180deg, #f4f8ff 0%, #ffffff 42%);
}

.payment-success {
  min-height: calc(100vh - 54px - env(safe-area-inset-top, 0px));
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 58px 0 18px;
  text-align: center;
}

.payment-success-mark {
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #ffffff;
  background: linear-gradient(135deg, #67a1ff 0%, #356df2 100%);
  box-shadow: 0 14px 28px rgba(55, 112, 242, .22);
  font-size: 38px;
  font-weight: 800;
}

.payment-success h2 {
  margin: 22px 0 8px;
  color: #162033;
  font-size: 25px;
  line-height: 1.2;
}

.payment-success p {
  margin: 0;
  color: #68758d;
  font-size: 14px;
}

.payment-success dl {
  width: 100%;
  display: grid;
  gap: 10px;
  margin: 30px 0 28px;
}

.payment-success dl div {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid #e5edff;
  border-radius: 14px;
  background: rgba(255, 255, 255, .86);
  padding: 0 16px;
  box-shadow: 0 8px 20px rgba(48, 83, 139, .06);
}

.payment-success dt {
  color: #748198;
  font-size: 13px;
}

.payment-success dd {
  margin: 0;
  color: #1e2b43;
  font-size: 15px;
  font-weight: 700;
}

.payment-success small {
  margin-top: 12px;
  color: #8b98ad;
  font-size: 12px;
}

.plan-success-panel {
  background: linear-gradient(180deg, #fff5eb 0%, #ffffff 42%);
}

.plan-payment-success .payment-success-mark,
.plan-success-mark {
  background: linear-gradient(135deg, #ffb35e 0%, var(--plan-dark) 100%);
  box-shadow: 0 14px 28px var(--plan-glow);
}

.plan-payment-success dl div {
  border-color: #ffe2cc;
  box-shadow: 0 8px 20px rgba(178, 93, 38, .06);
}

.plan-payment-success dd {
  color: #8f4822;
}

@media (max-height: 760px) {
  .payment-nav {
    height: 48px;
  }

  .payment-hero {
    min-height: 132px;
    padding-top: 27px;
  }

  .payment-hero h2 {
    font-size: 22px;
  }

  .payment-plan-list {
    margin-top: 12px;
    gap: 7px;
  }

  .payment-plan-list .subscription {
    min-height: 96px;
    padding: 11px 12px;
    grid-template-columns: 60px minmax(0, 1fr) 64px;
  }

  .payment-plan-list .subscription-icon,
  .payment-plan-list .subscription-icon img {
    width: 56px;
    height: 56px;
  }

  .payment-plan-list .subscription-copy {
    gap: 4px;
  }

  .payment-plan-list .subscription-copy strong {
    font-size: 17px;
  }

  .payment-plan-list .subscription-copy em {
    padding: 3px 7px;
  }

  .payment-guard {
    margin: 10px 0 10px;
  }

  .payment-submit {
    height: 48px;
  }

  .payment-agreement {
    margin-top: 8px;
  }

  .payment-success {
    padding-top: 38px;
  }

  .payment-success dl {
    margin: 24px 0 22px;
  }
}

.payment-error {
  margin-top: 14px;
  border: 1px solid #ffd2c6;
  border-radius: 14px;
  background: #fff5f2;
  color: #b94124;
  padding: 11px 12px;
  font-size: 12px;
  line-height: 1.55;
  word-break: break-word;
}

.teacher-contact {
  display: flex;
  gap: 15px;
  align-items: center;
  background: var(--bg);
  border-radius: 17px;
  padding: 13px;
  margin-bottom: 17px;
}

.qr-placeholder {
  width: 82px;
  height: 82px;
  background: white;
  border: 1px dashed #b9c8bf;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 12px;
}

.qr-placeholder img {
  display: block;
  width: 82px;
  height: 82px;
}

.teacher-contact small {
  display: block;
  color: var(--muted);
}

.teacher-contact strong {
  display: block;
  margin: 5px 0;
}

.teacher-contact p {
  font-size: 12px;
  margin: 0;
  color: var(--warm-dark);
}

.toast {
  position: fixed;
  z-index: 20;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  max-width: 350px;
  width: max-content;
  background: rgba(24, 37, 31, .92);
  color: white;
  border-radius: 20px;
  padding: 11px 18px;
  font-size: 13px;
}

@media (min-width: 461px) {
  body { padding: 18px 0; }
  .phone-shell {
    min-height: calc(100vh - 36px);
    border-radius: 28px;
    overflow: hidden;
  }
  .chat-view.active { height: calc(100vh - 104px); }
}
