:root {
  --bg: #eef2f7;
  --app: #f6f7fb;
  --card: rgba(255, 255, 255, 0.96);
  --card-solid: #ffffff;
  --ink: #111827;
  --muted: #6b7280;
  --faint: #98a2b3;
  --line: rgba(17, 24, 39, 0.09);
  --line-strong: rgba(17, 24, 39, 0.14);
  --blue: #1677ff;
  --red: #ff3b30;
  --orange: #ff7a1a;
  --green: #13a86b;
  --yellow: #f5a400;
  --purple: #7357ff;
  --shadow: 0 14px 34px rgba(16, 24, 40, 0.08);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-top: env(safe-area-inset-top, 0px);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 50% -8%, rgba(22, 119, 255, 0.13), transparent 320px),
    linear-gradient(180deg, #f9fbff, var(--bg));
  color: var(--ink);
  font-family: inherit;
  letter-spacing: 0;
}

button,
input {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
  color: inherit;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
}

.app-stage {
  min-height: 100dvh;
  display: flex;
  justify-content: center;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.55) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.55) 1px, transparent 1px);
  background-size: 28px 28px;
}

.phone-app {
  position: relative;
  width: min(100%, 430px);
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  background: var(--app);
  box-shadow: 0 0 0 1px rgba(17, 24, 39, 0.06), 0 28px 80px rgba(16, 24, 40, 0.18);
}

.app-top {
  position: sticky;
  top: 0;
  z-index: 30;
  padding: calc(6px + var(--safe-top)) 14px 10px;
  background: rgba(246, 247, 251, 0.86);
  border-bottom: 1px solid rgba(17, 24, 39, 0.06);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.nav-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 44px;
  gap: 10px;
}

.nav-line > div {
  flex: 1;
  min-width: 0;
  display: grid;
  gap: 2px;
}

.nav-line strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 20px;
  line-height: 1.15;
  letter-spacing: 0;
}

.nav-line span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--muted);
  font-size: 12px;
}

.app-logo,
.icon-button {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  color: #fff;
  font-weight: 900;
}

.app-logo img,
.avatar.brand-avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

.avatar.brand-avatar {
  overflow: hidden;
  background: #fff;
}

.icon-button {
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
  font-size: 30px;
  line-height: 1;
}

.mini-profile {
  min-width: 54px;
  height: 34px;
  padding: 0 11px;
  border-radius: 999px;
  background: #fff;
  color: var(--blue);
  border: 1px solid rgba(22, 119, 255, 0.16);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.app-main {
  flex: 1 0 auto;
  padding: 12px 12px calc(92px + var(--safe-bottom));
}

.route-productDetail {
  padding-bottom: calc(104px + var(--safe-bottom));
}

.route-checkout {
  padding-bottom: calc(14px + var(--safe-bottom));
}

.route-view {
  animation: routeIn 180ms ease both;
}

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

.home-search,
.hero-card,
.quick-grid,
.app-section,
.coupon-strip,
.category-tabs,
.filter-search,
.filter-chips,
.order-status-tabs,
.cart-tip,
.cart-summary,
.login-card,
.profile-card,
.asset-row,
.mine-menu,
.member-actions,
.detail-hero,
.detail-price,
.detail-block,
.checkout-item,
.checkout-coupon,
.checkout-total,
.login-gate,
.order-detail {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--card);
  box-shadow: 0 8px 22px rgba(16, 24, 40, 0.045);
}

.home-search {
  padding: 9px 12px;
}

.home-search label,
.filter-search,
.account-field,
.login-card label {
  display: grid;
  gap: 6px;
}

.home-search label {
  display: flex;
  align-items: center;
  min-height: 38px;
  gap: 9px;
  color: var(--muted);
}

.home-search input,
.filter-search input,
.account-field input,
.login-card input {
  min-height: 34px;
  font-size: 15px;
}

.hero-card {
  position: relative;
  margin-top: 12px;
  min-height: 190px;
  padding: 20px 18px;
  overflow: hidden;
  background:
    radial-gradient(circle at 90% 18%, rgba(255, 213, 107, 0.38), transparent 92px),
    radial-gradient(circle at 78% 92%, rgba(30, 214, 255, 0.32), transparent 124px),
    linear-gradient(135deg, #071b4f 0%, #0b3a8d 50%, #1667ff 100%);
  color: #fff;
  box-shadow: 0 18px 34px rgba(15, 70, 180, 0.2);
}

.hero-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(110deg, rgba(255, 255, 255, 0.22), transparent 32%),
    radial-gradient(circle at 20% 120%, rgba(6, 20, 64, 0.48), transparent 140px);
  pointer-events: none;
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 66%;
}

.hero-card span {
  display: inline-flex;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.24);
  color: rgba(255, 255, 255, 0.95);
  font-size: 12px;
  font-weight: 700;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.24);
}

.hero-card h1 {
  margin: 12px 0 8px;
  max-width: 12em;
  font-size: 24px;
  line-height: 1.16;
  letter-spacing: 0;
}

.hero-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 13px;
  line-height: 1.55;
}

.hero-card button {
  min-height: 42px;
  margin-top: 18px;
  padding: 0 18px;
  border-radius: 999px;
  background: linear-gradient(180deg, #fff8d8, #ffd76a);
  color: #092a6f;
  font-weight: 900;
  box-shadow: 0 10px 22px rgba(8, 30, 94, 0.22);
}

.hero-art {
  position: absolute;
  right: -9px;
  bottom: -8px;
  z-index: 1;
  width: min(42%, 178px);
  pointer-events: none;
}

.hero-art svg {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 14px 18px rgba(5, 22, 72, 0.26));
}

.quick-grid {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  padding: 12px 8px 13px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 250, 255, 0.98)),
    radial-gradient(circle at 12% 0%, rgba(22, 103, 255, 0.13), transparent 90px);
}

.quick-grid button {
  min-height: 70px;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 5px;
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff, #f4f8ff);
  color: var(--ink);
  box-shadow: inset 0 0 0 1px rgba(22, 103, 255, 0.11), 0 8px 18px rgba(12, 58, 141, 0.08);
  transition: transform 150ms ease, box-shadow 150ms ease;
}

.quick-grid button:active {
  transform: scale(0.96);
}

.quick-grid .quick-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  filter: drop-shadow(0 8px 10px rgba(22, 103, 255, 0.16));
}

.quick-grid .quick-icon svg {
  display: block;
  width: 42px;
  height: 42px;
}

.quick-grid strong {
  font-size: 11px;
  font-weight: 800;
}

.app-section,
.coupon-strip {
  margin-top: 12px;
  padding: 14px;
}

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

.section-title div {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.section-title strong {
  font-size: 17px;
  line-height: 1.2;
}

.section-title span,
.section-title em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.section-title button {
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: #f1f5fb;
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
}

.h-scroll,
.flash-list {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 128px;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 2px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.h-scroll::-webkit-scrollbar,
.flash-list::-webkit-scrollbar,
.category-tabs::-webkit-scrollbar,
.order-status-tabs::-webkit-scrollbar {
  display: none;
}

.compact-product,
.flash-card {
  min-height: 148px;
  display: grid;
  align-content: start;
  justify-items: start;
  gap: 7px;
  padding: 12px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: #fff;
  text-align: left;
  scroll-snap-align: start;
}

.brand-logo {
  width: 40px;
  height: 40px;
  display: inline-grid;
  place-items: center;
  overflow: hidden;
  border-radius: 13px;
  background: #f2f5fa;
  color: #1f2937;
  font-size: 11px;
  font-weight: 900;
}

.brand-logo.large {
  width: 66px;
  height: 66px;
  border-radius: 19px;
}

.brand-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.compact-product strong,
.flash-card strong {
  width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 15px;
}

.compact-product span,
.flash-card span,
.compact-product del,
.flash-card del {
  color: var(--muted);
  font-size: 12px;
  text-decoration: none;
}

.compact-product em,
.flash-card em {
  color: var(--red);
  font-size: 16px;
  font-style: normal;
  font-weight: 900;
}

.flash-card {
  min-height: 108px;
  background: linear-gradient(180deg, #fff8f2, #fff);
}

.flash-card span {
  padding: 4px 7px;
  border-radius: 999px;
  background: #fff0e7;
  color: #d64d16;
  font-weight: 800;
}

.coupon-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: linear-gradient(135deg, #fff5ee, #fff);
}

.coupon-strip div {
  display: grid;
  gap: 3px;
}

.coupon-strip strong {
  font-size: 16px;
}

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

.coupon-strip button {
  min-height: 38px;
  padding: 0 13px;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  font-weight: 900;
}

.product-list,
.cart-list,
.order-card-list,
.checkout-list {
  display: grid;
  gap: 10px;
}

.list-product,
.order-card,
.cart-item,
.checkout-item {
  width: 100%;
  min-height: 92px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 11px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  text-align: left;
}

.list-info {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.list-info span,
.list-info em,
.list-info b,
.list-price em,
.cart-item span,
.checkout-item span {
  overflow: hidden;
  color: var(--muted);
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
  font-style: normal;
  font-weight: 600;
}

.list-info strong,
.cart-item strong,
.checkout-item strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 16px;
}

.list-price {
  display: grid;
  justify-items: end;
  gap: 2px;
}

.list-price strong,
.cart-item em,
.checkout-item em {
  color: var(--red);
  font-size: 16px;
  font-style: normal;
  font-weight: 900;
}

.category-page,
.orders-page,
.cart-page,
.mine-page,
.detail-page,
.checkout-page {
  display: grid;
  gap: 12px;
}

.category-tabs,
.order-status-tabs {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: max-content;
  gap: 8px;
  overflow-x: auto;
  padding: 8px;
  scrollbar-width: none;
}

.category-tabs {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(242, 247, 255, 0.96)),
    radial-gradient(circle at 12% 0%, rgba(22, 103, 255, 0.12), transparent 88px);
}

.category-tabs button,
.order-status-tabs button,
.filter-chips button {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 12px;
  border-radius: 999px;
  background: #f4f7fd;
  color: #54627a;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.category-tabs button {
  box-shadow: inset 0 0 0 1px rgba(22, 103, 255, 0.08);
}

.category-tabs .category-tab-icon {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
}

.category-tabs .category-tab-icon svg {
  display: block;
  width: 22px;
  height: 22px;
}

.category-tabs button.active,
.order-status-tabs button.active,
.filter-chips button.active {
  background: linear-gradient(135deg, #071b4f, #0b3a8d 58%, #1667ff);
  color: #fff;
  box-shadow: 0 8px 16px rgba(15, 70, 180, 0.18), inset 0 0 0 1px rgba(255, 215, 106, 0.28);
}

.order-status-tabs button span {
  display: inline-grid;
  min-width: 18px;
  height: 18px;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  font-size: 11px;
}

.filter-search {
  padding: 10px 12px;
}

.filter-search span,
.account-field span,
.login-card label > span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.filter-chips {
  display: flex;
  gap: 8px;
  padding: 8px;
  overflow-x: auto;
}

.order-card {
  grid-template-columns: minmax(0, 1fr) auto;
}

.order-card.active {
  border-color: rgba(22, 119, 255, 0.36);
  box-shadow: 0 8px 20px rgba(22, 119, 255, 0.08);
}

.order-card div {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.order-card div:last-child {
  justify-items: end;
}

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

.order-card em,
.order-card span {
  overflow: hidden;
  color: var(--muted);
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
  font-style: normal;
}

.badge {
  width: max-content;
  padding: 4px 8px;
  border-radius: 999px;
  background: #eef4ff;
  color: var(--blue);
  font-size: 11px;
  font-weight: 900;
}

.badge.good {
  background: #eafaf3;
  color: var(--green);
}

.badge.warn {
  background: #fff4e7;
  color: #d06400;
}

.badge.neutral {
  background: #edf4ff;
  color: var(--blue);
}

.badge.muted {
  background: #f1f5f9;
  color: var(--muted);
}

.order-detail {
  padding: 14px;
}

.order-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  margin-bottom: 12px;
}

.order-actions button,
.member-actions button {
  min-height: 40px;
  border-radius: 13px;
  background: #f2f5fa;
  color: var(--ink);
  font-weight: 900;
}

.timeline {
  display: grid;
  gap: 10px;
}

.timeline div {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.timeline div > span {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--blue);
  box-shadow: 0 0 0 4px rgba(22, 119, 255, 0.12);
}

.timeline strong {
  font-size: 13px;
}

.timeline em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.cart-tip {
  padding: 13px;
  display: grid;
  gap: 3px;
}

.cart-tip.warn {
  background: #fff7ed;
}

.cart-tip strong {
  font-size: 15px;
}

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

.cart-item button {
  min-height: 36px;
  padding: 0 11px;
  border-radius: 999px;
  background: #f2f5fa;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.cart-summary {
  position: sticky;
  bottom: calc(78px + var(--safe-bottom));
  z-index: 12;
  display: grid;
  gap: 8px;
  padding: 13px;
}

.cart-summary div,
.checkout-total div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 13px;
}

.cart-summary strong,
.checkout-total strong {
  color: var(--ink);
  font-size: 15px;
}

.cart-summary button {
  min-height: 46px;
  border-radius: 14px;
  background: var(--blue);
  color: #fff;
  font-weight: 900;
}

.login-gate {
  padding: 22px 18px;
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 10px;
}

.avatar {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border-radius: 20px;
  background: #111827;
  color: #fff;
  font-weight: 900;
}

.login-gate h2 {
  margin: 0;
  font-size: 22px;
}

.login-gate p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.login-gate button,
.login-submit {
  min-height: 46px;
  width: 100%;
  border-radius: 15px;
  background: var(--blue);
  color: #fff;
  font-weight: 900;
}

.home-screen-shortcut-prompt {
  margin: 0 12px 12px;
  padding: 12px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: start;
  gap: 10px;
  border: 1px solid rgba(36, 99, 235, 0.18);
  border-radius: 16px;
  background: #f8fbff;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.08);
}

.home-screen-shortcut-prompt .shortcut-copy {
  display: grid;
  gap: 3px;
}

.home-screen-shortcut-prompt strong {
  color: var(--ink);
  font-size: 13px;
}

.home-screen-shortcut-prompt span {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.home-screen-shortcut-prompt button {
  min-height: 34px;
  padding: 0 12px;
  border-radius: 12px;
  background: #eaf2ff;
  color: var(--blue);
  font-weight: 900;
  align-self: center;
}

.home-screen-shortcut-prompt .shortcut-close {
  width: 34px;
  padding: 0;
  background: rgba(15, 23, 42, 0.06);
  color: var(--muted);
  font-size: 18px;
  line-height: 1;
}

.home-screen-shortcut-guide {
  grid-column: 1 / -1;
  display: grid;
  gap: 8px;
  padding: 10px;
  border-radius: 13px;
  background: #eef6ff;
}

.home-screen-shortcut-guide strong {
  font-size: 12px;
}

.home-screen-shortcut-guide ol {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 7px;
}

.home-screen-shortcut-guide li {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.home-screen-shortcut-guide b {
  display: block;
  color: var(--ink);
  font-size: 11px;
}

.home-screen-shortcut-guide span {
  display: block;
}

.home-screen-shortcut-guide button {
  justify-self: start;
}

.login-card {
  padding: 14px;
  display: grid;
  gap: 12px;
  text-align: left;
}

.login-card.page-login {
  padding: 14px;
  gap: 12px;
}

.one-click-card {
  display: grid;
  gap: 10px;
  padding: 12px;
  border-radius: 15px;
  background: #111827;
  color: #fff;
}

.one-click-card div {
  display: grid;
  gap: 3px;
}

.one-click-card span,
.one-click-card em {
  color: rgba(255, 255, 255, 0.68);
  font-size: 12px;
  font-style: normal;
}

.one-click-card strong {
  font-size: 20px;
}

.one-click-card button {
  min-height: 44px;
  border-radius: 14px;
  background: #fff;
  color: #111827;
  font-weight: 900;
}

.one-click-card button:disabled {
  opacity: 0.68;
}

.quick-login-card {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(36, 99, 235, 0.18);
  border-radius: 15px;
  background: linear-gradient(135deg, #eef4ff, #f8fbff);
}

.quick-login-card div {
  display: grid;
  gap: 3px;
}

.quick-login-card span,
.quick-login-card em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.quick-login-card strong {
  color: var(--ink);
  font-size: 20px;
}

.quick-login-card button {
  min-height: 44px;
  border-radius: 14px;
  background: #111827;
  color: #fff;
  font-weight: 900;
}

.quick-login-card.muted {
  border-color: var(--line);
  background: #fff;
}

.sms-login-panel {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 16px;
  background: linear-gradient(180deg, #fff 0%, #f8fbff 100%);
}

.sms-login-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  padding: 0 2px 2px;
}

.sms-login-head strong {
  color: var(--ink);
  font-size: 15px;
  font-weight: 900;
}

.sms-login-head span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
  text-align: right;
}

.login-card label:not(.agreement) {
  min-height: 64px;
  padding: 10px 12px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 14px;
  background: #fff;
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease;
}

.login-card label:not(.agreement):focus-within {
  border-color: rgba(22, 119, 255, 0.46);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(22, 119, 255, 0.08);
}

.login-code-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 88px;
  gap: 9px;
  align-items: stretch;
}

.login-code-row button {
  min-height: 64px;
  border-radius: 14px;
  border: 1px solid rgba(22, 119, 255, 0.1);
  background: #eaf2ff;
  color: var(--blue);
  font-weight: 900;
}

.login-card .agreement {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
  padding: 1px 2px 0;
}

.login-card .agreement input {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  margin-top: 0;
  accent-color: var(--blue);
}

.login-submit {
  box-shadow: 0 10px 18px rgba(22, 119, 255, 0.16);
}

.login-submit:active,
.login-code-row button:active,
.one-click-card button:active,
.quick-login-card button:active {
  transform: translateY(1px);
}

.login-card em,
.account-field em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.login-card em.good,
.account-field em.good,
.positive {
  color: var(--green);
}

.login-card em.warn,
.account-field em.warn {
  color: #d06400;
}

.profile-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 16px;
  color: #fff;
  background: linear-gradient(135deg, #111827, #2f3c56);
}

.profile-card .avatar {
  background: rgba(255, 255, 255, 0.16);
}

.profile-card div {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.profile-card strong {
  font-size: 18px;
}

.profile-card span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
}

.profile-card em {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}

.retention-landing-card {
  display: grid;
  gap: 7px;
  padding: 14px;
  border: 1px solid rgba(22, 119, 255, 0.14);
  border-radius: 16px;
  background: linear-gradient(180deg, #f7fbff, #ffffff);
}

.retention-landing-card span {
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
}

.retention-landing-card strong {
  color: var(--ink);
  font-size: 16px;
  line-height: 1.35;
}

.retention-landing-card em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  line-height: 1.5;
}

.retention-landing-card button {
  justify-self: start;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 12px;
  background: var(--blue);
  color: #fff;
  font-weight: 900;
}

.retention-landing-card.loading {
  opacity: 0.78;
}

.asset-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  padding: 8px;
}

.asset-row button {
  min-height: 62px;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 4px;
  border-radius: 13px;
  background: transparent;
}

.asset-row strong {
  font-size: 18px;
}

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

.mine-menu {
  padding: 6px;
}

.mine-menu button {
  width: 100%;
  min-height: 50px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 7px 8px;
  border-radius: 14px;
  background: transparent;
  text-align: left;
}

.mine-menu button + button {
  border-top: 1px solid rgba(17, 24, 39, 0.05);
}

.mine-menu span {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 11px;
  background: #f0f5ff;
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
}

.mine-menu strong {
  font-size: 15px;
}

.mine-menu em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.member-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 10px;
}

.detail-hero {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 16px;
}

.detail-hero div {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.detail-hero span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.detail-hero h1 {
  margin: 0;
  font-size: 24px;
  letter-spacing: 0;
}

.detail-hero p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.detail-price {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
}

.detail-price div {
  display: grid;
  gap: 3px;
}

.detail-price span,
.detail-price em,
.detail-price del {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.detail-price strong {
  color: var(--red);
  font-size: 25px;
  line-height: 1;
}

.detail-block {
  padding: 14px;
}

.block-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 11px;
}

.block-title strong {
  font-size: 16px;
}

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

.sku-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.sku-chips button {
  min-height: 44px;
  min-width: 88px;
  display: grid;
  align-content: center;
  gap: 2px;
  padding: 7px 11px;
  border-radius: 13px;
  border: 1px solid var(--line);
  background: #fff;
  text-align: left;
}

.sku-chips button.active {
  border-color: rgba(22, 119, 255, 0.72);
  background: #eef5ff;
}

.sku-chips strong {
  font-size: 14px;
}

.sku-chips span,
.sku-chips em {
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
}

.account-field {
  position: relative;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}

.account-suggestions {
  position: absolute;
  z-index: 40;
  top: calc(100% - 2px);
  right: 10px;
  left: 10px;
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid rgba(17, 24, 39, 0.1);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.16);
  backdrop-filter: blur(14px);
}

.account-suggestions-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 2px 4px;
}

.account-suggestions-head strong {
  color: var(--ink);
  font-size: 13px;
}

.account-suggestions-head span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.account-suggestion {
  width: 100%;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid rgba(203, 213, 225, 0.8);
  border-radius: 14px;
  background: linear-gradient(180deg, #fff, #f8fbff);
  color: var(--ink);
  text-align: left;
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.06);
}

.account-suggestion:hover {
  border-color: rgba(37, 99, 235, 0.42);
  background: #f3f8ff;
}

.account-suggestion-icon {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.12), rgba(14, 165, 233, 0.18));
  color: var(--blue);
  font-size: 13px;
  font-weight: 900;
}

.account-suggestion-main {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.account-suggestion-main strong,
.account-suggestion-main em {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-suggestion-main strong {
  color: var(--ink);
  font-size: 14px;
}

.account-suggestion-main em {
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
}

.account-suggestion-tag {
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.08);
  color: var(--blue);
  font-size: 11px;
  font-weight: 900;
}

.account-suggestion-empty {
  padding: 12px;
  border-radius: 14px;
  background: #f8fafc;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}

.service-grid {
  display: grid;
  gap: 9px;
}

.service-grid div {
  padding: 11px;
  border-radius: 14px;
  background: #f7f9fc;
}

.service-grid strong {
  display: block;
  margin-bottom: 4px;
  font-size: 14px;
}

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

.detail-spacer,
.checkout-spacer {
  min-height: 18px;
}

.detail-buybar {
  position: fixed;
  left: 50%;
  bottom: 0;
  z-index: 45;
  width: min(100%, 430px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 9px;
  padding: 10px 12px calc(10px + var(--safe-bottom));
  background: rgba(255, 255, 255, 0.93);
  border-top: 1px solid var(--line);
  transform: translateX(-50%);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.checkout-buybar {
  position: sticky;
  bottom: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 132px;
  align-items: center;
  gap: 9px;
  margin: 12px -12px calc(-14px - var(--safe-bottom));
  padding: 10px 12px calc(10px + var(--safe-bottom));
  background: rgba(255, 255, 255, 0.94);
  border-top: 1px solid var(--line);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.detail-buybar button,
.checkout-buybar button {
  min-height: 48px;
  border-radius: 15px;
  font-weight: 900;
}

.detail-buybar .secondary {
  background: #eef4ff;
  color: var(--blue);
}

.detail-buybar .primary,
.checkout-buybar button {
  background: var(--blue);
  color: #fff;
}

.checkout-list {
  gap: 10px;
}

.checkout-page {
  display: grid;
}

.checkout-item {
  grid-template-columns: auto minmax(0, 1fr) auto;
}

.checkout-coupon,
.checkout-total {
  padding: 14px;
}

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

.checkout-coupon div {
  display: grid;
  gap: 4px;
}

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

.checkout-coupon label {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 900;
}

.checkout-coupon input {
  width: 18px;
  height: 18px;
}

.checkout-buybar div {
  display: grid;
  gap: 2px;
}

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

.checkout-buybar strong {
  color: var(--red);
  font-size: 20px;
}

.tabbar {
  position: fixed;
  left: 50%;
  bottom: 0;
  z-index: 42;
  width: min(100%, 430px);
  height: calc(70px + var(--safe-bottom));
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: center;
  padding: 8px 10px calc(7px + var(--safe-bottom));
  background: rgba(255, 255, 255, 0.96);
  border-top: 1px solid var(--line);
  transform: translateX(-50%);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 -12px 30px rgba(15, 23, 42, 0.08);
}

.route-productDetail ~ .tabbar,
.route-checkout ~ .tabbar {
  display: none;
}

.tabbar button {
  min-height: 52px;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 3px;
  border-radius: 16px;
  background: transparent;
  color: var(--muted);
  transition: color 150ms ease, transform 150ms ease, background 150ms ease;
}

.tabbar button:active {
  transform: scale(0.96);
}

.tabbar .tab-icon {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 13px;
}

.tabbar .tab-icon svg {
  display: block;
  width: 26px;
  height: 26px;
}

.tabbar strong {
  font-size: 10px;
  line-height: 1.1;
}

.tabbar button.active {
  color: #0b4bd3;
}

.tabbar button.active .tab-icon {
  color: #fff;
  background: linear-gradient(135deg, #071b4f, #0b4bd3 58%, #1ed6ff);
  box-shadow: 0 8px 16px rgba(15, 70, 180, 0.24), inset 0 0 0 1px rgba(255, 215, 106, 0.34);
}

.confirm-backdrop {
  position: fixed;
  inset: 0;
  z-index: 76;
  display: grid;
  align-items: end;
  justify-items: center;
  background: rgba(15, 23, 42, 0.36);
}

.confirm-sheet {
  width: min(100%, 430px);
  padding: 10px 14px calc(16px + var(--safe-bottom));
  border-radius: 24px 24px 0 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 248, 252, 0.98)),
    var(--app);
  box-shadow: 0 -22px 54px rgba(15, 23, 42, 0.24);
}

.confirm-product {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
}

.confirm-product div {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.confirm-product strong {
  overflow: hidden;
  font-size: 16px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.confirm-product em {
  color: var(--red);
  font-style: normal;
  font-size: 16px;
  font-weight: 900;
}

.confirm-info {
  display: grid;
  gap: 10px;
  margin-top: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.78);
}

.confirm-info div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
}

.confirm-info span {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 13px;
}

.confirm-info strong {
  min-width: 0;
  overflow-wrap: anywhere;
  text-align: right;
  font-size: 14px;
}

.confirm-info .price {
  color: var(--red);
  font-size: 20px;
}

.confirm-message {
  display: block;
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  font-style: normal;
  font-size: 13px;
  font-weight: 800;
}

.confirm-message.good {
  background: rgba(19, 168, 107, 0.1);
  color: #087a4d;
}

.confirm-message.warn {
  background: rgba(255, 122, 26, 0.1);
  color: #b75300;
}

.confirm-actions {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 10px;
  margin-top: 14px;
}

.confirm-actions button {
  min-height: 52px;
  border-radius: 18px;
  font-size: 16px;
  font-weight: 900;
}

.confirm-actions .secondary {
  background: #edf3ff;
  color: #0b4bd3;
}

.confirm-actions .primary {
  background: linear-gradient(135deg, #1677ff, #0b4bd3);
  color: #fff;
  box-shadow: 0 14px 24px rgba(22, 119, 255, 0.24);
}

.payment-backdrop {
  z-index: 77;
}

.payment-sheet {
  background:
    radial-gradient(circle at 72% 8%, rgba(30, 214, 255, 0.18), transparent 190px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(245, 248, 255, 0.99));
}

.payment-amount {
  display: grid;
  justify-items: center;
  gap: 6px;
  padding: 20px 14px 18px;
  border-radius: 20px;
  background: linear-gradient(135deg, #071b4f, #0b4bd3 64%, #1ed6ff);
  color: #fff;
  box-shadow: 0 14px 28px rgba(22, 119, 255, 0.24);
}

.payment-amount span {
  color: rgba(255, 255, 255, 0.76);
  font-size: 13px;
  font-weight: 800;
}

.payment-amount strong {
  font-size: 34px;
  line-height: 1;
  font-weight: 950;
}

.payment-info {
  background: #fff;
}

.auth-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  align-items: end;
  justify-items: center;
  background: rgba(17, 24, 39, 0.34);
}

.auth-sheet {
  width: min(100%, 430px);
  max-height: calc(100dvh - 44px);
  overflow-y: auto;
  padding: 10px 12px calc(14px + var(--safe-bottom));
  border-radius: 22px 22px 0 0;
  background: var(--app);
  box-shadow: 0 -18px 50px rgba(16, 24, 40, 0.22);
}

.sheet-grabber {
  width: 38px;
  height: 4px;
  margin: 2px auto 12px;
  border-radius: 999px;
  background: rgba(17, 24, 39, 0.18);
}

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

.sheet-head div {
  display: grid;
  gap: 4px;
}

.sheet-head strong {
  font-size: 18px;
}

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

.sheet-head button {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  font-size: 22px;
}

.empty-state {
  min-height: 130px;
  display: grid;
  place-items: center;
  gap: 6px;
  padding: 18px;
  border: 1px dashed var(--line-strong);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.62);
  text-align: center;
}

.empty-state strong {
  font-size: 16px;
}

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

@media (min-width: 720px) {
  .app-stage {
    padding: 28px 0;
  }

  .phone-app {
    min-height: 860px;
    max-height: calc(100dvh - 56px);
    overflow-y: auto;
    border-radius: 34px;
  }

  .app-top {
    padding-top: 10px;
  }

  .tabbar {
    position: sticky;
    left: auto;
    right: auto;
    bottom: 0;
    width: 100%;
    transform: none;
    border-radius: 0 0 34px 34px;
  }

  .detail-buybar {
    bottom: 28px;
    border-radius: 0 0 34px 34px;
  }

  .checkout-buybar {
    border-radius: 0 0 24px 24px;
  }
}

@media (max-width: 374px) {
  .quick-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .h-scroll {
    grid-auto-columns: 122px;
  }

  .member-actions {
    grid-template-columns: 1fr;
  }
}

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