/* 个人主页：深色霓虹朋友圈 + 私有接单工作台 */
.profile-home {
  --ph-bg: #0a0a12;
  --ph-card: rgba(18, 18, 42, 0.82);
  --ph-card-solid: #12122a;
  --ph-card-soft: rgba(27, 28, 58, 0.78);
  --ph-line: rgba(99, 102, 241, 0.3);
  --ph-line-strong: rgba(168, 85, 247, 0.55);
  --ph-text: #f2f4ff;
  --ph-muted: #94a3b8;
  --ph-primary: #6366f1;
  --ph-accent: #a855f7;
  --ph-gold: #fbbf24;
  --ph-green: #34d399;
  --ph-red: #fb7185;
  color: var(--ph-text);
  display: grid;
  gap: 16px;
  min-width: 0;
  width: 100%;
}

.profile-home *,
.profile-home *::before,
.profile-home *::after {
  box-sizing: border-box;
}

.personal-home-toolbar {
  position: sticky;
  top: 102px;
  z-index: 18;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-width: 0;
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--ph-line);
  border-radius: 16px;
  background:
    radial-gradient(circle at 8% 0%, rgba(99, 102, 241, 0.2), transparent 42%),
    linear-gradient(135deg, rgba(16, 17, 37, 0.96), rgba(12, 13, 28, 0.96));
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(18px) saturate(145%);
}

.profile-home .personal-tab-nav {
  display: flex;
  flex: 1 1 auto;
  flex-wrap: wrap;
  min-width: 0;
  gap: 6px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

.profile-home .personal-tab-button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid transparent;
  border-radius: 11px;
  background: transparent;
  color: var(--ph-muted);
  font: inherit;
  font-size: 0.94rem;
  font-weight: 700;
  cursor: pointer;
  transition: color 0.18s ease, border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.profile-home .personal-tab-button b {
  display: inline-flex;
  width: 18px;
  height: 18px;
  align-items: center;
  justify-content: center;
  color: currentColor;
}

.profile-home .personal-tab-button b svg {
  width: 18px;
  height: 18px;
}

.profile-home .personal-tab-button:hover,
.profile-home .personal-tab-button:focus-visible {
  border-color: rgba(99, 102, 241, 0.35);
  background: rgba(99, 102, 241, 0.12);
  color: #dbe4ff;
  outline: none;
}

.profile-home .personal-tab-button.is-active {
  border-color: rgba(139, 92, 246, 0.62);
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.32), rgba(168, 85, 247, 0.24));
  color: #fff;
  box-shadow: 0 0 20px rgba(124, 58, 237, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.profile-score-orb {
  display: grid;
  width: 54px;
  height: 54px;
  flex: 0 0 54px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  padding: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  transition: transform 0.18s ease, filter 0.18s ease;
}

.profile-score-orb .profile-credit-gauge-visual { width: 54px; height: 54px; }
.profile-score-orb .profile-credit-gauge-core { inset: 17%; }
.profile-score-orb .profile-credit-gauge-core strong { font-size: 0.78rem; }
.profile-score-orb:hover { filter: brightness(1.18); transform: translateY(-1px) scale(1.04); }
.profile-score-orb:focus-visible { outline: 2px solid var(--gauge-color); outline-offset: 2px; }

.profile-home-hero {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 22px;
  padding: 24px;
  border: 1px solid var(--ph-line);
  border-radius: 18px;
  background:
    radial-gradient(circle at 94% 0%, rgba(168, 85, 247, 0.23), transparent 34%),
    radial-gradient(circle at 0% 100%, rgba(56, 189, 248, 0.12), transparent 38%),
    linear-gradient(135deg, rgba(20, 21, 48, 0.94), rgba(10, 10, 22, 0.96));
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  overflow: hidden;
  position: relative;
}

.profile-home-hero::after {
  content: '';
  position: absolute;
  inset: auto 8% -70px auto;
  width: 260px;
  height: 160px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.22), transparent 68%);
  pointer-events: none;
}

.profile-home-avatar-column { position: relative; z-index: 1; display: grid; justify-items: center; gap: 10px; }
.profile-home-avatar-wrap { position: relative; width: 188px; height: 188px; }
.profile-home-avatar {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  overflow: hidden;
  border: 2px solid rgba(129, 140, 248, 0.78);
  border-radius: 44px;
  background: linear-gradient(145deg, #24244e, #111122);
  color: #fff;
  font-size: 4.54rem;
  font-weight: 900;
  box-shadow: 0 0 0 6px rgba(99, 102, 241, 0.12), 0 0 44px rgba(99, 102, 241, 0.22), 0 24px 44px rgba(0, 0, 0, 0.4);
}

.profile-home-avatar img { width: 100%; height: 100%; object-fit: cover; }
.profile-home-avatar-frame { position: absolute; inset: -13px; width: calc(100% + 26px); height: calc(100% + 26px); object-fit: contain; pointer-events: none; }
.profile-home-avatar-upload {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 7px 13px;
  border: 1px solid rgba(139, 92, 246, 0.48);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.24), rgba(168, 85, 247, 0.18));
  color: #e9e6ff;
  font-size: 0.86rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(76, 29, 149, 0.22);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
.profile-home-avatar-upload svg { width: 15px; height: 15px; }
.profile-home-avatar-upload:hover { transform: translateY(-1px); border-color: rgba(196, 181, 253, 0.8); box-shadow: 0 0 24px rgba(139, 92, 246, 0.32); }

.profile-home-identity { min-width: 0; display: grid; gap: 9px; }
.profile-home .eyebrow { color: #a5b4fc; letter-spacing: 0.14em; text-transform: uppercase; }
.profile-home-identity h1 { margin: 0; font-size: clamp(1.45rem, 2.6vw, 2.1rem); line-height: 1.15; color: #fff; letter-spacing: -0.02em; }
.profile-home-identity p { margin: 0; color: var(--ph-muted); font-size: 0.92rem; }
.profile-home-identity p b { color: #dbe4ff; }

.profile-game-tags { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; min-height: 30px; }
.profile-game-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 9px 4px 5px;
  border: 1px solid rgba(99, 102, 241, 0.34);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.18), rgba(168, 85, 247, 0.11));
  color: #e0e7ff;
  font-size: 0.83rem;
  font-weight: 700;
}

.profile-game-tag img,
.profile-game-tag i { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; }
.profile-game-tag i { display: inline-grid; place-items: center; background: linear-gradient(135deg, #6366f1, #a855f7); color: #fff; font-style: normal; font-size: 0.78rem; }
.profile-game-tags-empty { color: #64748b; font-size: 0.87rem; }
.profile-tag-edit {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border: 1px dashed rgba(148, 163, 184, 0.35);
  border-radius: 999px;
  background: transparent;
  color: #a5b4fc;
  font: inherit;
  font-size: 0.81rem;
  cursor: pointer;
}
.profile-tag-edit svg { width: 13px; height: 13px; }
.profile-tag-edit:hover { border-color: var(--ph-line-strong); color: #fff; }

.profile-credit-strip { display: flex; flex-wrap: wrap; gap: 12px 22px; max-width: 390px; margin-top: 8px; }

/* 个人主页头部三钱包：充值余额 / 陪玩收入 / 抽成收入 */
.profile-home-wallet-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  max-width: 430px;
  margin-top: 10px;
}
.profile-home-wallet-strip > span {
  display: grid;
  min-width: 0;
  gap: 2px;
  border: 1px solid rgba(52, 211, 153, 0.18);
  border-radius: 11px;
  padding: 7px 10px;
  background: rgba(16, 185, 129, 0.05);
}
.profile-home-wallet-strip small {
  overflow: hidden;
  color: #8595b3;
  font-size: 0.78rem;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.profile-home-wallet-strip b {
  overflow: hidden;
  color: #8dffb1;
  font-size: 1.24rem;
  font-variant-numeric: tabular-nums;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.profile-home-wallet-strip > span:has(.is-income) { border-color: rgba(251, 191, 36, 0.2); background: rgba(251, 191, 36, 0.05); }
.profile-home-wallet-strip > span:has(.is-commission) { border-color: rgba(56, 189, 248, 0.22); background: rgba(56, 189, 248, 0.055); }
.profile-home-wallet-strip b.is-income { color: #fbbf24; }
.profile-home-wallet-strip b.is-commission { color: #7dd3fc; }
@media (max-width: 620px) {
  .profile-home-wallet-strip { grid-template-columns: 1fr; gap: 6px; }
}
.profile-credit-gauge,
.profile-score-orb {
  --gauge-color: #F53F3F;
  --gauge-glow: color-mix(in srgb, var(--gauge-color) 58%, transparent);
}
.profile-credit-gauge.is-critical,
.profile-score-orb.is-critical { --gauge-color: #F53F3F; --gauge-glow: rgba(245, 63, 63, 0.58); }
.profile-credit-gauge.is-poor,
.profile-score-orb.is-poor { --gauge-color: #FF7D00; --gauge-glow: rgba(255, 125, 0, 0.58); }
.profile-credit-gauge.is-weak,
.profile-score-orb.is-weak { --gauge-color: #FFAA00; --gauge-glow: rgba(255, 170, 0, 0.58); }
.profile-credit-gauge.is-fair,
.profile-score-orb.is-fair { --gauge-color: #00B42A; --gauge-glow: rgba(0, 180, 42, 0.58); }
.profile-credit-gauge.is-good,
.profile-score-orb.is-good { --gauge-color: #009A29; --gauge-glow: rgba(0, 154, 41, 0.58); }
.profile-credit-gauge.is-very-good,
.profile-score-orb.is-very-good { --gauge-color: #14C9C9; --gauge-glow: rgba(20, 201, 201, 0.58); }
.profile-credit-gauge.is-excellent,
.profile-score-orb.is-excellent { --gauge-color: #722ED1; --gauge-glow: rgba(114, 46, 209, 0.58); }
.profile-credit-gauge.is-elite,
.profile-score-orb.is-elite { --gauge-color: #165DFF; --gauge-glow: rgba(22, 93, 255, 0.58); }
.profile-credit-gauge { display: grid; flex: 0 1 148px; min-width: 124px; justify-items: center; gap: 5px; }
.profile-credit-gauge-visual {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 50%;
  isolation: isolate;
  background:
    radial-gradient(circle at 38% 24%, rgba(255, 255, 255, 0.13), transparent 34%),
    radial-gradient(circle at 50% 52%, #151c26 0 50%, #080b11 67%, #171c26 100%);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 0 26px color-mix(in srgb, var(--gauge-color) 22%, transparent);
}
.profile-credit-gauge-visual::after {
  position: absolute;
  inset: 6%;
  z-index: -1;
  border-radius: 50%;
  box-shadow: 0 0 24px var(--gauge-glow);
  content: "";
  opacity: 0.24;
}
.profile-credit-gauge-svg { display: block; width: 100%; height: 100%; overflow: visible; }
.profile-credit-gauge-shell { fill: rgba(8, 11, 16, 0.76); stroke: rgba(226, 232, 240, 0.24); stroke-width: 1.6; }
.profile-credit-gauge-inner-shell { fill: none; stroke: rgba(148, 163, 184, 0.18); stroke-width: 7; }
.profile-credit-gauge-ticks line { stroke: rgba(203, 213, 225, 0.38); stroke-width: 1; stroke-linecap: round; }
.profile-credit-gauge-track { fill: none; stroke: rgba(148, 163, 184, 0.15); stroke-width: 10; stroke-linecap: round; }
.profile-credit-gauge-glow { fill: none; stroke: var(--gauge-color); stroke-width: 18; stroke-linecap: round; opacity: 0.28; filter: blur(4px); }
.profile-credit-gauge-fill { fill: none; stroke: var(--gauge-color); stroke-width: 9; stroke-linecap: round; filter: drop-shadow(0 0 5px var(--gauge-color)); }
.profile-credit-gauge-inner-line { fill: none; stroke: rgba(148, 163, 184, 0.12); stroke-width: 1; }
.profile-credit-gauge-core { position: absolute; inset: 24%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; text-align: center; }
.profile-credit-gauge-core span { overflow: hidden; width: 100%; color: #cbd5e1; font-size: 0.78rem; letter-spacing: 0.04em; text-overflow: ellipsis; white-space: nowrap; }
.profile-credit-gauge-core strong { color: #fff; font-size: 1.6rem; font-weight: 900; line-height: 1; font-variant-numeric: tabular-nums; text-shadow: 0 0 14px var(--gauge-glow); }
.profile-credit-gauge-core small { color: var(--gauge-color); font-size: 0.78rem; font-weight: 800; letter-spacing: 0.08em; line-height: 1; text-shadow: 0 0 8px var(--gauge-glow); }
.profile-credit-gauge-tier { position: absolute; bottom: 2px; left: 50%; border: 1px solid color-mix(in srgb, var(--gauge-color) 45%, transparent); border-radius: 999px; padding: 2px 7px; background: rgba(3, 7, 12, 0.9); color: var(--gauge-color); font-size: 0.78rem; font-style: normal; font-weight: 800; white-space: nowrap; transform: translateX(-50%); }
.profile-credit-gauge-note { max-width: 166px; margin: 0; overflow: visible; color: #7b8ba1; font-size: 0.78rem; line-height: 1.38; text-align: center; text-overflow: clip; white-space: normal; }

.profile-home-hero-actions { display: flex; flex-direction: column; gap: 8px; min-width: 130px; position: relative; z-index: 1; }
.profile-home-hero-actions .button { white-space: nowrap; }
.profile-home-hero-actions .profile-order-post-hero { display: inline-flex; align-items: center; justify-content: center; gap: 7px; border-color: rgba(52, 211, 153, 0.48); background: linear-gradient(135deg, rgba(16, 185, 129, 0.24), rgba(99, 102, 241, 0.26)); color: #d1fae5; }
.profile-order-post-hero svg { width: 17px; height: 17px; }

.profile-home-body { display: grid; gap: 14px; }
.profile-legacy-head { display: flex; align-items: center; gap: 10px; padding: 0 2px; color: var(--ph-muted); font-size: 0.92rem; }
.profile-legacy-head .text-button { color: #a5b4fc; }

.profile-moments-layout { display: grid; grid-template-columns: minmax(0, 1fr) 290px; align-items: start; gap: 16px; }
.profile-moments-main { display: grid; gap: 16px; min-width: 0; }
.profile-moments-side { display: grid; gap: 14px; position: sticky; top: 82px; }

.profile-moment-composer,
.profile-moment-card,
.profile-side-card,
.profile-workbench-card {
  border: 1px solid var(--ph-line);
  border-radius: 14px;
  background: linear-gradient(150deg, rgba(20, 21, 47, 0.94), rgba(12, 13, 28, 0.95));
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.profile-moment-composer { padding: 18px; display: grid; gap: 11px; background: radial-gradient(circle at 90% 0%, rgba(168, 85, 247, 0.14), transparent 36%), linear-gradient(150deg, rgba(20, 21, 47, 0.96), rgba(12, 13, 28, 0.96)); }
.profile-composer-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.profile-composer-head h2 { margin: 3px 0 0; font-size: 1.21rem; color: #f8fafc; }
.profile-composer-count { color: #64748b; font-size: 0.81rem; padding-top: 4px; }
.profile-moment-composer textarea {
  width: 100%;
  min-height: 96px;
  resize: vertical;
  padding: 12px 13px;
  border: 1px solid rgba(99, 102, 241, 0.27);
  border-radius: 11px;
  background: rgba(7, 8, 20, 0.62);
  color: #e5e7eb;
  font: inherit;
  line-height: 1.65;
  outline: none;
}
.profile-moment-composer textarea:focus { border-color: rgba(139, 92, 246, 0.7); box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.12); }
.profile-moment-composer textarea::placeholder { color: #4b5563; }
.profile-composer-actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.profile-composer-tools { position: relative; display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.profile-image-picker { display: inline-flex; align-items: center; gap: 6px; padding: 8px 10px; border: 1px solid rgba(148, 163, 184, 0.24); border-radius: 9px; color: #cbd5e1; font-size: 0.86rem; cursor: pointer; }
.profile-image-picker svg { width: 15px; height: 15px; }
.profile-image-picker:hover { border-color: var(--ph-line-strong); color: #fff; }
.profile-emoji-toggle { display: inline-flex; align-items: center; gap: 5px; padding: 7px 10px; border: 1px solid rgba(148, 163, 184, 0.24); border-radius: 9px; background: transparent; color: #cbd5e1; font: inherit; font-size: 0.86rem; cursor: pointer; }
.profile-emoji-toggle:hover,
.profile-emoji-toggle[aria-expanded="true"] { border-color: var(--ph-line-strong); background: rgba(99, 102, 241, 0.1); color: #fff; }
.profile-moment-emoji-pop { position: absolute; z-index: 24; left: 0; bottom: calc(100% + 8px); width: min(330px, 80vw); grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 4px; padding: 9px; border: 1px solid rgba(139, 92, 246, 0.42); border-radius: 12px; background: #0d0f21; box-shadow: 0 18px 44px rgba(0, 0, 0, 0.55), 0 0 24px rgba(99, 102, 241, 0.12); }
.profile-moment-emoji-pop:not([hidden]) { display: grid; }
.profile-moment-emoji-pop button { display: grid; width: 100%; aspect-ratio: 1; place-items: center; border: 0; border-radius: 7px; background: rgba(99, 102, 241, 0.08); font-size: 1.21rem; cursor: pointer; }
.profile-moment-emoji-pop button:hover { background: rgba(168, 85, 247, 0.22); transform: translateY(-1px); }
.profile-moment-preview { grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 7px; }
.profile-moment-preview.has-images { display: grid; }
.profile-moment-preview-item { position: relative; min-width: 0; margin: 0; overflow: hidden; aspect-ratio: 1; border: 1px solid rgba(99, 102, 241, 0.3); border-radius: 10px; background: #080914; }
.profile-moment-preview-item img { display: block; width: 100%; height: 100%; object-fit: cover; }
.profile-moment-preview-item button { position: absolute; top: 5px; right: 5px; display: grid; width: 24px; height: 24px; place-items: center; border: 1px solid rgba(255, 255, 255, 0.22); border-radius: 50%; background: rgba(7, 8, 20, 0.78); color: #fff; font: inherit; font-size: 1.15rem; line-height: 1; cursor: pointer; backdrop-filter: blur(6px); }
.profile-moment-preview-item button:hover { border-color: rgba(251, 113, 133, 0.7); background: rgba(190, 24, 93, 0.72); }
.profile-moment-preview-item figcaption { position: absolute; right: 0; bottom: 0; left: 0; overflow: hidden; padding: 17px 7px 5px; background: linear-gradient(transparent, rgba(3, 4, 12, 0.88)); color: #e2e8f0; font-size: 0.78rem; text-overflow: ellipsis; white-space: nowrap; }
.profile-moment-warning { margin: 0; padding: 8px 10px; border: 1px solid rgba(251, 191, 36, 0.16); border-radius: 8px; background: rgba(251, 191, 36, 0.06); color: #a8a29e; font-size: 0.78rem; line-height: 1.55; }
.profile-moment-composer .form-message { margin: 0; font-size: 0.84rem; }

.profile-moment-feed { display: grid; gap: 12px; }
.profile-moment-feed .panel,
.profile-moment-feed .empty-state { border-color: var(--ph-line); background: var(--ph-card); color: var(--ph-text); }
.profile-moment-card { padding: 16px 17px; display: grid; gap: 11px; }
.profile-moment-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.profile-moment-author { display: flex; align-items: center; gap: 9px; min-width: 0; }
.profile-moment-author > img,
.profile-moment-author > span { width: 38px; height: 38px; flex: 0 0 auto; border-radius: 12px; object-fit: cover; }
.profile-moment-author > span { display: grid; place-items: center; background: linear-gradient(135deg, #6366f1, #a855f7); color: #fff; font-weight: 800; }
.profile-moment-author > div { display: grid; gap: 2px; min-width: 0; }
.profile-moment-author strong { color: #f8fafc; font-size: 0.99rem; }
.profile-moment-author small { color: #64748b; font-size: 0.78rem; }
.profile-moment-head-actions { display: flex; align-items: center; gap: 7px; }
.profile-moment-pending { padding: 3px 7px; border-radius: 999px; background: rgba(245, 158, 11, 0.12); color: #fcd34d; font-size: 0.78rem; }
.profile-moment-delete { padding: 3px 7px; border: 1px solid rgba(251, 113, 133, 0.22); border-radius: 6px; background: transparent; color: #fda4af; font: inherit; font-size: 0.78rem; cursor: pointer; }
.profile-moment-delete:hover { border-color: rgba(251, 113, 133, 0.58); background: rgba(251, 113, 133, 0.08); }
.profile-moment-content { margin: 0; color: #dbe4ff; font-size: 0.99rem; line-height: 1.75; white-space: pre-wrap; overflow-wrap: anywhere; }
.profile-moment-images { display: grid; gap: 6px; }
.profile-moment-images.is-1 { grid-template-columns: minmax(0, 1fr); max-width: 430px; }
.profile-moment-images.is-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.profile-moment-images.is-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.profile-moment-images a { display: block; overflow: hidden; border-radius: 10px; border: 1px solid rgba(99, 102, 241, 0.18); background: #080914; }
.profile-moment-images img { display: block; width: 100%; max-height: 280px; object-fit: cover; transition: transform 0.25s ease; }
.profile-moment-images.is-1 img { max-height: 360px; }
.profile-moment-images a:hover img { transform: scale(1.025); }

.profile-moment-actions { display: flex; align-items: center; gap: 8px; padding-top: 10px; border-top: 1px solid rgba(99, 102, 241, 0.14); }
.profile-moment-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 5px 13px;
  border: 1px solid rgba(99, 102, 241, 0.24);
  border-radius: 999px;
  background: rgba(10, 13, 28, 0.62);
  color: #c7d2fe;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease, color 0.16s ease;
}
.profile-moment-action b { color: #fff; font-size: 0.99rem; line-height: 1; }
.profile-moment-action-icon { font-size: 1.09rem; line-height: 1; }
.profile-moment-action:hover { transform: translateY(-1px); border-color: rgba(139, 92, 246, 0.62); background: rgba(99, 102, 241, 0.18); color: #fff; }
.profile-moment-action.is-liked { border-color: rgba(251, 113, 133, 0.62); background: rgba(244, 63, 94, 0.16); color: #fda4af; }
.profile-moment-action.is-liked b { color: #ffe4e6; }
.profile-moment-action:focus-visible { outline: 2px solid rgba(168, 85, 247, 0.66); outline-offset: 2px; }
.profile-moment-social { display: grid; gap: 6px; padding: 10px 12px; border: 1px solid rgba(99, 102, 241, 0.16); border-radius: 12px; background: rgba(6, 9, 20, 0.55); }
.profile-moment-social .square-comment + .square-comment { padding-top: 7px; }

.profile-moments-view { display: grid; gap: 14px; }
.profile-moment-switch-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 16px;
  overflow: hidden;
  padding: 15px 17px;
  border: 1px solid rgba(99, 102, 241, 0.36);
  border-radius: 16px;
  background:
    radial-gradient(circle at 12% 0%, rgba(56, 189, 248, 0.15), transparent 34%),
    radial-gradient(circle at 92% 110%, rgba(168, 85, 247, 0.22), transparent 40%),
    linear-gradient(135deg, rgba(17, 20, 44, 0.96), rgba(9, 10, 24, 0.98));
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.26), inset 0 1px 0 rgba(255, 255, 255, 0.045);
}
.profile-moment-switch-card::after { content: ''; position: absolute; inset: -45% auto auto 42%; width: 280px; height: 160px; border-radius: 50%; background: radial-gradient(circle, rgba(99, 102, 241, 0.2), transparent 70%); pointer-events: none; }
.profile-moment-switch-copy { position: relative; z-index: 1; display: grid; gap: 4px; min-width: 0; }
.profile-moment-switch-copy strong { color: #f8fafc; font-size: 1.15rem; }
.profile-moment-switch-copy small { color: #94a3b8; font-size: 0.81rem; line-height: 1.5; }
.profile-moment-switch { position: relative; z-index: 1; display: inline-flex; gap: 4px; padding: 4px; border: 1px solid rgba(99, 102, 241, 0.28); border-radius: 12px; background: rgba(5, 7, 18, 0.68); }
.profile-moment-switch button { display: inline-flex; align-items: center; gap: 7px; min-height: 36px; padding: 7px 11px; border: 1px solid transparent; border-radius: 9px; background: transparent; color: #94a3b8; font: inherit; font-size: 0.85rem; font-weight: 800; cursor: pointer; }
.profile-moment-switch button b { display: inline-grid; min-width: 20px; height: 20px; place-items: center; border-radius: 999px; background: rgba(99, 102, 241, 0.16); color: #c7d2fe; font-size: 0.78rem; }
.profile-moment-switch button:hover { color: #fff; background: rgba(99, 102, 241, 0.09); }
.profile-moment-switch button.is-active { border-color: rgba(139, 92, 246, 0.58); background: linear-gradient(135deg, rgba(99, 102, 241, 0.32), rgba(168, 85, 247, 0.22)); color: #fff; box-shadow: 0 0 20px rgba(124, 58, 237, 0.22); }
.profile-moment-switch button.is-active b { background: rgba(255, 255, 255, 0.14); color: #fff; }
.profile-moment-publish { position: relative; z-index: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px; border-color: rgba(52, 211, 153, 0.44); background: linear-gradient(135deg, rgba(16, 185, 129, 0.22), rgba(99, 102, 241, 0.23)); color: #d1fae5; }
.profile-moment-publish svg { width: 16px; height: 16px; }
.profile-order-post-badge { padding: 3px 8px; border: 1px solid rgba(52, 211, 153, 0.34); border-radius: 999px; background: rgba(16, 185, 129, 0.12); color: #6ee7b7; font-size: 0.78rem; font-weight: 800; white-space: nowrap; }
.profile-moment-card.is-order-post { border-color: rgba(52, 211, 153, 0.28); background: radial-gradient(circle at 92% 0%, rgba(16, 185, 129, 0.12), transparent 30%), linear-gradient(150deg, rgba(18, 31, 43, 0.95), rgba(12, 13, 28, 0.96)); box-shadow: 0 14px 34px rgba(0, 0, 0, 0.25), 0 0 28px rgba(16, 185, 129, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.04); }
.profile-moment-card.is-order-post .profile-moment-content { padding: 11px 13px; border-left: 2px solid rgba(52, 211, 153, 0.45); border-radius: 0 9px 9px 0; background: rgba(6, 18, 26, 0.58); color: #d7f9ed; font-size: 0.92rem; }

/* 充值余额、陪玩收入与抽成收入分栏 */
.personal-balance-split {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 9px 0 11px;
}
.personal-balance-split > div {
  display: grid;
  min-width: 0;
  gap: 4px;
  border: 1px solid rgba(52, 211, 153, 0.2);
  border-radius: 13px;
  padding: 10px 12px;
  background: rgba(16, 185, 129, 0.055);
}
.personal-balance-split > div.is-income {
  border-color: rgba(251, 191, 36, 0.24);
  background: rgba(251, 191, 36, 0.055);
}
.personal-balance-split > div.is-commission {
  border-color: rgba(56, 189, 248, 0.26);
  background: rgba(56, 189, 248, 0.06);
}
.personal-balance-split > div > span {
  overflow: hidden;
  color: #8595b3;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.personal-balance-split .personal-balance-amount {
  margin: 0;
  overflow: hidden;
  color: #8dffb1;
  font-size: clamp(1.45rem, 2.6vw, 2.05rem);
  line-height: 1.06;
  text-overflow: ellipsis;
  text-shadow: 0 0 24px rgba(52, 211, 153, 0.16);
  white-space: nowrap;
}
.personal-balance-split > div.is-income .personal-balance-amount {
  color: #fbbf24;
  text-shadow: 0 0 24px rgba(251, 191, 36, 0.16);
}
.personal-balance-split > div.is-commission .personal-balance-amount {
  color: #7dd3fc;
  text-shadow: 0 0 24px rgba(56, 189, 248, 0.16);
}
.profile-side-wallet-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}
.profile-side-wallet-grid > div {
  display: grid;
  min-width: 0;
  gap: 3px;
  border: 1px solid rgba(52, 211, 153, 0.18);
  border-radius: 10px;
  padding: 9px;
  background: rgba(16, 185, 129, 0.055);
}
.profile-side-wallet-grid > div.is-income {
  border-color: rgba(251, 191, 36, 0.2);
  background: rgba(251, 191, 36, 0.05);
}
.profile-side-wallet-grid > div.is-commission {
  border-color: rgba(56, 189, 248, 0.22);
  background: rgba(56, 189, 248, 0.055);
}
.profile-side-wallet-grid span {
  overflow: hidden;
  color: #64748b;
  font-size: 0.78rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.profile-side-wallet-grid b {
  overflow: hidden;
  color: #8dffb1;
  font-size: 1.1rem;
  font-variant-numeric: tabular-nums;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.profile-side-wallet-grid > div.is-income b { color: #fbbf24; }
.profile-side-wallet-grid > div.is-commission b { color: #7dd3fc; }
.profile-side-recharge-button {
  min-height: 34px;
  border: 1px solid rgba(56, 189, 248, 0.36);
  border-radius: 9px;
  background: rgba(56, 189, 248, 0.08);
  color: #7dd3fc;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
}
.profile-side-recharge-button:hover { background: rgba(56, 189, 248, 0.16); }

@media (max-width: 620px) {
  .personal-balance-split { grid-template-columns: 1fr; }
  .personal-balance-split .personal-balance-amount { font-size: 1.89rem; }
}

.profile-side-card { padding: 15px; display: grid; gap: 10px; }
.profile-side-name { color: #fff; font-size: 1.15rem; }
.profile-side-balance { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; padding: 10px; border: 1px solid rgba(99, 102, 241, 0.22); border-radius: 10px; background: rgba(99, 102, 241, 0.08); }
.profile-side-balance span { color: #94a3b8; font-size: 0.78rem; }
.profile-side-balance b { color: #fff; font-size: 1.32rem; margin-right: auto; }
.profile-side-balance button { padding: 3px 8px; border: 1px solid rgba(56, 189, 248, 0.44); border-radius: 6px; background: rgba(56, 189, 248, 0.1); color: #7dd3fc; font: inherit; font-size: 0.78rem; cursor: pointer; }
.profile-side-mini-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.profile-side-mini-grid div { padding: 8px; border-radius: 8px; background: rgba(15, 17, 34, 0.72); display: grid; gap: 2px; }
.profile-side-mini-grid span { color: #64748b; font-size: 0.78rem; }
.profile-side-mini-grid b { color: #cbd5e1; font-size: 0.83rem; }
.profile-side-recharge-note { margin: 0; color: #64748b; font-size: 0.78rem; }
.profile-side-recharge-note b { color: #7dd3fc; }
.profile-side-card-head h3 { margin: 3px 0 0; color: #f8fafc; font-size: 1.03rem; }
.profile-side-links { display: grid; gap: 5px; }
.profile-side-links button { display: flex; align-items: center; gap: 7px; padding: 8px 9px; border: 1px solid transparent; border-radius: 8px; background: rgba(15, 17, 34, 0.7); color: #cbd5e1; font: inherit; font-size: 0.84rem; text-align: left; cursor: pointer; }
.profile-side-links button:hover { border-color: var(--ph-line); background: rgba(99, 102, 241, 0.1); color: #fff; }
.profile-side-links svg { width: 15px; height: 15px; color: #818cf8; }
.profile-side-privacy p { margin: 0; color: #64748b; font-size: 0.79rem; line-height: 1.7; }

.profile-workbench { display: grid; gap: 14px; }
.profile-workbench-top { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.9fr); gap: 14px; }
.profile-workbench-card { padding: 17px; display: grid; gap: 13px; min-width: 0; }
.profile-workbench-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.profile-workbench-card-head h2 { margin: 3px 0 0; color: #f8fafc; font-size: 1.15rem; }
.profile-range-switch { display: inline-flex; gap: 3px; padding: 3px; border: 1px solid rgba(99, 102, 241, 0.2); border-radius: 9px; background: rgba(7, 8, 20, 0.46); }
.profile-range-switch button { padding: 5px 9px; border: 0; border-radius: 6px; background: transparent; color: #64748b; font: inherit; font-size: 0.78rem; cursor: pointer; }
.profile-range-switch button.is-active { background: linear-gradient(135deg, rgba(99, 102, 241, 0.75), rgba(168, 85, 247, 0.62)); color: #fff; }
.profile-stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 7px; }
.profile-stat-grid div { padding: 10px; border: 1px solid rgba(99, 102, 241, 0.15); border-radius: 10px; background: rgba(8, 9, 21, 0.48); display: grid; gap: 3px; }
.profile-stat-grid span { color: #64748b; font-size: 0.78rem; }
.profile-stat-grid strong { color: #f8fafc; font-size: 1.36rem; line-height: 1; font-variant-numeric: tabular-nums; }
.profile-stat-grid small { color: #4b5563; font-size: 0.78rem; }
.profile-stat-grid .is-income strong { color: var(--ph-gold); }
.profile-daily-chart { display: flex; align-items: flex-end; gap: 4px; height: 100px; padding: 8px 4px 20px; border-bottom: 1px solid rgba(99, 102, 241, 0.16); }
.profile-daily-bar { position: relative; display: flex; flex: 1 1 0; height: 100%; align-items: flex-end; justify-content: center; }
.profile-daily-bar i { display: block; width: min(100%, 25px); min-height: 3px; border-radius: 4px 4px 2px 2px; background: rgba(100, 116, 139, 0.2); transition: height 0.3s ease; }
.profile-daily-bar.has-orders i { background: linear-gradient(180deg, #a855f7, #6366f1); box-shadow: 0 0 9px rgba(139, 92, 246, 0.35); }
.profile-daily-bar span { position: absolute; bottom: -18px; color: #64748b; font-size: 0.78rem; white-space: nowrap; }
.profile-credit-detail { display: flex; flex-wrap: wrap; justify-content: space-around; align-items: flex-start; gap: 14px; }
.profile-credit-card .profile-credit-gauge { flex: 1 1 128px; max-width: 148px; }
.profile-credit-rule { margin: 0; color: #64748b; font-size: 0.78rem; line-height: 1.65; }

.profile-calendar-controls { display: inline-flex; align-items: center; gap: 7px; color: #94a3b8; font-size: 0.78rem; }
.profile-calendar-controls button { width: 25px; height: 25px; border: 1px solid rgba(99, 102, 241, 0.24); border-radius: 6px; background: rgba(7, 8, 20, 0.5); color: #cbd5e1; font: inherit; cursor: pointer; }
.profile-calendar-controls button:hover { border-color: var(--ph-line-strong); color: #fff; }
.profile-calendar-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; min-width: 0; }
.profile-calendar-card { min-width: 0; grid-template-columns: minmax(0, 1fr); }
.profile-calendar-card .profile-workbench-card-head { min-width: 0; }
.profile-calendar-card .profile-workbench-card-head { flex-wrap: wrap; }
.profile-calendar-weekday { padding: 4px 0; text-align: center; color: #64748b; font-size: 0.78rem; }
.profile-calendar-blank { min-height: 45px; }
.profile-calendar-day { position: relative; display: flex; flex-direction: column; gap: 6px; min-width: 0; min-height: 98px; padding: 8px; overflow: hidden; border: 1px solid rgba(148, 163, 184, 0.09); border-radius: 8px; background: rgba(8, 9, 21, 0.42); color: #94a3b8; font: inherit; font-size: 0.79rem; text-align: left; cursor: pointer; transition: border-color 0.16s ease, background 0.16s ease; }
.profile-calendar-day:hover { border-color: rgba(99, 102, 241, 0.44); color: #fff; }
.profile-calendar-day.has-order { border-color: rgba(99, 102, 241, 0.28); background: linear-gradient(160deg, rgba(99, 102, 241, 0.14), rgba(8, 9, 21, 0.46)); color: #c7d2fe; }
.profile-calendar-daytop { display: flex; align-items: center; justify-content: space-between; gap: 4px; width: 100%; }
.profile-calendar-daytop b { color: inherit; font-size: 0.94rem; line-height: 1; }
.profile-calendar-count { display: inline-flex; align-items: center; border-radius: 999px; padding: 2px 7px; background: linear-gradient(135deg, rgba(99, 102, 241, 0.92), rgba(168, 85, 247, 0.92)); color: #fff; font-size: 0.78rem; font-style: normal; font-weight: 800; line-height: 1.2; letter-spacing: 0.01em; box-shadow: 0 3px 10px rgba(99, 102, 241, 0.28); white-space: nowrap; }
.profile-calendar-day-orders { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.profile-calendar-mini { display: flex; align-items: center; gap: 5px; min-width: 0; overflow: hidden; }
.profile-calendar-mini-avatar { display: grid; width: 19px; height: 19px; flex: 0 0 19px; place-items: center; overflow: hidden; border: 1px solid rgba(139, 92, 246, 0.3); border-radius: 5px; background: rgba(99, 102, 241, 0.24); color: #e0e7ff; font-size: 0.78rem; font-weight: 800; }
.profile-calendar-mini-avatar img { width: 100%; height: 100%; object-fit: cover; }
.profile-calendar-mini-copy { display: flex; flex-direction: column; gap: 1px; min-width: 0; overflow: hidden; }
.profile-calendar-mini-copy strong { overflow: hidden; color: #dbe4f5; font-size: 0.78rem; font-weight: 750; line-height: 1.25; text-overflow: ellipsis; white-space: nowrap; }
.profile-calendar-mini-copy small { overflow: hidden; color: #8b98ad; font-size: 0.78rem; line-height: 1.25; text-overflow: ellipsis; white-space: nowrap; }
.profile-calendar-mini-more { color: #818cf8; font-size: 0.78rem; font-weight: 700; }
.profile-calendar-net { align-self: flex-start; border-radius: 5px; padding: 2px 6px; background: rgba(16, 185, 129, 0.1); color: #6ee7b7; font-size: 0.78rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.profile-calendar-day.is-today .profile-calendar-daytop > b { color: #7dd3fc; font-weight: 800; }
.profile-calendar-day.is-selected { border-color: rgba(168, 85, 247, 0.8); box-shadow: 0 0 0 2px rgba(168, 85, 247, 0.16); background: rgba(168, 85, 247, 0.16); color: #fff; }
.profile-calendar-detail { padding: 11px; border: 1px solid rgba(99, 102, 241, 0.16); border-radius: 10px; background: rgba(7, 8, 20, 0.44); display: grid; gap: 7px; }
.profile-calendar-detail-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.profile-calendar-detail-head strong { color: #e2e8f0; font-size: 0.87rem; }
.profile-calendar-detail-head span { color: #64748b; font-size: 0.78rem; }
.profile-calendar-order { display: grid; grid-template-columns: minmax(250px, 360px) minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 10px; border: 1px solid rgba(99, 102, 241, 0.1); border-radius: 10px; background: rgba(18, 20, 43, 0.76); }
.profile-calendar-people { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; min-width: 0; }
.profile-calendar-person { display: flex; align-items: center; gap: 6px; min-width: 0; }
.profile-calendar-avatar { display: grid; width: 32px; height: 32px; flex: 0 0 32px; place-items: center; overflow: hidden; border: 1px solid rgba(139, 92, 246, 0.26); border-radius: 9px; background: linear-gradient(135deg, rgba(99, 102, 241, 0.38), rgba(168, 85, 247, 0.28)); color: #e0e7ff; font-size: 0.78rem; font-weight: 850; }
.profile-calendar-avatar img { width: 100%; height: 100%; object-fit: cover; }
.profile-calendar-person.is-companion .profile-calendar-avatar { border-color: rgba(52, 211, 153, 0.26); background: linear-gradient(135deg, rgba(16, 185, 129, 0.28), rgba(99, 102, 241, 0.2)); color: #d1fae5; }
.profile-calendar-person > div { display: grid; gap: 0; min-width: 0; }
.profile-calendar-person em { color: #64748b; font-size: 0.78rem; font-style: normal; line-height: 1.2; }
.profile-calendar-person strong { overflow: hidden; max-width: 72px; color: #e2e8f0; font-size: 0.78rem; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
.profile-calendar-person small { overflow: hidden; max-width: 72px; color: #56637a; font-size: 0.78rem; line-height: 1.25; text-overflow: ellipsis; white-space: nowrap; }
.profile-calendar-order-copy { display: grid; gap: 3px; min-width: 0; }
.profile-calendar-order-copy > strong { overflow: hidden; color: #e2e8f0; font-size: 0.81rem; text-overflow: ellipsis; white-space: nowrap; }
.profile-calendar-order-copy > small { overflow: hidden; color: #64748b; font-size: 0.78rem; text-overflow: ellipsis; white-space: nowrap; }
.profile-calendar-order-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.profile-calendar-price { display: inline-flex; align-items: center; border: 1px solid rgba(251, 191, 36, 0.26); border-radius: 6px; padding: 2px 7px; background: rgba(251, 191, 36, 0.09); color: #fcd34d; font-size: 0.78rem; font-weight: 850; white-space: nowrap; }
.profile-calendar-status { border-radius: 999px; padding: 2px 6px; background: rgba(100, 116, 139, 0.12); color: #94a3b8; font-size: 0.78rem; white-space: nowrap; }
.profile-calendar-amount { display: grid; justify-items: end; gap: 1px; }
.profile-calendar-amount strong { color: var(--ph-gold); font-size: 0.99rem; font-variant-numeric: tabular-nums; }
.profile-calendar-amount small { color: #6ee7b7; font-size: 0.78rem; white-space: nowrap; }
.profile-calendar-empty { display: flex; align-items: center; gap: 8px; padding: 10px 2px; color: #64748b; font-size: 0.78rem; }
.profile-calendar-empty svg { width: 17px; height: 17px; }

.profile-base-grid { display: grid; grid-template-columns: minmax(0, 1fr) 190px; gap: 16px; }
.profile-base-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.profile-base-fields > div { padding: 10px; border-radius: 9px; background: rgba(8, 9, 21, 0.42); display: grid; gap: 3px; }
.profile-base-fields span { color: #64748b; font-size: 0.78rem; }
.profile-base-fields strong { overflow-wrap: anywhere; color: #dbe4ff; font-size: 0.86rem; }
.profile-base-fields small { color: #4b5563; font-size: 0.78rem; }
.profile-qr-card { padding: 12px; border: 1px solid rgba(99, 102, 241, 0.18); border-radius: 10px; background: rgba(8, 9, 21, 0.42); display: grid; justify-items: center; gap: 8px; }
.profile-qr-card img,
.profile-qr-card .profile-qr-svg { display: block; width: 150px; height: 150px; border-radius: 8px; background: #fff; padding: 4px; }
.profile-qr-placeholder { display: grid; width: 150px; height: 150px; place-items: center; border-radius: 8px; background: #0b0c18; color: #64748b; font-size: 0.78rem; }
.profile-qr-card .button { width: 100%; }
.profile-qr-card small { color: #4b5563; font-size: 0.78rem; text-align: center; word-break: break-all; }

.profile-private-badge { flex: 0 0 auto; padding: 4px 8px; border: 1px solid rgba(125, 211, 252, 0.24); border-radius: 999px; background: rgba(14, 165, 233, 0.08); color: #7dd3fc; font-size: 0.78rem; }
.profile-referral-metrics { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.profile-referral-metrics > div { min-width: 0; }
.profile-referral-metrics > div small { color: #64748b; font-size: 0.78rem; }
.profile-referral-metrics .is-income strong { color: var(--ph-gold); }
.profile-referral-dashboard { display: grid; gap: 15px; }
.profile-referral-dashboard .panel-heading { margin: 0; }
.profile-commission-dashboard { display: grid; gap: 14px; }
.profile-commission-dashboard .panel-heading { margin: 0; }
.profile-commission-overview { display: grid; grid-template-columns: 138px minmax(0, 1fr); align-items: center; gap: 18px; }
.profile-commission-donut { display: grid; width: 132px; height: 132px; place-items: center; border-radius: 50%; background: conic-gradient(#fbbf24 0 var(--commission-share), rgba(148, 163, 184, 0.13) var(--commission-share) 100%); box-shadow: 0 0 32px rgba(251, 191, 36, 0.15); }
.profile-commission-donut > div { display: grid; width: 108px; height: 108px; place-content: center; justify-items: center; border-radius: 50%; background: #0b0c1a; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05); }
.profile-commission-donut strong { color: #fde68a; font-size: 1.53rem; line-height: 1; font-variant-numeric: tabular-nums; }
.profile-commission-donut small { margin-top: 4px; color: #7c89a8; font-size: 0.78rem; }
.profile-commission-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.profile-commission-kpis > div { display: grid; gap: 3px; border: 1px solid rgba(148, 163, 184, 0.11); border-radius: 11px; padding: 11px 12px; background: rgba(8, 9, 20, 0.42); }
.profile-commission-kpis span { color: #7c89a8; font-size: 0.78rem; }
.profile-commission-kpis strong { color: #eef2ff; font-size: 1.24rem; font-weight: 900; font-variant-numeric: tabular-nums; }
.profile-commission-kpis small { color: #56637a; font-size: 0.78rem; line-height: 1.45; }
.profile-commission-kpis .is-commission { border-color: rgba(251, 191, 36, 0.2); background: rgba(120, 78, 16, 0.1); }
.profile-commission-kpis .is-commission strong { color: #fbbf24; }
.profile-commission-legend { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 14px; color: #94a3b8; font-size: 0.78rem; }
.profile-commission-legend span { display: inline-flex; align-items: center; gap: 5px; }
.profile-commission-legend i { display: inline-block; width: 9px; height: 9px; border-radius: 3px; }
.profile-commission-legend .is-fee { background: rgba(99, 102, 241, 0.55); }
.profile-commission-legend .is-mine { background: linear-gradient(135deg, #f59e0b, #fbbf24); }
.profile-commission-legend small { margin-left: auto; color: #64748b; font-size: 0.78rem; }
.profile-commission-chart { display: grid; gap: 3px; border: 1px solid rgba(99, 102, 241, 0.16); border-radius: 12px; padding: 8px; background: rgba(7, 8, 20, 0.42); }
.profile-commission-row { display: grid; grid-template-columns: minmax(160px, 220px) minmax(120px, 1fr) 150px; align-items: center; gap: 12px; border-radius: 8px; padding: 8px 7px; }
.profile-commission-row:hover { background: rgba(99, 102, 241, 0.065); }
.profile-commission-copy { display: grid; gap: 2px; min-width: 0; }
.profile-commission-copy strong { overflow: hidden; color: #e2e8f0; font-size: 0.82rem; text-overflow: ellipsis; white-space: nowrap; }
.profile-commission-copy small { overflow: hidden; color: #64748b; font-size: 0.78rem; text-overflow: ellipsis; white-space: nowrap; }
.profile-commission-bar { display: block; height: 14px; overflow: hidden; border-radius: 999px; background: rgba(148, 163, 184, 0.08); }
.profile-commission-bar > span { position: relative; display: block; height: 100%; overflow: hidden; border-radius: inherit; background: linear-gradient(90deg, rgba(99, 102, 241, 0.45), rgba(168, 85, 247, 0.4)); }
.profile-commission-bar > span > i { position: absolute; inset: 0 auto 0 0; min-width: 2px; border-radius: inherit; background: linear-gradient(90deg, #d97706, #fbbf24); box-shadow: 0 0 12px rgba(251, 191, 36, 0.28); }
.profile-commission-values { display: grid; justify-items: end; gap: 1px; }
.profile-commission-values strong { color: #fbbf24; font-size: 0.92rem; font-variant-numeric: tabular-nums; }
.profile-commission-values small { color: #64748b; font-size: 0.78rem; white-space: nowrap; }
.profile-data-intro { margin: 0; color: #94a3b8; font-size: 0.83rem; line-height: 1.65; }
.profile-comparison-legend { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 15px; color: #94a3b8; font-size: 0.78rem; }
.profile-comparison-legend span { display: inline-flex; align-items: center; gap: 5px; }
.profile-comparison-legend i { display: inline-block; width: 9px; height: 9px; border-radius: 3px; }
.profile-comparison-legend i.is-spend { background: linear-gradient(135deg, #6366f1, #a855f7); }
.profile-comparison-legend i.is-commission { background: linear-gradient(135deg, #f59e0b, #fbbf24); }
.profile-comparison-legend small { margin-left: auto; color: #64748b; font-size: 0.78rem; }
.profile-comparison-chart { display: grid; gap: 2px; padding: 8px; border: 1px solid rgba(99, 102, 241, 0.17); border-radius: 11px; background: rgba(7, 8, 20, 0.42); }
.profile-comparison-row { display: grid; grid-template-columns: minmax(135px, 170px) minmax(150px, 1fr) 112px; align-items: center; gap: 12px; padding: 9px 7px; border-radius: 8px; }
.profile-comparison-row:hover { background: rgba(99, 102, 241, 0.07); }
.profile-comparison-person,
.profile-table-user,
.profile-boss-person { display: flex; align-items: center; gap: 8px; min-width: 0; }
.profile-data-avatar { display: grid; width: 30px; height: 30px; flex: 0 0 auto; place-items: center; overflow: hidden; border: 1px solid rgba(139, 92, 246, 0.24); border-radius: 9px; background: linear-gradient(135deg, rgba(99, 102, 241, 0.45), rgba(168, 85, 247, 0.38)); color: #eef2ff; font-size: 0.79rem; font-weight: 800; }
.profile-data-avatar img { width: 100%; height: 100%; object-fit: cover; }
.profile-comparison-person > div,
.profile-table-user > div,
.profile-boss-person > div { display: grid; gap: 2px; min-width: 0; }
.profile-comparison-person strong,
.profile-table-user strong,
.profile-boss-person strong { overflow: hidden; color: #e2e8f0; font-size: 0.83rem; text-overflow: ellipsis; white-space: nowrap; }
.profile-comparison-person small,
.profile-table-user small,
.profile-boss-person small { overflow: hidden; color: #64748b; font-size: 0.78rem; text-overflow: ellipsis; white-space: nowrap; }
.profile-comparison-bars { display: grid; gap: 5px; }
.profile-comparison-bars > span { display: block; height: 8px; overflow: hidden; border-radius: 999px; background: rgba(148, 163, 184, 0.1); }
.profile-comparison-bars i { display: block; height: 100%; min-width: 0; border-radius: inherit; transition: width 0.3s ease; }
.profile-comparison-bars .is-spend i { background: linear-gradient(90deg, #6366f1, #a855f7); box-shadow: 0 0 10px rgba(139, 92, 246, 0.22); }
.profile-comparison-bars .is-commission i { background: linear-gradient(90deg, #d97706, #fbbf24); box-shadow: 0 0 10px rgba(251, 191, 36, 0.2); }
.profile-comparison-values { display: grid; justify-items: end; gap: 2px; }
.profile-comparison-values strong { color: #e2e8f0; font-size: 0.85rem; font-variant-numeric: tabular-nums; }
.profile-comparison-values span { color: var(--ph-gold); font-size: 0.78rem; }
.profile-data-table-wrap { overflow-x: auto; border: 1px solid rgba(99, 102, 241, 0.17); border-radius: 11px; background: rgba(7, 8, 20, 0.36); -webkit-overflow-scrolling: touch; }
.profile-data-table { width: 100%; min-width: 760px; border-collapse: collapse; }
.profile-data-table th { padding: 9px 10px; border-bottom: 1px solid rgba(99, 102, 241, 0.2); background: rgba(99, 102, 241, 0.08); color: #94a3b8; font-size: 0.78rem; font-weight: 700; text-align: left; white-space: nowrap; }
.profile-data-table td { padding: 10px; border-top: 1px solid rgba(148, 163, 184, 0.075); color: #cbd5e1; font-size: 0.78rem; vertical-align: middle; }
.profile-data-table tbody tr:first-child td { border-top: 0; }
.profile-data-table tbody tr:hover { background: rgba(99, 102, 241, 0.065); }
.profile-data-table td > small { display: block; margin-top: 2px; color: #64748b; font-size: 0.78rem; white-space: nowrap; }
.profile-data-table td > strong { color: #e2e8f0; font-variant-numeric: tabular-nums; }
.profile-data-table .is-gold { color: var(--ph-gold); }
.profile-table-permissions { display: flex; flex-wrap: wrap; gap: 3px; }
.profile-table-permissions b { padding: 1px 4px; border-radius: 4px; background: rgba(99, 102, 241, 0.14); color: #a5b4fc; font-size: 0.78rem; font-weight: 600; }
.profile-table-state { display: inline-flex; align-items: center; gap: 4px; padding: 3px 6px; border-radius: 999px; background: rgba(100, 116, 139, 0.11); color: #94a3b8; font-size: 0.78rem; white-space: nowrap; }
.profile-table-state.is-active { background: rgba(16, 185, 129, 0.1); color: #6ee7b7; }
.profile-data-table-hint { display: none; margin: 0; color: #7dd3fc; font-size: 0.78rem; }
.profile-data-note { margin: 0; color: #5e6b80; font-size: 0.78rem; line-height: 1.6; }
.profile-boss-data-card { gap: 14px; }
.profile-boss-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 7px; }
.profile-boss-summary > div { padding: 10px; border: 1px solid rgba(99, 102, 241, 0.15); border-radius: 10px; background: rgba(8, 9, 21, 0.48); display: grid; gap: 3px; }
.profile-boss-summary span { color: #64748b; font-size: 0.78rem; }
.profile-boss-summary strong { overflow: hidden; color: #f8fafc; font-size: 1.03rem; text-overflow: ellipsis; white-space: nowrap; }
.profile-boss-summary small { color: #4b5563; font-size: 0.78rem; }
.profile-boss-summary .is-income strong { color: var(--ph-gold); }
.profile-boss-chart { display: grid; gap: 2px; padding: 8px; border: 1px solid rgba(99, 102, 241, 0.17); border-radius: 11px; background: rgba(7, 8, 20, 0.42); }
.profile-boss-chart-row { display: grid; grid-template-columns: minmax(135px, 180px) minmax(130px, 1fr) 90px; align-items: center; gap: 12px; padding: 8px 7px; border-radius: 8px; }
.profile-boss-chart-row:hover { background: rgba(99, 102, 241, 0.07); }
.profile-boss-track { display: block; height: 11px; overflow: hidden; border-radius: 999px; background: rgba(148, 163, 184, 0.1); }
.profile-boss-track i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #6366f1, #a855f7); box-shadow: 0 0 12px rgba(139, 92, 246, 0.26); }
.profile-boss-chart-row > strong { color: var(--ph-gold); font-size: 0.83rem; text-align: right; font-variant-numeric: tabular-nums; }

/* 我的订单：余额、亲密度与头像数据导图 */
.personal-order-hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 14px; }
.personal-balance-hero,
.personal-intimacy-hero {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(99, 102, 241, 0.24);
  border-radius: 18px;
  padding: 18px;
  background: radial-gradient(circle at 100% 0%, rgba(168, 85, 247, 0.16), transparent 42%), linear-gradient(145deg, rgba(22, 23, 48, 0.96), rgba(9, 10, 22, 0.98));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.045), 0 18px 40px rgba(0, 0, 0, 0.24);
}
.personal-balance-hero::after { content: ''; position: absolute; right: -54px; bottom: -74px; width: 190px; height: 190px; border-radius: 50%; background: radial-gradient(circle, rgba(251, 191, 36, 0.2), transparent 67%); pointer-events: none; }
.personal-order-hero-head { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.personal-live-chip { border: 1px solid rgba(52, 211, 153, 0.28); border-radius: 999px; padding: 3px 8px; background: rgba(16, 185, 129, 0.09); color: #6ee7b7; font-size: 0.78rem; }
.personal-balance-amount { position: relative; z-index: 1; display: block; margin: 8px 0 10px; color: #fbbf24; font-size: clamp(2.2rem, 4vw, 3.2rem); font-weight: 950; line-height: 1; letter-spacing: -0.035em; text-shadow: 0 0 28px rgba(251, 191, 36, 0.2); font-variant-numeric: tabular-nums; }
.personal-balance-chips { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 7px; }
.personal-balance-chips > span { display: inline-flex; align-items: baseline; gap: 5px; border: 1px solid rgba(148, 163, 184, 0.13); border-radius: 9px; padding: 6px 9px; background: rgba(255, 255, 255, 0.03); }
.personal-balance-chips small { color: #7c89a8; font-size: 0.78rem; }
.personal-balance-chips b { color: #e2e8f0; font-size: 0.87rem; font-variant-numeric: tabular-nums; }
.personal-hero-recharge { position: relative; z-index: 1; margin-top: 13px; border: 1px solid rgba(251, 191, 36, 0.32); border-radius: 10px; padding: 8px 13px; background: linear-gradient(135deg, rgba(251, 191, 36, 0.2), rgba(245, 158, 11, 0.1)); color: #fde68a; font: inherit; font-size: 0.81rem; font-weight: 800; cursor: pointer; transition: transform 0.18s ease, border-color 0.18s ease; }
.personal-hero-recharge:hover { transform: translateY(-1px); border-color: rgba(251, 191, 36, 0.6); }
.personal-intimacy-hero { --intimacy-color: #94a3b8; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 15px; }
.personal-intimacy-hero.tone-green { --intimacy-color: #34d399; }
.personal-intimacy-hero.tone-cyan { --intimacy-color: #22d3ee; }
.personal-intimacy-hero.tone-violet { --intimacy-color: #a78bfa; }
.personal-intimacy-hero.tone-gold { --intimacy-color: #fbbf24; }
.personal-intimacy-hero.tone-rainbow { --intimacy-color: #f472b6; }
.personal-intimacy-ring { display: grid; width: 92px; height: 92px; flex: 0 0 92px; place-items: center; border-radius: 50%; background: conic-gradient(var(--intimacy-color) 0 var(--intimacy-progress), rgba(148, 163, 184, 0.13) var(--intimacy-progress) 100%); box-shadow: 0 0 24px color-mix(in srgb, var(--intimacy-color) 28%, transparent); }
.personal-intimacy-ring > div { display: grid; width: 76px; height: 76px; place-content: center; justify-items: center; border-radius: 50%; background: #0c0d1d; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05); }
.personal-intimacy-ring b { color: #fff; font-size: 1.43rem; line-height: 1; font-variant-numeric: tabular-nums; }
.personal-intimacy-ring small { margin-top: 2px; color: #64748b; font-size: 0.78rem; }
.personal-intimacy-copy { display: grid; gap: 4px; min-width: 0; }
.personal-intimacy-copy > strong { color: #fff; font-size: 1.36rem; line-height: 1.2; }
.personal-intimacy-copy > small { overflow: hidden; color: #94a3b8; font-size: 0.78rem; text-overflow: ellipsis; white-space: nowrap; }
.personal-intimacy-copy > em { color: #64748b; font-size: 0.78rem; font-style: normal; line-height: 1.45; }
.personal-intimacy-track { display: block; height: 6px; overflow: hidden; margin-top: 3px; border-radius: 999px; background: rgba(148, 163, 184, 0.13); }
.personal-intimacy-track i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, color-mix(in srgb, var(--intimacy-color) 68%, #6366f1), var(--intimacy-color)); box-shadow: 0 0 12px color-mix(in srgb, var(--intimacy-color) 45%, transparent); }
.personal-rank-visual.is-intimacy-companion { display: grid; width: 46px; height: 46px; flex: 0 0 46px; place-items: center; overflow: hidden; border: 1px solid color-mix(in srgb, var(--intimacy-color) 46%, transparent); border-radius: 50%; background: rgba(99, 102, 241, 0.18); color: #e0e7ff; font-size: 0.97rem; font-weight: 850; }
.personal-rank-visual.is-intimacy-companion img { width: 100%; height: 100%; object-fit: cover; }

.personal-order-analytics { display: grid; gap: 13px; border: 1px solid rgba(99, 102, 241, 0.22); border-radius: 18px; padding: 17px; background: radial-gradient(circle at 0% 0%, rgba(99, 102, 241, 0.11), transparent 38%), linear-gradient(150deg, rgba(17, 18, 40, 0.96), rgba(8, 9, 20, 0.98)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04); }
.personal-analytics-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.personal-analytics-head h2 { margin: 2px 0 0; color: #fff; font-size: 1.22rem; }
.personal-analytics-head p { margin: 5px 0 0; color: #7c89a8; font-size: 0.78rem; line-height: 1.55; }
.personal-analytics-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.personal-analytics-column { display: grid; grid-template-rows: auto 1fr; gap: 10px; min-width: 0; border: 1px solid rgba(148, 163, 184, 0.1); border-radius: 14px; padding: 12px; background: rgba(8, 9, 20, 0.46); }
.personal-analytics-column:nth-child(1) { border-color: rgba(251, 191, 36, 0.18); background: linear-gradient(155deg, rgba(120, 78, 16, 0.1), rgba(8, 9, 20, 0.5)); }
.personal-analytics-column header { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.personal-analytics-column header span { color: #64748b; font-size: 0.78rem; letter-spacing: 0.04em; }
.personal-analytics-column h3 { margin: 2px 0 0; color: #eef2ff; font-size: 0.94rem; line-height: 1.35; }
.personal-analytics-column header > b { flex: 0 0 auto; border: 1px solid rgba(139, 92, 246, 0.22); border-radius: 999px; padding: 2px 7px; background: rgba(139, 92, 246, 0.08); color: #c4b5fd; font-size: 0.78rem; font-weight: 750; }
.personal-rank-list { display: grid; align-content: start; gap: 3px; }
.personal-rank-row { display: grid; grid-template-columns: 20px 34px minmax(0, 1fr) auto; align-items: center; gap: 7px; border-radius: 10px; padding: 6px; transition: background 0.16s ease; }
.personal-rank-row:hover { background: rgba(99, 102, 241, 0.07); }
.personal-rank-row.is-leader { background: linear-gradient(90deg, rgba(251, 191, 36, 0.075), transparent); }
.personal-rank-no { display: grid; width: 19px; height: 19px; place-items: center; border-radius: 6px; background: rgba(99, 102, 241, 0.1); color: #8190b3; font-size: 0.78rem; font-weight: 900; }
.personal-rank-row.is-leader .personal-rank-no { background: linear-gradient(135deg, #f59e0b, #fbbf24); color: #211304; box-shadow: 0 0 12px rgba(251, 191, 36, 0.24); }
.personal-rank-visual { display: grid; width: 34px; height: 34px; place-items: center; overflow: hidden; border: 1px solid rgba(139, 92, 246, 0.22); border-radius: 10px; background: linear-gradient(135deg, rgba(99, 102, 241, 0.32), rgba(168, 85, 247, 0.22)); color: #e0e7ff; font-size: 0.81rem; font-weight: 850; }
.personal-rank-visual.is-person { border-radius: 50%; }
.personal-rank-row.is-leader .personal-rank-visual { width: 41px; height: 41px; margin: -3px 0; box-shadow: 0 0 0 2px rgba(251, 191, 36, 0.14); }
.personal-rank-visual img { width: 100%; height: 100%; object-fit: cover; }
.personal-rank-copy { display: grid; gap: 1px; min-width: 0; }
.personal-rank-copy strong { overflow: hidden; color: #e2e8f0; font-size: 0.79rem; text-overflow: ellipsis; white-space: nowrap; }
.personal-rank-row.is-leader .personal-rank-copy strong { color: #fff; font-size: 0.85rem; }
.personal-rank-copy small { overflow: hidden; color: #64748b; font-size: 0.78rem; text-overflow: ellipsis; white-space: nowrap; }
.personal-rank-row > b { color: #a5b4fc; font-size: 0.78rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.personal-analytics-empty { display: grid; justify-items: start; gap: 3px; padding: 14px 5px; color: #64748b; }
.personal-analytics-empty strong { color: #94a3b8; font-size: 0.83rem; }
.personal-analytics-empty span { font-size: 0.78rem; }
.personal-referrer-card { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 11px; border: 1px solid rgba(56, 189, 248, 0.17); border-radius: 13px; padding: 11px 13px; background: linear-gradient(135deg, rgba(14, 165, 233, 0.075), rgba(8, 9, 20, 0.42)); }
.personal-referrer-card.is-empty { border-color: rgba(148, 163, 184, 0.12); background: rgba(8, 9, 20, 0.36); }
.personal-rank-visual.is-referrer { width: 42px; height: 42px; border-radius: 50%; border-color: rgba(125, 211, 252, 0.28); background: linear-gradient(135deg, rgba(14, 165, 233, 0.3), rgba(99, 102, 241, 0.24)); }
.personal-referrer-card > div { display: grid; gap: 2px; min-width: 0; }
.personal-referrer-card > div > span { color: #7dd3fc; font-size: 0.78rem; letter-spacing: 0.05em; }
.personal-referrer-card > div > strong { color: #f0f9ff; font-size: 0.94rem; }
.personal-referrer-card > div > strong em { margin-left: 6px; border: 1px solid rgba(125, 211, 252, 0.22); border-radius: 999px; padding: 1px 6px; background: rgba(14, 165, 233, 0.08); color: #7dd3fc; font-size: 0.78rem; font-style: normal; font-weight: 650; vertical-align: middle; }
.personal-referrer-card > div > small { overflow: hidden; color: #64748b; font-size: 0.78rem; text-overflow: ellipsis; white-space: nowrap; }
.personal-referrer-card > b { color: #7dd3fc; font-size: 0.78rem; white-space: nowrap; }

.profile-modal .app-modal-card {
  color: #e5e7eb;
  border: 1px solid rgba(99, 102, 241, 0.38);
  background: radial-gradient(circle at 100% 0%, rgba(168, 85, 247, 0.2), transparent 35%), linear-gradient(150deg, #12142b, #090a16);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.58);
}
.profile-modal .app-modal-head h2 { color: #fff; }
.profile-modal .app-modal-head p, .profile-modal .app-modal-body { color: #94a3b8; }
.profile-modal .app-modal-close { color: #cbd5e1; }
.profile-points-progress { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; padding: 5px 0 17px; border-bottom: 1px solid rgba(99, 102, 241, 0.17); }
.profile-points-progress .profile-credit-gauge { flex: 0 1 140px; }
.profile-points-list-head { display: flex; align-items: center; justify-content: space-between; padding: 13px 0 8px; }
.profile-points-list-head strong { color: #e2e8f0; font-size: 0.92rem; }
.profile-points-list-head span { color: #64748b; font-size: 0.78rem; }
.profile-points-list { display: grid; gap: 5px; max-height: 42vh; overflow: auto; padding-right: 4px; }
.profile-points-row { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; align-items: center; gap: 8px; padding: 8px; border-radius: 7px; background: rgba(8, 9, 21, 0.5); }
.profile-points-type { padding: 2px 4px; border-radius: 4px; background: rgba(99, 102, 241, 0.16); color: #a5b4fc; font-size: 0.78rem; text-align: center; }
.profile-points-row div { display: grid; gap: 2px; min-width: 0; }
.profile-points-row strong { overflow: hidden; color: #cbd5e1; font-size: 0.78rem; text-overflow: ellipsis; white-space: nowrap; }
.profile-points-row small { color: #64748b; font-size: 0.78rem; }
.profile-points-row > b { font-size: 0.85rem; }
.profile-points-row > b.is-positive { color: #6ee7b7; }
.profile-points-row > b.is-negative { color: #fda4af; }
.profile-points-empty { padding: 16px; color: #64748b; font-size: 0.81rem; text-align: center; }
.profile-tag-picker { display: grid; gap: 12px; }
.profile-tag-picker-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; max-height: 48vh; overflow: auto; padding-right: 4px; }
.profile-tag-option { position: relative; display: flex; align-items: center; gap: 7px; min-width: 0; padding: 7px; border: 1px solid rgba(148, 163, 184, 0.15); border-radius: 9px; background: rgba(8, 9, 21, 0.5); cursor: pointer; }
.profile-tag-option:hover { border-color: rgba(99, 102, 241, 0.45); }
.profile-tag-option input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.profile-tag-option:has(input:checked) { border-color: rgba(168, 85, 247, 0.72); background: rgba(99, 102, 241, 0.16); box-shadow: 0 0 0 2px rgba(168, 85, 247, 0.1); }
.profile-tag-option-visual { display: grid; width: 30px; height: 30px; flex: 0 0 auto; place-items: center; overflow: hidden; border-radius: 8px; background: rgba(99, 102, 241, 0.2); color: #c7d2fe; font-size: 0.83rem; }
.profile-tag-option-visual img { width: 100%; height: 100%; object-fit: cover; }
.profile-tag-option b { overflow: hidden; color: #cbd5e1; font-size: 0.81rem; text-overflow: ellipsis; white-space: nowrap; }
.profile-tag-picker-actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 10px; border-top: 1px solid rgba(99, 102, 241, 0.17); }
.profile-tag-picker-actions span { color: #64748b; font-size: 0.78rem; }
.profile-tag-picker-actions b { color: #c4b5fd; }

.public-moments-section { display: grid; gap: 10px; }
.public-moments-section .section-heading-row h2 { color: #f8fafc; }
.public-moments-feed { display: grid; gap: 10px; }
.public-moments-locked { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 16px; border: 1px solid rgba(99, 102, 241, 0.28); background: rgba(18, 18, 42, 0.7); color: #94a3b8; }
.public-moments-locked strong { color: #f8fafc; }
.public-moments-locked span { flex: 1 1 280px; font-size: 0.86rem; }

.order-post-modal .app-modal-card { width: min(760px, calc(100vw - 24px)); }
.order-post-form { display: grid; gap: 12px; }
.order-post-intro { display: flex; align-items: center; gap: 11px; padding: 12px; border: 1px solid rgba(52, 211, 153, 0.24); border-radius: 12px; background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(99, 102, 241, 0.09)); }
.order-post-intro-icon { display: grid; width: 38px; height: 38px; flex: 0 0 auto; place-items: center; border-radius: 12px; background: linear-gradient(135deg, rgba(16, 185, 129, 0.3), rgba(99, 102, 241, 0.28)); color: #d1fae5; }
.order-post-intro-icon svg { width: 20px; height: 20px; }
.order-post-intro > div { display: grid; gap: 3px; }
.order-post-intro strong { color: #f0fdfa; font-size: 0.99rem; }
.order-post-intro small { color: #94a3b8; font-size: 0.78rem; }
.order-post-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.order-post-form .modal-actions { margin-top: 2px; }

.game-detail-actions { align-items: center; gap: 12px; }
.game-order-fab {
  position: relative;
  display: grid;
  width: 108px;
  height: 108px;
  flex: 0 0 108px;
  place-content: center;
  justify-items: center;
  gap: 2px;
  overflow: hidden;
  border: 1px solid rgba(129, 140, 248, 0.74);
  border-radius: 50%;
  padding: 8px;
  background:
    radial-gradient(circle at 34% 22%, rgba(255, 255, 255, 0.22), transparent 29%),
    radial-gradient(circle at 50% 120%, rgba(56, 189, 248, 0.4), transparent 46%),
    linear-gradient(145deg, #4f46e5, #7c3aed 52%, #0ea5e9);
  color: #fff;
  font: inherit;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 0 0 6px rgba(99, 102, 241, 0.1), 0 18px 38px rgba(49, 46, 129, 0.42), 0 0 34px rgba(124, 58, 237, 0.26);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}
.game-order-fab::after { content: ''; position: absolute; inset: 8px; border: 1px dashed rgba(255, 255, 255, 0.3); border-radius: 50%; pointer-events: none; }
.game-order-fab:hover { transform: translateY(-3px) scale(1.03); filter: brightness(1.08); box-shadow: 0 0 0 8px rgba(99, 102, 241, 0.12), 0 24px 48px rgba(49, 46, 129, 0.5), 0 0 48px rgba(56, 189, 248, 0.34); }
.game-order-fab:focus-visible { outline: 2px solid #bae6fd; outline-offset: 4px; }
.game-order-fab.is-locked { background: radial-gradient(circle at 34% 22%, rgba(255, 255, 255, 0.16), transparent 29%), linear-gradient(145deg, #475569, #6d28d9 55%, #1e293b); }
.game-order-fab-icon { display: grid; width: 25px; height: 25px; place-items: center; }
.game-order-fab-icon svg { width: 23px; height: 23px; }
.game-order-fab strong { position: relative; z-index: 1; font-size: 0.9rem; letter-spacing: 0.02em; }
.game-order-fab small { position: relative; z-index: 1; color: rgba(255, 255, 255, 0.72); font-size: 0.78rem; }

body[data-app-view] .profile-home .button-primary { border-color: rgba(139, 92, 246, 0.62); background: linear-gradient(135deg, #6366f1, #a855f7); color: #fff; box-shadow: 0 8px 22px rgba(99, 102, 241, 0.26); }
body[data-app-view] .profile-home .button-primary:hover { box-shadow: 0 0 26px rgba(168, 85, 247, 0.45); transform: translateY(-1px); }
body[data-app-view] .profile-home .button-secondary,
body[data-app-view] .profile-home .button-quiet { border-color: rgba(99, 102, 241, 0.3); background: rgba(18, 20, 43, 0.72); color: #dbe4ff; }
body[data-app-view] .profile-home .button-secondary:hover,
body[data-app-view] .profile-home .button-quiet:hover { border-color: rgba(168, 85, 247, 0.55); color: #fff; }

@media (max-width: 1020px) {
  .profile-home-avatar-wrap { width: 172px; height: 172px; }
  .profile-moment-switch-card { grid-template-columns: minmax(0, 1fr) auto; }
  .profile-moment-publish { grid-column: 2; }
  .profile-moments-layout { grid-template-columns: minmax(0, 1fr) 250px; }
  .profile-workbench-top { grid-template-columns: minmax(0, 1fr); }
  .profile-referral-metrics,
  .profile-boss-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
  .personal-home-toolbar { position: static; }
  .profile-home-hero { grid-template-columns: auto minmax(0, 1fr); }
  .profile-home-avatar-wrap { width: 158px; height: 158px; }
  .personal-order-hero { grid-template-columns: 1fr; }
  .personal-analytics-grid { grid-template-columns: 1fr; }
  .profile-commission-overview { grid-template-columns: 118px minmax(0, 1fr); gap: 12px; }
  .profile-commission-donut { width: 112px; height: 112px; }
  .profile-commission-donut > div { width: 90px; height: 90px; }
  .profile-commission-kpis { grid-template-columns: 1fr; }
  .profile-commission-row { grid-template-columns: minmax(120px, 170px) minmax(90px, 1fr) 130px; gap: 8px; }
  .profile-home-hero-actions { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; }
  .profile-moment-switch-card { grid-template-columns: 1fr; }
  .profile-moment-switch { justify-self: start; }
  .profile-moment-publish { grid-column: auto; justify-self: start; }
  .profile-moments-layout { grid-template-columns: minmax(0, 1fr); }
  .profile-moments-side { position: static; grid-template-columns: 1fr 1fr; }
  .profile-side-privacy { grid-column: 1 / -1; }
  .profile-base-grid { grid-template-columns: 1fr; }
  .profile-qr-card { justify-self: start; }
}

@media (max-width: 640px) {
  .personal-home-toolbar { align-items: center; gap: 6px; padding: 6px; }
  .profile-home .personal-tab-nav {
    flex-wrap: nowrap;
    gap: 2px;
    overflow-x: auto;
    scrollbar-width: none;
    overscroll-behavior-x: contain;
  }
  .profile-home .personal-tab-nav::-webkit-scrollbar { display: none; }
  .profile-home .personal-tab-button { gap: 3px; min-height: 34px; padding: 6px 5px; font-size: 0.78rem; }
  .profile-home .personal-tab-button b { display: none; }
  .profile-score-orb { width: 46px; height: 46px; flex-basis: 46px; }
  .profile-score-orb .profile-credit-gauge-visual { width: 46px; height: 46px; }
  .profile-home-hero { grid-template-columns: 1fr; padding: 16px; gap: 14px; }
  .profile-home-avatar-column { justify-items: center; }
  .profile-home-avatar-wrap { width: 142px; height: 142px; }
  .profile-home-avatar { border-radius: 34px; font-size: 3.46rem; }
  .profile-moment-switch-card { padding: 13px; }
  .profile-moment-switch { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
  .profile-moment-switch button { justify-content: center; }
  .profile-moment-publish { width: 100%; }
  .order-post-form-grid { grid-template-columns: 1fr; }
  .game-order-fab { width: 96px; height: 96px; flex-basis: 96px; }
  .profile-credit-strip,
  .profile-credit-detail { justify-content: center; gap: 9px; }
  .profile-credit-gauge { flex: 1 1 116px; min-width: 112px; max-width: 136px; }
  .profile-credit-gauge-core strong { font-size: 1.38rem; }
  .profile-credit-gauge-core span { font-size: 0.78rem; }
  .profile-credit-gauge-core small { font-size: 0.78rem; }
  .profile-credit-gauge-tier { font-size: 0.78rem; }
  .profile-credit-gauge-note { font-size: 0.78rem; }
  .profile-moments-side { grid-template-columns: 1fr; }
  .profile-side-privacy { grid-column: auto; }
  .profile-stat-grid { grid-template-columns: 1fr 1fr; }
  .profile-composer-actions { align-items: flex-start; flex-wrap: wrap; }
  .profile-composer-actions > .button { margin-left: auto; }
  .profile-comparison-row { grid-template-columns: minmax(110px, 1fr) 90px; gap: 7px; }
  .profile-comparison-bars { grid-column: 1 / -1; grid-row: 2; }
  .profile-comparison-values { grid-column: 2; grid-row: 1; }
  .profile-boss-chart-row { grid-template-columns: minmax(110px, 1fr) 84px; gap: 7px; }
  .profile-boss-track { grid-column: 1 / -1; grid-row: 2; }
  .profile-boss-chart-row > strong { grid-column: 2; grid-row: 1; }
  .profile-referral-metrics,
  .profile-boss-summary { grid-template-columns: 1fr 1fr; }
  .profile-data-table-hint { display: block; }
  .profile-calendar-day { min-height: 74px; padding: 5px; gap: 3px; }
  .profile-calendar-daytop b { font-size: 0.78rem; }
  .profile-calendar-count { padding: 1px 4px; font-size: 0.78rem; }
  .profile-calendar-mini { gap: 3px; }
  .profile-calendar-mini-avatar { width: 13px; height: 13px; flex-basis: 13px; border-radius: 4px; font-size: 0.78rem; }
  .profile-calendar-mini-copy strong { font-size: 0.78rem; }
  .profile-calendar-mini-copy small { display: none; }
  .profile-calendar-net { padding: 1px 3px; font-size: 0.78rem; }
  .profile-calendar-order { grid-template-columns: minmax(0, 1fr) auto; align-items: start; }
  .profile-calendar-people { grid-column: 1 / -1; grid-row: 1; }
  .profile-calendar-order-copy { grid-column: 1; grid-row: 2; }
  .profile-calendar-amount { grid-column: 2; grid-row: 2; }
  .profile-base-fields { grid-template-columns: 1fr; }
  .profile-tag-picker-grid { grid-template-columns: 1fr 1fr; }
  .personal-balance-hero, .personal-intimacy-hero { padding: 14px; border-radius: 15px; }
  .personal-balance-amount { font-size: 2.54rem; }
  .personal-intimacy-hero { grid-template-columns: auto minmax(0, 1fr); gap: 11px; }
  .personal-rank-visual.is-intimacy-companion { display: none; }
  .personal-intimacy-ring { width: 78px; height: 78px; flex-basis: 78px; }
  .personal-intimacy-ring > div { width: 64px; height: 64px; }
  .personal-intimacy-ring b { font-size: 1.29rem; }
  .personal-order-analytics { padding: 13px; border-radius: 15px; }
  .personal-analytics-head { align-items: flex-start; flex-direction: column; }
  .personal-referrer-card { grid-template-columns: auto minmax(0, 1fr); }
  .personal-referrer-card > b { grid-column: 2; }
  .personal-rank-row { grid-template-columns: 19px 34px minmax(0, 1fr) auto; }
  .profile-commission-overview { grid-template-columns: 1fr; justify-items: center; }
  .profile-commission-kpis { width: 100%; }
  .profile-commission-row { grid-template-columns: minmax(0, 1fr) auto; }
  .profile-commission-bar { grid-column: 1 / -1; grid-row: 2; }
  .profile-commission-values { grid-column: 2; grid-row: 1; }
  .profile-commission-legend small { margin-left: 0; }
}

body[data-app-view="personalCenter"] #account-home-button {
  display: none;
}

