﻿/**
 * 瀛︾敓绔?H5 鈥?璁捐绯荤粺 v3 (Premium Edition)
 * 椋庢牸锛歋oft UI Evolution + Warm Premium 路 Education 路 Beauty
 * 瀵规爣锛歁asterclass 路 Duolingo 路 Notion 路 Linear
 * 鏀硅繘锛氱幓鐠冩€侊紙閫夋嫨鎬э級銆佹洿濂藉姣斿害銆佺簿鑹井浜や簰銆佸ぇ鍘傜骇缁嗚妭
 */

/* Use the platform Chinese UI stack to avoid external font latency in H5/WebView. */

/* 鈹€鈹€ 1. CSS Variables 鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€ */
:root {
  /* Brand 鈥?淇濈暀鍘熷搧鐗岃壊锛岀簿缁嗗寲璋冧紭 */
  --brand-from:   #E8634A;
  --brand-to:     #F09060;
  --brand-mid:    #EE784E;
  --brand-ghost:  rgba(232, 99, 74, 0.08);
  --brand-ghost2: rgba(232, 99, 74, 0.12);

  /* Surfaces 鈥?鏆栫櫧鍩鸿皟锛屾洿缁嗚吇 */
  --bg-base:      #F8F5F2;
  --bg-card:      #FFFFFF;
  --bg-overlay:   rgba(15, 12, 10, 0.48);
  --bg-mask:      rgba(248, 245, 242, 0.82);
  --bg-warm:      #FFF8F5;

  --brand-gradient: linear-gradient(135deg, #E8634A 0%, #F09060 100%);

  /* Glass surfaces */
  --glass-bg:     rgba(255, 255, 255, 0.65);
  --glass-bg-light: rgba(255, 255, 255, 0.45);
  --glass-border: rgba(255, 255, 255, 0.7);
  --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);

  /* Text 鈥?鎻愬崌瀵规瘮搴﹀埌澶у巶鏍囧噯 */
  --text-primary:   #1C1917;
  --text-secondary: #57534E;
  --text-muted:     #A8A29E;
  --text-inverse:   #FFFFFF;
  --text-link:      #E8634A;

  /* Borders */
  --border-light:  rgba(0, 0, 0, 0.06);
  --border-medium: rgba(0, 0, 0, 0.12);
  --border-focus:  var(--brand-from);

  /* Semantic */
  --success:   #16A34A;
  --success-bg: rgba(22, 163, 74, 0.1);
  --warning:   #D97706;
  --error:     #DC2626;
  --error-bg:  rgba(220, 38, 38, 0.1);
  --info:      #2563EB;

  /* Shadows 鈥?澶у巶绾у灞傛闃村奖 */
  --shadow-xs:  0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-sm:  0 2px 8px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md:  0 4px 16px rgba(0, 0, 0, 0.08), 0 2px 4px rgba(0, 0, 0, 0.04);
  --shadow-lg:  0 8px 32px rgba(0, 0, 0, 0.10), 0 4px 8px rgba(0, 0, 0, 0.04);
  --shadow-xl:  0 20px 60px rgba(0, 0, 0, 0.14), 0 8px 16px rgba(0, 0, 0, 0.06);
  --shadow-brand: 0 4px 20px rgba(232, 99, 74, 0.28);

  /* Radii 鈥?绮剧粏鍖栧渾瑙掍綋绯?*/
  --r-xs:  6px;
  --r-sm:  8px;
  --r-md:  14px;
  --r-lg:  20px;
  --r-xl:  28px;
  --r-2xl: 36px;
  --r-pill: 999px;

  /* Spacing (8px base) */
  --sp-1: 4px;   --sp-2: 8px;   --sp-3: 12px;
  --sp-4: 16px;  --sp-5: 20px;  --sp-6: 24px;
  --sp-7: 32px;  --sp-8: 40px;  --sp-9: 48px;
  --sp-10: 64px;

  /* Transitions */
  --t-fast: 0.15s ease;
  --t-base: 0.25s ease;
  --t-slow: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --t-rise: 0.34s cubic-bezier(0.22, 1, 0.36, 1);

  /* Z-index */
  --z-base:    1;
  --z-header:  100;
  --z-overlay: 200;
  --z-modal:   300;
  --z-toast:   400;

  /* Layout */
  --header-h:  56px;
  --nav-h:     64px;
  --safe-top:  env(safe-area-inset-top, 0px);
  --safe-bot:  env(safe-area-inset-bottom, 0px);
  --live-composer-h: calc(64px + var(--safe-bot));
  --live-floating-bottom: calc(var(--live-composer-h) + 28px);
}

/* 鈹€鈹€ 2. Reset & Base 鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  height: 100%;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  overscroll-behavior: none;
  touch-action: manipulation;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', 'Noto Sans SC', 'Helvetica Neue', Arial, sans-serif;
  background: var(--bg-base);
  color: var(--text-primary);
  line-height: 1.6;
  height: 100%;
  min-height: 100dvh;
  overflow: hidden;
  overflow-x: hidden;
  overscroll-behavior: none;
  touch-action: manipulation;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
button, input, textarea, select { touch-action: manipulation; }
input, textarea { font-family: inherit; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

/* Premium scrollbar */
::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-medium); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* Text selection 鈥?鍝佺墝鑹蹭富棰?*/
::selection { background: var(--brand-ghost2); color: var(--brand-from); }

:focus-visible {
  outline: 2.5px solid var(--brand-from);
  outline-offset: 2px;
  border-radius: var(--r-sm);
}

/* 鈹€鈹€ 3. App Shell 鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€ */
#app {
  height: 100dvh;
  overflow: hidden;
  position: relative;
}

/* 鈹€鈹€ 4. Page Transitions 鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€ */

/* 鎵€鏈夐〉闈㈤粯璁ら殣钘忥紙閫氳繃 .active 绫绘帶鍒舵樉绀猴級 */
.view {
  display: none !important;
  flex-direction: column;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  touch-action: pan-y;       /* allow vertical scroll, block horizontal browser gestures */
  -webkit-touch-callout: none; /* prevent long-press callout */
  background: var(--bg-base);
}

/* 婵€娲荤殑椤甸潰鏄剧ず */
.view.active {
  display: flex !important;
  position: relative;
  top: auto;
  left: auto;
  right: auto;
  bottom: auto;
  width: 100%;
  min-height: 100vh;
  overflow-y: auto;
  overscroll-behavior: contain;
}

/* 杩涘叆鍔ㄧ敾锛氫粠宸︿晶婊戝叆锛堟柊椤佃繘鍏ワ級 */
.page-enter {
  opacity: 0;
  transform: translateX(-32px);
}
.page-enter-active {
  opacity: 1;
  transform: translateX(0);
  transition: opacity 280ms cubic-bezier(0.4, 0, 0.2, 1),
              transform 280ms cubic-bezier(0.4, 0, 0.2, 1);
}
.page-enter-done {
  opacity: 1;
  transform: translateX(0);
}

/* 绂诲紑鍔ㄧ敾锛氬悜宸︽粦鍑猴紙鏃ч〉閫€鍑猴級 */
.page-exit {
  opacity: 1;
  transform: translateX(0);
}
.page-exit-active {
  opacity: 0;
  transform: translateX(-32px);
  transition: opacity 280ms cubic-bezier(0.4, 0, 0.2, 1),
              transform 280ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* 鈹€鈹€ 4b. Pull-to-Refresh 鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€ */
.pull-hint {
  text-align: center;
  padding: var(--sp-3) var(--sp-5);
  font-size: 12px;
  color: var(--text-muted);
  display: none;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  animation: fadeInUp 0.2s ease;
}
.pull-hint.visible { display: flex; }
.pull-hint svg {
  width: 16px; height: 16px;
  animation: pullArrow 1s ease infinite;
}
@keyframes pullArrow {
  0%, 100% { transform: translateY(0); opacity: 0.6; }
  50% { transform: translateY(3px); opacity: 1; }
}

/* 鈹€鈹€ 4c. Skeleton Loading 鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€ */
.skeleton-wrap { padding: var(--sp-5); display: flex; flex-direction: column; gap: var(--sp-3); }
.skeleton-card {
  background: var(--bg-card);
  border-radius: var(--r-lg);
  border: 1px solid var(--border-light);
  padding: var(--sp-4);
  display: flex;
  gap: var(--sp-4);
}
.skeleton-thumb {
  width: 100px; height: 70px;
  border-radius: var(--r-sm);
  background: linear-gradient(90deg, var(--bg-base) 25%, var(--border-light) 50%, var(--bg-base) 75%);
  background-size: 200% 100%;
  flex-shrink: 0;
}
.skeleton-thumb--wide {
  width: 100%; height: 180px;
  border-radius: var(--r-lg);
}
.skeleton-body { flex: 1; display: flex; flex-direction: column; gap: var(--sp-2); justify-content: center; }
.skeleton-line {
  height: 14px;
  border-radius: var(--r-sm);
  background: linear-gradient(90deg, var(--bg-base) 25%, var(--border-light) 50%, var(--bg-base) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}
.skeleton-line--title { height: 18px; width: 75%; }
.skeleton-line--sm   { height: 12px; width: 50%; }

/* 鈹€鈹€ 5. Header (Glass) 鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-header);
  background: var(--glass-bg);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: var(--shadow-sm);
  padding-top: var(--safe-top);
  height: calc(var(--header-h) + var(--safe-top));
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.header__inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  padding: 0 var(--sp-5);
  gap: var(--sp-3);
}

.header__logo {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.3px;
  color: var(--brand-from);
}

.header__back {
  width: 36px;
  height: 36px;
  border-radius: var(--r-pill);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--t-fast), transform var(--t-fast);
  cursor: pointer;
  flex-shrink: 0;
  color: var(--text-primary);
  -webkit-tap-highlight-color: transparent;
}
.header__back:hover { background: var(--brand-ghost); }
.header__back:active { transform: scale(0.93); }
.header__back svg { width: 20px; height: 20px; }

.header__title {
  flex: 1;
  font-size: 17px;
  font-weight: 700;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: -0.2px;
}

.header__actions {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  flex-shrink: 0;
}

/* 鈹€鈹€ 6. Bottom Nav (Glass) 鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€ */
.nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: var(--z-header);
  background: var(--glass-bg);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-top: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.06);
  padding-bottom: var(--safe-bot);
  display: flex;
  height: calc(var(--nav-h) + var(--safe-bot));
}

.nav__item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 6px 0;
  cursor: pointer;
  transition: opacity var(--t-fast), transform var(--t-fast);
  opacity: 0.45;
  -webkit-tap-highlight-color: transparent;
}
.nav__item.active {
  opacity: 1;
}
.nav__item:active { transform: scale(0.93); }
.nav__item svg {
  width: 22px; height: 22px;
  color: var(--text-muted);
  transition: color var(--t-fast);
}
.nav__item.active svg { color: var(--brand-from); }

/* Dot indicator above label */
.nav__dot {
  display: none;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--brand-from);
  margin-bottom: 1px;
}
.nav__item.active .nav__dot {
  display: block;
}

.nav__label {
  font-size: 10px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.3px;
  transition: color var(--t-fast);
}
.nav__item.active .nav__label { color: var(--brand-from); }

/* 鈹€鈹€ 7. Buttons 鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  height: 50px;
  padding: 0 var(--sp-6);
  border-radius: var(--r-pill);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.1px;
  transition: all var(--t-base);
  cursor: pointer;
  white-space: nowrap;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
  position: relative;
  overflow: hidden;
}
.btn:active { transform: scale(0.97); }

.btn--primary {
  background: linear-gradient(135deg, var(--brand-from), var(--brand-to));
  color: #fff;
  box-shadow: 0 4px 16px rgba(232, 99, 74, 0.30);
}
.btn--primary:hover {
  box-shadow: 0 6px 24px rgba(232, 99, 74, 0.40);
  transform: translateY(-1px);
}
.btn--primary:active {
  transform: scale(0.97) translateY(0);
  box-shadow: 0 2px 8px rgba(232, 99, 74, 0.25);
}

.btn--outline {
  background: transparent;
  color: var(--brand-from);
  border: 1.5px solid rgba(232, 99, 74, 0.35);
}
.btn--outline:hover {
  background: var(--brand-ghost);
  border-color: var(--brand-from);
}

.btn--ghost {
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1.5px solid var(--border-medium);
  box-shadow: var(--shadow-xs);
}
.btn--ghost:hover {
  background: var(--bg-base);
  border-color: rgba(0, 0, 0, 0.2);
  box-shadow: var(--shadow-sm);
}

.btn--sm { height: 36px; padding: 0 var(--sp-4); font-size: 13px; }
.btn--lg { height: 56px; padding: 0 var(--sp-8); font-size: 16px; }
.btn--full { width: 100%; flex-shrink: 0; }
.btn--loading { opacity: 0.65; pointer-events: none; }
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }

/* 鈹€鈹€ 8. Form Elements 鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€ */
.field { position: relative; }

.field__label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: var(--sp-2);
  letter-spacing: 0.2px;
}

.field__input {
  width: 100%;
  height: 52px;
  padding: 0 var(--sp-4);
  border: 1.5px solid var(--border-medium);
  border-radius: var(--r-md);
  font-size: 16px;
  color: var(--text-primary);
  background: var(--bg-card);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
  -webkit-appearance: none;
  -webkit-tap-highlight-color: transparent;
}
.field__input::placeholder { color: var(--text-muted); }
.field__input:focus {
  outline: none;
  border-color: var(--brand-from);
  box-shadow: 0 0 0 4px var(--brand-ghost);
}
.field__input:focus-visible {
  outline: none;
  border-color: var(--brand-from);
  box-shadow: 0 0 0 4px var(--brand-ghost2);
}
.field__input.error { border-color: var(--error); box-shadow: 0 0 0 4px var(--error-bg); }

.field__icon-left {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
  display: flex;
  transition: color var(--t-fast);
}
.field__input:focus ~ .field__icon-left,
.field:focus-within .field__icon-left {
  color: var(--brand-from);
}
.field__icon-left + .field__input { padding-left: 44px; }

.field__icon-right {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  color: var(--text-muted);
  transition: color var(--t-fast), transform var(--t-fast);
  padding: 4px;
}
.field__icon-right:hover { color: var(--brand-from); }
.field__icon-right:active { transform: translateY(-50%) scale(0.88); }
.field__icon-right svg { width: 20px; height: 20px; display: block; }

.field__error {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: var(--error);
  margin-top: var(--sp-2);
  padding-left: 2px;
}

textarea.field__input {
  height: auto;
  min-height: 100px;
  padding: var(--sp-3) var(--sp-4);
  resize: vertical;
  line-height: 1.6;
}

/* 鈹€鈹€ 9. Cards 鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€ */
.card {
  background: var(--bg-card);
  border-radius: var(--r-lg);
  border: 1px solid rgba(0, 0, 0, 0.05);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--t-base), transform var(--t-base);
}
.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

/* 鈹€鈹€ 10. Live Room Card 鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€ */
.room-card {
  display: flex;
  gap: var(--sp-4);
  padding: var(--sp-4);
  background: var(--bg-card);
  border-radius: var(--r-lg);
  border: 1px solid rgba(0, 0, 0, 0.05);
  cursor: pointer;
  transition: all var(--t-base);
  margin-bottom: var(--sp-3);
  box-shadow: var(--shadow-sm);
}
.room-card:hover {
  border-color: rgba(232, 99, 74, 0.20);
  box-shadow: var(--shadow-md), 0 0 0 1px rgba(232, 99, 74, 0.08);
  transform: translateY(-3px);
}
.room-card:active { transform: scale(0.98); }

.room-card__thumb {
  width: 100px;
  height: 70px;
  border-radius: var(--r-sm);
  background: var(--bg-base);
  overflow: hidden;
  flex-shrink: 0;
  position: relative;
}
.room-card__thumb img { width: 100%; height: 100%; object-fit: cover; }

.room-card__thumb-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #fde8e4, #fce4ec);
}
.room-card__thumb-placeholder svg { width: 32px; height: 32px; }

.room-card__status {
  position: absolute;
  top: 5px;
  left: 5px;
  background: var(--error);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: var(--r-pill);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  box-shadow: 0 2px 6px rgba(220, 38, 38, 0.4);
}
.room-card__status--replay { background: var(--success); box-shadow: 0 2px 6px rgba(22, 163, 74, 0.35); }
.room-card__status--upcoming { background: var(--info); }

.room-card__info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
}

.room-card__title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.4;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.room-card__meta {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  font-size: 12px;
  color: var(--text-muted);
}
.room-card__meta-item {
  display: flex;
  align-items: center;
  gap: 4px;
}
.room-card__meta-item svg { width: 13px; height: 13px; }

/* 鈹€鈹€ 11. Badge / Chip 鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: var(--r-pill);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}
.badge--live {
  background: var(--error-bg);
  color: var(--error);
}
.badge--dot::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  animation: pulse-dot 1.5s infinite;
}

/* 鈹€鈹€ 12. Avatar 鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€ */
.avatar {
  border-radius: 50%;
  overflow: hidden;
  background: linear-gradient(135deg, var(--brand-from), var(--brand-to));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #fff;
  font-weight: 700;
}
.avatar--sm  { width: 32px; height: 32px; font-size: 13px; }
.avatar--md  { width: 44px; height: 44px; font-size: 17px; }
.avatar--lg  { width: 64px; height: 64px; font-size: 24px; }
.avatar img  { width: 100%; height: 100%; object-fit: cover; }

/* 鈹€鈹€ 13. Empty State 鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€ */
.empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--sp-10) var(--sp-6);
  text-align: center;
  gap: var(--sp-4);
}
.empty__icon {
  width: 72px;
  height: 72px;
  background: var(--bg-base);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
}
.empty__icon svg { width: 32px; height: 32px; color: var(--text-muted); }
.empty__title { font-size: 17px; font-weight: 700; color: var(--text-primary); }
.empty__sub   { font-size: 14px; color: var(--text-muted); max-width: 260px; line-height: 1.6; }

/* 鈹€鈹€ 14. Loading 鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€ */
.loading-screen {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
  background: var(--bg-base);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--sp-4);
}
.loading-screen.fade-out {
  animation: fadeOut 0.4s ease forwards;
  pointer-events: none;
}
.loading__spinner {
  width: 42px;
  height: 42px;
  border: 3px solid rgba(232, 99, 74, 0.15);
  border-top-color: var(--brand-from);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}
.loading__text { font-size: 14px; color: var(--text-muted); font-weight: 500; }

.loading-inline {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: 14px;
  color: var(--text-muted);
}
.loading-inline__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand-from);
  animation: loading-dot-rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) infinite alternate;
}
.loading-inline__dot:nth-child(2) { animation-delay: 0.2s; }
.loading-inline__dot:nth-child(3) { animation-delay: 0.4s; }

.skeleton {
  background: linear-gradient(90deg, var(--bg-base) 25%, var(--border-light) 50%, var(--bg-base) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite ease-in-out;
  border-radius: var(--r-sm);
  will-change: background-position;
  transform: translateZ(0);
}

@keyframes shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* 鈹€鈹€ 15. Modal / Toast 鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€ */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: var(--z-overlay);
  background: var(--bg-overlay);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--sp-5);
  animation: fadeIn 0.2s ease;
}
.modal {
  background: var(--bg-card);
  border-radius: var(--r-xl);
  width: 100%;
  max-width: 400px;
  padding: var(--sp-7) var(--sp-6);
  box-shadow: var(--shadow-xl);
  animation: modalIn var(--t-rise);
  text-align: center;
  border: 1px solid rgba(0, 0, 0, 0.05);
}
.modal__icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--brand-ghost);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--sp-4);
}
.modal__icon svg { width: 28px; height: 28px; color: var(--brand-from); }
.modal__title   { font-size: 19px; font-weight: 800; margin-bottom: var(--sp-2); letter-spacing: -0.3px; }
.modal__message { font-size: 14px; color: var(--text-secondary); line-height: 1.6; margin-bottom: var(--sp-6); }
.modal__actions { display: flex; gap: var(--sp-3); }
.modal__actions .btn { flex: 1; }

.toast {
  position: fixed;
  z-index: var(--z-toast);
  left: 50%;
  transform: translateX(-50%);
  bottom: calc(var(--nav-h) + var(--safe-bot) + 16px);
  background: rgba(28, 25, 23, 0.92);
  color: #fff;
  padding: 13px 26px;
  border-radius: var(--r-pill);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  animation: toastIn 0.24s cubic-bezier(0.22, 1, 0.36, 1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-lg);
  pointer-events: none;
  letter-spacing: -0.1px;
  max-width: calc(100vw - 40px);
  overflow: hidden;
  text-overflow: ellipsis;
}
.toast--error   { background: rgba(220, 38, 38, 0.93); }
.toast--success { background: rgba(22, 163, 74, 0.93); }

/* 鈹€鈹€ 16. Auth Pages 鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€ */
.auth-bg {
  min-height: 100dvh;
  height: auto;
  padding-bottom: max(var(--safe-bot), var(--sp-5));
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.auth-header {
  padding: calc(var(--safe-top) + clamp(20px, 5vh, 40px)) var(--sp-5) clamp(24px, 5vh, 40px);
  background: linear-gradient(165deg, #FFF5F2 0%, #FDF4F0 40%, var(--bg-base) 100%);
  border-bottom-left-radius: var(--r-xl);
  border-bottom-right-radius: var(--r-xl);
  flex-shrink: 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.auth-header::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232, 99, 74, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.auth-header::after {
  content: '';
  position: absolute;
  bottom: -40px;
  left: -30px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(240, 144, 96, 0.07) 0%, transparent 70%);
  pointer-events: none;
}

.auth-logo {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
  margin-bottom: clamp(14px, 3vh, 24px);
}

.auth-logo__mark {
  width: 48px;
  height: 48px;
  border-radius: var(--r-md);
  background: linear-gradient(135deg, var(--brand-from), var(--brand-to));
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(232, 99, 74, 0.35);
  animation: brandFloat 3s ease-in-out infinite;
}

.auth-logo__name {
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--text-primary);
}

.auth-heading {
  font-size: 27px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--text-primary);
  line-height: 1.2;
  margin-bottom: var(--sp-2);
}
.auth-sub     { font-size: 14px; color: var(--text-secondary); }

.auth-body {
  flex: 0 0 auto;
  padding: clamp(16px, 3vh, 20px) var(--sp-5) max(var(--sp-6), var(--safe-bot));
  display: flex;
  flex-direction: column;
  gap: clamp(12px, 2vh, 16px);
  overflow: visible;
}

.auth-body__links {
  display: flex;
  justify-content: flex-end;
  margin-top: calc(-1 * var(--sp-2));
}
.auth-body__links a {
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity var(--t-fast), color var(--t-fast);
  color: var(--brand-from);
}
.auth-body__links a:hover { opacity: 0.7; }

.auth-divider {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  color: var(--text-muted);
  font-size: 13px;
  margin: var(--sp-1) 0;
}
.auth-divider::before, .auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border-medium);
}

.auth-footer {
  padding: var(--sp-4) var(--sp-5);
  text-align: center;
  font-size: 14px;
  color: var(--text-muted);
}
.auth-footer a {
  color: var(--brand-from);
  font-weight: 700;
  cursor: pointer;
  transition: opacity var(--t-fast);
}
.auth-footer a:hover { opacity: 0.7; }

@media (max-height: 760px), (max-width: 360px) {
  .auth-header {
    padding-top: calc(var(--safe-top) + 18px);
    padding-bottom: 22px;
    border-bottom-left-radius: var(--r-lg);
    border-bottom-right-radius: var(--r-lg);
  }

  .auth-logo__mark {
    width: 44px;
    height: 44px;
  }

  .auth-heading {
    font-size: 25px;
  }

  .auth-body {
    gap: 12px;
    padding-top: 16px;
  }

  .auth-divider {
    margin: 0;
  }
}

/* ============================================================
   17. Home View — Portal Redesign
   ============================================================ */

/* ── 17a. Top Bar (Logo + Search + Avatar) ── */
.home-topbar {
  position: sticky;
  top: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: calc(var(--safe-top) + 8px) 16px 8px;
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.home-topbar__logo {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-shrink: 0;
  min-height: 44px;
  padding-right: 2px;
  text-decoration: none;
}

.home-topbar__logo-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--brand-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(232, 99, 74, 0.3);
  flex-shrink: 0;
}

.home-topbar__logo-mark svg {
  width: 18px;
  height: 18px;
}

.home-topbar__logo-name {
  font-size: 16px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: 0;
  white-space: nowrap;
}

.home-topbar__search {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 13px;
  background: var(--bg-card);
  border: 1.5px solid rgba(0, 0, 0, 0.06);
  border-radius: 21px;
  transition: border-color 150ms ease, box-shadow 150ms ease;
  cursor: text;
  min-width: 0;
}

.home-topbar__search svg {
  width: 15px;
  height: 15px;
  color: var(--text-muted);
  flex-shrink: 0;
}

.home-topbar__search input {
  flex: 1;
  border: none;
  background: none;
  font-size: 14px;
  color: var(--text-primary);
  outline: none;
  -webkit-appearance: none;
  min-width: 0;
  line-height: 1.35;
}

.home-topbar__search input::placeholder {
  color: var(--text-muted);
}

.home-topbar__search:focus-within {
  border-color: rgba(232, 99, 74, 0.35);
  box-shadow: 0 0 0 3px var(--brand-ghost);
}

.home-topbar__avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  cursor: pointer;
  position: relative;
  border: 2px solid rgba(232, 99, 74, 0.2);
  transition: border-color 150ms ease, transform 150ms ease;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--brand-ghost2);
}

.home-topbar__avatar:hover {
  border-color: rgba(232, 99, 74, 0.5);
  transform: scale(1.05);
}

.home-topbar__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-topbar__avatar-init {
  font-size: 13px;
  font-weight: 700;
  color: var(--brand-from);
}

/* ── 17b. Banner Carousel ── */
.home-banner {
  position: relative;
  margin: 10px 16px 12px;
  border-radius: 16px;
  overflow: hidden;
  height: 164px;
  background: var(--bg-card);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.07);
}

.home-banner__track {
  position: relative;
  width: 100%;
  height: 100%;
}

.home-banner__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 600ms ease;
  cursor: pointer;
  border: 0;
  padding: 0;
  background: none;
  text-align: left;
  pointer-events: none;
  -webkit-tap-highlight-color: transparent;
}

.home-banner__slide.active {
  opacity: 1;
  pointer-events: auto;
}

.home-banner__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.home-banner__slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.25) 100%);
}

.home-banner__slide-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 28px 16px 14px;
  background: linear-gradient(to top, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0) 100%);
}

.home-banner__slide-title {
  font-size: 16px;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0;
  line-height: 1.3;
  margin-bottom: 4px;
  text-shadow: 0 1px 4px rgba(0,0,0,0.3);
}

.home-banner__slide-sub {
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.4;
}

.home-banner__slide-cta {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  margin-top: 10px;
  padding: 0 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--brand-from);
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
}

.home-banner__dots {
  position: absolute;
  right: 12px;
  bottom: 8px;
  display: flex;
  gap: 0;
  align-items: center;
}

.home-banner__dot {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 22px;
  background: transparent;
  transition: background 220ms ease;
  cursor: pointer;
}

.home-banner__dot::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.58);
  transform: scaleX(0.36);
  transition: transform 250ms cubic-bezier(0.22, 1, 0.36, 1), background 250ms ease;
  transform-origin: center;
}

.home-banner__dot.active::before { transform: scaleX(1); background: #fff; }

/* ── 17c. Category Grid ── */
.home-category-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  padding: 0 16px 18px;
}

.home-category-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  padding: 10px 4px;
  border-radius: 12px;
  cursor: pointer;
  transition: transform 200ms ease, box-shadow 200ms ease;
  -webkit-tap-highlight-color: transparent;
  min-width: 0;
}

.home-category-item:active {
  transform: scale(0.95);
}

.home-category-item__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 200ms ease;
}

.home-category-item__icon svg {
  width: 22px;
  height: 22px;
}

.home-category-item:hover .home-category-item__icon {
  transform: scale(1.08);
}

.home-category-item.active .home-category-item__icon {
  transform: scale(1.06);
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}

.home-category-item.active .home-category-item__label {
  color: var(--brand-from);
  font-weight: 700;
}

.home-category-item__label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  line-height: 1.2;
}

/* Category colors */
.cat-live   { background: rgba(232, 99, 74, 0.1); }
.cat-live svg { color: #E8634A; }
.cat-replay { background: rgba(22, 163, 74, 0.1); }
.cat-replay svg { color: #16A34A; }
.cat-skincare { background: rgba(37, 99, 235, 0.1); }
.cat-skincare svg { color: #2563EB; }
.cat-makeup  { background: rgba(236, 72, 153, 0.1); }
.cat-makeup svg { color: #EC4899; }
.cat-fire    { background: rgba(249, 115, 22, 0.1); }
.cat-fire svg { color: #F97316; }
.cat-discount { background: rgba(139, 92, 246, 0.1); }
.cat-discount svg { color: #8B5CF6; }
.cat-all     { background: rgba(120, 113, 108, 0.1); }
.cat-all svg { color: #78716C; }
.cat-orders { background: rgba(37, 99, 235, 0.1); }
.cat-orders svg { color: #2563EB; }

.home-category-grid--portal {
  margin: 0 16px 12px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow-xs);
}

.home-category-grid--portal .home-category-item {
  min-height: 80px;
  justify-content: center;
  border-radius: 12px;
}

.home-category-grid--portal .home-category-item__icon {
  width: 42px;
  height: 42px;
}

/* ── 17d. Hero Live Card (full-width billboard) ── */
.home-hero-card {
  position: relative;
  margin: 0 16px 20px;
  border-radius: 18px;
  overflow: hidden;
  height: 168px;
  cursor: pointer;
  box-shadow: 0 6px 24px rgba(232, 99, 74, 0.15);
  transition: transform 200ms ease, box-shadow 200ms ease;
}

.home-hero-card:hover {
  transform: translateY(-3px) scale(1.01);
  box-shadow: 0 10px 32px rgba(232, 99, 74, 0.22);
}

.home-hero-card:active {
  transform: scale(0.99);
}

.home-hero-card__cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 400ms ease;
}

.home-hero-card:hover .home-hero-card__cover {
  transform: scale(1.04);
}

.home-hero-card__cover-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #fde8e4 0%, #fce4ec 50%, #e8d5f0 100%);
}

.home-hero-card__cover-placeholder svg {
  width: 48px;
  height: 48px;
  color: rgba(232, 99, 74, 0.4);
}

.home-hero-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 0.08) 40%,
    rgba(0, 0, 0, 0.72) 100%
  );
}

.home-hero-card__badge {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  align-items: center;
  gap: 5px;
  background: var(--brand-from);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  padding: 5px 10px;
  border-radius: 12px;
  letter-spacing: 0;
  box-shadow: 0 2px 10px rgba(232, 99, 74, 0.5);
}

.home-hero-card__badge-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #fff;
  animation: pulse-dot 1.5s ease-in-out infinite;
  flex-shrink: 0;
}

.home-hero-card__badge--replay {
  background: rgba(22, 163, 74, 0.9);
  box-shadow: 0 2px 10px rgba(22, 163, 74, 0.4);
}

.home-hero-card__body {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 14px 14px 14px;
}

.home-hero-card__title {
  font-size: 16px;
  font-weight: 800;
  color: #fff;
  line-height: 1.3;
  letter-spacing: 0;
  margin: 0 0 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

.home-hero-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.home-hero-card__teacher {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
}

.home-hero-card__teacher-avatar {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid rgba(255, 255, 255, 0.5);
  background: rgba(232, 99, 74, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  overflow: hidden;
}

.home-hero-card__teacher-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-hero-card__views {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.78);
}

.home-hero-card__views svg {
  width: 13px;
  height: 13px;
}

/* ── 17e. Scrollable Content Area ── */
.home-scroll {
  flex: 1;
  overflow-y: auto;
  min-height: 0;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

/* ── 17f. Section Headers ── */
.home-section {
  padding: 4px 16px 0;
}

.home-section--products,
.home-section--live,
.home-section--courses {
  padding-top: 10px;
}

.home-section--products {
  padding-bottom: 10px;
}

.home-section--live {
  padding-bottom: 6px;
}

.home-section__header-main {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 2px;
}

.home-section__header--stacked {
  align-items: flex-start;
  flex-direction: column;
  gap: 2px;
}

.home-section__desc {
  display: block;
  max-width: 240px;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.35;
}

.home-section--live .home-hero-card {
  margin: 0 0 18px;
}

.home-section--courses .home-course-waterfall,
.home-section--courses .home-skeleton-waterfall {
  padding: 0;
}

.home-section__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.home-section__header.home-section__header--stacked {
  align-items: flex-start;
  justify-content: flex-start;
  text-align: left;
}

.home-section__title {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 17px;
  font-weight: 900;
  color: var(--text-primary);
  letter-spacing: 0;
}

.home-section__title-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--brand-from);
  flex-shrink: 0;
}

.home-section__title-dot--green { background: var(--success); }
.home-section__title-dot--orange { background: #F97316; }

.home-section__more {
  display: flex;
  align-items: center;
  gap: 3px;
  min-height: 44px;
  padding: 0 4px 0 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: color 150ms ease;
  -webkit-tap-highlight-color: transparent;
}

.home-section__more svg { width: 12px; height: 12px; }
.home-section__more:hover { color: var(--brand-from); }
.home-section__more:active { transform: scale(0.95); }

/* ── 17g. 2-column Course Grid ── */
.home-course-waterfall {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 0 16px;
}

.home-course-card {
  border-radius: 14px;
  overflow: hidden;
  background: var(--bg-card);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: transform 200ms ease, box-shadow 200ms ease;
  display: flex;
  flex-direction: column;
  min-width: 0;
  width: 100%;
}

.home-course-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.home-course-card:active {
  transform: scale(0.97);
}

.home-course-card__thumb {
  position: relative;
  overflow: hidden;
  border-radius: 14px 14px 0 0;
}

.home-course-card__thumb img {
  width: 100%;
  aspect-ratio: 4/3;
  height: auto;
  display: block;
  object-fit: cover;
  transition: transform 300ms ease;
}

.home-course-card:hover .home-course-card__thumb img {
  transform: scale(1.05);
}

.home-course-card__tag {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(22, 163, 74, 0.88);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 8px;
  letter-spacing: 0;
}

.home-course-card__tag--live {
  background: var(--brand-from);
  box-shadow: 0 2px 8px rgba(232, 99, 74, 0.4);
}

.home-course-card__body {
  padding: 9px 10px 10px;
}

.home-course-card__title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 7px;
}

.home-course-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.home-course-card__teacher {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 60%;
}

.home-course-card__meta {
  display: flex;
  align-items: center;
  gap: 3px;
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
  flex-shrink: 0;
}

.home-course-card__meta svg {
  width: 12px;
  height: 12px;
  color: var(--text-muted);
}

/* ── 17h. Divider ── */
.home-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 16px 0;
}

.home-divider__line {
  flex: 1;
  height: 1px;
  background: rgba(0, 0, 0, 0.06);
}

.home-divider__label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.8px;
  text-transform: uppercase;
  white-space: nowrap;
}

/* ── 17i. Product Scroll (upgraded) ── */
.home-product-scroll {
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-bottom: 6px;
}

.home-product-scroll::-webkit-scrollbar { display: none; }

.home-product-scroll__track {
  display: flex;
  gap: 10px;
  padding-right: 16px;
}

.home-product-card {
  flex-shrink: 0;
  width: var(--home-product-card-w, 130px);
  cursor: pointer;
  transition: transform 200ms ease;
}

.home-product-card:active { transform: scale(0.97); }

.home-product-card__thumb {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 14px;
  overflow: hidden;
  background: var(--bg-card);
  box-shadow: var(--shadow-sm);
  margin-bottom: 8px;
  position: relative;
}

.home-product-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 300ms ease;
}

.home-product-card:hover .home-product-card__thumb img {
  transform: scale(1.06);
}

.home-product-card__tag {
  position: absolute;
  top: 7px;
  left: 7px;
  padding: 3px 8px;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
}

.home-product-card__tag--hot {
  background: var(--brand-from);
  color: #fff;
}

.home-product-card__tag--new {
  background: #2563EB;
  color: #fff;
}

.home-product-card__tag--sale {
  background: #F97316;
  color: #fff;
}

.home-product-card__title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 5px;
}

.home-product-card__bottom {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.home-product-card__price {
  font-size: 15px;
  font-weight: 800;
  color: var(--brand-from);
  letter-spacing: 0;
}

.home-product-card__price::before {
  content: '\00A5';
  font-size: 12px;
  font-weight: 700;
}

.home-product-card__original {
  font-size: 12px;
  color: var(--text-muted);
  text-decoration: line-through;
}

.home-product-card__sales {
  margin-top: 3px;
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
}


.home-service-proof {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 12px 16px 0;
}

.home-service-proof__item {
  min-height: 58px;
  padding: 10px 11px;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.56);
}

.home-service-proof__item strong {
  display: block;
  margin-bottom: 5px;
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 900;
  line-height: 1.25;
}

.home-service-proof__item span {
  display: block;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.45;
}

.home-official-footer {
  margin: 20px 16px 0;
  padding: 18px 0 24px;
  border-top: 1px solid var(--border-light);
  text-align: center;
}

.home-official-footer__brand {
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 900;
  line-height: 1.4;
}

.home-official-footer__desc,
.home-official-footer__meta {
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.6;
}

.home-official-footer__desc {
  margin: 3px 0 8px;
}

/* ── 17j. Empty States ── */
.home-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 0;
  text-align: center;
  gap: 8px;
}

.home-empty-state__icon {
  width: 52px;
  height: 52px;
  background: var(--bg-card);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-xs);
  margin-bottom: 4px;
}

.home-empty-state__icon svg { color: var(--text-muted); }

.home-empty-state__title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-secondary);
}

.home-empty-state__sub {
  font-size: 12px;
  color: var(--text-muted);
}

/* ── 17k. Skeleton Shimmer ── */
.home-skeleton-waterfall {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 0 16px;
}

.home-skeleton-card {
  display: block;
  min-width: 0;
  width: 100%;
}

.home-skeleton-img {
  width: 100%;
  border-radius: 14px 14px 0 0;
  background: linear-gradient(90deg, var(--bg-card) 25%, rgba(0,0,0,0.04) 50%, var(--bg-card) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite ease-in-out;
}

.home-skeleton-body {
  padding: 9px 10px 10px;
}

.home-skeleton-line {
  height: 11px;
  border-radius: 6px;
  background: linear-gradient(90deg, var(--bg-card) 25%, rgba(0,0,0,0.04) 50%, var(--bg-card) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite ease-in-out;
  margin-bottom: 6px;
}

.home-skeleton-line--short {
  width: 55%;
}

/* ============================================================
   18. Courses View (课程列表)
   ============================================================ */
.courses-header {
  position: sticky;
  top: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: calc(var(--safe-top) + 8px) 16px 8px;
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.courses-back {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: var(--bg-card);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-xs);
  transition: transform 150ms ease, box-shadow 150ms ease;
  flex-shrink: 0;
}
.courses-back svg { width: 18px; height: 18px; color: var(--text-primary); }
.courses-back:hover { transform: scale(1.08); box-shadow: var(--shadow-sm); }
.courses-back:active { transform: scale(0.95); }

.courses-title {
  font-size: 17px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.3px;
  margin: 0;
}

.courses-filters {
  display: flex;
  gap: 6px;
  padding: 10px 16px;
  overflow-x: auto;
  background: var(--bg-page);
  border-bottom: 1px solid rgba(0,0,0,0.05);
  scrollbar-width: none;
}
.courses-filters::-webkit-scrollbar { display: none; }

.courses-filter {
  flex-shrink: 0;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--bg-card);
  cursor: pointer;
  transition: background 200ms ease, color 200ms ease, transform 150ms ease;
  border: 1.5px solid transparent;
}
.courses-filter:hover { background: var(--brand-ghost2); color: var(--brand-from); }
.courses-filter:active { transform: scale(0.96); }
.courses-filter.active {
  background: var(--brand-gradient);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 2px 10px rgba(232, 99, 74, 0.3);
}

.courses-scroll {
  padding: 14px 16px;
}
.courses-scroll::-webkit-scrollbar { display: none; }

.courses-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.courses-grid .home-course-card {
  margin-bottom: 0;
}

/* ============================================================
   Old Home Section styles (kept for other views)
   ============================================================ */
.section {
  padding: var(--sp-5) var(--sp-5);
  flex-shrink: 0;
}
.section--scroll {
  flex: 1;
  overflow-y: auto;
  min-height: 0;
}
.section__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--sp-4);
}
.section__title {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.2px;
}
.section__more {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: color var(--t-fast);
  -webkit-tap-highlight-color: transparent;
}
.section__more:hover { color: var(--brand-from); }
.section__more:active { transform: scale(0.95); }
.section__more svg { width: 14px; height: 14px; }

.view-watch {
  overflow: hidden;
}

/* 鈹€鈹€ 18. Live Player Page 鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€ */
.view-watch {
  overflow: hidden;
  background: #05060a;
}

.watch-stage {
  position: relative;
  width: 100%;
  min-height: 100vh;
  overflow: hidden;
  background: #000;
}

.watch-stage__video {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  background:
    radial-gradient(circle at 18% 12%, rgba(232, 99, 74, 0.24), transparent 28%),
    radial-gradient(circle at 84% 14%, rgba(244, 114, 182, 0.18), transparent 22%),
    linear-gradient(180deg, rgba(0,0,0,0.12) 0%, rgba(0,0,0,0.36) 45%, rgba(0,0,0,0.82) 100%);
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}

.watch-stage__video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #000;
}

.tcplayer-container,
.tcplayer-container > div,
.tcplayer-container .tcp-video-container,
.tcplayer-container .tcplayer,
.tcplayer-container .vcp-player,
.tcplayer-container .video-js {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  min-width: 100% !important;
  min-height: 100% !important;
  background: #000 !important;
  overflow: hidden !important;
}

.tcplayer-container video,
.tcplayer-container canvas,
.tcplayer-container object,
.tcplayer-container embed {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  background: #000 !important;
}

#tcplayer-container,
#tcplayer-container * {
  pointer-events: none !important;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--sp-3);
  background: rgba(0,0,0,0.2);
  transition: opacity var(--t-base);
  z-index: 4;
  cursor: pointer;
}
.player-overlay.hidden { opacity: 0; pointer-events: none; }
.player-overlay svg { width: 56px; height: 56px; color: #fff; }

.player-badge {
  position: absolute;
  top: calc(var(--safe-top) + 14px);
  left: var(--sp-4);
  background: rgba(220, 38, 38, 0.82);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: var(--r-pill);
  display: flex;
  align-items: center;
  gap: 6px;
  animation: pulse-opacity 1.5s infinite;
  z-index: 5;
  box-shadow: 0 8px 24px rgba(220, 38, 38, 0.28);
  letter-spacing: 0.5px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.player-badge::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #fff;
  animation: pulse-dot 1.5s infinite;
}

.watch-topbar {
  position: absolute;
  top: calc(var(--safe-top) + 12px);
  left: var(--sp-4);
  right: var(--sp-4);
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  z-index: 5;
}

.watch-topbar__back {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  cursor: pointer;
  flex-shrink: 0;
}

.watch-topbar__back svg { width: 18px; height: 18px; }

.watch-topbar__meta {
  min-width: 0;
  flex: 1;
  padding: 10px 14px;
  border-radius: 18px;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255,255,255,0.12);
}

.watch-topbar__title {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.watch-topbar__subline {
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.watch-topbar__tag,
.watch-topbar__count {
  font-size: 11px;
  color: rgba(255,255,255,0.72);
}

.watch-topbar__tag {
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(255,255,255,0.12);
}

.player-ctrl {
  position: absolute;
  right: var(--sp-4);
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-3);
  z-index: 5;
}

.player-ctrl__btn {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(255,255,255,0.16);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--t-fast);
  -webkit-tap-highlight-color: transparent;
}
.player-ctrl__btn:hover { background: rgba(255,255,255,0.24); transform: scale(1.04); }
.player-ctrl__btn:active { transform: scale(0.92); }
.player-ctrl__btn svg { width: 20px; height: 20px; color: #fff; }

.watch-chat-shell {
  position: fixed;
  left: var(--sp-4);
  right: calc(var(--sp-4) + 62px);
  bottom: calc(88px + var(--safe-bot));
  z-index: 5;
  pointer-events: none;
}

.watch-chat-list {
  max-height: 34vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  padding-right: 4px;
  overscroll-behavior: contain;
  pointer-events: auto;
}

.watch-chat-list::-webkit-scrollbar { width: 0; height: 0; }

.chat-msg {
  display: flex;
  gap: var(--sp-2);
  align-items: flex-start;
  animation: fadeInUp 0.25s ease;
}

.chat-msg__avatar { flex-shrink: 0; }
.chat-msg__body { flex: 1; min-width: 0; }

.chat-msg__name {
  font-size: 12px;
  font-weight: 700;
  color: rgba(255,255,255,0.92);
  margin-bottom: 4px;
}

.chat-msg__text {
  display: inline-block;
  padding: 10px 14px;
  border-radius: 18px;
  font-size: 14px;
  line-height: 1.55;
  word-break: break-word;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.12);
  color: #fff;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 18px 36px rgba(0,0,0,0.18);
}

.chat-msg--self .chat-msg__name { color: #FBCFE8; }
.chat-msg--self .chat-msg__text {
  background: linear-gradient(135deg, rgba(232,99,74,0.3), rgba(244,114,182,0.18));
  border-color: rgba(244,114,182,0.18);
}

.chat-msg__media {
  display: block;
  max-width: 220px;
  border: 0;
  padding: 0;
  overflow: hidden;
  border-radius: 18px;
  background: rgba(0,0,0,0.32);
  backdrop-filter: blur(16px);
}

.chat-msg__media--image img {
  display: block;
  width: 100%;
  max-height: 180px;
  object-fit: cover;
}

.chat-msg__media--video {
  width: 220px;
  max-height: 180px;
}

.chat-system {
  align-self: flex-start;
  font-size: 12px;
  color: rgba(255,255,255,0.78);
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.1);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.watch-composer {
  position: fixed;
  left: var(--sp-4);
  right: var(--sp-4);
  bottom: calc(14px + var(--safe-bot));
  z-index: 6;
}

.watch-composer__input-shell {
  display: flex;
  align-items: flex-end;
  gap: var(--sp-2);
  padding: 8px 8px 8px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.12);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  box-shadow: 0 18px 40px rgba(0,0,0,0.24);
}

.watch-composer__input {
  flex: 1;
  min-height: 40px;
  max-height: 110px;
  padding: 10px 0;
  font-size: 15px;
  color: #fff;
  background: transparent;
  border: 0;
  resize: none;
  overflow-y: auto;
  line-height: 1.5;
  -webkit-appearance: none;
}
.watch-composer__input::placeholder { color: rgba(255,255,255,0.52); }
.watch-composer__input:focus { outline: none; }

.watch-composer__send {
  height: 42px;
  width: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-from), var(--brand-to));
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: all var(--t-fast);
  box-shadow: 0 8px 20px rgba(232, 99, 74, 0.28);
  -webkit-tap-highlight-color: transparent;
  border: 0;
}
.watch-composer__send:hover { transform: scale(1.05); }
.watch-composer__send:active { transform: scale(0.93); }
.watch-composer__send svg { width: 18px; height: 18px; color: #fff; }

/* 鈹€鈹€ 21. Profile View 鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€ */
.profile-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: calc(var(--safe-top) + var(--sp-8)) var(--sp-5) var(--sp-7);
  background: linear-gradient(165deg, #FFF5F2 0%, #FDF4F0 50%, var(--bg-base) 100%);
  border-bottom-left-radius: var(--r-xl);
  border-bottom-right-radius: var(--r-xl);
  flex-shrink: 0;
}

.profile-header__avatar {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  overflow: hidden;
  background: linear-gradient(135deg, var(--brand-from), var(--brand-to));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 34px;
  font-weight: 800;
  color: #fff;
  margin-bottom: var(--sp-4);
  box-shadow: 0 8px 24px rgba(232, 99, 74, 0.30);
  cursor: pointer;
  position: relative;
  transition: transform var(--t-base), box-shadow var(--t-base);
}
.profile-header__avatar:hover { transform: scale(1.04); box-shadow: 0 12px 32px rgba(232, 99, 74, 0.38); }
.profile-header__avatar:active { transform: scale(0.97); }
.profile-header__avatar img { width: 100%; height: 100%; object-fit: cover; }
.profile-header__avatar input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.profile-header__name {
  font-size: 21px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: var(--sp-1);
  letter-spacing: -0.3px;
}
.profile-header__phone {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
}

.profile-menu {
  padding: var(--sp-5) var(--sp-5);
  flex-shrink: 0;
}
.profile-menu__group {
  background: var(--bg-card);
  border-radius: var(--r-lg);
  border: 1px solid rgba(0, 0, 0, 0.05);
  overflow: hidden;
  margin-bottom: var(--sp-3);
  box-shadow: var(--shadow-sm);
}

.profile-menu__item {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-4);
  cursor: pointer;
  transition: background var(--t-fast);
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
  -webkit-tap-highlight-color: transparent;
}
.profile-menu__item:last-child { border-bottom: none; }
.profile-menu__item:hover { background: rgba(0, 0, 0, 0.02); }
.profile-menu__item:active { background: rgba(0, 0, 0, 0.04); }

.profile-menu__icon {
  width: 38px;
  height: 38px;
  border-radius: var(--r-sm);
  background: var(--brand-ghost);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.profile-menu__icon svg { width: 18px; height: 18px; color: var(--brand-from); }
.profile-menu__icon--danger { background: var(--error-bg); }
.profile-menu__icon--danger svg { color: var(--error); }

.profile-menu__label { flex: 1; font-size: 15px; font-weight: 600; }
.profile-menu__value { font-size: 13px; color: var(--text-muted); font-weight: 500; }
.profile-menu__arrow { color: var(--text-muted); }
.profile-menu__arrow svg { width: 16px; height: 16px; }

/* 鈹€鈹€ 22. Search Bar 鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€ */
.search-bar {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 0 var(--sp-4);
  height: 44px;
  background: var(--bg-card);
  border: 1.5px solid rgba(0, 0, 0, 0.06);
  border-radius: var(--r-pill);
  margin: 0 var(--sp-5);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
  flex-shrink: 0;
  box-shadow: var(--shadow-xs);
}
.search-bar:focus-within {
  border-color: rgba(232, 99, 74, 0.4);
  box-shadow: 0 0 0 3px var(--brand-ghost);
}
.search-bar svg { width: 17px; height: 17px; color: var(--text-muted); flex-shrink: 0; }
.search-bar input {
  flex: 1;
  border: none;
  background: none;
  font-size: 15px;
  color: var(--text-primary);
  outline: none;
  -webkit-appearance: none;
}
.search-bar input::placeholder { color: var(--text-muted); }

/* 鈹€鈹€ 23. Tabs 鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€ */
.tabs {
  display: flex;
  padding: 0 var(--sp-5);
  gap: var(--sp-2);
  margin-bottom: var(--sp-4);
  border-bottom: 1px solid var(--border-light);
}
.tab {
  padding: var(--sp-3) var(--sp-4);
  font-size: 15px;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: all var(--t-fast);
}
.tab.active {
  color: var(--brand-from);
  border-bottom-color: var(--brand-from);
  font-weight: 600;
}

/* 鈹€鈹€ 24. Utilities 鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€ */
.hidden { display: none !important; }
.flex   { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: var(--sp-2); }
.gap-3 { gap: var(--sp-3); }
.mt-auto { margin-top: auto; }
.px-5   { padding-left: var(--sp-5); padding-right: var(--sp-5); }
.px-6   { padding-left: var(--sp-6); padding-right: var(--sp-6); }
.py-4   { padding-top: var(--sp-4); padding-bottom: var(--sp-4); }
.mb-3   { margin-bottom: var(--sp-3); }
.mb-4   { margin-bottom: var(--sp-4); }
.mb-5   { margin-bottom: var(--sp-5); }
.mt-4   { margin-top: var(--sp-4); }
.text-sm { font-size: 13px; }
.text-muted { color: var(--text-muted); }
.text-secondary { color: var(--text-secondary); }
.text-center { text-align: center; }
.font-bold { font-weight: 700; }

/* 鈹€鈹€ 24. Mall / Shop 鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€ */

/* Sticky search + tabs bar */
.mall-sticky {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--glass-bg);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(255,255,255,0.6);
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  padding: var(--sp-3) var(--sp-4) 0;
}

.mall-search {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  height: 40px;
  background: var(--bg-base);
  border: 1.5px solid rgba(0,0,0,0.07);
  border-radius: var(--r-pill);
  padding: 0 var(--sp-3);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
  margin-bottom: var(--sp-3);
}
.mall-search:focus-within {
  border-color: var(--brand-from);
  box-shadow: 0 0 0 3px var(--brand-ghost);
}
.mall-search svg { width: 17px; height: 17px; color: var(--text-muted); flex-shrink: 0; }
.mall-search input {
  flex: 1;
  border: none;
  background: none;
  font-size: 14px;
  color: var(--text-primary);
  outline: none;
  -webkit-appearance: none;
}
.mall-search input::placeholder { color: var(--text-muted); }

/* Category tabs */
.mall-tabs {
  display: flex;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  margin: 0 calc(-1 * var(--sp-4));
  padding: 0 var(--sp-4);
}
.mall-tabs::-webkit-scrollbar { display: none; }

.mall-tab {
  flex-shrink: 0;
  padding: var(--sp-2) var(--sp-4);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  position: relative;
  transition: color var(--t-fast);
  -webkit-tap-highlight-color: transparent;
  white-space: nowrap;
}
.mall-tab::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 20px;
  height: 3px;
  background: var(--brand-from);
  border-radius: var(--r-pill);
  transition: transform var(--t-base);
}
.mall-tab.active {
  color: var(--brand-from);
}
.mall-tab.active::after {
  transform: translateX(-50%) scaleX(1);
}

/* Scrollable area */
.mall-scroll {
  flex: 1;
  overflow-y: auto;
  min-height: 0;
  overscroll-behavior: contain;
}

/* Banner carousel */
.mall-banner {
  position: relative;
  margin: var(--sp-4) var(--sp-4) 0;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.mall-banner__track {
  display: flex;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.mall-banner__slide {
  flex-shrink: 0;
  width: 100%;
  aspect-ratio: 2.34/1;
  position: relative;
  overflow: hidden;
}
.mall-banner__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.mall-banner__tag {
  position: absolute;
  top: var(--sp-3);
  left: var(--sp-3);
  background: linear-gradient(135deg, var(--brand-from), var(--brand-to));
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: var(--r-pill);
  letter-spacing: 0.5px;
}

.mall-banner__dots {
  position: absolute;
  bottom: var(--sp-3);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 5px;
}
.mall-banner__dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.45);
  cursor: pointer;
  transition: all var(--t-fast);
}
.mall-banner__dots span.active {
  width: 18px;
  border-radius: var(--r-pill);
  background: #fff;
}

/* Category pills */
.mall-cats {
  display: flex;
  gap: var(--sp-3);
  padding: var(--sp-5) var(--sp-5) var(--sp-2);
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.mall-cats::-webkit-scrollbar { display: none; }

.mall-cat {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform var(--t-fast);
}
.mall-cat:active { transform: scale(0.93); }
.mall-cat__icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
  transition: transform var(--t-fast), box-shadow var(--t-fast);
}
.mall-cat:hover .mall-cat__icon {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.16);
}
.mall-cat__icon svg { width: 24px; height: 24px; }
.mall-cat span { font-size: 12px; font-weight: 600; color: var(--text-secondary); }

/* Product count badge */
.mall-count {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
}

/* Product grid 鈥?Waterfall / Bento layout */
.mall-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-3);
  padding: 0 var(--sp-4) var(--sp-5);
}

.product-card {
  background: var(--bg-card);
  border-radius: var(--r-lg);
  border: 1px solid rgba(0,0,0,0.05);
  overflow: hidden;
  cursor: pointer;
  transition: transform var(--t-base), box-shadow var(--t-base);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  animation: fadeInUp 0.3s ease both;
}
.product-card:nth-child(2) { animation-delay: 0.05s; }
.product-card:nth-child(3) { animation-delay: 0.1s; }
.product-card:nth-child(4) { animation-delay: 0.15s; }
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.product-card:active { transform: scale(0.98); }

.product-card__thumb {
  width: 100%;
  aspect-ratio: 1/1;
  background: var(--bg-base);
  overflow: hidden;
  position: relative;
}
.product-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.product-card:hover .product-card__thumb img { transform: scale(1.06); }

.product-card__tag {
  position: absolute;
  top: var(--sp-2);
  left: var(--sp-2);
  background: linear-gradient(135deg, var(--brand-from), var(--brand-to));
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: var(--r-pill);
  letter-spacing: 0.5px;
}

.product-card__info {
  padding: var(--sp-3);
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

.product-card__title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.4;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.product-card__bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--sp-2);
  margin-top: auto;
}

.product-card__price {
  font-size: 17px;
  font-weight: 800;
  color: var(--brand-from);
  letter-spacing: -0.5px;
}
.product-card__price::before { content: '¥'; font-size: 12px; font-weight: 600; }

.product-card__sales {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
}

/* Cart FAB */
.cart-fab {
  position: fixed;
  bottom: calc(var(--nav-h) + var(--safe-bot) + 12px);
  right: var(--sp-4);
  z-index: 90;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-from), var(--brand-to));
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(232, 99, 74, 0.45);
  cursor: pointer;
  transition: all var(--t-fast);
  animation: brandFloat 3s ease-in-out infinite;
}
.cart-fab:hover { transform: scale(1.08); box-shadow: 0 8px 28px rgba(232, 99, 74, 0.55); }
.cart-fab:active { transform: scale(0.95); }
.cart-fab svg { width: 24px; height: 24px; color: #fff; }
.cart-fab__badge {
  position: absolute;
  top: -2px;
  right: -2px;
  min-width: 18px;
  height: 18px;
  border-radius: var(--r-pill);
  background: var(--error);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  box-shadow: 0 2px 6px rgba(220,38,38,0.4);
}
.badge--pop {
  animation: badgePop 220ms cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes badgePop {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.5); }
  100% { transform: scale(1); }
}

/* 鈹€鈹€ Product Detail 鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€ */

.pd-gallery {
  position: relative;
  width: 100%;
  aspect-ratio: 1/1;
  background: var(--bg-base);
  overflow: hidden;
  flex-shrink: 0;
}

.pd-gallery__track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.pd-gallery__slide {
  flex-shrink: 0;
  width: 100%;
  height: 100%;
}
.pd-gallery__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pd-gallery__dots {
  position: absolute;
  bottom: var(--sp-4);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 5px;
}
.pd-gallery__dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.45);
  transition: all var(--t-fast);
}
.pd-gallery__dots span.active {
  width: 18px;
  border-radius: var(--r-pill);
  background: #fff;
}

.pd-gallery__counter {
  position: absolute;
  bottom: var(--sp-4);
  right: var(--sp-4);
  background: rgba(0,0,0,0.45);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--r-pill);
  backdrop-filter: blur(4px);
}

/* Top bar on gallery */
.pd-topbar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  padding: calc(var(--safe-top) + var(--sp-3)) var(--sp-4) var(--sp-4);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.pd-topbar__back {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--t-fast);
}
.pd-topbar__back:hover { background: rgba(0,0,0,0.6); }
.pd-topbar__back:active { transform: scale(0.93); }
.pd-topbar__back svg { width: 20px; height: 20px; color: #fff; }

.pd-topbar__actions {
  display: flex;
  gap: var(--sp-2);
}
.pd-topbar__action {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--t-fast);
}
.pd-topbar__action:hover { background: rgba(0,0,0,0.6); }
.pd-topbar__action:active { transform: scale(0.93); }
.pd-topbar__action svg { width: 18px; height: 18px; color: #fff; }

/* Product body */
.pd-body {
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: var(--sp-5) var(--sp-5) calc(var(--sp-5) + 70px);
}

.pd-price-row {
  display: flex;
  align-items: baseline;
  gap: var(--sp-2);
  margin-bottom: var(--sp-3);
}
.pd-price {
  font-size: 28px;
  font-weight: 800;
  color: var(--brand-from);
  letter-spacing: -0.5px;
}
.pd-price::before { content: '¥'; font-size: 16px; font-weight: 600; }
.pd-original-price {
  font-size: 14px;
  color: var(--text-muted);
  text-decoration: line-through;
  font-weight: 500;
}

.pd-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  margin-bottom: var(--sp-4);
}
.pd-tags .badge {
  font-size: 10px;
  padding: 3px 8px;
  background: var(--brand-ghost2);
  color: var(--brand-from);
}

.pd-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.4;
  letter-spacing: -0.3px;
  margin-bottom: var(--sp-2);
}
.pd-subtitle {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: var(--sp-4);
}

.pd-info-row {
  display: flex;
  gap: var(--sp-4);
  margin-bottom: var(--sp-5);
  padding: var(--sp-3) var(--sp-4);
  background: var(--bg-base);
  border-radius: var(--r-md);
  flex-wrap: wrap;
}
.pd-info-row__item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: var(--text-secondary);
  font-weight: 500;
}
.pd-info-row__item svg { width: 14px; height: 14px; color: var(--success); }

.pd-section { margin-top: var(--sp-4); }
.pd-section__title {
  font-size: 15px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: var(--sp-3);
  padding-bottom: var(--sp-3);
  border-bottom: 1px solid var(--border-light);
  letter-spacing: -0.2px;
}
.pd-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.8;
}
.pd-desc p { margin-bottom: var(--sp-3); }

/* Buy bar */
.pd-buybar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 90;
  background: var(--glass-bg);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-top: 1px solid rgba(255,255,255,0.6);
  box-shadow: 0 -4px 20px rgba(0,0,0,0.08);
  padding: var(--sp-3) var(--sp-4) calc(var(--sp-3) + var(--safe-bot));
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}

.pd-buybar__icons {
  display: flex;
  gap: var(--sp-2);
}
.pd-buybar__icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  cursor: pointer;
  padding: 4px;
  border-radius: var(--r-sm);
  transition: background var(--t-fast);
  -webkit-tap-highlight-color: transparent;
}
.pd-buybar__icon:hover { background: var(--brand-ghost); }
.pd-buybar__icon:active { transform: scale(0.9); }
.pd-buybar__icon svg { width: 22px; height: 22px; color: var(--text-secondary); }
.pd-buybar__icon span { font-size: 10px; font-weight: 600; color: var(--text-muted); }

.pd-buybar__btns {
  flex: 1;
  display: flex;
  gap: var(--sp-2);
}
.pd-buybar__add {
  flex: 1;
  height: 46px;
  border-radius: var(--r-pill);
  border: 1.5px solid var(--brand-from);
  color: var(--brand-from);
  font-size: 14px;
  font-weight: 700;
  background: var(--brand-ghost);
  cursor: pointer;
  transition: all var(--t-fast);
  -webkit-tap-highlight-color: transparent;
}
.pd-buybar__add:hover { background: var(--brand-ghost2); }
.pd-buybar__add:active { transform: scale(0.97); }

.pd-buybar__buy {
  flex: 1;
  height: 46px;
  border-radius: var(--r-pill);
  background: linear-gradient(135deg, var(--brand-from), var(--brand-to));
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(232,99,74,0.35);
  transition: all var(--t-fast);
  -webkit-tap-highlight-color: transparent;
}
.pd-buybar__buy:hover { transform: translateY(-1px); box-shadow: 0 6px 24px rgba(232,99,74,0.45); }
.pd-buybar__buy:active { transform: scale(0.97); }

/* 鈹€鈹€ Cart 鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€ */

.cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: calc(var(--safe-top) + var(--sp-4)) var(--sp-5) var(--sp-4);
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0,0,0,0.05);
  position: sticky;
  top: 0;
  z-index: 50;
}
.cart-header__title {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.3px;
}
.cart-header__clear {
  font-size: 13px;
  font-weight: 600;
  color: var(--brand-from);
  cursor: pointer;
}

.cart-list {
  padding: var(--sp-4) var(--sp-4) var(--sp-5);
}

.cart-item {
  display: flex;
  gap: var(--sp-3);
  padding: var(--sp-4);
  background: var(--bg-card);
  border-radius: var(--r-lg);
  border: 1px solid rgba(0,0,0,0.05);
  margin-bottom: var(--sp-3);
  box-shadow: var(--shadow-sm);
  transition: transform var(--t-fast);
}
.cart-item:active { transform: scale(0.99); }

.cart-item__check {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid var(--border-medium);
  flex-shrink: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--t-fast);
  align-self: flex-start;
  margin-top: 4px;
}
.cart-item__check.checked {
  background: var(--brand-from);
  border-color: var(--brand-from);
}
.cart-item__check.checked svg { display: block; }
.cart-item__check svg { display: none; width: 12px; height: 12px; color: #fff; }

.cart-item__thumb {
  width: 80px;
  height: 80px;
  border-radius: var(--r-md);
  overflow: hidden;
  flex-shrink: 0;
}
.cart-item__thumb img { width: 100%; height: 100%; object-fit: cover; }

.cart-item__info { flex: 1; min-width: 0; }
.cart-item__title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.4;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  margin-bottom: var(--sp-2);
}
.cart-item__spec { font-size: 12px; color: var(--text-muted); margin-bottom: var(--sp-3); }
.cart-item__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.cart-item__price { font-size: 16px; font-weight: 800; color: var(--brand-from); }
.cart-item__price::before { content: '¥'; font-size: 12px; }

.cart-item__qty {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  background: var(--bg-base);
  border-radius: var(--r-pill);
  padding: 2px;
}
.cart-item__qty button {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--bg-card);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-secondary);
  transition: all var(--t-fast);
  border: 1px solid rgba(0,0,0,0.08);
}
.cart-item__qty button:hover { background: var(--brand-ghost); color: var(--brand-from); }
.cart-item__qty button:active { transform: scale(0.9); }
.cart-item__qty span { min-width: 24px; text-align: center; font-size: 14px; font-weight: 700; }

/* Cart checkout bar */
.cart-checkout {
  position: fixed;
  bottom: calc(var(--nav-h) + var(--safe-bot));
  left: 0;
  right: 0;
  z-index: 90;
  background: var(--glass-bg);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-top: 1px solid rgba(255,255,255,0.6);
  box-shadow: 0 -4px 20px rgba(0,0,0,0.08);
  padding: var(--sp-3) var(--sp-5);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
}
.cart-checkout__total { display: flex; flex-direction: column; gap: 2px; }
.cart-checkout__label { font-size: 12px; color: var(--text-muted); font-weight: 500; }
.cart-checkout__price { font-size: 20px; font-weight: 800; color: var(--brand-from); }
.cart-checkout__price::before { content: '¥'; font-size: 13px; }
.cart-checkout__btn {
  height: 46px;
  padding: 0 var(--sp-7);
  border-radius: var(--r-pill);
  background: linear-gradient(135deg, var(--brand-from), var(--brand-to));
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(232,99,74,0.35);
  transition: all var(--t-fast);
  -webkit-tap-highlight-color: transparent;
}
.cart-checkout__btn:hover { transform: translateY(-1px); box-shadow: 0 6px 24px rgba(232,99,74,0.45); }
.cart-checkout__btn:active { transform: scale(0.97); }

.cart-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--sp-10) var(--sp-6);
  text-align: center;
  gap: var(--sp-4);
}
.cart-empty__icon {
  width: 80px;
  height: 80px;
  background: var(--bg-base);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
}
.cart-empty__icon svg { width: 40px; height: 40px; color: var(--text-muted); }
.cart-empty__title { font-size: 17px; font-weight: 700; color: var(--text-primary); }
.cart-empty__sub { font-size: 14px; color: var(--text-muted); }
.cart-empty__btn {
  margin-top: var(--sp-2);
  height: 44px;
  padding: 0 var(--sp-7);
  border-radius: var(--r-pill);
  background: linear-gradient(135deg, var(--brand-from), var(--brand-to));
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(232,99,74,0.30);
  transition: all var(--t-fast);
}
.cart-empty__btn:hover { transform: translateY(-1px); }
.cart-empty__btn:active { transform: scale(0.97); }

/* Checkout */
.checkout-modal {
  position: fixed;
  inset: 0;
  z-index: 2400;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.checkout-modal.hidden { display: none; }
.checkout-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.42);
}
.checkout-modal__sheet {
  position: relative;
  width: 100%;
  max-width: 560px;
  max-height: min(88vh, 760px);
  background: var(--bg-card);
  border-radius: 8px 8px 0 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 -12px 34px rgba(0,0,0,0.18);
}
.checkout-modal__header {
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}
.checkout-modal__title {
  font-size: 17px;
  font-weight: 800;
  color: var(--text-primary);
}
.checkout-modal__close {
  position: absolute;
  left: 12px;
  top: 10px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--bg-base);
  color: var(--text-secondary);
  font-size: 24px;
  line-height: 1;
}
.checkout-modal__body {
  overflow-y: auto;
  padding: var(--sp-4);
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}
.checkout-items,
.checkout-section {
  background: var(--bg-base);
  border: 1px solid rgba(0,0,0,0.05);
  border-radius: 8px;
  padding: var(--sp-4);
}
.checkout-progress {
  background: var(--bg-base);
  border: 1px solid rgba(0,0,0,0.05);
  border-radius: 8px;
  padding: var(--sp-4);
}
.checkout-progress__steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}
.checkout-progress__step {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
}
.checkout-progress__step span {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.08);
  font-size: 12px;
  font-weight: 800;
}
.checkout-progress__step em {
  font-style: normal;
  font-size: 11px;
  line-height: 1.2;
  text-align: center;
  white-space: nowrap;
}
.checkout-progress__step.active span {
  border-color: var(--brand-from);
  background: var(--brand-from);
  color: #fff;
  box-shadow: 0 0 0 4px var(--brand-ghost);
}
.checkout-progress__step.active em {
  color: var(--brand-from);
  font-weight: 800;
}
.checkout-progress__step.done span {
  border-color: #16a34a;
  background: #16a34a;
  color: #fff;
}
.checkout-progress__message {
  margin-top: 12px;
  min-height: 18px;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.35;
  text-align: center;
}
.checkout-progress--error .checkout-progress__message { color: #dc2626; }
.checkout-progress--success .checkout-progress__message { color: #15803d; }
.checkout-result {
  background: #f0fdf4;
  border: 1px solid rgba(22,163,74,0.22);
  border-radius: 8px;
  padding: 18px 14px;
  text-align: center;
}
.checkout-result__icon {
  width: 40px;
  height: 40px;
  margin: 0 auto 10px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #16a34a;
  color: #fff;
  font-size: 24px;
  font-weight: 900;
}
.checkout-result__title {
  color: #14532d;
  font-size: 17px;
  font-weight: 900;
}
.checkout-result__desc,
.checkout-result__order {
  margin-top: 6px;
  color: #166534;
  font-size: 13px;
  line-height: 1.35;
  word-break: break-all;
}
.checkout-item {
  display: flex;
  gap: var(--sp-3);
  padding-bottom: var(--sp-3);
  margin-bottom: var(--sp-3);
  border-bottom: 1px solid rgba(0,0,0,0.06);
}
.checkout-item:last-child { padding-bottom: 0; margin-bottom: 0; border-bottom: 0; }
.checkout-item__thumb {
  width: 58px;
  height: 58px;
  border-radius: 8px;
  object-fit: cover;
  background: #f2f2f2;
  flex-shrink: 0;
}
.checkout-item__info { flex: 1; min-width: 0; }
.checkout-item__title {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text-primary);
}
.checkout-item__meta {
  margin-top: 6px;
  font-size: 13px;
  color: var(--brand-from);
  font-weight: 800;
}
.checkout-section__title {
  font-size: 14px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: var(--sp-3);
}
.checkout-segment {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-2);
}
.checkout-segment button {
  height: 40px;
  border-radius: 8px;
  border: 1px solid rgba(0,0,0,0.08);
  background: #fff;
  color: var(--text-secondary);
  font-weight: 700;
}
.checkout-segment button.active {
  border-color: var(--brand-from);
  color: var(--brand-from);
  background: var(--brand-ghost);
}
.checkout-pay-methods {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-2);
}
.checkout-pay-method {
  min-height: 68px;
  border-radius: 8px;
  border: 1px solid rgba(24,184,79,0.22);
  background: linear-gradient(135deg, rgba(24,184,79,0.10), rgba(255,255,255,0.96) 46%, rgba(232,99,74,0.05));
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  grid-template-rows: auto auto;
  align-items: center;
  column-gap: 10px;
  row-gap: 2px;
  padding: 12px 13px;
  text-align: left;
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 800;
}
.checkout-pay-method.active {
  border-color: rgba(24,184,79,0.42);
  box-shadow: 0 8px 18px rgba(24,184,79,0.10);
}
.checkout-pay-method:disabled {
  cursor: not-allowed;
  opacity: 0.65;
}
.checkout-pay-method .pay-logo {
  grid-row: 1 / span 2;
  width: 30px;
  height: 30px;
  flex-basis: 30px;
}
.checkout-pay-method.active::after {
  content: '已选';
  grid-column: 3;
  grid-row: 1 / span 2;
  align-self: center;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(24,184,79,0.12);
  color: #138a3a;
  font-size: 11px;
  font-weight: 900;
}
.checkout-pay-method__main {
  grid-column: 2;
  color: var(--text-primary);
  font-size: 15px;
  font-weight: 900;
}
.checkout-pay-method__sub {
  grid-column: 2;
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 700;
}
.checkout-pay-note {
  margin-top: 8px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.45;
}
.checkout-pay-note span {
  flex: 0 0 auto;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(24,184,79,0.10);
  color: #138a3a;
  font-weight: 900;
}
.checkout-pay-note em {
  min-width: 0;
  color: var(--text-secondary);
  font-style: normal;
}
.pay-logo {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.pay-logo svg {
  width: 100%;
  height: 100%;
  display: block;
}
.pay-button-content {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 0;
}
.checkout-form {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}
.checkout-form input,
.checkout-form textarea {
  width: 100%;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 8px;
  background: #fff;
  color: var(--text-primary);
  font-size: 14px;
  line-height: 1.4;
  padding: 12px;
  outline: none;
}
.checkout-form input:disabled,
.checkout-form textarea:disabled,
.checkout-segment button:disabled,
.checkout-modal__close:disabled {
  cursor: not-allowed;
  opacity: 0.65;
}
.checkout-form textarea { resize: vertical; min-height: 48px; }
.checkout-form input:focus,
.checkout-form textarea:focus {
  border-color: var(--brand-from);
  box-shadow: 0 0 0 3px var(--brand-ghost);
}
.checkout-modal__footer {
  padding: var(--sp-3) var(--sp-4) calc(var(--safe-bot) + var(--sp-3));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  border-top: 1px solid rgba(0,0,0,0.06);
  background: rgba(255,255,255,0.96);
}
.checkout-total {
  display: flex;
  flex-direction: column;
  gap: 2px;
  white-space: nowrap;
}
.checkout-total span { font-size: 12px; color: var(--text-muted); }
.checkout-total strong { font-size: 20px; color: var(--brand-from); }
.checkout-pay {
  flex: 1;
  max-width: 220px;
  height: 46px;
  border-radius: 8px;
  border: 0;
  background: linear-gradient(135deg, #18b84f, #10a447);
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  box-shadow: 0 10px 22px rgba(24,184,79,0.20);
}
.checkout-pay--wechat {
  background: linear-gradient(135deg, #18b84f, #0f9f43);
  color: #fff;
}
.checkout-pay .pay-logo {
  width: 28px;
  height: 28px;
  flex-basis: 28px;
}
.checkout-pay:disabled { opacity: 0.62; box-shadow: none; }
@media (min-width: 700px) {
  .checkout-modal { align-items: center; }
  .checkout-modal__sheet { border-radius: 8px; }
}

/* Order center */
.orders-modal {
  position: fixed;
  inset: 0;
  z-index: 2400;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.orders-modal.hidden { display: none; }
.orders-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.42);
}
.orders-modal__sheet {
  position: relative;
  width: 100%;
  max-width: 560px;
  max-height: min(88vh, 760px);
  background: var(--bg-card);
  border-radius: 8px 8px 0 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 -12px 34px rgba(0,0,0,0.18);
}
.orders-modal__header {
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}
.orders-modal__title {
  font-size: 17px;
  font-weight: 800;
  color: var(--text-primary);
}
.orders-modal__close,
.orders-modal__refresh {
  position: absolute;
  top: 10px;
  height: 34px;
  border-radius: 999px;
  background: var(--bg-base);
  color: var(--text-secondary);
}
.orders-modal__close {
  left: 12px;
  width: 34px;
  font-size: 24px;
  line-height: 1.35;
}
.orders-modal__refresh {
  right: 12px;
  padding: 0 12px;
  font-size: 13px;
  font-weight: 700;
}
.orders-modal__close:disabled,
.orders-modal__refresh:disabled { opacity: 0.55; }
.orders-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  padding: 12px 14px;
  background: rgba(255,255,255,0.96);
  border-bottom: 1px solid rgba(0,0,0,0.05);
}
.orders-tabs button {
  height: 36px;
  border-radius: 8px;
  background: var(--bg-base);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 700;
}
.orders-tabs button.active {
  background: var(--brand-ghost);
  color: var(--brand-from);
  box-shadow: inset 0 0 0 1px rgba(232,99,74,0.24);
}
.orders-list {
  overflow-y: auto;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--bg-base);
}
.orders-loading,
.orders-empty {
  min-height: 220px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
  color: var(--text-muted);
}
.orders-empty__title {
  font-size: 16px;
  font-weight: 800;
  color: var(--text-primary);
}
.orders-empty__sub {
  font-size: 13px;
  line-height: 1.5;
}
.orders-empty button {
  margin-top: 6px;
  height: 38px;
  padding: 0 16px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--brand-from), var(--brand-to));
  color: #fff;
  font-weight: 800;
}
.order-card-h5 {
  padding: 14px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.05);
  box-shadow: 0 8px 24px rgba(15,23,42,0.06);
}
.order-card-h5__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.order-card-h5__no {
  font-size: 14px;
  font-weight: 800;
  color: var(--text-primary);
  word-break: break-all;
}
.order-card-h5__time {
  margin-top: 3px;
  font-size: 12px;
  color: var(--text-muted);
}
.order-card-h5__badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
  flex-shrink: 0;
}
.order-source,
.order-status {
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  font-weight: 800;
}
.order-source { background: #eef2ff; color: #4f46e5; }
.order-status.pending { background: #fff7ed; color: #ea580c; }
.order-status.paid { background: #f0fdf4; color: #15803d; }
.order-status.closed { background: #f1f5f9; color: #64748b; }
.order-status.warning { background: #fef2f2; color: #dc2626; }
.order-card-h5__items {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.order-card-h5__item {
  display: flex;
  gap: 10px;
  min-width: 0;
}
.order-card-h5__item img {
  width: 52px;
  height: 52px;
  border-radius: 8px;
  object-fit: cover;
  background: #f1f5f9;
  flex-shrink: 0;
}
.order-card-h5__item div { flex: 1; min-width: 0; }
.order-card-h5__item strong {
  display: block;
  font-size: 14px;
  line-height: 1.35;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.order-card-h5__item span {
  display: block;
  margin-top: 5px;
  font-size: 13px;
  color: var(--brand-from);
  font-weight: 800;
}
.order-card-h5__contact {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  background: var(--bg-base);
  display: flex;
  gap: 8px;
  align-items: flex-start;
  font-size: 12px;
  line-height: 1.5;
}
.order-card-h5__contact span {
  color: var(--text-primary);
  font-weight: 800;
  flex-shrink: 0;
}
.order-card-h5__contact em {
  min-width: 0;
  color: var(--text-secondary);
  font-style: normal;
  word-break: break-all;
}
.order-card-h5__foot {
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.order-card-h5__total {
  color: var(--text-secondary);
  font-size: 13px;
}
.order-card-h5__total strong {
  color: var(--brand-from);
  font-size: 18px;
}
.order-card-h5__foot button {
  height: 38px;
  min-width: 96px;
  padding: 0 14px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--brand-from), var(--brand-to));
  color: #fff;
  font-size: 13px;
  font-weight: 800;
}
.order-card-h5__pay-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.order-card-h5__foot .order-pay-btn {
  min-width: 118px;
  padding: 0 14px;
}
.order-card-h5__foot .order-pay-btn--wechat {
  background: linear-gradient(135deg, #18b84f, #0f9f43);
  box-shadow: 0 8px 16px rgba(24,184,79,0.16);
}
.order-card-h5__foot .pay-logo {
  width: 20px;
  height: 20px;
  flex-basis: 20px;
}
.order-card-h5__foot button:disabled { opacity: 0.62; }
@media (min-width: 700px) {
  .orders-modal { align-items: center; }
  .orders-modal__sheet { border-radius: 8px; }
}
@keyframes spin    { to { transform: rotate(360deg); } }
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.85); }
}
@keyframes pulse-opacity {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.7; }
}
@keyframes loading-dot-rise {
  from { transform: translateY(0); }
  to   { transform: translateY(-5px); }
}
@keyframes fadeIn      { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeInUp    { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeOut     { from { opacity: 1; } to { opacity: 0; } }
@keyframes slideUp     { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes toastIn     {
  from { opacity: 0; transform: translateX(-50%) translateY(16px) scale(0.92); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0) scale(1); }
}
@keyframes brandFloat {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-4px); }
}
@keyframes modalIn {
  from { opacity: 0; transform: scale(0.90) translateY(12px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* 鈺愨晲鈺愨晲鈺愨晲鈺愨晲鈺愨晲鈺愨晲鈺愨晲鈺愨晲鈺愨晲鈺愨晲鈺愨晲鈺愨晲鈺愨晲鈺愨晲鈺愨晲鈺愨晲鈺愨晲鈺愨晲鈺愨晲鈺愨晲鈺愨晲鈺愨晲鈺愨晲鈺愨晲鈺愨晲鈺愨晲鈺愨晲鈺愨晲鈺愨晲鈺愨晲鈺愨晲鈺愨晲鈺愨晲
   LIVE STREAMING 鈥?Dark Immersive Theme (Douyin-style)
   鈺愨晲鈺愨晲鈺愨晲鈺愨晲鈺愨晲鈺愨晲鈺愨晲鈺愨晲鈺愨晲鈺愨晲鈺愨晲鈺愨晲鈺愨晲鈺愨晲鈺愨晲鈺愨晲鈺愨晲鈺愨晲鈺愨晲鈺愨晲鈺愨晲鈺愨晲鈺愨晲鈺愨晲鈺愨晲鈺愨晲鈺愨晲鈺愨晲鈺愨晲鈺愨晲鈺愨晲鈺愨晲鈺愨晲 */

/* 鈹€鈹€ Accessibility utility 鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€ */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* 鈹€鈹€ Scope wrapper 鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€ */
.view-watch {
  --live-bg:           #0F0F23;
  --live-surface:      rgba(255, 255, 255, 0.07);
  --live-glass:        rgba(255, 255, 255, 0.11);
  --live-glass-border:  rgba(255, 255, 255, 0.14);
  --live-glass-hover:  rgba(255, 255, 255, 0.18);
  --live-text:         #F8FAFC;
  --live-text-muted:  rgba(255, 255, 255, 0.55);
  --live-text-sub:     rgba(255, 255, 255, 0.42);
  --live-accent:       #E11D48;
  --live-accent-glow:  rgba(225, 29, 72, 0.35);
  --live-gift-from:    rgba(225, 4, 66, 0.85);
  --live-gift-to:      rgba(0, 0, 0, 0.0);
  --live-tint:         #00DDD8;
  --live-shadow-deep:   0 18px 40px rgba(0, 0, 0, 0.45);
  --live-blur:         blur(18px);
  --live-blur-heavy:   blur(24px);
  --live-composer-h: calc(64px + var(--safe-bot));
  --live-floating-bottom: calc(var(--live-composer-h) + 28px);

  background: var(--live-bg);
  color: var(--live-text);
  position: relative;
  overflow: hidden;
  touch-action: pan-y;
}

/* 鈹€鈹€ Stage / video wrapper 鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€ */
.watch-stage {
  position: fixed;
  inset: 0;
  z-index: 1;
  background: radial-gradient(circle at 20% 10%, rgba(225, 29, 72, 0.22), transparent 35%),
              radial-gradient(circle at 82% 8%,  rgba(244, 114, 182, 0.18), transparent 25%),
              linear-gradient(180deg, rgba(0,0,0,0.08) 0%, rgba(0,0,0,0.32) 48%, rgba(0,0,0,0.75) 100%);
  touch-action: pan-y;
}

.watch-stage__video {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1;
  overflow: hidden;
}

/* 鈹€鈹€ LIVE Badge with pulse ring 鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€ */
.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--live-accent);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 999px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  box-shadow: 0 0 0 0 var(--live-accent);
  animation: live-pulse-ring 2s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  position: relative;
  z-index: 2;
}

.live-badge__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff;
  animation: live-pulse-dot 1.5s ease-in-out infinite;
}

@keyframes live-pulse-ring {
  0%   { box-shadow: 0 0 0 0 rgba(225, 29, 72, 0.65); }
  70%  { box-shadow: 0 0 0 8px rgba(225, 29, 72, 0); }
  100% { box-shadow: 0 0 0 0 rgba(225, 29, 72, 0); }
}

@keyframes live-pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.75); }
}

/* 鈹€鈹€ Top header bar 鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€ */
.live-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: calc(var(--safe-top) + 12px) 16px 12px;
  /* gradient fade so content behind bleeds through */
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.45) 0%,
    rgba(0, 0, 0, 0.0)  100%
  );
}

.live-header__back {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  cursor: pointer;
  transition: background 150ms ease, transform 150ms ease;
  -webkit-tap-highlight-color: transparent;
}
.live-header__back:hover  { background: rgba(255, 255, 255, 0.22); }
.live-header__back:active { transform: scale(0.92); }
.live-header__back svg { width: 18px; height: 18px; color: #fff; }

.live-header__broadcaster {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
  margin-left: 8px;
}

.live-header__avatar-wrap {
  position: relative;
  flex-shrink: 0;
}

.live-header__avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1.5px solid var(--live-tint);
  object-fit: cover;
  display: block;
}

.live-header__avatar--placeholder {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1.5px solid var(--live-tint);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--brand-from), var(--brand-to));
  flex-shrink: 0;
}

.live-header__info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.live-header__name {
  font-size: 14px;
  font-weight: 700;
  color: var(--live-text);
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.live-header__title {
  font-size: 11px;
  color: var(--live-text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 1px;
}

/* 鈹€鈹€ Live status badge (replaces follow button) 鈹€鈹€ */
.live-header__status {
  display: flex;
  align-items: center;
  gap: 5px;
  height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(225, 29, 72, 0.22);
  border: 1px solid rgba(225, 29, 72, 0.45);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  flex-shrink: 0;
  transition: transform 150ms ease, background 150ms ease;
  -webkit-tap-highlight-color: transparent;
}

.live-header__status:active { transform: scale(0.93); }

.live-header__status__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--live-accent);
  box-shadow: 0 0 0 0 rgba(225, 29, 72, 0.5);
  animation: live-pulse-ring 2s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
  flex-shrink: 0;
}

.live-header__status__text {
  letter-spacing: 0.3px;
}

/* Status: ended */
.live-header__status--ended {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

.live-header__status--ended .live-header__status__dot {
  background: var(--live-text-muted);
  animation: none;
}

/* 鈹€鈹€ Count / members button 鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€ */
.live-header__count {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--live-glass);
  backdrop-filter: var(--live-blur);
  -webkit-backdrop-filter: var(--live-blur);
  border: 1px solid var(--live-glass-border);
  font-size: 12px;
  font-weight: 600;
  color: var(--live-text);
  cursor: pointer;
  transition: background 150ms ease, transform 150ms ease;
  -webkit-tap-highlight-color: transparent;
}

.live-header__count:hover   { background: var(--live-glass-hover); }
.live-header__count:active  { transform: scale(0.93); }
.live-header__count:focus-visible {
  outline: 2px solid rgba(0, 221, 216, 0.7);
  outline-offset: 2px;
}

.live-header__count svg { color: var(--live-tint); }

.live-lucky-bag-entry {
  position: fixed;
  top: calc(var(--safe-top) + 64px);
  left: 16px;
  z-index: 11;
  max-width: min(72vw, 320px);
}

.live-lucky-bag-entry.hidden {
  display: none;
}

.live-lucky-bag-card {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 48px;
  max-width: 100%;
  padding: 7px 12px 7px 7px;
  border: 1px solid rgba(255, 206, 84, 0.42);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(255, 92, 67, 0.82), rgba(255, 186, 73, 0.68));
  color: #fff;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.live-lucky-bag-card.is-joined {
  background: linear-gradient(135deg, rgba(131, 95, 255, 0.78), rgba(255, 92, 171, 0.68));
}

.live-lucky-bag-card__icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.34);
  font-size: 16px;
  font-weight: 900;
}

.live-lucky-bag-card__body {
  display: flex;
  flex-direction: column;
  min-width: 0;
  text-align: left;
}

.live-lucky-bag-card__title {
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.live-lucky-bag-card__meta {
  margin-top: 2px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.82);
  white-space: nowrap;
}

/* 鈹€鈹€ Online Members Modal 鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€ */
.live-members-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.live-members-modal.hidden { display: none; }

.live-members-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.live-members-modal__panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-height: 65vh;
  background: rgba(20, 18, 35, 0.96);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-radius: 20px 20px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  flex-direction: column;
  animation: slide-up 0.28s cubic-bezier(0.4, 0, 0.2, 1) both;
}

@keyframes slide-up {
  from { transform: translateY(100%); opacity: 0; }
  to   { transform: translateY(0);   opacity: 1; }
}

.live-members-modal__header {
  display: flex;
  align-items: center;
  padding: 18px 20px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  gap: 10px;
  flex-shrink: 0;
}

.live-members-modal__title {
  font-size: 16px;
  font-weight: 700;
  color: var(--live-text);
}

.live-members-modal__count {
  font-size: 12px;
  color: var(--live-text-muted);
  flex: 1;
}

.live-members-modal__close {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--live-text);
  transition: background 150ms ease;
  flex-shrink: 0;
}

.live-members-modal__close:hover { background: rgba(255, 255, 255, 0.15); }

.live-members-modal__close svg { width: 16px; height: 16px; }

.live-members-modal__list {
  overflow-y: auto;
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.live-members-modal__list::-webkit-scrollbar { width: 4px; }
.live-members-modal__list::-webkit-scrollbar-track { background: transparent; }
.live-members-modal__list::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 2px;
}

.live-members-modal__empty {
  text-align: center;
  color: var(--live-text-muted);
  font-size: 13px;
  padding: 32px 0;
}

.live-member-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  transition: background 150ms ease;
}

.live-member-item:hover { background: rgba(255, 255, 255, 0.06); }

.live-member-item__avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 1.5px solid var(--live-glass-border);
}

.live-member-item__avatar--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--brand-from), var(--brand-to));
  font-family: inherit;
}

.live-member-item__info {
  flex: 1;
  min-width: 0;
}

.live-member-item__name {
  font-size: 14px;
  font-weight: 600;
  color: var(--live-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.live-member-item__role {
  font-size: 11px;
  color: var(--live-tint);
  margin-top: 1px;
}

.live-member-item__join-time {
  font-size: 11px;
  color: var(--live-text-sub);
  flex-shrink: 0;
}

/* 鈹€鈹€ Chat shell 鈥?bottom-left, 65% width 鈹€鈹€鈹€鈹€鈹€鈹€ */
.live-chat-shell {
  position: fixed;
  left: 16px;
  bottom: var(--live-floating-bottom);
  width: 65%;
  max-height: 40vh;
  z-index: 8;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  pointer-events: none;
  background: transparent;
}

.live-chat-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  overflow-y: auto;
  overscroll-behavior: contain;
  touch-action: pan-y;
  padding-bottom: 8px;
  padding-right: 4px;
  pointer-events: auto;
  background: transparent;
}

.live-chat-list::-webkit-scrollbar { display: none; }
.live-chat-list { -ms-overflow-style: none; scrollbar-width: none; }

/* Bottom fade mask on chat list */
.live-chat-mask {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40%;
  background: transparent;
  pointer-events: none;
  z-index: 1;
}

/* 鈹€鈹€ Chat items 鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€ */
.live-chat-item {
  align-self: flex-start;
  max-width: 85%;
  display: flex;
  align-items: flex-start;
  gap: 7px;
  animation: chat-enter 0.25s cubic-bezier(0.4, 0, 0.2, 1) both;
}

@keyframes chat-enter {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.live-chat-item__avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  margin-top: 2px;
  background: linear-gradient(135deg, var(--brand-from), var(--brand-to));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  overflow: hidden;
}

.live-chat-item__avatar img { width: 100%; height: 100%; object-fit: cover; }

.live-chat-item__bubble {
  padding: 9px 13px;
  border-radius: 16px;
  background: rgba(16, 18, 24, 0.34);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.18);
}

.live-chat-item__name {
  font-size: 11px;
  font-weight: 700;
  color: var(--live-text-muted);
  margin-bottom: 3px;
}

.live-chat-item__text {
  font-size: 14px;
  line-height: 1.5;
  color: #fff;
  word-break: break-word;
}

/* Creator / broadcaster special bubble */
.live-chat-item--creator .live-chat-item__bubble {
  border-left: 2.5px solid var(--live-tint);
}

.live-chat-item--creator .live-chat-item__name {
  color: var(--live-tint);
}

/* Gift message 鈥?special gradient style */
.live-chat-item--gift {
  max-width: 80%;
}

.live-chat-item--gift .live-chat-item__bubble {
  background: linear-gradient(
    135deg,
    var(--live-gift-from) 0%,
    rgba(225, 4, 66, 0.55) 100%
  );
  border: 1px solid rgba(255, 160, 180, 0.25);
  box-shadow: 0 0 12px rgba(225, 29, 72, 0.3), var(--live-shadow-deep);
  padding: 9px 14px;
}

.live-chat-item--gift .live-chat-item__text {
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 7px;
}

.live-chat-item--gift .live-chat-item__text svg {
  font-size: 18px;
  color: #FFD700;
}

/* System message */
.live-chat-item--system {
  align-self: flex-start;
}

.live-chat-item--system .live-chat-item__bubble {
  background: rgba(0, 221, 216, 0.14);
  border: 1px solid rgba(0, 221, 216, 0.24);
  padding: 7px 14px;
}

.live-chat-item--system .live-chat-item__text {
  font-size: 12px;
  color: var(--live-tint);
  font-weight: 500;
}

/* Offline / send-failed message */
.live-chat-item--offline {
  opacity: 0.6;
}

.live-chat-item--offline .live-chat-item__name::after {
  content: ' (鏈€佽揪)';
  font-size: 10px;
  font-weight: 500;
  color: rgba(255, 100, 100, 0.8);
}

/* 鈹€鈹€ Bottom interaction bar 鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€ */
.live-composer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px calc(12px + var(--safe-bot));
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.55) 0%,
    rgba(0, 0, 0, 0.15) 70%,
    transparent 100%
  );
  min-height: var(--live-composer-h);
  touch-action: manipulation;
}

.live-composer__input {
  flex: 1;
  height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: var(--live-blur-heavy);
  -webkit-backdrop-filter: var(--live-blur-heavy);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.5);
  font-size: 16px;
  font-family: inherit;
  outline: none;
  transition: border-color 200ms ease, background 200ms ease;
  cursor: text;
}

.live-composer__input::placeholder { color: rgba(255, 255, 255, 0.42); }

.live-composer__input:focus {
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.16);
  color: var(--live-text);
  box-shadow: 0 0 0 2px rgba(0, 221, 216, 0.5);
  outline: none;
}

.live-composer__action {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: var(--live-blur);
  -webkit-backdrop-filter: var(--live-blur);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  color: var(--live-text);
  transition: background 150ms ease, transform 150ms ease;
  -webkit-tap-highlight-color: transparent;
}

.live-composer__action:hover   { background: rgba(255, 255, 255, 0.22); }
.live-composer__action:active  { transform: scale(0.9); }

.live-composer__action:focus-visible {
  outline: 2px solid rgba(0, 221, 216, 0.7);
  outline-offset: 2px;
}

.live-composer__action svg { width: 20px; height: 20px; }

/* Share button gold accent */
.live-composer__action--share:hover { background: rgba(255, 215, 0, 0.2); }

/* Like button special treatment */
.live-composer__action--like {
  position: relative;
}

/* 鈹€鈹€ Emoji Picker 鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€ */
.emoji-picker {
  position: fixed;
  bottom: calc(var(--live-floating-bottom) + 8px);
  left: 16px;
  right: 16px;
  z-index: 102;
  animation: emojiSlideUp 0.2s cubic-bezier(0.22, 1, 0.36, 1) both;
  transform-origin: bottom left;
  touch-action: pan-y;
}

@keyframes emojiSlideUp {
  from { opacity: 0; transform: scale(0.88) translateY(12px); }
  to   { opacity: 1; transform: scale(1)    translateY(0); }
}

.emoji-picker__inner {
  background: rgba(15, 15, 35, 0.92);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  overflow: hidden;
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.6),
    0 8px 20px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.emoji-picker__tabs {
  display: flex;
  gap: 2px;
  padding: 10px 12px 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  overflow-x: auto;
  scrollbar-width: none;
}
.emoji-picker__tabs::-webkit-scrollbar { display: none; }

.emoji-picker__tab {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: none;
  background: transparent;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 150ms ease, transform 150ms ease;
  opacity: 0.55;
}
.emoji-picker__tab:hover    { background: rgba(255, 255, 255, 0.1); opacity: 0.8; }
.emoji-picker__tab.active   { background: rgba(232, 99, 74, 0.2); opacity: 1; }
.emoji-picker__tab:active   { transform: scale(0.9); }

.emoji-picker__body {
  padding: 8px 8px 12px;
  max-height: min(220px, 30vh);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.15) transparent;
}
.emoji-picker__body::-webkit-scrollbar       { width: 4px; }
.emoji-picker__body::-webkit-scrollbar-track { background: transparent; }
.emoji-picker__body::-webkit-scrollbar-thumb  { background: rgba(255,255,255,0.15); border-radius: 2px; }

.emoji-picker__grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 2px;
}

.emoji-picker__item {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  line-height: 1;
  border-radius: 8px;
  cursor: pointer;
  transition: background 120ms ease, transform 120ms ease;
  user-select: none;
  -webkit-user-select: none;
}
.emoji-picker__item:hover    { background: rgba(255, 255, 255, 0.12); transform: scale(1.18); }
.emoji-picker__item:active   { transform: scale(0.92); }

.emoji-picker__empty {
  grid-column: 1 / -1;
  text-align: center;
  color: rgba(255, 255, 255, 0.35);
  font-size: 13px;
  padding: 24px 0;
}

/* emoji button active state */
#live-emoji-btn.active {
  background: rgba(232, 99, 74, 0.25);
  border-color: rgba(232, 99, 74, 0.5);
}

/* 鈹€鈹€ Floating hearts container 鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€ */
.heart-container {
  position: fixed;
  inset: 0;
  z-index: 9;
  pointer-events: none;
  overflow: hidden;
}

.heart-fly {
  position: absolute;
  font-size: 28px;
  color: #ff4d6a;
  font-variation-settings: 'FILL' 1;
  animation: heart-float 3s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
  pointer-events: none;
  will-change: transform, opacity;
}

@keyframes heart-float {
  0%   { transform: translateY(0) scale(0.5); opacity: 1; }
  50%  { transform: translateY(-150px) translateX(-20px) scale(1.2); opacity: 0.85; }
  100% { transform: translateY(-320px) translateX(25px) scale(0.9); opacity: 0; }
}

/* 鈹€鈹€ Right-side action buttons (like/share/cart) */
.live-actions {
  position: fixed;
  right: 14px;
  bottom: var(--live-floating-bottom);
  z-index: 8;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.live-action-btn {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--live-glass);
  backdrop-filter: var(--live-blur);
  -webkit-backdrop-filter: var(--live-blur);
  border: 1px solid var(--live-glass-border);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--live-text);
  transition: transform 150ms ease, background 150ms ease, box-shadow 150ms ease;
  -webkit-tap-highlight-color: transparent;
  position: relative;
}

.live-action-btn:hover  { background: var(--live-glass-hover); transform: scale(1.04); }
.live-action-btn:active { transform: scale(0.92); }

.live-action-btn:focus-visible {
  outline: 2px solid rgba(0, 221, 216, 0.7);
  outline-offset: 2px;
}

.live-action-btn svg { width: 22px; height: 22px; }

.live-action-btn__count {
  font-size: 10px;
  font-weight: 700;
  color: var(--live-text);
  margin-top: 1px;
  line-height: 1;
}

/* Like 鈥?pulsing red ring on tap */
.live-action-btn--like.liked {
  background: rgba(225, 29, 72, 0.25);
  border-color: rgba(225, 29, 72, 0.5);
  box-shadow: 0 0 0 0 rgba(225, 29, 72, 0.5);
  animation: like-burst 0.4s ease-out;
}

@keyframes like-burst {
  0%   { box-shadow: 0 0 0 0 rgba(225, 29, 72, 0.6); }
  100% { box-shadow: 0 0 0 16px rgba(225, 29, 72, 0); }
}

/* 鈹€鈹€ Player overlay (dark tinted) 鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€ */
.player-overlay {
  background: rgba(0, 0, 0, 0.18);
}

/* 鈹€鈹€ Player badge (top-left LIVE) 鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€ */
.player-badge {
  background: rgba(225, 29, 72, 0.82);
  box-shadow: 0 6px 20px rgba(225, 29, 72, 0.28);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* 鈹€鈹€ Topbar overrides for dark theme 鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€ */
.watch-topbar__meta {
  background: rgba(0, 0, 0, 0.32);
  border-color: rgba(255, 255, 255, 0.1);
}

.watch-topbar__back {
  background: rgba(0, 0, 0, 0.3);
  border-color: rgba(255, 255, 255, 0.12);
}

.watch-topbar__back:hover { background: rgba(0, 0, 0, 0.5); }

/* 鈹€鈹€ Chat overrides for dark theme 鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€ */
.watch-chat-list .chat-msg__text {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.watch-chat-list .chat-msg--self .chat-msg__text {
  background: linear-gradient(135deg, rgba(225, 29, 72, 0.28), rgba(244, 114, 182, 0.16));
  border-color: rgba(244, 114, 182, 0.18);
}

.watch-chat-list .chat-msg__name {
  color: rgba(255, 255, 255, 0.88);
}

.watch-chat-list .chat-msg--self .chat-msg__name {
  color: #FFB3C6;
}

.watch-chat-list .chat-system {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.7);
}

/* 鈹€鈹€ Composer overrides for dark theme 鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€ */
.watch-composer__input-shell {
  background: rgba(0, 0, 0, 0.32);
  border-color: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}

.watch-composer__input {
  color: rgba(255, 255, 255, 0.85);
}

.watch-composer__input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

/* 鈹€鈹€ Live Product Panel 鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€ */
.live-product-panel {
  position: fixed;
  bottom: var(--live-floating-bottom);
  left: 16px;
  right: 76px;
  z-index: 34;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: min(32vh, 292px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 2px 4px 2px 0;
  pointer-events: none;
  opacity: 0;
  transform: translateY(12px);
  visibility: hidden;
  transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
  animation: slideInUp 0.3s ease;
  scrollbar-width: none;
  touch-action: pan-y;
}
.live-product-panel::-webkit-scrollbar { display: none; }

.live-product-panel.is-open {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
  pointer-events: auto;
}

.live-product-panel__item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--live-glass);
  backdrop-filter: var(--live-blur);
  -webkit-backdrop-filter: var(--live-blur);
  border: 1px solid var(--live-glass-border);
  border-radius: 14px;
  min-height: 58px;
  padding: 8px 12px 8px 8px;
  cursor: pointer;
  pointer-events: all;
  transition: transform 150ms ease, box-shadow 150ms ease, border-color 150ms ease, background 150ms ease;
  animation: slideInLeft 0.35s ease;
}

.live-product-panel__item.is-featured {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.28);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.28);
}

.live-product-panel__item:hover {
  transform: scale(1.02);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.live-product-panel__img {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.1);
}

.live-product-panel__img--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--brand-from), var(--brand-to));
}

.live-product-panel__info {
  flex: 1;
  min-width: 0;
}

.live-product-panel__name {
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 1.3;
  margin-bottom: 3px;
}

.live-product-panel__price {
  font-size: 15px;
  font-weight: 700;
  color: var(--brand-from);
  line-height: 1;
}

.live-product-panel__empty {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.4);
  text-align: center;
  padding: 12px;
  background: var(--live-glass);
  backdrop-filter: var(--live-blur);
  border-radius: 12px;
  border: 1px solid var(--live-glass-border);
}

.live-product-detail-modal {
  position: fixed;
  inset: 0;
  z-index: 240;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  pointer-events: auto;
}

.live-product-detail-modal.hidden { display: none; }

.live-product-detail__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.28);
}

.live-product-detail__sheet {
  position: relative;
  width: min(100%, 520px);
  max-height: 78vh;
  overflow-y: auto;
  padding: 12px 14px calc(16px + var(--safe-bot));
  border-radius: 22px 22px 0 0;
  background: rgba(20, 20, 28, 0.92);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 -18px 48px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  animation: slideInUp 0.22s ease both;
}

.live-product-detail__close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  font-size: 24px;
  line-height: 1;
}

.live-product-detail__media {
  height: 220px;
  border-radius: 16px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
}

.live-product-detail__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fff;
}

.live-product-detail__body { padding: 14px 2px 8px; }

.live-product-detail__price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 25px;
  font-weight: 800;
  color: #ff7a59;
}

.live-product-detail__origin {
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.42);
  text-decoration: line-through;
}

.live-product-detail__title {
  margin-top: 8px;
  font-size: 18px;
  line-height: 1.35;
  font-weight: 800;
}

.live-product-detail__desc {
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.68);
}

.live-product-detail__actions {
  display: grid;
  grid-template-columns: 0.9fr 1.2fr;
  gap: 10px;
  margin-top: 10px;
}

.live-product-detail__ghost,
.live-product-detail__buy {
  height: 44px;
  border: 0;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 800;
}

.live-product-detail__ghost {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
}

.live-product-detail__buy {
  color: #fff;
  background: linear-gradient(135deg, var(--brand-from), var(--brand-to));
}

.mini-program-code-modal {
  position: fixed;
  inset: 0;
  z-index: 260;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.mini-program-code-modal.hidden { display: none; }

.mini-program-code__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.36);
}

.mini-program-code__sheet {
  position: relative;
  width: min(100%, 520px);
  padding: 18px 18px calc(18px + var(--safe-bot));
  border-radius: 24px 24px 0 0;
  background: rgba(255, 255, 255, 0.98);
  color: #191c1e;
  box-shadow: 0 -20px 56px rgba(0, 0, 0, 0.24);
  animation: slideInUp 0.22s ease both;
}

.mini-program-code__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.08);
  color: #111827;
  font-size: 24px;
  line-height: 1;
}

.mini-program-code__title {
  padding-right: 38px;
  font-size: 20px;
  font-weight: 850;
  line-height: 1.35;
}

.mini-program-code__desc {
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.55;
  color: #6b7280;
}

.mini-program-code__product {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  padding: 10px;
  border-radius: 14px;
  background: #fff7f4;
  border: 1px solid rgba(232, 99, 74, 0.14);
}

.mini-program-code__product img {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  object-fit: cover;
  background: #fff;
}

.mini-program-code__product-title {
  font-size: 14px;
  line-height: 1.35;
  font-weight: 750;
  color: #1f2937;
}

.mini-program-code__product-price {
  margin-top: 4px;
  font-size: 17px;
  line-height: 1;
  font-weight: 850;
  color: #ef6447;
}

.mini-program-code__image {
  display: block;
  width: 210px;
  height: 210px;
  margin: 16px auto 8px;
  border-radius: 18px;
  object-fit: cover;
  background: #fff;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.12);
}

.mini-program-code__tips {
  text-align: center;
  font-size: 12px;
  line-height: 1.5;
  color: #6b7280;
}

.mini-program-code__copy {
  width: 100%;
  height: 44px;
  margin-top: 14px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--brand-from), var(--brand-to));
}

@keyframes slideInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-20px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* 鈹€鈹€ Reduced motion support 鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€鈹€ */
@media (prefers-reduced-motion: reduce) {
  .live-badge,
  .live-badge__dot,
  .heart-fly,
  .live-action-btn--like.liked,
  .live-chat-item {
    animation: none !important;
  }
  .live-action-btn--like.liked {
    box-shadow: none;
  }
}

/* ── 19. Guest Login Modal (bottom sheet) ── */
#modal-guest-login {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.guest-login-panel {
  background: var(--bg-page);
  border-radius: 24px 24px 0 0;
  padding: 12px 24px calc(28px + env(safe-area-inset-bottom, 0px)) 24px;
  width: 100%;
  max-width: 480px;
  position: relative;
  text-align: center;
  animation: slideUp 280ms cubic-bezier(0.32, 0.72, 0, 1);
}

@keyframes slideUp {
  from { transform: translateY(100%); opacity: 0; }
  to   { transform: translateY(0);  opacity: 1; }
}

.guest-login-handle {
  width: 36px;
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  margin: 0 auto 4px;
}

.guest-login-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 30px;
  height: 30px;
  border: none;
  background: var(--bg-card);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.guest-login-close svg {
  width: 16px;
  height: 16px;
}

.guest-login-logo {
  display: flex;
  justify-content: center;
  margin: 4px 0 16px;
}

.guest-login-title {
  font-size: 20px;
  font-weight: 900;
  color: var(--text-primary);
  margin: 0 0 6px;
  letter-spacing: -0.4px;
}

.guest-login-desc {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0 0 20px;
  line-height: 1.5;
}

.guest-login-perks {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  text-align: left;
  background: var(--bg-card);
  border-radius: 16px;
  padding: 16px 20px;
}

.guest-login-perks li {
  font-size: 14px;
  color: var(--text-secondary);
  padding: 7px 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.guest-login-perks li::before {
  content: '';
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--brand-gradient);
  flex-shrink: 0;
}

.guest-login-guest-btn {
  margin-top: 10px;
  background: none;
  border: none;
  font-size: 13px;
  color: var(--text-muted);
  cursor: pointer;
  padding: 8px;
}

/* ── 19b. Home Login Button ── */
.home-avatar-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  min-height: 42px;
  padding: 6px 12px 6px 7px;
  background: var(--brand-gradient);
  border-radius: 21px;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(232, 99, 74, 0.3);
  transition: transform 150ms ease, box-shadow 150ms ease;
  flex-shrink: 0;
}

.home-avatar-btn:hover {
  transform: scale(1.04);
}

.home-avatar-btn:active {
  transform: scale(0.96);
}

.home-avatar-btn__icon {
  width: 24px;
  height: 24px;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.home-avatar-btn__icon svg {
  width: 14px;
  height: 14px;
}


/* ============================================================
   Beauty Live OS - Overdrive Redesign Layer
   ============================================================ */
:root {
  --os-ink: #241915;
  --os-copper: #E8634A;
  --os-coral: #FF8A5B;
  --os-green: #188A52;
  --os-gold: #B9822A;
  --os-blue: #2D6CDF;
  --os-panel: rgba(255, 255, 255, 0.88);
  --os-line: rgba(62, 42, 34, 0.10);
}

.nav { background: rgba(255, 255, 255, 0.84) !important; border-top: 1px solid rgba(65, 43, 34, 0.08) !important; box-shadow: 0 -10px 34px rgba(43, 26, 18, 0.08) !important; }
.nav__item { position: relative; min-height: 56px; opacity: 0.52; }
.nav__glow { position: absolute; top: 7px; width: 42px; height: 27px; border-radius: 999px; opacity: 0; transform: scale(0.72); background: var(--brand-ghost2); transition: opacity 180ms ease, transform 240ms cubic-bezier(0.22, 1, 0.36, 1), background 180ms ease; }
.nav__item.active .nav__glow { opacity: 1; transform: scale(1); }
.nav__item[data-nav-tone="courses"].active .nav__glow { background: rgba(22, 163, 74, 0.13); }
.nav__item[data-nav-tone="mall"].active .nav__glow { background: rgba(249, 115, 22, 0.14); }
.nav__item[data-nav-tone="profile"].active .nav__glow { background: rgba(36, 25, 21, 0.08); }
.nav__item svg, .nav__label { position: relative; z-index: 1; }
.nav__item[data-nav-tone="courses"].active svg, .nav__item[data-nav-tone="courses"].active .nav__label { color: var(--os-green); }
.nav__item[data-nav-tone="mall"].active svg, .nav__item[data-nav-tone="mall"].active .nav__label { color: #F97316; }
.nav__item[data-nav-tone="profile"].active svg, .nav__item[data-nav-tone="profile"].active .nav__label { color: var(--os-ink); }

.home-scroll { background: radial-gradient(circle at 8% 0%, rgba(255, 138, 91, 0.22), transparent 34%), radial-gradient(circle at 92% 12%, rgba(24, 138, 82, 0.13), transparent 30%), linear-gradient(180deg, #fff9f5 0%, var(--bg-base) 42%, #f7f3ef 100%); }
.home-os-hero { position: relative; margin: 12px 16px 12px; padding: 22px 18px 16px; min-height: 230px; overflow: hidden; border-radius: 24px; color: #fff; background: linear-gradient(135deg, #241915 0%, #6d2c1d 48%, #e8634a 100%); box-shadow: 0 22px 52px rgba(92, 39, 26, 0.28); }
.home-os-hero::after { content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0.22; background-image: linear-gradient(115deg, transparent 0 40%, rgba(255,255,255,.6) 48%, transparent 58%), radial-gradient(circle at 25% 25%, rgba(255,255,255,.8) 0 1px, transparent 1px); background-size: 220% 100%, 18px 18px; animation: osSheen 7s ease-in-out infinite; }
.home-os-hero__aura { position: absolute; width: 180px; height: 180px; right: -54px; top: -46px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 221, 163, .86), rgba(255,138,91,.32) 48%, transparent 70%); filter: blur(1px); }
.home-os-hero__content, .home-os-hero__metrics { position: relative; z-index: 1; }
.home-os-hero__eyebrow { font-size: 12px; font-weight: 800; opacity: .74; margin-bottom: 10px; }
.home-os-hero__title { max-width: 250px; font-size: 27px; line-height: 1.16; letter-spacing: 0; font-weight: 900; margin: 0; }
.home-os-hero__sub { max-width: 230px; margin-top: 10px; font-size: 13px; line-height: 1.5; color: rgba(255,255,255,.78); }
.home-os-hero__actions { display: flex; gap: 9px; margin-top: 18px; }
.home-os-hero__actions button { min-height: 40px; padding: 0 15px; border-radius: 999px; font-size: 13px; font-weight: 800; }
.home-os-hero__primary { color: var(--os-ink); background: #fff; } .home-os-hero__secondary { color: #fff; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.28); }
.home-os-hero__metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 18px; }
.home-os-hero__metrics div { padding: 10px 8px; border-radius: 14px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.16); } .home-os-hero__metrics strong { display: block; font-size: 20px; line-height: 1; } .home-os-hero__metrics span { display: block; margin-top: 5px; font-size: 11px; color: rgba(255,255,255,.72); }
.home-task-deck { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; padding: 0 16px 6px; }
.home-task-card { position: relative; min-height: 96px; text-align: left; padding: 14px; border-radius: 18px; background: var(--os-panel); border: 1px solid var(--os-line); box-shadow: 0 8px 24px rgba(48,31,23,.07); overflow: hidden; }
.home-task-card::after { content: ''; position: absolute; right: -22px; bottom: -22px; width: 82px; height: 82px; border-radius: 50%; background: rgba(232,99,74,.11); } .home-task-card--course::after { background: rgba(22,163,74,.12); } .home-task-card--mall::after { background: rgba(249,115,22,.13); } .home-task-card--order::after { background: rgba(37,99,235,.10); }
.home-task-card__kicker { display: block; font-size: 10px; font-weight: 900; color: var(--brand-from); opacity: .72; } .home-task-card strong { display: block; margin-top: 6px; font-size: 17px; color: var(--text-primary); } .home-task-card em { display: block; margin-top: 4px; font-style: normal; font-size: 12px; color: var(--text-secondary); }
.home-banner { border-radius: 22px !important; box-shadow: 0 18px 42px rgba(47,29,20,.14) !important; } .home-category-grid--portal { display: none !important; }

.courses-radar { position: relative; display: grid; grid-template-columns: 70px 1fr auto; align-items: center; gap: 12px; margin: 12px 16px 10px; padding: 14px; border-radius: 22px; background: linear-gradient(135deg, #103a2a, #188a52); color: #fff; overflow: hidden; box-shadow: 0 16px 38px rgba(24,138,82,.22); }
.courses-radar__orb { width: 58px; height: 58px; border-radius: 50%; border: 1px solid rgba(255,255,255,.28); display: grid; place-items: center; background: radial-gradient(circle, rgba(255,255,255,.2), rgba(255,255,255,.04)); } .courses-radar__orb span { width: 26px; height: 26px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 9px rgba(255,255,255,.12); animation: radarPulse 2.4s ease-out infinite; }
.courses-radar__copy span { display: block; font-size: 10px; font-weight: 900; opacity: .68; } .courses-radar__copy strong { display: block; margin-top: 4px; font-size: 15px; line-height: 1.32; } .courses-radar__stats { display: flex; gap: 7px; } .courses-radar__stats div { min-width: 44px; padding: 8px 7px; border-radius: 14px; background: rgba(255,255,255,.12); text-align: center; } .courses-radar__stats b { display: block; font-size: 17px; line-height: 1; } .courses-radar__stats em { display: block; margin-top: 4px; font-style: normal; font-size: 10px; opacity: .72; }
.courses-search { display: flex; align-items: center; gap: 8px; height: 44px; margin: 0 16px 10px; padding: 0 14px; border-radius: 999px; background: #fff; border: 1px solid var(--os-line); box-shadow: var(--shadow-xs); } .courses-search svg { width: 16px; height: 16px; color: var(--text-muted); flex-shrink: 0; } .courses-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-size: 14px; color: var(--text-primary); }
.courses-filter.active { background: linear-gradient(135deg, var(--os-green), #23a76a) !important; box-shadow: 0 6px 18px rgba(22, 163, 74, 0.24) !important; } .courses-grid .home-course-card { border-radius: 18px; box-shadow: 0 8px 24px rgba(35, 24, 18, .08); }

.mall-brandline { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 10px; } .mall-brandline span { font-size: 12px; font-weight: 900; color: var(--brand-from); } .mall-brandline strong { font-size: 13px; color: var(--text-secondary); }
.mall-showcase { display: grid; grid-template-columns: 1.38fr .82fr; gap: 10px; padding: 14px 16px 0; } .mall-showcase button { position: relative; min-height: 112px; padding: 14px; text-align: left; border-radius: 20px; overflow: hidden; color: #fff; background: linear-gradient(135deg, #492015, #e8634a); box-shadow: 0 14px 34px rgba(232,99,74,.20); } .mall-showcase button::after { content: ''; position: absolute; right: -24px; top: -28px; width: 112px; height: 112px; border-radius: 50%; background: rgba(255,255,255,.18); }
.mall-showcase__side { display: grid; gap: 10px; } .mall-showcase__side button { min-height: 51px; background: linear-gradient(135deg, #fff, #fff3ec); color: var(--os-ink); border: 1px solid rgba(232,99,74,.12); box-shadow: var(--shadow-xs); } .mall-showcase span { display: block; font-size: 11px; font-weight: 900; opacity: .7; } .mall-showcase strong { display: block; margin-top: 5px; font-size: 18px; line-height: 1.1; } .mall-showcase em { display: block; margin-top: 8px; font-style: normal; font-size: 12px; opacity: .76; }
.mall-scene-pills { display: flex; gap: 8px; overflow-x: auto; padding: 12px 16px 0; scrollbar-width: none; } .mall-scene-pills::-webkit-scrollbar { display: none; } .mall-scene-pills button { flex: 0 0 auto; min-height: 34px; padding: 0 13px; border-radius: 999px; background: #fff; border: 1px solid var(--os-line); color: var(--text-secondary); font-size: 12px; font-weight: 800; } .mall-banner { opacity: .72; transform: scale(.96); transform-origin: top center; } .product-card { border-radius: 18px !important; box-shadow: 0 8px 24px rgba(42,27,20,.08) !important; } .product-card__info { padding: 12px !important; } .product-card__price { font-size: 18px !important; }

.profile-os-card { position: relative; margin: calc(var(--safe-top) + 14px) 16px 12px; padding: 18px; min-height: 168px; border-radius: 26px; overflow: hidden; color: #fff; background: linear-gradient(135deg, #1f1714 0%, #4b2a20 52%, #c9673f 100%); box-shadow: 0 20px 50px rgba(47, 31, 24, .24); } .profile-os-card__shine { position: absolute; inset: 0; opacity: .22; background: linear-gradient(115deg, transparent 0 38%, rgba(255,255,255,.68) 48%, transparent 60%); background-size: 220% 100%; animation: osSheen 8s ease-in-out infinite; }
.profile-os-card__top, .profile-os-card__identity { position: relative; z-index: 1; } .profile-os-card__top { display: flex; justify-content: space-between; align-items: center; } .profile-os-card__top span { font-size: 11px; font-weight: 900; opacity: .62; } .profile-os-card__top button { min-height: 34px; padding: 0 13px; border-radius: 999px; background: #fff; color: var(--os-ink); font-size: 12px; font-weight: 900; } .profile-os-card__identity { margin-top: 42px; } .profile-os-card__identity strong { display: block; font-size: 25px; line-height: 1; } .profile-os-card__identity em { display: block; margin-top: 10px; font-style: normal; font-size: 13px; color: rgba(255,255,255,.74); }
.profile-header { display: none !important; } .profile-assets { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; padding: 0 16px 12px; } .profile-assets button { min-height: 78px; border-radius: 18px; background: #fff; border: 1px solid var(--os-line); box-shadow: var(--shadow-xs); } .profile-assets strong { display: block; font-size: 17px; color: var(--text-primary); } .profile-assets span { display: block; margin-top: 6px; font-size: 12px; font-weight: 700; color: var(--text-secondary); }
.profile-timeline { margin: 0 16px 12px; padding: 16px; border-radius: 20px; background: #fff; border: 1px solid var(--os-line); box-shadow: var(--shadow-xs); } .profile-timeline__header { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; } .profile-timeline__header strong { font-size: 16px; } .profile-timeline__header span { font-size: 12px; color: var(--text-muted); } .profile-timeline__item { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; font-size: 13px; color: var(--text-secondary); } .profile-timeline__item b { width: 8px; height: 8px; margin-top: 6px; border-radius: 50%; background: var(--brand-from); box-shadow: 0 0 0 5px var(--brand-ghost); flex-shrink: 0; } .profile-menu { padding-top: 0 !important; } .profile-menu__group { border-radius: 18px !important; box-shadow: var(--shadow-xs) !important; }

@keyframes osSheen { 0%, 42% { background-position: 140% 0, 0 0; } 78%, 100% { background-position: -80% 0, 0 0; } }
@keyframes radarPulse { 0% { box-shadow: 0 0 0 0 rgba(255,255,255,.34); } 80%, 100% { box-shadow: 0 0 0 17px rgba(255,255,255,0); } }
@media (prefers-reduced-motion: reduce) { .home-os-hero::after, .profile-os-card__shine, .courses-radar__orb span { animation: none !important; } }

/* Production cohesion pass */
:root {
  --surface-line: rgba(62, 42, 34, 0.10);
  --surface-shadow: 0 6px 18px rgba(48, 31, 23, 0.07);
  --surface-shadow-soft: 0 2px 8px rgba(48, 31, 23, 0.05);
}

.home-os-hero,
.courses-radar,
.profile-os-card {
  border-radius: 18px !important;
  box-shadow: var(--surface-shadow) !important;
}

.home-os-hero__aura,
.mall-showcase button::after {
  display: none !important;
}

.home-os-hero::after,
.profile-os-card__shine {
  opacity: 0.12 !important;
}

.home-task-card,
.home-course-card,
.home-product-card,
.product-card,
.profile-assets button,
.profile-timeline,
.profile-menu__group {
  border: 1px solid var(--surface-line) !important;
  border-radius: 14px !important;
  box-shadow: var(--surface-shadow-soft) !important;
}

.home-task-card::after {
  display: none !important;
}

.home-task-card__kicker,
.courses-radar__copy span,
.mall-showcase span,
.profile-os-card__top span {
  letter-spacing: 0 !important;
  text-transform: none !important;
}

.courses-radar {
  grid-template-columns: 1fr auto !important;
  background: linear-gradient(135deg, #123f2f, #188a52) !important;
}

.courses-radar__orb {
  display: none !important;
}

.courses-filter,
.mall-tab,
.mall-scene-pills span {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.courses-filter.active,
.mall-tab.active {
  box-shadow: none !important;
}

.mall-sticky,
.courses-header {
  background: rgba(255, 255, 255, 0.92) !important;
  border-bottom: 1px solid var(--surface-line) !important;
  box-shadow: none !important;
}

.mall-search,
.courses-search,
.home-topbar__search {
  border: 1px solid var(--surface-line) !important;
  box-shadow: none !important;
}

.mall-showcase {
  grid-template-columns: 1fr 0.82fr;
}

.mall-showcase button {
  border-radius: 16px !important;
  box-shadow: var(--surface-shadow-soft) !important;
}

.mall-showcase__side button {
  background: #fff !important;
}

.mall-scene-pills {
  padding: 10px 16px 0 !important;
}

.mall-scene-pills span {
  flex: 0 0 auto;
  padding: 0 12px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--surface-line);
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 700;
}

.mall-scene-pills button {
  display: none !important;
}

.mall-banner {
  opacity: 1 !important;
  transform: none !important;
  border-radius: 16px !important;
  box-shadow: var(--surface-shadow-soft) !important;
}

.product-card {
  animation: none !important;
}

.product-card:hover,
.home-course-card:hover,
.home-product-card:hover {
  transform: none !important;
  box-shadow: var(--surface-shadow-soft) !important;
}

.cart-fab {
  animation: none !important;
  box-shadow: 0 6px 18px rgba(232, 99, 74, 0.26) !important;
}

.profile-os-card {
  min-height: 152px !important;
}

#profile-login-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 42px;
  min-height: 42px !important;
  padding: 0 18px !important;
  line-height: 1;
  white-space: nowrap;
  text-align: center;
}

.profile-assets button:active,
.home-task-card:active,
.mall-showcase button:active {
  transform: scale(0.98);
}

@media (max-width: 360px) {
  .home-os-hero__title { font-size: 24px !important; }
  .home-task-deck { grid-template-columns: 1fr !important; }
  .courses-radar { grid-template-columns: 1fr !important; }
  .courses-radar__stats { justify-content: flex-start; }
  .mall-showcase { grid-template-columns: 1fr !important; }
  .mall-showcase__side { grid-template-columns: repeat(2, 1fr); }
  .profile-assets { grid-template-columns: repeat(2, 1fr) !important; }
}

@media (prefers-reduced-motion: reduce) {
  .home-os-hero::after,
  .profile-os-card__shine,
  .courses-radar__orb span {
    animation: none !important;
  }
}

/* Homepage product shelf refinement */
.home-section--products {
  padding-top: 12px !important;
  padding-bottom: 12px !important;
}

.home-product-scroll {
  margin: 0 -16px;
  padding: 0 0 2px 16px !important;
  scroll-padding-left: 16px;
}

.home-product-scroll__track {
  gap: 12px !important;
  align-items: stretch;
  padding-right: 16px !important;
}

.home-product-card {
  width: clamp(148px, 41vw, 166px) !important;
  min-height: 252px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #fff;
  cursor: pointer;
}

.home-product-card__thumb {
  aspect-ratio: 1 / 1 !important;
  margin: 0 !important;
  border-radius: 0 !important;
  background: #f8fbff !important;
  box-shadow: none !important;
  border-bottom: 1px solid rgba(28, 25, 23, 0.06);
}

.home-product-card__thumb::before {
  content: none;
}

.home-product-card__thumb.is-empty::after {
  content: '精选好物';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 700;
}

.home-product-card__thumb img {
  display: block;
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  padding: 0 !important;
  transform: none !important;
}

.home-product-card__tag {
  z-index: 3;
  top: 8px !important;
  left: 8px !important;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 8px !important;
  border-radius: 8px !important;
  font-size: 12px !important;
  line-height: 1;
  box-shadow: 0 4px 10px rgba(232, 99, 74, 0.18);
}

.home-product-card__body {
  display: flex;
  min-height: 118px;
  flex: 1;
  flex-direction: column;
  padding: 10px 11px 11px;
}

.home-product-card__meta {
  margin-bottom: 4px;
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
}

.home-product-card__title {
  min-height: 38px;
  margin: 0 0 8px !important;
  color: var(--text-primary) !important;
  font-size: 14px !important;
  font-weight: 800 !important;
  line-height: 1.35 !important;
}

.home-product-card__bottom {
  justify-content: flex-start !important;
  gap: 6px;
  margin-top: auto;
}

.home-product-card__price {
  color: var(--brand-from) !important;
  font-size: 19px !important;
  font-weight: 900 !important;
  line-height: 1;
}

.home-product-card__price::before {
  font-size: 12px !important;
  margin-right: 1px;
}

.home-product-card__original {
  color: #9b948d !important;
  font-size: 12px !important;
  line-height: 1;
}

.home-product-card__sales {
  margin-top: 6px !important;
  color: var(--text-secondary) !important;
  font-size: 12px !important;
  font-weight: 650 !important;
  line-height: 1.2;
}

@media (max-width: 360px) {
  .home-product-card {
    width: 146px !important;
    min-height: 246px;
  }

  .home-product-card__body {
    min-height: 114px;
    padding: 9px 10px 10px;
  }

  .home-product-card__price {
    font-size: 18px !important;
  }
}

/* ============================================================
   Aimeige OS 2.1 - Launch polish and interaction layer
   ============================================================ */
:root {
  --os-bg: #f8f5f2;
  --os-surface: #ffffff;
  --os-surface-soft: #fffaf7;
  --os-ink-2: #2b211d;
  --os-muted-2: #6c625c;
  --os-hairline: rgba(57, 39, 31, 0.11);
  --os-shadow-card: 0 2px 10px rgba(46, 31, 24, 0.055);
  --os-shadow-float: 0 10px 26px rgba(46, 31, 24, 0.10);
  --os-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

html {
  background: var(--os-bg);
}

body {
  color: var(--os-ink-2);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button, [role="button"] {
  touch-action: manipulation;
}

button:disabled {
  cursor: not-allowed;
}

.view:not(.view-watch) {
  background: var(--os-bg);
}

.home-topbar {
  min-height: calc(var(--safe-top) + 56px) !important;
  padding: calc(var(--safe-top) + 7px) 14px 7px !important;
  background: rgba(248, 245, 242, 0.88) !important;
  border-bottom: 1px solid rgba(60, 41, 31, 0.07) !important;
  box-shadow: none !important;
}

.home-topbar__logo-mark {
  width: 31px !important;
  height: 31px !important;
  border-radius: 9px !important;
  box-shadow: 0 6px 16px rgba(232, 99, 74, 0.18);
}

.home-topbar__logo-name {
  font-size: 16px !important;
}

.home-topbar__search {
  height: 38px !important;
  border-radius: 14px !important;
  background: rgba(255, 255, 255, 0.82) !important;
}

.home-topbar__search input {
  font-size: 13px !important;
}

.home-scroll {
  background:
    radial-gradient(circle at 13% 0%, rgba(232, 99, 74, 0.13), transparent 28%),
    radial-gradient(circle at 95% 8%, rgba(24, 138, 82, 0.08), transparent 24%),
    linear-gradient(180deg, #fffaf7 0%, #f8f5f2 48%, #f4efeb 100%) !important;
}

.home-os-hero {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  grid-template-areas: "content metrics" !important;
  align-items: stretch !important;
  gap: 12px !important;
  min-height: 156px !important;
  margin: 10px 14px 10px !important;
  padding: 15px !important;
  border-radius: 18px !important;
  color: #fff !important;
  background:
    linear-gradient(132deg, rgba(36, 25, 21, 0.98) 0%, rgba(94, 42, 28, 0.98) 48%, rgba(232, 99, 74, 0.96) 100%) !important;
  box-shadow: 0 12px 30px rgba(69, 34, 25, 0.20) !important;
  isolation: isolate;
}

.home-os-hero::before {
  content: '';
  position: absolute;
  inset: 1px;
  z-index: 0;
  pointer-events: none;
  border-radius: 17px;
  background:
    radial-gradient(circle at 82% 8%, rgba(255, 220, 156, 0.30), transparent 28%),
    linear-gradient(105deg, transparent 0 46%, rgba(255, 255, 255, 0.15) 52%, transparent 60%);
  background-size: 100% 100%, 210% 100%;
  animation: aimeigeCommandSweep 6.5s var(--os-ease) infinite;
}

.home-os-hero::after {
  opacity: 0 !important;
}

.home-os-hero__content {
  grid-area: content;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.home-os-hero__metrics {
  grid-area: metrics;
  width: 72px;
  display: grid !important;
  grid-template-columns: 1fr !important;
  align-content: center;
  gap: 6px !important;
  margin: 0 !important;
}

.home-os-hero__eyebrow {
  display: inline-flex;
  width: fit-content;
  min-height: 23px;
  align-items: center;
  gap: 6px;
  margin: 0 0 8px !important;
  padding: 0 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.80);
  font-size: 10px !important;
  font-weight: 850 !important;
  line-height: 1;
}

.home-os-hero__eyebrow::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #42f08f;
  box-shadow: 0 0 0 0 rgba(66, 240, 143, 0.58);
  animation: aimeigeLivePulse 1.9s ease-out infinite;
}

.home-os-hero__title {
  max-width: 218px !important;
  font-size: 22px !important;
  line-height: 1.14 !important;
  font-weight: 920 !important;
  text-wrap: balance;
}

.home-os-hero__sub {
  max-width: 218px !important;
  margin-top: 7px !important;
  color: rgba(255, 255, 255, 0.78) !important;
  font-size: 12px !important;
  line-height: 1.42 !important;
}

.home-os-hero__actions {
  gap: 7px !important;
  margin-top: 11px !important;
}

.home-os-hero__actions button {
  min-height: 44px !important;
  padding: 0 16px !important;
  border-radius: 12px !important;
  font-size: 12px !important;
  transition: transform 160ms var(--os-ease), background 160ms ease, box-shadow 160ms ease;
}

.home-os-hero__primary {
  box-shadow: 0 8px 18px rgba(255, 255, 255, 0.14);
}

.home-os-hero__primary:active, .home-os-hero__secondary:active {
  transform: scale(0.96);
}

.home-os-hero__metrics div {
  min-height: 38px;
  padding: 7px 6px !important;
  border-radius: 11px !important;
  background: rgba(255, 255, 255, 0.105) !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  text-align: center;
}

.home-os-hero__metrics strong {
  font-size: 17px !important;
  font-variant-numeric: tabular-nums;
}

.home-os-hero__metrics span {
  margin-top: 3px !important;
  font-size: 10px !important;
}

.home-task-deck {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 0 !important;
  margin: 0 14px 10px !important;
  padding: 6px !important;
  border: 1px solid rgba(62, 42, 34, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: none;
}

.home-task-card {
  min-height: 70px !important;
  padding: 9px 4px 8px !important;
  border-radius: 12px !important;
  text-align: center !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  transition: transform 160ms var(--os-ease), background 160ms ease !important;
}

.home-task-card + .home-task-card {
  border-left: 1px solid rgba(62, 42, 34, 0.07) !important;
}

.home-task-card:hover {
  background: rgba(232, 99, 74, 0.05) !important;
}

.home-task-card::before {
  content: '';
  display: none !important;
  width: 24px;
  height: 24px;
  margin: 0 auto 6px;
  border-radius: 9px;
  background: rgba(232, 99, 74, 0.11);
  box-shadow: inset 0 0 0 1px rgba(232, 99, 74, 0.08);
}

.home-task-card__icon {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  margin: 0 auto 5px;
  border-radius: 10px;
  color: #3d2b25;
  background: rgba(61, 43, 37, 0.04);
  box-shadow: inset 0 0 0 1px rgba(61, 43, 37, 0.07);
}

.home-task-card__icon svg {
  width: 20px;
  height: 20px;
}

.home-task-card:active .home-task-card__icon {
  color: var(--os-copper);
  background: rgba(232, 99, 74, 0.08);
  box-shadow: inset 0 0 0 1px rgba(232, 99, 74, 0.12);
}

.home-task-card:active {
  transform: translateY(1px) scale(0.97) !important;
}

.home-task-card__kicker {
  display: none !important;
}

.home-task-card strong {
  margin-top: 0 !important;
  font-size: 13px !important;
  line-height: 1.2;
}

.home-task-card em {
  display: none !important;
}

.home-banner {
  margin: 0 14px 12px !important;
  border-radius: 16px !important;
  box-shadow: var(--os-shadow-card) !important;
}

.home-section {
  padding-inline: 14px !important;
}

.home-section__header {
  margin-bottom: 9px !important;
}

.home-section__title {
  font-size: 17px !important;
}

.home-section__desc {
  color: var(--os-muted-2) !important;
  font-size: 12px !important;
}

.home-hero-card {
  min-height: 178px !important;
  border-radius: 16px !important;
  box-shadow: var(--os-shadow-float) !important;
  transform: translateZ(0);
}

.home-hero-card::after {
  content: '';
  position: absolute;
  inset: auto 12px 12px auto;
  width: 46px;
  height: 46px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(12px);
  pointer-events: none;
}

.home-hero-card__title {
  max-width: calc(100% - 54px);
  font-size: 18px !important;
  line-height: 1.25 !important;
}

.home-course-card, .product-card, .cart-item, .profile-menu__group, .profile-timeline, .order-card-h5 {
  border-color: var(--os-hairline) !important;
  box-shadow: var(--os-shadow-card) !important;
}

.home-course-card__thumb {
  aspect-ratio: 4 / 3;
}

.home-course-card__title, .product-card__title, .cart-item__title, .pd-title {
  text-wrap: pretty;
}

.courses-header {
  padding: calc(var(--safe-top) + 10px) 14px 10px !important;
}

.courses-title {
  font-size: 19px !important;
}

.courses-radar {
  min-height: 98px !important;
  margin: 10px 14px 10px !important;
  padding: 13px !important;
  border-radius: 16px !important;
  background: linear-gradient(135deg, #153b2c, #188a52) !important;
}

.courses-radar__copy strong {
  font-size: 16px !important;
}

.courses-radar__stats div {
  border-radius: 12px !important;
}

.courses-filters, .mall-tabs {
  scrollbar-width: none;
}

.courses-filters::-webkit-scrollbar, .mall-tabs::-webkit-scrollbar {
  display: none;
}

.courses-filter, .mall-tab {
  border-radius: 12px !important;
  min-height: 38px !important;
  transition: color 160ms ease, background 160ms ease, transform 160ms var(--os-ease);
}

.courses-filter:active, .mall-tab:active {
  transform: scale(0.97);
}

.mall-sticky {
  padding-top: calc(var(--safe-top) + 10px) !important;
}

.mall-showcase {
  padding: 12px 14px 0 !important;
  gap: 8px !important;
}

.mall-showcase button {
  min-height: 104px !important;
  border-radius: 16px !important;
  transition: transform 180ms var(--os-ease), box-shadow 180ms ease;
}

.mall-showcase__side button {
  min-height: 48px !important;
}

.mall-showcase strong {
  font-size: 17px !important;
}

.mall-scene-pills {
  padding-inline: 14px !important;
}

.product-grid, .courses-grid {
  gap: 12px !important;
}

.product-card {
  overflow: hidden;
  background: #fff !important;
}

.product-card__thumb {
  background: #f7f9fb !important;
}

.product-card__thumb img, .home-product-card__thumb img, .pd-gallery__slide img {
  transition: transform 420ms var(--os-ease), filter 420ms ease;
}

.product-card:active .product-card__thumb img, .home-product-card:active .home-product-card__thumb img {
  transform: scale(1.035) !important;
}

.pd-gallery {
  aspect-ratio: 1 / 0.92 !important;
  background: #f5f1ed !important;
}

.pd-body {
  margin-top: -18px;
  padding: 18px 16px calc(96px + var(--safe-bot)) !important;
  border-radius: 20px 20px 0 0;
  background: var(--os-bg);
  position: relative;
  z-index: 2;
}

.pd-price-row, .pd-tags, .pd-info-row, .pd-section {
  background: #fff;
  border: 1px solid var(--os-hairline);
  box-shadow: var(--os-shadow-card);
}

.pd-price-row {
  margin-bottom: 10px !important;
  padding: 14px 14px 4px;
  border-bottom: 0;
  border-radius: 16px 16px 0 0;
}

.pd-tags {
  margin: -11px 0 0 !important;
  padding: 0 14px 12px;
  border-top: 0;
  border-bottom: 0;
  border-radius: 0;
  box-shadow: none !important;
}

.pd-title {
  margin: 0 !important;
  padding: 0 14px 7px;
  background: #fff;
  border-left: 1px solid var(--os-hairline);
  border-right: 1px solid var(--os-hairline);
  font-size: 19px !important;
}

.pd-subtitle {
  margin: 0 0 12px !important;
  padding: 0 14px 14px;
  border: 1px solid var(--os-hairline);
  border-top: 0;
  border-radius: 0 0 16px 16px;
  background: #fff;
}

.pd-info-row, .pd-section {
  border-radius: 16px !important;
  padding: 14px !important;
}

.pd-buybar, .cart-checkout, .nav {
  backdrop-filter: blur(22px) saturate(160%) !important;
  -webkit-backdrop-filter: blur(22px) saturate(160%) !important;
}

.pd-buybar {
  padding: 10px 14px calc(10px + var(--safe-bot)) !important;
}

.pd-buybar__add, .pd-buybar__buy, .cart-checkout__btn {
  height: 44px !important;
  border-radius: 14px !important;
}

.cart-header {
  padding: calc(var(--safe-top) + 12px) 16px 12px !important;
  background: rgba(248, 245, 242, 0.92) !important;
  box-shadow: none !important;
}

.cart-list {
  padding: 14px 14px calc(var(--nav-h) + var(--safe-bot) + 94px) !important;
}

.cart-item {
  border-radius: 16px !important;
  padding: 12px !important;
}

.cart-item__check {
  width: 26px !important;
  height: 26px !important;
  margin-top: 2px !important;
}

.cart-item__qty button {
  width: 32px !important;
  height: 32px !important;
}

.cart-checkout {
  margin: 0 10px 8px;
  left: 0 !important;
  right: 0 !important;
  border: 1px solid rgba(255, 255, 255, 0.62) !important;
  border-radius: 18px !important;
  padding: 10px 12px !important;
  box-shadow: 0 10px 32px rgba(46, 31, 24, 0.14) !important;
}

.profile-os-card {
  min-height: 132px !important;
  margin: calc(var(--safe-top) + 12px) 14px 10px !important;
  padding: 15px !important;
  border-radius: 18px !important;
  box-shadow: 0 12px 30px rgba(47, 31, 24, 0.18) !important;
}

.profile-os-card__identity {
  margin-top: 27px !important;
}

.profile-os-card__identity strong {
  font-size: 23px !important;
}

.profile-assets {
  grid-template-columns: repeat(3, 1fr) !important;
  padding: 0 14px 10px !important;
}

.profile-assets button {
  min-height: 68px !important;
  border-radius: 14px !important;
}

.profile-timeline, .profile-menu {
  margin-inline: 14px !important;
}

.profile-timeline {
  border-radius: 16px !important;
}

.profile-menu {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.profile-menu__group {
  border-radius: 16px !important;
  overflow: hidden;
}

.modal, .guest-login-panel, .checkout-modal__sheet, .orders-modal__sheet, .live-product-detail__sheet, .mini-program-code-modal__sheet {
  border-radius: 22px 22px 0 0 !important;
}

.checkout-modal__sheet, .orders-modal__sheet {
  border-top: 1px solid rgba(255, 255, 255, 0.70);
  box-shadow: 0 -18px 44px rgba(0, 0, 0, 0.20) !important;
}

.checkout-modal__sheet::before, .orders-modal__sheet::before, .guest-login-panel::before {
  content: '';
  width: 38px;
  height: 4px;
  margin: 9px auto 0;
  border-radius: 999px;
  background: rgba(36, 25, 21, 0.16);
  flex: 0 0 auto;
}

.checkout-items, .checkout-section, .checkout-progress, .checkout-result, .order-card-h5 {
  border-radius: 16px !important;
}

.checkout-segment button, .checkout-pay-method, .checkout-pay, .orders-tabs button, .orders-empty button, .order-card-h5__foot button {
  border-radius: 13px !important;
}

.live-header {
  padding: calc(var(--safe-top) + 10px) 12px 12px !important;
  gap: 7px;
}

.live-header__back, .live-action-btn, .live-composer__action {
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
}

.live-header__broadcaster {
  min-width: 0;
  padding: 5px 9px 5px 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.10);
  backdrop-filter: blur(18px);
}

.live-header__status, .live-header__count {
  height: 30px !important;
  padding: 0 10px !important;
}

.live-actions {
  right: 11px !important;
}

.live-action-btn {
  width: 46px !important;
  height: 46px !important;
  border-radius: 16px !important;
}

.live-product-panel {
  right: 10px !important;
  width: min(78vw, 310px) !important;
  border-radius: 18px !important;
}

.live-product-panel__item {
  border-radius: 16px !important;
}

.live-composer {
  left: 10px !important;
  right: 10px !important;
  bottom: calc(8px + var(--safe-bot)) !important;
  border-radius: 20px !important;
  background: rgba(18, 18, 30, 0.72) !important;
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(24px) saturate(160%);
}

.live-chat-shell {
  bottom: calc(var(--live-composer-h) + 16px) !important;
}

.live-chat-item__bubble {
  border-radius: 14px !important;
}

@keyframes aimeigeCommandSweep {
  0%, 38% { background-position: 0 0, 130% 0; }
  74%, 100% { background-position: 0 0, -70% 0; }
}

@keyframes aimeigeLivePulse {
  0% { box-shadow: 0 0 0 0 rgba(66, 240, 143, 0.48); }
  76%, 100% { box-shadow: 0 0 0 9px rgba(66, 240, 143, 0); }
}

@media (max-width: 374px) {
  .home-os-hero {
    grid-template-columns: 1fr !important;
    grid-template-areas: "content" "metrics" !important;
    min-height: 0 !important;
  }

  .home-os-hero__metrics {
    width: auto;
    grid-template-columns: repeat(3, 1fr) !important;
  }

  .home-task-deck {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }

  .home-task-card strong {
    font-size: 12px !important;
  }

  .mall-showcase {
    grid-template-columns: 1fr !important;
  }
}

@media (min-width: 700px) {
  .modal, .checkout-modal__sheet, .orders-modal__sheet {
    border-radius: 22px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-os-hero::before, .home-os-hero__eyebrow::before, .live-header__status__dot, .live-badge, .live-badge__dot {
    animation: none !important;
  }

  .product-card__thumb img, .home-product-card__thumb img, .pd-gallery__slide img {
    transition: none !important;
  }
}

@media (min-width: 520px) {
  body {
    display: flex;
    justify-content: center;
    background:
      radial-gradient(circle at 18% 0%, rgba(232, 99, 74, 0.11), transparent 30%),
      radial-gradient(circle at 82% 8%, rgba(24, 138, 82, 0.08), transparent 26%),
      #eee7e1;
  }

  #app {
    width: min(100vw, 430px);
    max-width: 430px;
    min-height: 100dvh;
    background: var(--bg-base);
    box-shadow: 0 0 0 1px rgba(57, 39, 31, 0.08), 0 24px 72px rgba(57, 39, 31, 0.18);
  }

  .header,
  .nav,
  .home-topbar,
  .cart-header,
  .pd-buybar,
  .watch-stage,
  .watch-stage__video,
  .live-header {
    left: 50% !important;
    right: auto !important;
    width: min(100vw, 430px) !important;
    max-width: 430px;
    transform: translateX(-50%);
  }

  .cart-checkout,
  .live-composer {
    left: calc(50% - min(100vw, 430px) / 2 + 10px) !important;
    right: calc(50% - min(100vw, 430px) / 2 + 10px) !important;
    max-width: 410px;
  }

  .live-actions {
    left: auto !important;
    right: calc(50% - min(100vw, 430px) / 2 + 11px) !important;
  }

  .live-product-panel {
    left: auto !important;
    right: calc(50% - min(100vw, 430px) / 2 + 10px) !important;
  }

  .live-chat-shell {
    left: calc(50% - min(100vw, 430px) / 2 + 12px) !important;
    right: calc(50% - min(100vw, 430px) / 2 + 92px) !important;
  }

  .live-lucky-bag-entry {
    left: calc(50% - min(100vw, 430px) / 2 + 14px) !important;
  }
}

@media (min-width: 520px) {
  .home-topbar,
  .cart-header {
    left: auto !important;
    right: auto !important;
    width: 100% !important;
    max-width: none !important;
    transform: none !important;
  }
}

.home-os-hero {
  min-height: 148px !important;
  padding: 13px 14px !important;
}

.home-os-hero__metrics {
  width: 64px !important;
  gap: 4px !important;
}

.home-os-hero__metrics div {
  min-height: 32px !important;
  padding: 4px 5px !important;
}

.home-os-hero__metrics strong {
  font-size: 15px !important;
}

.home-os-hero__metrics span {
  margin-top: 1px !important;
  font-size: 9px !important;
}

.home-os-hero__title {
  font-size: 21px !important;
}

.home-os-hero__sub {
  margin-top: 6px !important;
}

.home-os-hero__actions {
  margin-top: 9px !important;
}

.home-os-hero__title {
  max-width: 270px !important;
  font-size: 20px !important;
  line-height: 1.12 !important;
}

.home-os-hero__sub {
  max-width: 270px !important;
  font-size: 11.5px !important;
}

.home-os-hero__eyebrow {
  min-height: 21px !important;
  margin-bottom: 7px !important;
}

.home-os-hero__actions button {
  min-height: 44px !important;
}

/* Home featured products: launch-quality boutique shelf */
.home-section--products {
  position: relative;
}

.home-product-scroll {
  margin: 0 -14px !important;
  padding: 0 0 4px 14px !important;
  scroll-padding-inline: 14px;
}

.home-product-scroll__track {
  gap: 12px !important;
  padding-right: 18px !important;
  align-items: stretch;
}

.home-product-card {
  width: clamp(170px, 48vw, 188px) !important;
  min-height: 0 !important;
  border: 1px solid rgba(57, 39, 31, 0.08) !important;
  border-radius: 14px !important;
  background: linear-gradient(180deg, #fff 0%, #fffdfa 100%) !important;
  box-shadow: 0 8px 22px rgba(46, 31, 24, 0.08) !important;
  overflow: hidden;
  transform: translateZ(0);
  transition: transform 180ms var(--os-ease), box-shadow 180ms ease, border-color 180ms ease;
}

.home-product-card:active {
  transform: translateY(1px) scale(0.985) !important;
  box-shadow: 0 4px 12px rgba(46, 31, 24, 0.08) !important;
}

.home-product-card__thumb {
  position: relative;
  aspect-ratio: 1 / 1 !important;
  width: 100% !important;
  height: auto !important;
  margin: 0 !important;
  border-radius: 0 !important;
  border-bottom: 1px solid rgba(57, 39, 31, 0.08) !important;
  background: linear-gradient(135deg, #f9fbff 0%, #eef6ff 48%, #fff7f2 100%) !important;
  box-shadow: none !important;
  overflow: hidden;
}

.home-product-card__thumb::after {
  content: '';
  position: absolute;
  inset: auto 0 0;
  z-index: 2;
  height: 42%;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255,255,255,0), rgba(255,255,255,0.18));
}

.home-product-card__thumb img {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
  padding: 0 !important;
  transform: none !important;
}

.home-product-card__tag {
  z-index: 4 !important;
  top: 9px !important;
  left: 9px !important;
  height: 26px !important;
  padding: 0 10px !important;
  border-radius: 999px !important;
  color: #fff !important;
  font-size: 12px !important;
  font-weight: 900 !important;
  letter-spacing: 0 !important;
  box-shadow: 0 8px 18px rgba(232, 99, 74, 0.24) !important;
}

.home-product-card__tag--hot,
.home-product-card__tag--sale {
  background: linear-gradient(135deg, #ff6b45, #e94f35) !important;
}

.home-product-card__tag--new {
  background: linear-gradient(135deg, #2d6cdf, #1c7ed6) !important;
}

.home-product-card__body {
  min-height: 132px !important;
  display: flex;
  flex-direction: column;
  padding: 11px 12px 12px !important;
  background: linear-gradient(180deg, rgba(255,255,255,0.98), #fff) !important;
}

.home-product-card__meta {
  margin: 0 0 6px !important;
  line-height: 1;
}

.home-product-card__meta span {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 0 7px;
  border-radius: 999px;
  color: #6d3a2f;
  background: rgba(232, 99, 74, 0.08);
  font-size: 11px;
  font-weight: 800;
}

.home-product-card__title {
  min-height: 40px !important;
  margin: 0 0 10px !important;
  color: #241915 !important;
  font-size: 15px !important;
  font-weight: 900 !important;
  line-height: 1.34 !important;
  letter-spacing: 0;
  word-break: break-word;
}

.home-product-card__bottom {
  min-height: 24px;
  display: flex;
  align-items: flex-end !important;
  justify-content: flex-start !important;
  gap: 7px !important;
  margin-top: auto !important;
  min-width: 0;
}

.home-product-card__price {
  color: #e85d3f !important;
  font-size: 22px !important;
  font-weight: 950 !important;
  line-height: 0.95 !important;
  white-space: nowrap;
}

.home-product-card__price::before {
  content: '\00A5';
  margin-right: 1px;
  font-size: 13px !important;
  font-weight: 900 !important;
}

.home-product-card__original {
  margin-bottom: 1px;
  color: #a8a09a !important;
  font-size: 12px !important;
  line-height: 1;
  text-decoration-thickness: 1px;
  white-space: nowrap;
}

.home-product-card__sales {
  margin-top: 7px !important;
  color: #6c625c !important;
  font-size: 12px !important;
  font-weight: 750 !important;
  line-height: 1.2;
}

.home-product-card__sales span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.home-product-card__sales span::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: rgba(232, 99, 74, 0.72);
}

@media (max-width: 360px) {
  .home-product-card {
    width: 158px !important;
  }

  .home-product-card__body {
    min-height: 126px !important;
    padding: 10px 11px 11px !important;
  }

  .home-product-card__price {
    font-size: 20px !important;
  }
}

/* Compact featured product cards after visual QA */
.home-product-card {
  width: clamp(168px, 47vw, 184px) !important;
}

.home-product-card__body {
  min-height: 116px !important;
  padding: 10px 12px 11px !important;
}

.home-product-card__meta {
  margin-bottom: 5px !important;
}

.home-product-card__title {
  min-height: 0 !important;
  margin-bottom: 8px !important;
}

.home-product-card__bottom {
  margin-top: 0 !important;
}

.home-product-card__sales {
  margin-top: 6px !important;
}

/* Launch hardening: touch targets and branded empty media */
.courses-back {
  width: 44px !important;
  height: 44px !important;
  border-radius: 14px !important;
}

.product-card__thumb.is-empty::after {
  content: '爱美阁精选';
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: rgba(36, 25, 21, 0.62);
  background:
    radial-gradient(circle at 34% 24%, rgba(255,255,255,0.82), transparent 28%),
    linear-gradient(135deg, #fff4ee 0%, #f5e6de 48%, #f8fafc 100%);
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0;
}

/* ============================================================
   Aimeige launch overdrive: hero console, shelf, mall storefront
   ============================================================ */
.home-os-hero {
  min-height: 182px !important;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.08) 0 1px, transparent 1px),
    linear-gradient(132deg, #211510 0%, #5a281b 48%, #e76345 100%) !important;
  background-size: 22px 22px, 100% 100%;
  box-shadow: 0 18px 44px rgba(91, 41, 27, 0.26), inset 0 0 0 1px rgba(255,255,255,0.14) !important;
}

.home-os-hero::before {
  background:
    linear-gradient(105deg, transparent 0 42%, rgba(255, 255, 255, 0.20) 50%, transparent 60%),
    linear-gradient(180deg, rgba(255,255,255,0.10), transparent 38%) !important;
  background-size: 230% 100%, 100% 100% !important;
  opacity: 1;
}

.home-os-hero__content::after {
  content: '';
  position: absolute;
  left: 15px;
  right: 96px;
  bottom: 13px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(66,240,143,0.92), rgba(255,255,255,0.58), rgba(255,255,255,0));
  opacity: 0.74;
  transform-origin: left center;
  animation: aimeigeSignalLine 3.8s var(--os-ease) infinite;
}

.home-os-hero__eyebrow {
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.13);
}

.home-os-hero__title {
  max-width: 240px !important;
  text-shadow: 0 8px 22px rgba(0,0,0,0.18);
}

.home-os-hero__metrics {
  width: 78px !important;
}

.home-os-hero__metrics div {
  position: relative;
  overflow: hidden;
  min-height: 42px !important;
  background: rgba(255,255,255,0.13) !important;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.13);
}

.home-os-hero__metrics div::after {
  content: '';
  position: absolute;
  inset: auto 8px 6px;
  height: 2px;
  border-radius: 999px;
  background: rgba(66,240,143,0.64);
}

.home-os-hero__actions button {
  font-weight: 900;
}

.home-os-hero__primary {
  box-shadow: 0 10px 24px rgba(255,255,255,0.18), inset 0 -1px 0 rgba(0,0,0,0.08) !important;
}

.home-section--products {
  overflow: hidden;
}

.home-section--products::after {
  content: '';
  position: absolute;
  top: 72px;
  right: 0;
  bottom: 0;
  z-index: 3;
  width: 34px;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(248,245,242,0), rgba(248,245,242,0.96));
}

.home-product-scroll {
  scroll-snap-type: x proximity;
}

.home-product-card {
  scroll-snap-align: start;
}

.home-product-card__thumb {
  background: linear-gradient(135deg, #eef7ff 0%, #f9fbff 48%, #fff4ed 100%) !important;
}

.home-product-card__body {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.96), #fff 58%),
    linear-gradient(90deg, rgba(232,99,74,0.08), transparent 42%) !important;
}

.mall-sticky {
  background:
    linear-gradient(180deg, rgba(255,250,247,0.98), rgba(255,255,255,0.94)) !important;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.mall-brandline {
  align-items: center !important;
  margin-bottom: 12px !important;
}

.mall-brandline span {
  color: #241915 !important;
  font-size: 20px !important;
  font-weight: 950 !important;
  line-height: 1;
}

.mall-brandline strong {
  max-width: 150px;
  color: #7a6d66 !important;
  font-size: 12px !important;
  line-height: 1.25;
  text-align: right;
}

.mall-search {
  height: 46px !important;
  border: 1px solid rgba(57,39,31,0.10) !important;
  background: #fff !important;
  box-shadow: 0 8px 20px rgba(46,31,24,0.06) !important;
}

.mall-tabs {
  gap: 8px !important;
  margin-top: 2px !important;
  padding-bottom: 2px !important;
}

.mall-tab {
  min-height: 36px;
  padding: 0 14px !important;
  border-radius: 999px;
  background: rgba(255,255,255,0.62);
  border: 1px solid rgba(57,39,31,0.08);
}

.mall-tab::after {
  content: none !important;
}

.mall-tab.active {
  color: #fff !important;
  background: #241915 !important;
  border-color: #241915 !important;
}

.mall-scroll {
  background:
    linear-gradient(180deg, #fff8f4 0%, #f8f5f2 32%, #f7f3ef 100%) !important;
}

.mall-showcase {
  grid-template-columns: 1.28fr 0.86fr !important;
  gap: 10px !important;
  padding: 14px 14px 0 !important;
}

.mall-showcase button {
  isolation: isolate;
  min-height: 124px !important;
  border-radius: 18px !important;
  border: 1px solid rgba(255,255,255,0.34) !important;
  box-shadow: 0 14px 34px rgba(46,31,24,0.13) !important;
}

.mall-showcase__main {
  background:
    linear-gradient(135deg, rgba(34,22,17,0.88), rgba(232,99,74,0.56)),
    url('images/mall-showcase/showcase-main.png') center / cover !important;
}

.mall-showcase__side {
  gap: 10px !important;
}

.mall-showcase__side button:first-child {
  color: #241915 !important;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.82), rgba(255,246,241,0.90)),
    url('images/mall-showcase/showcase-repair.png') center / cover !important;
}

.mall-showcase__side button:last-child {
  color: #241915 !important;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.82), rgba(255,246,241,0.90)),
    url('images/mall-showcase/showcase-makeup.png') center / cover !important;
}

.mall-showcase span {
  position: relative;
  z-index: 1;
  opacity: 0.78 !important;
}

.mall-showcase strong,
.mall-showcase em {
  position: relative;
  z-index: 1;
  text-shadow: 0 8px 18px rgba(0,0,0,0.16);
}

.mall-showcase__side strong,
.mall-showcase__side span {
  text-shadow: none;
}

.mall-scene-pills {
  padding: 12px 14px 2px !important;
}

.mall-scene-pills span {
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(57,39,31,0.08);
  color: #6d625c;
  box-shadow: 0 4px 12px rgba(46,31,24,0.05);
}

.mall-banner {
  margin: 10px 14px 4px !important;
  opacity: 1 !important;
  transform: none !important;
  border-radius: 18px !important;
  box-shadow: 0 12px 30px rgba(46,31,24,0.11) !important;
}

.mall-banner__slide img {
  transform: scale(1.01);
}

.mall-banner__tag {
  left: 12px !important;
  bottom: 12px !important;
  height: 30px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px !important;
  background: rgba(36,25,21,0.72) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.mall-grid {
  gap: 12px !important;
  padding: 0 14px calc(var(--nav-h) + var(--safe-bot) + 88px) !important;
}

.product-card {
  border: 1px solid rgba(57,39,31,0.08) !important;
  border-radius: 16px !important;
  background: linear-gradient(180deg, #fff, #fffdfa) !important;
  box-shadow: 0 8px 22px rgba(46,31,24,0.075) !important;
  overflow: hidden;
}

.product-card__thumb {
  background: linear-gradient(135deg, #f9fbff, #fff1eb) !important;
}

.product-card__info {
  padding: 11px 11px 12px !important;
  gap: 8px !important;
}

.product-card__title {
  min-height: 38px;
  color: #241915 !important;
  font-weight: 850 !important;
  line-height: 1.35 !important;
}

.product-card__bottom {
  align-items: baseline !important;
}

.product-card__price {
  color: #e85d3f !important;
  font-size: 19px !important;
  font-weight: 950 !important;
  letter-spacing: 0;
}

.product-card__sales {
  color: #756b65 !important;
  font-weight: 700 !important;
}

@keyframes aimeigeSignalLine {
  0%, 30% { transform: scaleX(0.22); opacity: 0.38; }
  62% { transform: scaleX(1); opacity: 0.78; }
  100% { transform: scaleX(0.52); opacity: 0.48; }
}

@media (prefers-reduced-motion: reduce) {
  .home-os-hero__content::after {
    animation: none !important;
  }
}

@media (max-width: 360px) {
  .mall-brandline strong {
    max-width: 126px;
  }

  .mall-showcase {
    grid-template-columns: 1fr !important;
  }

  .mall-showcase__side {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

/* Mall launch pass: keep the storefront cinematic, but let products enter the first viewport. */
.mall-showcase {
  align-items: stretch;
}

.mall-showcase button {
  min-height: 78px !important;
  padding: 13px !important;
}

.mall-showcase__main {
  min-height: 166px !important;
}

.mall-showcase__side button {
  min-height: 78px !important;
}

.mall-showcase strong {
  margin-top: 4px !important;
  font-size: 17px !important;
  line-height: 1.14 !important;
}

.mall-showcase em {
  margin-top: 7px !important;
}

.mall-banner {
  height: 104px !important;
  margin-top: 8px !important;
}

.mall-banner__track,
.mall-banner__slide {
  height: 100% !important;
}

.mall-banner__slide {
  aspect-ratio: auto !important;
}

.mall-scroll > .section {
  padding-top: 14px !important;
  padding-bottom: 8px !important;
}

.mall-grid {
  padding-top: 0 !important;
}

@media (max-width: 360px) {
  .mall-showcase__main {
    min-height: 128px !important;
  }

  .mall-showcase__side button {
    min-height: 72px !important;
  }

  .mall-banner {
    height: 92px !important;
  }
}

/* Profile nav clearance: the fixed tab bar must never cover logout. */
#view-profile.view.active {
  min-height: 100dvh !important;
  padding-bottom: calc(var(--nav-h) + var(--safe-bot) + 24px) !important;
  scroll-padding-bottom: calc(var(--nav-h) + var(--safe-bot) + 24px);
}

#view-profile .profile-menu {
  margin-bottom: calc(var(--nav-h) + var(--safe-bot) + 24px) !important;
}

#view-profile .profile-menu__group:last-child {
  margin-bottom: 0 !important;
}

#view-profile .nav {
  bottom: 0 !important;
  z-index: 120 !important;
}

.view.active.page-enter-done {
  transform: none !important;
}

/* Mall carousel restore: keep banner imagery at its intended display height. */
.mall-banner {
  height: auto !important;
}

.mall-banner__track,
.mall-banner__slide {
  height: auto !important;
}

.mall-banner__slide {
  aspect-ratio: 2.34 / 1 !important;
}

.mall-banner__slide img {
  height: 100% !important;
  object-fit: cover;
}

/* Showcase cards are editorial display, not filters. */
.mall-showcase__card {
  position: relative;
  isolation: isolate;
  display: block;
  min-height: 78px !important;
  padding: 13px !important;
  text-align: left;
  border-radius: 18px !important;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.34) !important;
  box-shadow: 0 14px 34px rgba(46,31,24,0.13) !important;
}

.mall-showcase__side .mall-showcase__card {
  min-height: 78px !important;
}

.mall-showcase__card span {
  position: relative;
  z-index: 1;
  display: block;
  font-size: 11px;
  font-weight: 900;
  opacity: 0.78 !important;
}

.mall-showcase__card strong,
.mall-showcase__card em {
  position: relative;
  z-index: 1;
  display: block;
}

.mall-showcase__card strong {
  margin-top: 4px !important;
  font-size: 17px !important;
  line-height: 1.14 !important;
}

.mall-showcase__card em {
  margin-top: 7px !important;
  font-style: normal;
  font-size: 12px;
  opacity: 0.76;
}

.mall-showcase__side .mall-showcase__card strong,
.mall-showcase__side .mall-showcase__card span {
  text-shadow: none;
}

.mall-showcase button {
  pointer-events: none;
}

.mall-showcase__main.mall-showcase__card {
  color: #fff !important;
  background:
    linear-gradient(135deg, rgba(34,22,17,0.88), rgba(232,99,74,0.56)),
    url('images/mall-showcase/showcase-main.png') center right / cover !important;
}

.mall-showcase__side .mall-showcase__card:first-child {
  color: #241915 !important;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.82), rgba(255,246,241,0.90)),
    url('images/mall-showcase/showcase-repair.png') center right / cover !important;
}

.mall-showcase__side .mall-showcase__card:last-child {
  color: #241915 !important;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.82), rgba(255,246,241,0.90)),
    url('images/mall-showcase/showcase-makeup.png') center right / cover !important;
}

/* Mall storefront balance pass: equal controls, full-width service strip, safer art crops. */
.mall-tabs {
  display: grid !important;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 7px !important;
  overflow: visible !important;
  padding-inline: 16px !important;
}

.mall-tab {
  min-width: 0 !important;
  width: 100% !important;
  justify-content: center;
  padding: 0 4px !important;
  border-radius: 13px !important;
  font-size: 13px !important;
  font-weight: 850 !important;
  background: rgba(255,255,255,0.74) !important;
}

.mall-tab.active {
  background: #241915 !important;
  box-shadow: 0 8px 18px rgba(36,25,21,0.16) !important;
}

.mall-showcase__main {
  background-position: center right !important;
}

.mall-showcase__side button:first-child {
  background-position: center right !important;
}

.mall-showcase__side button:last-child {
  background-position: center right !important;
}

.mall-scene-pills {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px !important;
  overflow: visible !important;
  padding: 10px 14px 2px !important;
}

.mall-scene-pills span {
  min-width: 0;
  width: 100%;
  min-height: 34px;
  justify-content: center;
  gap: 5px;
  padding: 0 6px !important;
  font-size: 12px;
  font-weight: 850;
  white-space: nowrap;
}

.mall-scene-pills span::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: #e85d3f;
  box-shadow: 0 0 0 4px rgba(232,93,63,0.10);
  flex: 0 0 auto;
}

#view-profile .profile-timeline {
  margin-top: 12px !important;
}

@media (max-width: 360px) {
  .mall-tabs {
    gap: 5px !important;
    padding-inline: 12px !important;
  }

  .mall-tab {
    font-size: 12px !important;
  }

  .mall-scene-pills {
    gap: 5px !important;
    padding-inline: 12px !important;
  }

  .mall-scene-pills span {
    font-size: 11px;
    gap: 4px;
  }
}

/* Launch upgrade: course service, product touch targets, cart empty, profile service proof. */
.courses-scroll::before {
  content: '门店课程 · 直播回放 · 购买后服务可追踪';
  display: flex;
  align-items: center;
  min-height: 38px;
  margin: 0 14px 12px;
  padding: 0 13px;
  border: 1px solid rgba(24,138,82,0.12);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(255,255,255,0.92), rgba(236,253,245,0.82));
  color: #226049;
  font-size: 12px;
  font-weight: 850;
}

.courses-grid .home-course-card {
  border-radius: 18px !important;
  background: linear-gradient(180deg, #fff, #fffdfa) !important;
  border: 1px solid rgba(57,39,31,0.08) !important;
  box-shadow: 0 8px 22px rgba(46,31,24,0.075) !important;
}

.courses-grid .home-course-card__thumb {
  border-radius: 16px 16px 0 0 !important;
}

.courses-grid .home-course-card__body {
  padding: 12px !important;
}

.pd-topbar__back,
.pd-topbar__action {
  width: 44px !important;
  height: 44px !important;
  border-radius: 16px !important;
}

.pd-buybar__icon {
  min-width: 48px !important;
  min-height: 48px !important;
  justify-content: center;
  border-radius: 14px !important;
}

.pd-buybar__icons {
  gap: 6px !important;
}

.pd-body::before {
  content: '直播间同款 · 门店精选 · 售后可查';
  display: flex;
  align-items: center;
  min-height: 36px;
  margin: 0 0 12px;
  padding: 0 12px;
  border-radius: 14px;
  background: rgba(232,93,63,0.08);
  color: #7b3a2d;
  font-size: 12px;
  font-weight: 850;
}

.cart-empty {
  min-height: calc(100dvh - var(--nav-h) - 92px);
  padding-inline: 32px !important;
}

.cart-empty__icon {
  background: radial-gradient(circle at 34% 24%, rgba(255,255,255,0.95), rgba(255,238,231,0.92)) !important;
  color: #e85d3f;
}

.cart-empty__proof {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  width: 100%;
}

.cart-empty__proof span {
  min-height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(57,39,31,0.08);
  color: #6d625c;
  font-size: 12px;
  font-weight: 850;
}

#view-profile .profile-timeline {
  background: linear-gradient(180deg, #fff, #fffdfa) !important;
}

#view-profile .profile-timeline__item span {
  color: #4e4540 !important;
}

#view-profile .profile-timeline__item b {
  background: #188a52 !important;
  box-shadow: 0 0 0 5px rgba(24,138,82,0.12) !important;
}

/* Product detail cover integrity: show the gallery fully, without body overlap. */
.pd-gallery {
  aspect-ratio: 1 / 1 !important;
}

.pd-body {
  margin-top: 0 !important;
  border-radius: 0 !important;
}

.pd-gallery__slide img {
  object-fit: cover;
}

/* Product detail marketplace polish: integrated info hierarchy and steady buy bar. */
#view-product {
  background: #f7f4f0;
}

.pd-gallery {
  background: #f1ece7 !important;
}

.pd-gallery::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(18, 12, 9, 0.22) 0%, rgba(18, 12, 9, 0.02) 24%, rgba(18, 12, 9, 0) 56%, rgba(18, 12, 9, 0.08) 100%);
}

.pd-topbar {
  z-index: 4;
}

.pd-topbar__back,
.pd-topbar__action {
  background: rgba(25, 18, 14, 0.54) !important;
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: 0 6px 12px rgba(20, 12, 8, 0.16);
}

.pd-gallery__dots {
  z-index: 3;
  bottom: 13px !important;
}

.pd-gallery__counter {
  z-index: 3;
  right: 14px !important;
  bottom: 12px !important;
  padding: 4px 10px !important;
  background: rgba(22, 15, 11, 0.56) !important;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.pd-body {
  padding: 12px 12px calc(104px + var(--safe-bot)) !important;
  background: #f7f4f0 !important;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pd-body::before {
  min-height: 34px !important;
  margin: 0 !important;
  padding: 0 12px !important;
  border-radius: 12px !important;
  background: #fff !important;
  border: 1px solid rgba(73, 47, 36, 0.08);
  color: #6d3b30 !important;
  box-shadow: 0 5px 12px rgba(45, 30, 22, 0.05);
}

.pd-main-card,
.pd-info-row,
.pd-decision-card,
.pd-section {
  background: #fff !important;
  border: 1px solid rgba(73, 47, 36, 0.08) !important;
  border-radius: 16px !important;
  box-shadow: 0 6px 14px rgba(45, 30, 22, 0.06) !important;
  flex: 0 0 auto;
}

.pd-main-card {
  position: relative;
  overflow: hidden;
  padding: 15px 15px 14px;
}

.pd-main-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #e8634a, #f0a05f, #d65b46);
}

.pd-price-row,
.pd-tags,
.pd-title,
.pd-subtitle {
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
}

.pd-price-row {
  display: flex;
  align-items: flex-end;
  gap: 8px !important;
  margin-bottom: 7px !important;
}

.pd-price {
  color: #db523f !important;
  font-size: 31px !important;
  line-height: 1;
  letter-spacing: 0 !important;
}

.pd-price::before {
  content: none !important;
}

.pd-original-price {
  margin-bottom: 2px;
  color: #9a8d85 !important;
  font-size: 13px !important;
}

.pd-tags {
  gap: 6px !important;
  margin-bottom: 10px !important;
}

.pd-tags .badge {
  height: 22px;
  display: inline-flex;
  align-items: center;
  border-radius: 6px !important;
  padding: 0 7px !important;
  background: #fff2ec !important;
  color: #b84635 !important;
  font-size: 11px !important;
  font-weight: 850;
}

.pd-title {
  color: #211815 !important;
  font-size: 20px !important;
  line-height: 1.32 !important;
  letter-spacing: 0 !important;
}

.pd-subtitle {
  margin-top: 8px !important;
  color: #75675f !important;
  font-size: 12px !important;
  line-height: 1.45 !important;
}

.pd-info-row {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 !important;
  margin: 0 !important;
  padding: 12px 8px !important;
}

.pd-info-row__item {
  justify-content: center;
  gap: 5px !important;
  min-width: 0;
  color: #5c504a !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  white-space: nowrap;
}

.pd-info-row__item svg {
  width: 13px !important;
  height: 13px !important;
  color: #1f9d5a !important;
}

.pd-decision-card {
  padding: 3px 14px !important;
}

.pd-decision-row {
  min-height: 43px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid rgba(73, 47, 36, 0.07);
}

.pd-decision-row:last-child {
  border-bottom: 0;
}

.pd-decision-row__label {
  color: #a0928a;
  font-size: 12px;
  font-weight: 850;
}

.pd-decision-row__value {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #3d312b;
  font-size: 13px;
  font-weight: 750;
}

.pd-section {
  margin: 0 !important;
  padding: 15px !important;
}

.pd-section__title {
  margin: 0 0 10px !important;
  padding: 0 0 10px !important;
  border-bottom: 1px solid rgba(73, 47, 36, 0.08) !important;
  color: #211815 !important;
}

.pd-desc {
  color: #5c504a !important;
  font-size: 13px !important;
  line-height: 1.75 !important;
}

.pd-buybar {
  gap: 10px !important;
  padding: 9px 12px calc(9px + var(--safe-bot)) !important;
  background: rgba(255, 255, 255, 0.92) !important;
  border-top: 1px solid rgba(73, 47, 36, 0.09) !important;
  box-shadow: 0 -7px 18px rgba(39, 27, 20, 0.08) !important;
}

.pd-buybar__icons {
  flex: 0 0 auto;
}

.pd-buybar__icon svg {
  color: #4d423d !important;
}

.pd-buybar__icon span {
  color: #75675f !important;
}

.pd-buybar__btns {
  gap: 8px !important;
}

.pd-buybar__add,
.pd-buybar__buy {
  height: 46px !important;
  border-radius: 12px !important;
  font-weight: 850 !important;
  letter-spacing: 0 !important;
}

.pd-buybar__add {
  flex: 0.92 !important;
  border: 1px solid rgba(219, 82, 63, 0.42) !important;
  background: #fff5f0 !important;
  color: #c94f3b !important;
}

.pd-buybar__buy {
  flex: 1.08 !important;
  background: linear-gradient(135deg, #d94d3b 0%, #ef7a4b 100%) !important;
  box-shadow: 0 6px 12px rgba(217, 77, 59, 0.28) !important;
}

@media (max-width: 360px) {
  .pd-body {
    padding-inline: 10px !important;
  }

  .pd-title {
    font-size: 18px !important;
  }

  .pd-buybar__icon {
    min-width: 44px !important;
  }

  .pd-buybar__btns {
    gap: 6px !important;
  }
}
