:root {
  --ink: #15231e;
  --muted: #708078;
  --line: #e6eee9;
  --paper: #f7faf8;
  --white: #ffffff;
  --green: #22a875;
  --green-dark: #127250;
  --mint: #d9f6e9;
  --navy: #15352b;
  --shadow: 0 22px 70px rgba(31, 67, 53, 0.16);
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  background: #e8f0eb;
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  -webkit-font-smoothing: antialiased;
}

button,
input {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

.app-shell {
  position: relative;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 16px;
  isolation: isolate;
}

.app-shell::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(circle at 20% 18%, rgba(125, 224, 181, 0.42), transparent 29%),
    radial-gradient(circle at 82% 78%, rgba(255, 205, 126, 0.24), transparent 28%),
    linear-gradient(145deg, #f4f8f5, #dfeae4);
}

.ambient {
  position: fixed;
  z-index: -1;
  border-radius: 999px;
  filter: blur(8px);
  opacity: 0.8;
  pointer-events: none;
}

.ambient-one {
  width: 260px;
  height: 260px;
  top: -70px;
  right: 5%;
  background: rgba(73, 190, 142, 0.18);
}

.ambient-two {
  width: 200px;
  height: 200px;
  bottom: -60px;
  left: 6%;
  background: rgba(240, 185, 105, 0.14);
}

.phone-frame {
  position: relative;
  width: min(430px, 100%);
  height: min(890px, calc(100dvh - 32px));
  min-height: 640px;
  overflow: hidden;
  background: var(--paper);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 38px;
  box-shadow: var(--shadow), inset 0 0 0 5px rgba(255, 255, 255, 0.55);
}

.topbar {
  height: 104px;
  padding: 28px 24px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(247, 250, 248, 0.94);
  backdrop-filter: blur(18px);
  position: relative;
  z-index: 5;
}

.topbar .eyebrow,
.eyebrow {
  margin: 0 0 5px;
  color: #7c8b84;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.04em;
}

.topbar h1 {
  margin: 0;
  color: #18342a;
  font-size: 23px;
  line-height: 1.15;
  letter-spacing: -0.04em;
}

.avatar-button {
  position: relative;
  width: 46px;
  height: 46px;
  border-radius: 17px;
  color: #f9fffc;
  background: linear-gradient(145deg, #2ba879, #17684e);
  box-shadow: 0 8px 18px rgba(32, 128, 93, 0.23);
  font-size: 16px;
  font-weight: 750;
}

.online-dot {
  position: absolute;
  width: 11px;
  height: 11px;
  right: -1px;
  bottom: 1px;
  border: 2px solid #f7faf8;
  border-radius: 50%;
  background: #81d45e;
}

.content-area {
  position: absolute;
  inset: 104px 0 80px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
}

.content-area::-webkit-scrollbar {
  display: none;
}

.panel {
  min-height: 100%;
  padding: 0 20px 28px;
  animation: panelIn 0.32s ease both;
}

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

.balance-card {
  position: relative;
  overflow: hidden;
  color: #fff;
  min-height: 174px;
  padding: 24px;
  border-radius: 27px;
  background:
    radial-gradient(circle at 82% 18%, rgba(145, 235, 194, 0.36), transparent 35%),
    linear-gradient(135deg, #173c30 0%, #195f47 62%, #2b936b 100%);
  box-shadow: 0 16px 34px rgba(24, 87, 66, 0.25);
}

.balance-card::before,
.balance-card::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 50%;
  pointer-events: none;
}

.balance-card::before {
  width: 210px;
  height: 210px;
  right: -94px;
  top: -83px;
}

.balance-card::after {
  width: 120px;
  height: 120px;
  right: -45px;
  top: -32px;
}

.balance-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.balance-label {
  display: block;
  margin-bottom: 10px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  font-weight: 600;
}

.balance-number {
  min-height: 49px;
  display: flex;
  align-items: flex-start;
  gap: 5px;
  font-size: 39px;
  font-weight: 720;
  letter-spacing: -0.055em;
}

.balance-number small {
  padding-top: 6px;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: normal;
}

.ghost-icon {
  width: 36px;
  height: 36px;
  color: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.09);
  backdrop-filter: blur(8px);
}

.balance-foot {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
}

.balance-foot span {
  display: flex;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, 0.7);
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #89e29e;
  box-shadow: 0 0 0 4px rgba(137, 226, 158, 0.1);
}

.balance-foot button {
  color: #fff;
  background: transparent;
  font-size: 11px;
  font-weight: 650;
}

.balance-foot b {
  margin-left: 2px;
  font-size: 17px;
  font-weight: 400;
}

.quick-section {
  margin-top: 26px;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 14px;
}

.section-heading p {
  margin: 0 0 3px;
  color: #8a9891;
  font-size: 11px;
  font-weight: 650;
}

.section-heading h2 {
  margin: 0;
  font-size: 18px;
  letter-spacing: -0.02em;
}

.section-heading > span {
  color: #9ba7a1;
  font-size: 10px;
}

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

.quick-card {
  position: relative;
  min-width: 0;
  height: 135px;
  padding: 14px 12px;
  text-align: left;
  border: 1px solid transparent;
  border-radius: 20px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  overflow: hidden;
}

.quick-card:hover,
.quick-card:focus-visible,
.quick-card.selected {
  transform: translateY(-2px);
  box-shadow: 0 11px 22px rgba(43, 82, 65, 0.1);
}

.quick-card.meal { background: #fff2d9; color: #7e4b12; }
.quick-card.water { background: #e4f3ff; color: #1e6092; }
.quick-card.shower { background: #f0e9ff; color: #6d4898; }
.quick-card.meal.selected { border-color: #f0c979; }
.quick-card.water.selected { border-color: #8bc8ef; }
.quick-card.shower.selected { border-color: #bda6e3; }

.quick-icon {
  display: grid;
  place-items: center;
  width: 37px;
  height: 37px;
  margin-bottom: 12px;
  color: currentColor;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.75);
  font-size: 14px;
  font-weight: 760;
}

.quick-card strong {
  display: block;
  margin-bottom: 4px;
  color: #24352e;
  font-size: 13px;
}

.quick-card small {
  display: block;
  color: currentColor;
  font-size: 9.5px;
  opacity: 0.75;
  white-space: nowrap;
}

.quick-arrow {
  position: absolute;
  right: 12px;
  top: 15px;
  color: currentColor;
  font-size: 13px;
  opacity: 0.48;
}

.next-class-card {
  width: 100%;
  display: grid;
  grid-template-columns: 74px 1fr 16px;
  align-items: center;
  gap: 14px;
  margin-top: 20px;
  padding: 15px;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 21px;
  background: #fff;
  box-shadow: 0 7px 20px rgba(48, 77, 64, 0.05);
}

.class-date {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 66px;
  padding: 0 12px;
  border-radius: 15px;
  background: #ddf5e9;
  color: #1d7657;
}

.class-date span { margin-bottom: 2px; font-size: 10px; }
.class-date strong { font-size: 19px; letter-spacing: -0.03em; }
.class-info { min-width: 0; }
.class-info h3 { margin: 6px 0 3px; font-size: 15px; }
.class-info p { margin: 0; color: var(--muted); font-size: 10.5px; }
.class-pill { padding: 4px 7px; color: #19865f; border-radius: 999px; background: #e9f8f0; font-size: 9px; font-weight: 650; }
.class-chevron { color: #9eaaa4; font-size: 24px; font-weight: 300; }

.transactions-section {
  margin-top: 24px;
}

.section-heading.compact {
  align-items: center;
  margin-bottom: 7px;
}

.section-heading.compact button {
  padding: 5px 0;
  color: #6d7c75;
  background: transparent;
  font-size: 10px;
}

.transaction-list {
  border-radius: 20px;
  background: #fff;
  border: 1px solid #edf2ef;
  overflow: hidden;
}

.transaction-row {
  position: relative;
  display: grid;
  grid-template-columns: 40px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 13px 14px;
}

.transaction-row + .transaction-row::before {
  content: "";
  position: absolute;
  left: 66px;
  right: 14px;
  top: 0;
  height: 1px;
  background: #eef2ef;
}

.transaction-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 13px;
  font-size: 12px;
  font-weight: 740;
}

.transaction-icon.meal { color: #8b5e1e; background: #fff1d7; }
.transaction-icon.shower { color: #7750a0; background: #f1eaff; }
.transaction-icon.recharge { color: #167456; background: #dff5e9; }
.transaction-row div { min-width: 0; }
.transaction-row strong { display: block; color: #25342e; font-size: 12px; }
.transaction-row small { display: block; margin-top: 4px; color: #98a39e; font-size: 9.5px; }
.transaction-row > b { color: #25342e; font-size: 12px; font-weight: 690; }
.transaction-row > b.positive { color: #1d9367; }

.bottom-nav {
  position: absolute;
  z-index: 10;
  left: 0;
  right: 0;
  bottom: 0;
  height: 80px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 8px 16px 10px;
  border-top: 1px solid rgba(220, 231, 225, 0.85);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(18px);
}

.nav-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: #9aa69f;
  background: transparent;
  font-size: 9px;
  font-weight: 640;
}

.nav-icon {
  display: grid;
  place-items: center;
  width: 29px;
  height: 25px;
  border-radius: 10px;
  font-size: 20px;
  font-weight: 400;
  line-height: 1;
}

.nav-item.active { color: var(--green-dark); }
.nav-item.active .nav-icon { color: #14835d; background: #ddf5e9; }

/* Schedule */
.term-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 2px 17px;
}

.term-row h2 { margin: 0; font-size: 16px; }
.soft-button { padding: 9px 13px; color: #32765d; border-radius: 12px; background: #e5f5ed; font-size: 10px; font-weight: 650; }

.date-strip {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 5px;
  padding: 8px;
  border-radius: 19px;
  background: #fff;
  border: 1px solid var(--line);
}

.date-button {
  position: relative;
  height: 58px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  color: #88958f;
  border-radius: 13px;
  background: transparent;
}

.date-button span { font-size: 9px; }
.date-button strong { color: #263b33; font-size: 13px; }
.date-button.active { color: rgba(255,255,255,.75); background: #1c7e5d; box-shadow: 0 7px 15px rgba(24, 118, 85, .22); }
.date-button.active strong { color: #fff; }
.date-button i { position: absolute; bottom: 5px; width: 3px; height: 3px; border-radius: 50%; background: currentColor; }

.schedule-summary {
  display: flex;
  justify-content: space-between;
  margin: 24px 2px 15px;
}

.schedule-summary span { color: #7e8d86; font-size: 11px; }
.schedule-summary strong { color: #28775d; font-size: 11px; }

.timeline { padding-bottom: 16px; }
.timeline-row { position: relative; display: grid; grid-template-columns: 47px 10px 1fr; gap: 11px; align-items: stretch; min-height: 83px; }
.timeline-row:not(:last-child)::after { content: ""; position: absolute; left: 62px; top: 25px; bottom: -8px; width: 1px; background: #dae5df; }
.time-block { padding-top: 4px; text-align: right; }
.time-block strong { display: block; color: #34463e; font-size: 10.5px; }
.time-block span { display: block; margin-top: 4px; color: #a6b0ab; font-size: 8.5px; }
.timeline-dot { z-index: 1; width: 9px; height: 9px; margin-top: 7px; border: 2px solid #fff; border-radius: 50%; box-shadow: 0 0 0 2px currentColor; }
.timeline-dot.mint { color: #41b987; background: #41b987; }
.timeline-dot.blue { color: #6aaad8; background: #6aaad8; }
.timeline-dot.orange { color: #e9a24e; background: #e9a24e; }
.timeline-dot.violet { color: #a283d2; background: #a283d2; }

.course-card {
  height: 70px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 13px 14px;
  text-align: left;
  border-left: 3px solid currentColor;
  border-radius: 14px;
}

.course-card.mint { color: #22815f; background: #e5f6ee; }
.course-card.blue { color: #387ea9; background: #e8f4fc; }
.course-card.orange { color: #a86922; background: #fff1de; }
.course-card.violet { color: #70539c; background: #f1ebfa; }
.course-card h3 { margin: 0 0 5px; color: #253830; font-size: 13px; }
.course-card p { margin: 0; color: currentColor; font-size: 9.5px; opacity: .8; }
.course-card > span { padding: 4px 6px; color: currentColor; border-radius: 7px; background: rgba(255,255,255,.55); font-size: 8.5px; }

.empty-state { display: grid; place-items: center; padding: 90px 20px; color: #8d9a94; text-align: center; }
.empty-state span { display: grid; place-items: center; width: 64px; height: 64px; margin-bottom: 16px; color: #d5963b; border-radius: 22px; background: #fff1d7; font-size: 27px; }
.empty-state h3 { margin: 0; color: #34463e; font-size: 16px; }
.empty-state p { margin: 7px 0 0; font-size: 11px; }

/* Wallet */
.cards-heading { align-items: center; padding: 5px 2px 3px; }
.add-card { padding: 8px 11px; color: #24795b; border: 1px solid #cce7dc; border-radius: 11px; background: #eff9f4; font-size: 10px; font-weight: 650; }
.wallet-stack { display: grid; gap: 14px; margin-top: 20px; }
.wallet-card { position: relative; overflow: hidden; min-height: 190px; padding: 19px; border-radius: 24px; border: 1px solid rgba(255,255,255,.65); box-shadow: 0 12px 24px rgba(49, 76, 64, .08); }
.wallet-card::after { content: ""; position: absolute; width: 130px; height: 130px; right: -48px; top: -56px; border: 22px solid rgba(255,255,255,.2); border-radius: 50%; }
.wallet-card.meal { color: #755022; background: linear-gradient(135deg, #fff4d9, #f4d58d); }
.wallet-card.water { color: #2b6384; background: linear-gradient(135deg, #e9f7ff, #a9d8ef); }
.wallet-card.shower { color: #654c88; background: linear-gradient(135deg, #f3edff, #ccb8e8); }
.wallet-top { position: relative; z-index: 1; display: grid; grid-template-columns: 42px 1fr auto; align-items: center; gap: 11px; }
.wallet-icon { display: grid; place-items: center; width: 42px; height: 42px; color: currentColor; border-radius: 14px; background: rgba(255,255,255,.58); font-size: 14px; font-weight: 750; }
.wallet-top strong { display: block; color: #273a32; font-size: 14px; }
.wallet-top small { display: block; margin-top: 3px; color: currentColor; font-size: 8.5px; opacity: .75; }
.active-badge { padding: 4px 7px; border-radius: 99px; background: rgba(255,255,255,.55); font-size: 8px; font-weight: 700; }
.wallet-balance { margin: 20px 0 18px; }
.wallet-balance > span { display: block; margin-bottom: 3px; font-size: 9px; opacity: .72; }
.wallet-balance strong { color: #20342b; font-size: 28px; letter-spacing: -.04em; }
.wallet-balance small { margin-right: 3px; font-size: 13px; }
.wallet-actions { position: relative; z-index: 1; display: flex; justify-content: space-between; align-items: center; }
.wallet-actions > button { padding: 9px 15px; color: #fff; border-radius: 11px; background: rgba(30, 73, 57, .8); font-size: 10px; font-weight: 650; }
.wallet-actions label { position: relative; display: flex; align-items: center; gap: 8px; font-size: 9px; cursor: pointer; }
.wallet-actions input { position: absolute; opacity: 0; }
.switch { position: relative; width: 31px; height: 18px; border-radius: 99px; background: rgba(72, 85, 78, .18); transition: background .2s ease; }
.switch::after { content: ""; position: absolute; width: 14px; height: 14px; left: 2px; top: 2px; border-radius: 50%; background: #fff; box-shadow: 0 2px 5px rgba(0,0,0,.12); transition: transform .2s ease; }
.wallet-actions input:checked + .switch { background: #22956b; }
.wallet-actions input:checked + .switch::after { transform: translateX(13px); }

/* Profile */
.profile-hero { position: relative; display: grid; grid-template-columns: 66px 1fr auto; gap: 15px; align-items: center; padding: 23px 20px; color: #fff; border-radius: 25px; background: linear-gradient(135deg, #173b2f, #2a8966); box-shadow: 0 13px 27px rgba(25, 100, 75, .2); }
.profile-avatar { display: grid; place-items: center; width: 62px; height: 62px; color: #1f7d5d; border: 3px solid rgba(255,255,255,.35); border-radius: 22px; background: #def5e9; font-size: 21px; font-weight: 750; }
.profile-hero h2 { margin: 0; font-size: 18px; }
.profile-hero p { margin: 5px 0 4px; color: rgba(255,255,255,.72); font-size: 9.5px; }
.profile-hero div span { color: rgba(255,255,255,.54); font-size: 8.5px; }
.profile-hero button { align-self: start; padding: 6px 9px; color: rgba(255,255,255,.86); border: 1px solid rgba(255,255,255,.18); border-radius: 9px; background: rgba(255,255,255,.1); font-size: 9px; }
.profile-stats { display: grid; grid-template-columns: repeat(3, 1fr); margin: 18px 0; padding: 17px 8px; border-radius: 19px; background: #fff; border: 1px solid var(--line); }
.profile-stats div { text-align: center; }
.profile-stats div + div { border-left: 1px solid #edf2ef; }
.profile-stats strong { display: block; color: #244238; font-size: 14px; }
.profile-stats span { display: block; margin-top: 5px; color: #94a099; font-size: 8.5px; }
.settings-card { border: 1px solid var(--line); border-radius: 20px; background: #fff; overflow: hidden; }
.settings-card button { position: relative; width: 100%; display: grid; grid-template-columns: 38px 1fr auto; align-items: center; gap: 11px; padding: 14px; text-align: left; background: transparent; }
.settings-card button + button::before { content: ""; position: absolute; left: 63px; right: 14px; top: 0; height: 1px; background: #edf2ef; }
.settings-card button > span { display: grid; place-items: center; width: 37px; height: 37px; color: #24765a; border-radius: 12px; background: #e7f5ee; font-size: 11px; font-weight: 700; }
.settings-card strong { display: block; color: #2b3b34; font-size: 11px; }
.settings-card small { display: block; margin-top: 4px; color: #99a49f; font-size: 8.5px; }
.settings-card b { color: #aab3af; font-size: 19px; font-weight: 350; }
.service-note { margin: 24px 0 0; color: #a4aea9; text-align: center; font-size: 8.5px; }

/* Recharge modal */
.modal-backdrop {
  position: fixed;
  z-index: 50;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 16px;
  background: rgba(13, 27, 21, 0.52);
  backdrop-filter: blur(7px);
  animation: fadeIn .2s ease both;
}

@keyframes fadeIn { from { opacity: 0; } }

.recharge-modal {
  width: min(430px, 100%);
  padding: 11px 22px 22px;
  border-radius: 30px 30px 25px 25px;
  background: #fbfdfc;
  box-shadow: 0 -16px 50px rgba(10, 35, 26, .23);
  animation: modalUp .34s cubic-bezier(.2,.8,.2,1) both;
}

@keyframes modalUp { from { transform: translateY(45px); opacity: 0; } }
.modal-handle { width: 40px; height: 4px; margin: 0 auto 17px; border-radius: 99px; background: #d8e1dc; }
.modal-head { display: grid; grid-template-columns: 47px 1fr 32px; align-items: center; gap: 12px; }
.modal-card-icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 15px; font-size: 14px; font-weight: 750; }
.modal-card-icon.meal { color: #876025; background: #fff0cc; }
.modal-card-icon.water { color: #2b77a8; background: #e2f3ff; }
.modal-card-icon.shower { color: #73539b; background: #efe7fa; }
.modal-head p { margin: 0 0 2px; color: #8d9993; font-size: 9.5px; }
.modal-head h2 { margin: 0; color: #22362d; font-size: 18px; }
.modal-head > button { width: 31px; height: 31px; color: #78857f; border-radius: 11px; background: #edf2ef; font-size: 19px; font-weight: 300; }
.current-balance { display: flex; justify-content: space-between; margin: 18px 0; padding: 13px 15px; border-radius: 14px; background: #eff6f2; }
.current-balance span { color: #75837c; font-size: 10px; }
.current-balance strong { color: #1e664d; font-size: 11px; }
.field-label { margin: 0 0 10px; color: #55655e; font-size: 10px; font-weight: 650; }
.amount-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px; }
.amount-grid button { height: 52px; color: #364840; border: 1px solid #e1e9e5; border-radius: 14px; background: #fff; font-size: 16px; font-weight: 700; transition: .18s ease; }
.amount-grid button small { margin-right: 2px; font-size: 9px; }
.amount-grid button.active { color: #197a58; border-color: #42ad82; background: #e9f8f1; box-shadow: inset 0 0 0 1px #42ad82; }
.payment-row { position: relative; display: grid; grid-template-columns: 39px 1fr 19px; align-items: center; gap: 11px; margin: 17px 0; padding: 13px 14px; border: 1px solid #e5ece8; border-radius: 15px; background: #fff; cursor: pointer; }
.wechat-icon { display: grid; place-items: center; width: 38px; height: 38px; color: #fff; border-radius: 13px; background: #22b36f; font-size: 15px; font-weight: 760; }
.payment-row strong { display: block; color: #2b3b34; font-size: 11px; }
.payment-row small { display: block; margin-top: 4px; color: #8f9b95; font-size: 8.5px; }
.payment-row input { position: absolute; opacity: 0; }
.payment-row i { width: 18px; height: 18px; border: 5px solid #23a974; border-radius: 50%; box-shadow: 0 0 0 1px #23a974; }
.confirm-button { width: 100%; height: 49px; color: #fff; border-radius: 15px; background: linear-gradient(135deg, #22a875, #147250); box-shadow: 0 10px 20px rgba(30, 143, 101, .2); font-size: 13px; font-weight: 690; }
.safe-note { margin: 10px 0 0; color: #9aa59f; text-align: center; font-size: 8.5px; }

.toast {
  position: fixed;
  z-index: 80;
  left: 50%;
  top: 27px;
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: calc(100% - 32px);
  padding: 10px 14px;
  color: #fff;
  border-radius: 13px;
  background: rgba(20, 55, 43, .95);
  box-shadow: 0 12px 25px rgba(10, 35, 26, .23);
  font-size: 10px;
  transform: translate(-50%, -80px);
  opacity: 0;
  transition: .3s cubic-bezier(.2,.8,.2,1);
  pointer-events: none;
}

.toast span { display: grid; place-items: center; width: 18px; height: 18px; color: #154b38; border-radius: 50%; background: #8ce3b4; font-size: 10px; font-weight: 800; }
.toast.show { transform: translate(-50%, 0); opacity: 1; }

@media (max-width: 520px) {
  .app-shell { padding: 0; }
  .phone-frame { width: 100%; height: 100dvh; min-height: 560px; border: 0; border-radius: 0; box-shadow: none; }
  .modal-backdrop { padding: 0; }
  .recharge-modal { border-radius: 30px 30px 0 0; padding-bottom: max(22px, env(safe-area-inset-bottom)); }
  .topbar { padding-top: max(24px, env(safe-area-inset-top)); }
  .bottom-nav { padding-bottom: max(10px, env(safe-area-inset-bottom)); height: calc(80px + env(safe-area-inset-bottom)); }
  .content-area { bottom: calc(80px + env(safe-area-inset-bottom)); }
}

@media (max-height: 700px) and (min-width: 521px) {
  .phone-frame { min-height: 0; height: calc(100dvh - 16px); }
  .app-shell { padding: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
