:root {
  --ink: #101819;
  --muted: #657271;
  --line: rgba(16, 24, 25, 0.08);
  --cream: #fff8ee;
  --paper: rgba(255, 255, 255, 0.84);
  --mint: #31dcc1;
  --leaf: #5bed95;
  --deep: #078f7d;
  --sun: #ffd86b;
  --sky: #78d8ff;
  --coral: #ff7d67;
  --glass: rgba(255, 255, 255, 0.58);
  --glass-line: rgba(255, 255, 255, 0.58);
  --shadow: 0 24px 58px rgba(20, 75, 67, 0.16);
  --soft-shadow: 0 14px 36px rgba(25, 75, 66, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background:
    radial-gradient(circle at 22% 12%, rgba(255, 216, 107, 0.34), transparent 24rem),
    radial-gradient(circle at 78% 0%, rgba(49, 220, 193, 0.42), transparent 26rem),
    linear-gradient(135deg, #fff9f0 0%, #ebfff8 52%, #f6fbff 100%);
}

body {
  min-height: 100vh;
  margin: 0;
  display: grid;
  place-items: center;
  padding: 18px;
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

button,
input {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease, opacity 160ms ease;
  -webkit-tap-highlight-color: transparent;
}

button:not(.video-sound-button) {
  border: 1px solid var(--glass-line);
  backdrop-filter: blur(16px) saturate(1.22);
  -webkit-backdrop-filter: blur(16px) saturate(1.22);
}

button:active {
  transform: translateY(2px) scale(0.97);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.mini-shell {
  position: relative;
  width: min(100%, 430px);
  height: min(930px, calc(100vh - 36px));
  min-height: 720px;
  border-radius: 30px;
  overflow: hidden;
  background:
    radial-gradient(circle at 76% -8%, rgba(91, 237, 149, 0.38), transparent 16rem),
    linear-gradient(180deg, rgba(229, 255, 247, 0.97), rgba(255, 248, 238, 0.98) 52%, #fbfffd 100%);
  box-shadow: 0 30px 80px rgba(25, 74, 67, 0.24), inset 0 0 0 1px rgba(255, 255, 255, 0.8);
}

.screen {
  position: absolute;
  inset: 0;
  display: none;
  overflow-y: auto;
  padding: 16px 16px 24px;
  scrollbar-width: none;
}

.screen.active {
  display: block;
}

.screen::-webkit-scrollbar,
.quick-scroll::-webkit-scrollbar,
.filters::-webkit-scrollbar {
  display: none;
}

.exchange-screen,
.package-screen,
.logistics-screen,
.profile-screen,
.service-screen {
  padding-bottom: 130px;
}

.wx-chrome {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 38px;
  margin-bottom: 10px;
}

.status-time {
  font-size: 13px;
  font-weight: 800;
  padding-left: 8px;
}

.wx-capsule {
  width: 118px;
  height: 36px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid rgba(16, 24, 25, 0.08);
  backdrop-filter: blur(12px);
}

.wx-capsule span {
  width: 5px;
  height: 5px;
  border-radius: 99px;
  background: var(--ink);
}

.wx-capsule i {
  width: 1px;
  height: 18px;
  margin: 0 7px;
  background: rgba(16, 24, 25, 0.16);
}

.wx-capsule b {
  width: 18px;
  height: 18px;
  border: 3px solid var(--ink);
  border-radius: 50%;
  position: relative;
}

.wx-capsule b::after {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: inherit;
  background: var(--ink);
}

.hero-panel {
  position: relative;
  padding: 18px 14px 16px;
  border-radius: 28px;
  background:
    radial-gradient(circle at 86% 0%, rgba(91, 237, 149, 0.82), transparent 8rem),
    linear-gradient(140deg, rgba(49, 220, 193, 0.92), rgba(255, 248, 238, 0.8) 60%, rgba(255, 216, 107, 0.34));
  box-shadow: var(--shadow);
  isolation: isolate;
  overflow: hidden;
}

.hero-panel::before {
  content: "";
  position: absolute;
  width: 142px;
  height: 142px;
  right: -48px;
  top: -48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.24);
  z-index: -1;
}

.hero-panel::after {
  content: "";
  position: absolute;
  width: 92px;
  height: 92px;
  left: -28px;
  bottom: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.48);
  z-index: -1;
}

.brand-row,
.page-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.brand-row {
  margin-bottom: 14px;
}

.page-top {
  align-items: center;
  margin-bottom: 14px;
}

.page-top h1 {
  margin-bottom: 0;
  font-size: 27px;
}

.top-spacer {
  width: 42px;
  height: 42px;
}

.eyebrow {
  margin: 0 0 4px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0;
  color: var(--deep);
  text-transform: uppercase;
}

h1 {
  margin-bottom: 6px;
  font-size: 34px;
  line-height: 1.04;
  letter-spacing: 0;
}

.slogan {
  margin-bottom: 0;
  font-size: 14px;
  font-weight: 800;
  color: rgba(16, 24, 25, 0.68);
}

.icon-button,
.close-button,
.back-button {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.68);
  color: var(--ink);
  box-shadow: 0 12px 26px rgba(25, 74, 67, 0.12);
  flex: 0 0 auto;
}

.back-button {
  background: rgba(16, 24, 25, 0.06);
  box-shadow: none;
}

.banner {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 24px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.42);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.56);
  pointer-events: none;
}

.banner-track {
  height: 100%;
  display: flex;
  transform: translateX(calc(var(--slide, 0) * -100%));
  transition: transform 520ms cubic-bezier(0.22, 1, 0.36, 1);
}

.banner-slide {
  min-width: 100%;
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background:
    radial-gradient(circle at 78% 28%, rgba(255, 125, 103, 0.42), transparent 8rem),
    linear-gradient(135deg, #eafff8 0%, #fff5df 100%);
  overflow: hidden;
}

.banner-slide:nth-child(2) {
  background:
    radial-gradient(circle at 76% 36%, rgba(120, 216, 255, 0.52), transparent 8rem),
    linear-gradient(135deg, #effff9 0%, #fff8ee 100%);
}

.banner-slide:nth-child(3) {
  background:
    radial-gradient(circle at 78% 36%, rgba(91, 237, 149, 0.58), transparent 8rem),
    linear-gradient(135deg, #f1fff9 0%, #fff7e8 100%);
}

.banner-slide h2 {
  max-width: 190px;
  margin: 12px 0 8px;
  font-size: 25px;
  line-height: 1.08;
  letter-spacing: 0;
}

.banner-slide p {
  max-width: 178px;
  margin: 0;
  color: rgba(16, 24, 25, 0.64);
  font-size: 13px;
  font-weight: 700;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  font-weight: 900;
}

.dots {
  position: absolute;
  left: 20px;
  bottom: 16px;
  display: flex;
  gap: 6px;
}

.dots span {
  width: 6px;
  height: 6px;
  border-radius: 99px;
  background: rgba(16, 24, 25, 0.18);
  transition: width 240ms ease, background 240ms ease;
}

.dots .active {
  width: 20px;
  background: var(--mint);
}

.mascot {
  position: relative;
  width: 122px;
  height: 152px;
  flex: 0 0 auto;
  margin-right: -8px;
}

.panda-ear {
  position: absolute;
  top: 13px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #111;
}

.panda-ear.left {
  left: 18px;
}

.panda-ear.right {
  right: 18px;
}

.panda-head {
  position: absolute;
  top: 23px;
  left: 14px;
  width: 94px;
  height: 86px;
  border-radius: 42% 42% 48% 48%;
  background: #fff;
  box-shadow: 0 12px 24px rgba(16, 24, 25, 0.12);
}

.eye {
  position: absolute;
  top: 31px;
  width: 22px;
  height: 28px;
  border-radius: 50%;
  background: #111;
}

.eye::after {
  content: "";
  position: absolute;
  width: 6px;
  height: 6px;
  top: 6px;
  left: 8px;
  border-radius: 50%;
  background: #fff;
}

.eye.left {
  left: 18px;
  transform: rotate(9deg);
}

.eye.right {
  right: 18px;
  transform: rotate(-9deg);
}

.nose {
  position: absolute;
  left: 41px;
  top: 52px;
  width: 12px;
  height: 8px;
  border-radius: 50%;
  background: #111;
}

.blush {
  position: absolute;
  bottom: 14px;
  width: 13px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 125, 103, 0.5);
}

.blush.left {
  left: 18px;
}

.blush.right {
  right: 18px;
}

.panda-body {
  position: absolute;
  left: 28px;
  bottom: 0;
  width: 72px;
  height: 60px;
  border-radius: 28px 28px 20px 20px;
  background: linear-gradient(160deg, #31dcc1, #2486db);
}

.badge {
  position: absolute;
  left: 21px;
  top: 14px;
  padding: 3px 5px;
  border-radius: 999px;
  background: #fff;
  color: #2486db;
  font-size: 9px;
  font-weight: 900;
}

.bamboo {
  position: absolute;
  right: -9px;
  top: -8px;
  width: 8px;
  height: 76px;
  border-radius: 999px;
  background: linear-gradient(#d7ff83, #28ca70);
  transform: rotate(-18deg);
}

.bamboo::before,
.bamboo::after {
  content: "";
  position: absolute;
  width: 28px;
  height: 12px;
  border-radius: 100% 0;
  background: #40e486;
}

.bamboo::before {
  top: 8px;
  left: -24px;
  transform: rotate(-18deg);
}

.bamboo::after {
  top: 24px;
  right: -22px;
  transform: rotate(38deg);
}

.orbit-card {
  width: 110px;
  height: 110px;
  border-radius: 34px;
  background: rgba(255, 255, 255, 0.72);
  display: grid;
  place-items: center;
  align-content: center;
  gap: 4px;
  box-shadow: var(--soft-shadow);
}

.orbit-card strong {
  font-size: 34px;
}

.orbit-card span {
  color: var(--muted);
  font-weight: 800;
}

.shield-asset {
  width: 112px;
  height: 130px;
  border-radius: 40px 40px 52px 52px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.62), rgba(255, 255, 255, 0)),
    linear-gradient(160deg, #31dcc1, #68caff);
  clip-path: polygon(50% 0, 93% 14%, 82% 78%, 50% 100%, 18% 78%, 7% 14%);
  box-shadow: var(--soft-shadow);
}

.entry-section {
  margin-top: 16px;
  padding: 14px 0 2px;
}

.entry-head {
  padding: 0 4px;
  margin-bottom: 12px;
}

.entry-head h2 {
  margin-bottom: 0;
  font-size: 25px;
  letter-spacing: 0;
}

.quick-scroll {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 2px 1px 14px;
}

.quick-item {
  flex: 0 0 116px;
  min-height: 132px;
  border-radius: 24px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 7px;
  color: var(--ink);
  box-shadow: var(--soft-shadow);
  scroll-snap-align: start;
  background: linear-gradient(135deg, rgba(49, 220, 193, 0.86), rgba(255, 255, 255, 0.72));
}

.quick-item.tone-mint {
  background: linear-gradient(135deg, #31dcc1, #5bed95);
}

.quick-item.tone-leaf {
  background: linear-gradient(135deg, #61e8a8, #d9ff9b);
}

.quick-item.tone-sky {
  background: linear-gradient(135deg, #68d8ff, #dffcff);
}

.quick-item.tone-teal {
  background: linear-gradient(135deg, #0bb49c, #b8ffe9);
}

.quick-item.tone-sun {
  background: linear-gradient(135deg, #ffd86b, #fff4bb);
}

.quick-item strong {
  font-size: 15px;
}

.quick-item small {
  color: rgba(16, 24, 25, 0.62);
  font-size: 11px;
  font-weight: 800;
}

.quick-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  color: #101819;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: inset 0 0 0 1px rgba(16, 24, 25, 0.06);
  font-weight: 900;
}

.video-card {
  position: relative;
  margin: 8px 0 14px;
  min-height: 160px;
  border-radius: 26px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.52), rgba(49, 220, 193, 0.12)),
    rgba(255, 255, 255, 0.7);
  box-shadow: var(--soft-shadow);
}

.video-card video {
  width: 100%;
  height: 178px;
  display: block;
  object-fit: cover;
  background: #eafff8;
}

.video-copy {
  position: absolute;
  left: 14px;
  top: 12px;
  z-index: 1;
  padding: 8px 10px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(10px);
}

.video-copy h2 {
  margin: 0;
  font-size: 16px;
}

.video-sound-button {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 2;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  border-radius: 999px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.74);
  box-shadow: 0 14px 32px rgba(16, 24, 25, 0.18);
  backdrop-filter: blur(18px) saturate(1.35);
  -webkit-backdrop-filter: blur(18px) saturate(1.35);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
}

.video-sound-button span {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--ink);
  font-size: 10px;
}

.video-sound-button strong {
  font-size: 12px;
}

.video-card.needs-gesture .video-sound-button {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.home-footer,
.footer {
  display: grid;
  gap: 5px;
  place-items: center;
  text-align: center;
  color: var(--muted);
}

.home-footer {
  padding: 8px 10px 2px;
  font-size: 11px;
}

.footer {
  padding: 28px 12px 6px;
  font-size: 11px;
}

.home-footer strong,
.footer strong {
  color: var(--ink);
}

.activate-strip {
  width: 100%;
  min-height: 72px;
  margin: 4px 0 18px;
  padding: 14px 16px;
  border-radius: 22px;
  display: grid;
  gap: 4px;
  text-align: left;
  color: var(--ink);
  background:
    radial-gradient(circle at 88% 20%, rgba(255, 216, 107, 0.55), transparent 6rem),
    linear-gradient(135deg, rgba(49, 220, 193, 0.92), rgba(91, 237, 149, 0.82));
  box-shadow: var(--soft-shadow);
}

.activate-strip span {
  font-size: 15px;
  font-weight: 900;
}

.activate-strip strong {
  color: rgba(16, 24, 25, 0.62);
  font-size: 12px;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.section-head h2 {
  margin-bottom: 0;
  font-size: 24px;
  letter-spacing: 0;
}

.segmented {
  display: inline-flex;
  padding: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
}

.segmented button {
  min-width: 48px;
  height: 30px;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.segmented .selected {
  background: var(--ink);
  color: #fff;
}

.filters {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 12px 0 14px;
}

.filters button {
  flex: 0 0 auto;
  min-height: 34px;
  border-radius: 999px;
  padding: 0 14px;
  background: rgba(255, 255, 255, 0.68);
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.filters .selected {
  color: var(--ink);
  background: linear-gradient(135deg, rgba(49, 220, 193, 0.95), rgba(91, 237, 149, 0.9));
}

.products {
  display: grid;
  gap: 12px;
}

.product-card {
  position: relative;
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 12px;
  padding: 12px;
  min-height: 140px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: var(--soft-shadow);
  overflow: hidden;
}

.product-card::after {
  content: "";
  position: absolute;
  right: -38px;
  top: -48px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: rgba(49, 220, 193, 0.13);
}

.product-art {
  position: relative;
  min-height: 116px;
  border-radius: 20px;
  background: var(--accent);
  overflow: hidden;
  display: grid;
  place-items: center;
}

.product-art::before {
  content: "";
  width: 60px;
  height: 60px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.66);
  transform: rotate(12deg);
}

.product-art::after {
  content: attr(data-icon);
  position: absolute;
  font-size: 34px;
  font-weight: 900;
}

.product-info {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.tag-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
}

.tag {
  min-height: 23px;
  padding: 0 8px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  background: rgba(16, 24, 25, 0.06);
  color: rgba(16, 24, 25, 0.68);
  font-size: 11px;
  font-weight: 900;
}

.product-info h3 {
  margin-bottom: 6px;
  font-size: 17px;
  line-height: 1.18;
  letter-spacing: 0;
}

.product-info p {
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.product-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.price {
  display: flex;
  flex-direction: column;
  font-weight: 900;
}

.price strong {
  color: var(--coral);
  font-size: 18px;
}

.price span {
  color: var(--muted);
  font-size: 11px;
}

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

.ghost-button,
.redeem-button,
.primary-button {
  min-height: 38px;
  border-radius: 999px;
  padding: 0 14px;
  font-weight: 900;
}

.ghost-button {
  background: rgba(255, 255, 255, 0.56);
  color: var(--ink);
  box-shadow: inset 0 0 0 1px rgba(16, 24, 25, 0.04), 0 10px 26px rgba(16, 24, 25, 0.08);
}

.redeem-button,
.primary-button {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.26), rgba(255, 255, 255, 0)),
    linear-gradient(135deg, rgba(49, 220, 193, 0.94), rgba(91, 237, 149, 0.88));
  color: var(--ink);
  box-shadow: 0 14px 30px rgba(49, 220, 193, 0.3);
}

.tabbar {
  position: fixed;
  left: 50%;
  right: auto;
  bottom: max(12px, env(safe-area-inset-bottom));
  z-index: 8;
  width: min(406px, calc(100vw - 24px));
  height: 74px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.66);
  border: 1px solid rgba(255, 255, 255, 0.76);
  backdrop-filter: blur(26px) saturate(1.35);
  -webkit-backdrop-filter: blur(26px) saturate(1.35);
  box-shadow: 0 18px 44px rgba(16, 24, 25, 0.16);
  display: grid;
  padding: 6px;
  transform: translateX(-50%);
}

.tabbar.secondary-nav {
  grid-template-columns: repeat(4, 1fr);
}

.tabbar button {
  border-radius: 18px;
  background: transparent;
  color: #9aa5a4;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 3px;
  font-size: 11px;
  font-weight: 900;
}

.tabbar button.active {
  color: var(--ink);
  background: rgba(49, 220, 193, 0.2);
  box-shadow: inset 0 0 0 1px rgba(49, 220, 193, 0.24);
}

.tabbar svg {
  width: 22px;
  height: 22px;
}

.closed-state {
  min-height: 430px;
  border-radius: 30px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  text-align: center;
  background:
    radial-gradient(circle at 78% 20%, rgba(91, 237, 149, 0.28), transparent 8rem),
    rgba(255, 255, 255, 0.72);
  box-shadow: var(--soft-shadow);
  padding: 32px;
}

.closed-mark {
  width: 84px;
  height: 84px;
  border-radius: 28px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--mint), var(--leaf));
  font-size: 34px;
  font-weight: 900;
}

.closed-state h2 {
  margin-bottom: 0;
  font-size: 24px;
}

.closed-state p {
  max-width: 250px;
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.6;
}

.coupon-panel,
.logistics-card,
.mine-card,
.profile-summary,
.package-card {
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--soft-shadow);
}

.coupon-panel {
  margin: 4px 0 18px;
  padding: 18px;
  background:
    radial-gradient(circle at 84% 12%, rgba(255, 216, 107, 0.42), transparent 7rem),
    linear-gradient(135deg, rgba(49, 220, 193, 0.9), rgba(255, 255, 255, 0.78));
}

.coupon-panel div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.coupon-panel span {
  color: rgba(16, 24, 25, 0.7);
  font-size: 13px;
  font-weight: 900;
}

.coupon-panel strong {
  font-size: 38px;
  line-height: 1;
}

.coupon-panel p {
  margin: 10px 0 0;
  color: rgba(16, 24, 25, 0.66);
  font-size: 13px;
  line-height: 1.5;
}

.package-list {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

.package-card {
  padding: 14px;
}

.package-card header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.package-card h3 {
  margin: 0;
  font-size: 17px;
}

.package-card em {
  font-style: normal;
  color: var(--coral);
  font-size: 18px;
  font-weight: 900;
}

.package-card ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.package-card li {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
  min-height: 34px;
  padding: 8px 10px;
  border-radius: 14px;
  background: rgba(16, 24, 25, 0.05);
  font-size: 13px;
  font-weight: 800;
}

.package-card li span {
  color: var(--muted);
}

.package-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.package-footer button,
.logistics-actions button,
.mine-grid button {
  min-height: 38px;
  border-radius: 999px;
  padding: 0 14px;
  color: var(--ink);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0)),
    linear-gradient(135deg, rgba(49, 220, 193, 0.92), rgba(91, 237, 149, 0.84));
  font-weight: 900;
}

.logistics-card {
  padding: 16px;
}

.logistics-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.logistics-head span,
.order-brief span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.logistics-head strong {
  display: block;
  margin-top: 4px;
  font-size: 18px;
}

.logistics-head em {
  min-height: 28px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(49, 220, 193, 0.18);
  color: var(--deep);
  font-style: normal;
  font-size: 12px;
  font-weight: 900;
}

.order-brief {
  display: grid;
  gap: 6px;
  margin-bottom: 16px;
  padding: 12px;
  border-radius: 18px;
  background: rgba(16, 24, 25, 0.05);
}

.order-brief strong {
  font-size: 15px;
}

.timeline {
  list-style: none;
  margin: 0;
  padding: 0 0 0 14px;
  display: grid;
  gap: 0;
}

.timeline li {
  position: relative;
  padding: 0 0 18px 18px;
  border-left: 2px solid rgba(16, 24, 25, 0.09);
}

.timeline li::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 0;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #c6d1cf;
}

.timeline li.active::before {
  background: var(--mint);
  box-shadow: 0 0 0 5px rgba(49, 220, 193, 0.18);
}

.timeline li:last-child {
  border-left-color: transparent;
  padding-bottom: 0;
}

.timeline strong {
  display: block;
  font-size: 14px;
}

.timeline span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.logistics-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 16px;
}

.logistics-detail-card {
  overflow: hidden;
}

.tracking-box {
  margin: 14px 0;
  padding: 14px;
  border-radius: 20px;
  background: rgba(16, 24, 25, 0.05);
}

.tracking-box span,
.tracking-grid span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.tracking-box strong {
  display: block;
  margin-top: 5px;
  font-size: 22px;
}

.tracking-box p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.delivery-map {
  position: relative;
  min-height: 240px;
  margin: 14px 0;
  border-radius: 24px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.22) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.24) 1px, transparent 1px),
    radial-gradient(circle at 24% 26%, rgba(255, 216, 107, 0.32), transparent 5rem),
    radial-gradient(circle at 76% 72%, rgba(49, 220, 193, 0.34), transparent 6rem),
    linear-gradient(135deg, #dff8f0, #fff2e4);
  background-size: 34px 34px, 34px 34px, auto, auto, auto;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.62);
}

.map-road {
  position: absolute;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 8px 18px rgba(16, 24, 25, 0.08);
}

.road-main {
  left: 44px;
  right: 38px;
  top: 118px;
  transform: rotate(-16deg);
}

.road-branch {
  width: 150px;
  right: 34px;
  top: 150px;
  transform: rotate(34deg);
}

.map-pin {
  position: absolute;
  display: grid;
  justify-items: center;
  gap: 6px;
  color: var(--ink);
  font-size: 11px;
  font-weight: 900;
}

.map-pin i {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  border: 5px solid var(--deep);
  box-shadow: 0 10px 22px rgba(16, 24, 25, 0.14);
}

.map-pin.active i {
  border-color: var(--coral);
  box-shadow: 0 0 0 8px rgba(255, 125, 103, 0.16), 0 10px 22px rgba(16, 24, 25, 0.14);
}

.map-pin strong {
  max-width: 70px;
  text-align: center;
}

.map-pin.warehouse {
  left: 22px;
  top: 34px;
}

.map-pin.hub {
  left: 130px;
  top: 108px;
}

.map-pin.outlet {
  right: 52px;
  top: 72px;
}

.map-pin.destination {
  right: 24px;
  bottom: 24px;
}

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

.tracking-grid div {
  min-height: 72px;
  padding: 12px;
  border-radius: 18px;
  background: rgba(16, 24, 25, 0.05);
}

.tracking-grid strong {
  display: block;
  margin-top: 7px;
  font-size: 14px;
}

.profile-screen {
  background:
    radial-gradient(circle at 20% 6%, rgba(255, 216, 107, 0.34), transparent 8rem),
    radial-gradient(circle at 86% 18%, rgba(124, 209, 194, 0.32), transparent 9rem),
    linear-gradient(180deg, #fff7f1 0%, #f5fffa 48%, #fffdf6 100%);
}

.profile-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 12px;
  margin-bottom: 12px;
}

.profile-summary.points-balance-card {
  position: relative;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 12px;
  padding: 16px;
  overflow: hidden;
  background:
    radial-gradient(circle at 80% 10%, rgba(255, 216, 107, 0.42), transparent 7rem),
    linear-gradient(135deg, rgba(255, 141, 107, 0.86), rgba(124, 209, 194, 0.82));
  border: 1px solid rgba(255, 255, 255, 0.64);
  box-shadow: 0 18px 42px rgba(157, 81, 56, 0.14);
}

.profile-summary div {
  min-height: 74px;
  border-radius: 18px;
  padding: 12px;
  background: linear-gradient(135deg, rgba(49, 220, 193, 0.16), rgba(255, 255, 255, 0.76));
}

.profile-summary.points-balance-card div {
  position: relative;
  z-index: 1;
  min-height: 112px;
  background: rgba(255, 255, 255, 0.34);
  border: 1px solid rgba(255, 255, 255, 0.52);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.profile-summary span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.profile-summary.points-balance-card span,
.profile-summary.points-balance-card small,
.profile-summary.points-balance-card p {
  color: rgba(16, 24, 25, 0.7);
  font-weight: 900;
}

.profile-summary strong {
  display: block;
  margin-top: 8px;
  font-size: 20px;
}

.balance-main strong {
  font-size: 54px;
  line-height: 0.95;
}

.balance-main small {
  display: block;
  margin-top: 8px;
  font-size: 12px;
}

.balance-detail {
  display: grid;
  align-content: center;
}

.balance-detail p {
  margin: 8px 0 0;
  font-size: 13px;
}

.mine-card {
  padding: 16px;
  margin-bottom: 12px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.68);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.mine-card h2 {
  margin-bottom: 10px;
  font-size: 18px;
}

.mine-card p {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.mine-card p:last-child {
  margin-bottom: 0;
}

.mine-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}

.mine-grid button {
  min-height: 86px;
  border-radius: 20px;
  padding: 12px 8px;
  display: grid;
  align-content: center;
  gap: 5px;
  text-align: center;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0.1)),
    rgba(255, 255, 255, 0.62);
  box-shadow: var(--soft-shadow);
}

.mine-grid strong {
  font-size: 14px;
}

.mine-grid span {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.points-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
}

.points-line:last-child {
  border-bottom: 0;
}

.points-line span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.points-line strong {
  font-size: 15px;
}

.faq details {
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.faq details:last-child {
  border-bottom: 0;
}

.faq summary {
  cursor: pointer;
  font-weight: 900;
}

.faq details p {
  margin: 8px 0 0;
}

.drawer {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: end center;
  padding: 18px;
  background: rgba(8, 16, 14, 0.34);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 220ms ease, visibility 220ms ease;
  z-index: 10;
}

.drawer.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.drawer-card {
  width: min(100%, 430px);
  border-radius: 30px 30px 24px 24px;
  padding: 22px;
  background:
    radial-gradient(circle at 88% 8%, rgba(49, 220, 193, 0.2), transparent 10rem),
    #fffdf8;
  box-shadow: 0 -24px 70px rgba(0, 0, 0, 0.18);
  transform: translateY(24px);
  transition: transform 260ms cubic-bezier(0.22, 1, 0.36, 1);
}

.drawer.open .drawer-card {
  transform: translateY(0);
}

.drawer-card h2 {
  margin-bottom: 8px;
  font-size: 26px;
}

.close-button {
  float: right;
  box-shadow: none;
  background: rgba(16, 24, 25, 0.06);
}

.muted {
  color: var(--muted);
  line-height: 1.6;
}

.field {
  display: grid;
  gap: 8px;
  margin: 14px 0;
  font-weight: 900;
}

.field input {
  width: 100%;
  min-height: 50px;
  border: 1px solid var(--line);
  border-radius: 18px;
  outline: 0;
  padding: 0 14px;
  background: #f7fbf8;
  color: var(--ink);
}

.field input:focus {
  border-color: rgba(49, 220, 193, 0.8);
  box-shadow: 0 0 0 4px rgba(49, 220, 193, 0.14);
}

.primary-button {
  width: 100%;
  min-height: 52px;
  margin-top: 8px;
}

.detail-card {
  max-height: min(78vh, 720px);
  overflow-y: auto;
}

.detail-hero {
  min-height: 170px;
  border-radius: 24px;
  background: var(--accent);
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  position: relative;
  overflow: hidden;
}

.detail-hero::before {
  content: "";
  position: absolute;
  width: 160px;
  height: 160px;
  border-radius: 44px;
  background: rgba(255, 255, 255, 0.52);
  transform: rotate(14deg);
}

.detail-hero::after {
  content: attr(data-icon);
  position: relative;
  font-size: 60px;
  font-weight: 900;
}

.detail-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 16px 0;
}

.detail-meta div {
  border-radius: 16px;
  padding: 12px;
  background: rgba(16, 24, 25, 0.05);
}

.detail-meta span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}

.detail-meta strong {
  display: block;
  margin-top: 5px;
  font-size: 14px;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  max-width: min(360px, calc(100vw - 36px));
  transform: translate(-50%, 24px);
  border-radius: 999px;
  padding: 12px 18px;
  background: rgba(16, 24, 25, 0.92);
  color: #fff;
  font-weight: 900;
  font-size: 13px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease, transform 220ms ease;
  z-index: 20;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

@media (max-width: 460px) {
  body {
    padding: 0;
  }

  .mini-shell {
    width: 100%;
    height: 100vh;
    min-height: 100vh;
    border-radius: 0;
  }

  .screen {
    padding-left: 14px;
    padding-right: 14px;
  }

  h1 {
    font-size: 31px;
  }

  .banner-slide {
    padding: 18px;
  }
}

@media (max-width: 365px) {
  .product-card {
    grid-template-columns: 84px 1fr;
  }

  .card-actions {
    flex-direction: column;
  }
}
