.app-profile-body {
  min-height: 100dvh;
  margin: 0;
  background: #f8fbff;
}

.app-profile-shell {
  min-height: 100dvh;
  display: grid;
  place-items: start center;
  padding: 0 clamp(6px, 1.5vw, 14px);
  color: #071230;
  background:
    radial-gradient(circle at 20% 0%, rgb(95 151 255 / 0.11), transparent 22rem),
    radial-gradient(circle at 84% 12%, rgb(126 104 255 / 0.1), transparent 24rem),
    linear-gradient(180deg, #f7fbff 0%, #ffffff 46%, #f9fbff 100%);
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

.app-profile-device {
  position: relative;
  width: min(100%, 760px);
  min-height: 100dvh;
  padding: 18px 18px calc(114px + env(safe-area-inset-bottom));
  overflow: hidden;
  background:
    radial-gradient(circle at 78% 5%, rgb(48 117 255 / 0.08), transparent 15rem),
    linear-gradient(180deg, #ffffff 0%, #fbfdff 62%, #ffffff 100%);
}

.app-profile-top {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 48px;
  align-items: center;
  min-height: 86px;
  padding-top: 10px;
}

.app-profile-top-plain {
  min-height: 0;
  padding: 0;
}

.app-profile-title {
  margin: 0;
  color: #081334;
  font-size: 25px;
  font-weight: 840;
  line-height: 1;
  text-align: center;
  letter-spacing: 0;
}

.app-profile-icon-btn {
  position: relative;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid #e0e8f6;
  border-radius: 14px;
  color: #071536;
  background: rgb(255 255 255 / 0.9);
  box-shadow: 0 12px 26px rgb(47 74 128 / 0.12);
  text-decoration: none;
}

.app-profile-icon-btn svg {
  width: 23px;
  height: 23px;
}

.app-profile-badge-dot {
  position: absolute;
  top: 9px;
  right: 9px;
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #ff3d33;
  box-shadow: 0 0 0 2px #fff;
}

.app-profile-card {
  position: relative;
  min-height: 276px;
  margin-top: 0;
  overflow: hidden;
  border: 1px solid rgb(196 210 248 / 0.7);
  border-radius: 24px;
  padding: 28px 22px 22px;
  background:
    radial-gradient(circle at 86% 68%, rgb(55 100 255 / 0.22), transparent 32%),
    radial-gradient(circle at 40% 10%, rgb(255 255 255 / 0.96), transparent 30%),
    linear-gradient(135deg, #eef4ff 0%, #edf3ff 48%, #dbe6ff 100%);
  box-shadow: 0 18px 44px rgb(47 83 151 / 0.14);
}

.app-profile-card-settings {
  position: absolute;
  top: 28px;
  right: 22px;
  z-index: 8;
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  color: #68758d;
  background: transparent;
  text-decoration: none;
}

.app-profile-card-settings svg {
  width: 25px;
  height: 25px;
}

.app-profile-main-row {
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  align-items: center;
  gap: 17px;
  padding-right: 42px;
}

.app-profile-avatar-wrap {
  position: relative;
  width: 94px;
  height: 94px;
}

.app-profile-avatar-ring {
  display: grid;
  width: 94px;
  height: 94px;
  place-items: center;
  border: 3px solid rgb(255 255 255 / 0.96);
  border-radius: 999px;
  background: rgb(255 255 255 / 0.36);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.9), 0 15px 28px rgb(61 91 160 / 0.14);
}

.app-profile-avatar {
  display: grid;
  width: 68px;
  height: 68px;
  place-items: center;
  overflow: hidden;
  border-radius: 24px;
  color: #fff;
  background: linear-gradient(145deg, #6eb1ff 0%, #2569f0 55%, #6d69ff 100%);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.55), 0 14px 24px rgb(37 94 221 / 0.26);
}

.app-profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.app-profile-avatar svg {
  width: 45px;
  height: 45px;
}

.app-profile-avatar-edit {
  position: absolute;
  right: -1px;
  bottom: 2px;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 0;
  border-radius: 999px;
  color: #071536;
  background: #fff;
  box-shadow: 0 8px 18px rgb(49 74 132 / 0.18);
}

.app-profile-avatar-edit svg {
  width: 22px;
  height: 22px;
}

.app-profile-name {
  min-width: 0;
}

.app-profile-name h2 {
  margin: 0;
  overflow: hidden;
  color: #0a1432;
  font-size: 22px;
  font-weight: 830;
  line-height: 1.18;
  letter-spacing: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-profile-name p {
  margin: 10px 0 0;
  overflow: hidden;
  color: #4f6183;
  font-size: 14px;
  font-weight: 520;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-profile-upgrade-pill {
  align-self: start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  border: 1px solid rgb(255 255 255 / 0.82);
  border-radius: 999px;
  padding: 0 13px;
  color: #6153ff;
  background: rgb(255 255 255 / 0.76);
  box-shadow: inset 0 1px 0 #fff, 0 12px 24px rgb(77 95 170 / 0.13);
  font-size: 13px;
  font-weight: 760;
  text-decoration: none;
  white-space: nowrap;
}

.app-profile-upgrade-pill svg {
  width: 20px;
  height: 20px;
}

.app-profile-crown-art {
  position: absolute;
  top: 56px;
  right: 26px;
  bottom: auto;
  z-index: 3;
  width: 132px;
  height: 104px;
  opacity: 1;
  filter:
    drop-shadow(0 18px 20px rgb(74 91 190 / 0.22))
    saturate(1.08)
    contrast(1.05);
  pointer-events: none;
}

.app-profile-crown-art img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.app-profile-crown-art::after {
  content: "";
  position: absolute;
  inset: 10px 8px 18px;
  z-index: -1;
  border-radius: 34px;
  background:
    radial-gradient(circle at 50% 20%, rgb(255 255 255 / 0.42), transparent 30%),
    radial-gradient(circle at 70% 72%, rgb(82 111 255 / 0.18), transparent 42%);
  filter: blur(3px);
}

.app-profile-stats {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 52px;
}

.app-profile-stat {
  display: grid;
  min-height: 78px;
  place-items: center;
  border: 1px solid rgb(223 230 244 / 0.92);
  border-radius: 18px;
  background: rgb(255 255 255 / 0.92);
  box-shadow: 0 14px 30px rgb(54 82 136 / 0.09);
}

.app-profile-stat strong {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #081434;
  font-size: 21px;
  font-weight: 780;
  line-height: 1;
}

.app-profile-stat strong svg {
  width: 22px;
  height: 22px;
  color: #6697ff;
}

.app-profile-stat span {
  margin-top: -3px;
  color: #657693;
  font-size: 14px;
  font-weight: 520;
}

.app-profile-vip-strip {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 84px;
  margin-top: 22px;
  border: 1px solid rgb(246 213 160 / 0.85);
  border-radius: 21px;
  padding: 13px 16px;
  background:
    radial-gradient(circle at 78% 54%, rgb(255 255 255 / 0.75), transparent 28%),
    linear-gradient(135deg, #fff8ed 0%, #fff0cf 100%);
  box-shadow: 0 14px 30px rgb(164 116 48 / 0.11);
  text-decoration: none;
}

.app-profile-vip-strip-in-card {
  position: relative;
  z-index: 6;
  margin-top: 42px;
}

.app-profile-vip-icon {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(145deg, #ffc546 0%, #e18a00 100%);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.55), 0 14px 24px rgb(220 138 0 / 0.22);
}

.app-profile-vip-icon svg {
  width: 29px;
  height: 29px;
}

.app-profile-vip-copy strong,
.app-profile-vip-copy span {
  display: block;
}

.app-profile-vip-copy {
  min-width: 0;
  overflow: hidden;
}

.app-profile-vip-copy strong {
  color: #8a4a08;
  font-size: 19px;
  font-weight: 820;
}

.app-profile-vip-copy span {
  margin-top: 6px;
  color: #9b7043;
  font-size: 10px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-profile-vip-action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 92px;
  height: 40px;
  justify-content: center;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, #e9a108 0%, #d08300 100%);
  box-shadow: 0 14px 24px rgb(185 103 0 / 0.2);
  font-size: 14px;
  font-weight: 760;
  white-space: nowrap;
}

.app-profile-vip-action svg {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
}

.app-profile-section-title {
  margin: 24px 0 14px;
  color: #071230;
  font-size: 22px;
  font-weight: 820;
  letter-spacing: 0;
}

.app-profile-quick-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.app-profile-quick-card {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 20px;
  align-items: center;
  min-height: 82px;
  gap: 6px;
  border: 1px solid #e6edf8;
  border-radius: 19px;
  padding: 11px 8px;
  color: #071230;
  background: rgb(255 255 255 / 0.95);
  box-shadow: 0 14px 30px rgb(48 74 126 / 0.08);
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.app-profile-quick-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px rgb(48 74 126 / 0.12);
}

.app-profile-quick-icon {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 16px;
  color: #fff;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.45), 0 12px 22px rgb(49 78 145 / 0.2);
}

.app-profile-quick-icon svg {
  width: 22px;
  height: 22px;
  color: #fff !important;
  stroke: #fff;
}

.app-profile-quick-card > span:nth-child(2) {
  display: block;
  min-width: 0;
}

.app-profile-quick-card > span:nth-child(2) strong,
.app-profile-quick-card > span:nth-child(2) > span {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-profile-quick-card > span:nth-child(2) strong {
  color: #071230;
  font-size: 15px;
  font-weight: 800;
}

.app-profile-quick-card > span:nth-child(2) > span {
  margin-top: 7px;
  color: #657590;
  font-size: 10px;
  font-weight: 500;
}

.app-profile-arrow {
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  border-radius: 999px;
  color: #071230;
  background: #f0f3f8;
}

.app-profile-settings-list {
  overflow: hidden;
  border: 1px solid #e7edf8;
  border-radius: 21px;
  background: rgb(255 255 255 / 0.95);
  box-shadow: 0 16px 34px rgb(48 74 126 / 0.08);
}

.app-profile-setting-row {
  display: grid;
  width: 100%;
  grid-template-columns: 50px minmax(0, 1fr) auto;
  align-items: center;
  min-height: 70px;
  gap: 16px;
  border-top: 0;
  border-right: 0;
  border-left: 0;
  border-bottom: 1px solid #edf2f8;
  padding: 11px 18px;
  color: #071230;
  background: transparent;
  font: inherit;
  text-align: left;
  text-decoration: none;
}

.app-profile-setting-row:last-child {
  border-bottom: 0;
}

.app-profile-setting-row:focus {
  outline: none;
}

.app-profile-setting-row:focus-visible {
  outline: 2px solid rgb(35 111 246 / 0.28);
  outline-offset: -2px;
}

.app-profile-setting-icon {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 14px;
  color: #fff;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.45), 0 11px 20px rgb(48 78 145 / 0.17);
}

.app-profile-setting-icon svg {
  width: 25px;
  height: 25px;
  color: #fff !important;
  stroke: #fff;
}

.app-profile-setting-copy {
  min-width: 0;
}

.app-profile-setting-copy strong,
.app-profile-setting-copy span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-profile-setting-copy strong {
  color: #071230;
  font-size: 17px;
  font-weight: 780;
}

.app-profile-setting-copy span {
  margin-top: 5px;
  color: #657590;
  font-size: 13px;
}

.app-profile-switch {
  position: relative;
  width: 54px;
  height: 32px;
  border: 0;
  border-radius: 999px;
  background: #cfd8e8;
  transition: background-color 160ms ease;
}

.app-profile-switch::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 5px 12px rgb(34 48 83 / 0.16);
  transition: transform 160ms ease;
}

.app-profile-switch.is-on {
  background: #0d74ff;
}

.app-profile-switch.is-on::after {
  transform: translateX(22px);
}

.mobile-tabbar.app-mobile-tabbar,
.app-mobile-tabbar {
  position: fixed;
  right: auto;
  bottom: 0;
  left: 50%;
  z-index: 2400;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: center;
  width: min(calc(100vw - 12px), 748px);
  min-height: 88px;
  border: 1px solid rgb(218 226 241 / 0.82);
  border-bottom: 0;
  border-radius: 28px 28px 0 0;
  padding: 9px 20px calc(10px + env(safe-area-inset-bottom));
  background: rgb(255 255 255 / 0.94);
  box-shadow: 0 -16px 44px rgb(45 68 112 / 0.14), inset 0 1px 0 #fff;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transform: translateX(-50%);
}

.mobile-tabbar.app-mobile-tabbar a,
.mobile-tabbar.app-mobile-tabbar button,
.app-mobile-tabbar a,
.app-mobile-tabbar button {
  display: grid;
  width: 100%;
  height: 66px;
  min-width: 0;
  gap: 4px;
  place-items: center;
  border: 0;
  color: #8c99ae;
  background: transparent;
  font-size: 13px;
  font-weight: 650;
  text-decoration: none;
  transform: none !important;
}

.mobile-tabbar.app-mobile-tabbar svg,
.app-mobile-tabbar svg {
  width: 26px;
  height: 26px;
}

.mobile-tabbar.app-mobile-tabbar .is-active,
.mobile-tabbar.app-mobile-tabbar .active,
.app-mobile-tabbar .is-active,
.app-mobile-tabbar .active {
  color: #0e70f8;
}

.mobile-tabbar.app-mobile-tabbar .app-mobile-ai,
.app-mobile-tabbar .app-mobile-ai {
  position: relative;
  gap: 4px;
  border: 0;
  border-radius: 0;
  padding: 0;
  color: #0e70f8;
  background: transparent !important;
  box-shadow: none !important;
}

.app-mobile-ai-bubble {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 2px solid rgb(255 255 255 / 0.92);
  border-radius: 999px;
  background: linear-gradient(145deg, #7fa7ff 0%, #256cf4 56%, #765dff 100%);
  box-shadow: 0 10px 20px rgb(40 91 224 / 0.22), inset 0 1px 0 rgb(255 255 255 / 0.52);
}

.app-mobile-ai-bubble svg {
  width: 31px;
  height: 31px;
}

.app-mobile-ai span:last-child {
  margin: 0;
  color: inherit;
  font-size: 13px;
  font-weight: 650;
}

.mobile-tool-phone-frame.has-app-tabbar .mobile-app-tool-content {
  padding-bottom: calc(88px + env(safe-area-inset-bottom));
}

.app-native-device {
  min-height: 100dvh;
}

.app-native-top {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 42px;
  align-items: center;
  min-height: 84px;
  gap: 12px;
}

.app-native-top > div {
  grid-column: 2;
  min-width: 0;
  text-align: center;
}

.app-native-top h1,
.app-native-top p {
  margin: 0;
}

.app-native-top h1 {
  color: #081334;
  font-size: 23px;
  font-weight: 820;
}

.app-native-top p {
  margin-top: 5px;
  overflow: hidden;
  color: #73819b;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-native-back {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid #e1e8f4;
  border-radius: 13px;
  color: #172440;
  background: #fff;
  box-shadow: 0 9px 22px rgb(46 71 119 / 0.1);
}

.app-native-back svg {
  width: 20px;
  height: 20px;
  transform: rotate(180deg);
}

.app-native-content {
  min-height: calc(100dvh - 190px);
  padding-bottom: 24px;
}

.app-native-loading,
.app-native-empty {
  display: grid;
  min-height: 220px;
  place-content: center;
  gap: 8px;
  border: 1px solid #e5ecf7;
  border-radius: 20px;
  padding: 28px;
  color: #6e7d98;
  background: #fff;
  box-shadow: 0 14px 32px rgb(45 69 112 / 0.07);
  text-align: center;
}

.app-native-empty strong {
  color: #101b35;
  font-size: 17px;
}

.app-native-empty span {
  font-size: 13px;
}

.app-native-empty a {
  display: inline-grid;
  height: 40px;
  margin-top: 8px;
  place-items: center;
  border-radius: 12px;
  color: #fff;
  background: #176ff3;
  text-decoration: none;
}

.app-native-tool-list,
.app-native-message-list,
.app-native-plan-list,
.app-native-setting-list {
  display: grid;
  gap: 11px;
}

.app-native-tool-row {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 28px;
  align-items: center;
  min-height: 76px;
  gap: 13px;
  border: 1px solid #e4ebf6;
  border-radius: 17px;
  padding: 12px 14px;
  color: #0b1732;
  background: #fff;
  box-shadow: 0 12px 28px rgb(46 71 119 / 0.07);
  text-decoration: none;
}

.app-native-tool-icon {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  overflow: hidden;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(145deg, #55a4ff, #256bf0 55%, #6f61ff);
}

.app-native-tool-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.app-native-tool-row strong,
.app-native-tool-row small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-native-tool-row strong {
  font-size: 15px;
  font-weight: 780;
}

.app-native-tool-row small {
  margin-top: 5px;
  color: #74829c;
  font-size: 12px;
}

.app-native-message-list article,
.app-native-plan-list article,
.app-native-setting-list label,
.app-native-form {
  border: 1px solid #e4ebf6;
  border-radius: 18px;
  padding: 18px;
  background: #fff;
  box-shadow: 0 12px 28px rgb(46 71 119 / 0.07);
}

.app-native-message-list article strong,
.app-native-message-list article p,
.app-native-message-list article time {
  display: block;
  margin: 0;
}

.app-native-message-list article p {
  margin-top: 7px;
  color: #62728e;
  font-size: 13px;
  line-height: 1.6;
}

.app-native-message-list article time {
  margin-top: 10px;
  color: #9aa6b9;
  font-size: 11px;
}

.app-native-plan-list article {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
}

.app-native-plan-list article span,
.app-native-plan-list article strong {
  display: block;
}

.app-native-plan-list article span {
  margin-top: 5px;
  color: #74819a;
  font-size: 12px;
}

.app-native-plan-list article b {
  color: #e28a00;
  font-size: 20px;
}

.app-native-plan-list article button {
  grid-column: 1 / -1;
  height: 42px;
  border: 0;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(135deg, #246ff4, #685cff);
}

.app-native-setting-list label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.app-native-setting-list strong,
.app-native-setting-list small {
  display: block;
}

.app-native-setting-list small {
  margin-top: 5px;
  color: #74819a;
  font-size: 12px;
}

.app-native-setting-list input {
  width: 42px;
  height: 24px;
  accent-color: #176ff3;
}

.app-native-form {
  display: grid;
  gap: 16px;
}

.app-native-form label span {
  display: block;
  margin-bottom: 8px;
  color: #263654;
  font-size: 13px;
  font-weight: 700;
}

.app-native-form input {
  width: 100%;
  height: 48px;
  border: 1px solid #dbe4f2;
  border-radius: 12px;
  padding: 0 14px;
  outline: 0;
}

.app-native-form input:focus {
  border-color: #4f86f7;
  box-shadow: 0 0 0 4px rgb(52 114 244 / 0.1);
}

.app-native-form > button {
  height: 46px;
  border: 0;
  border-radius: 12px;
  color: #fff;
  background: #176ff3;
  font-weight: 720;
}

.app-native-form > p {
  margin: 0;
  color: #596a87;
  font-size: 12px;
  text-align: center;
}

.app-native-login-form {
  max-width: 460px;
  margin: 24px auto 0;
}

.app-native-login-mark {
  display: grid;
  width: 68px;
  height: 68px;
  margin: 0 auto 6px;
  place-items: center;
  border-radius: 20px;
  color: #fff;
  background: linear-gradient(145deg, #6faeff, #286cf1 55%, #7162ff);
  box-shadow: 0 14px 28px rgb(46 92 215 / 0.22);
}

.app-native-login-mark svg {
  width: 42px;
  height: 42px;
}

.app-profile-login-note {
  position: relative;
  z-index: 5;
  max-width: calc(100% - 154px);
  margin: 22px 0 0;
  color: #4d6797;
  font-size: 13px;
  font-weight: 560;
}

.app-profile-stats {
  display: none;
}

.app-profile-login-note:empty {
  display: none;
}

.app-profile-vip-strip {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 86px;
  margin-top: 12px;
  border: 1px solid rgb(25 31 44 / 0.88);
  border-radius: 21px;
  padding: 14px 16px;
  background:
    radial-gradient(circle at 14% 16%, rgb(255 210 92 / 0.2), transparent 28%),
    radial-gradient(circle at 88% 60%, rgb(94 119 255 / 0.18), transparent 34%),
    linear-gradient(135deg, #202633 0%, #111722 56%, #05070b 100%);
  box-shadow: 0 18px 34px rgb(4 10 24 / 0.16);
  text-decoration: none;
}

.app-profile-vip-icon {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background:
    radial-gradient(circle at 34% 20%, rgb(255 255 255 / 0.34), transparent 24%),
    linear-gradient(145deg, #2f3747 0%, #151b27 100%);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.22), 0 14px 24px rgb(0 0 0 / 0.28);
}

.app-profile-vip-icon svg {
  width: 32px;
  height: 32px;
}

.app-profile-vip-copy strong,
.app-profile-vip-copy span {
  display: block;
}

.app-profile-vip-copy {
  min-width: 0;
  overflow: hidden;
}

.app-profile-vip-copy strong {
  color: #fff;
  font-size: 19px;
  font-weight: 820;
}

.app-profile-vip-copy span {
  margin-top: 6px;
  color: rgb(226 231 243 / 0.76);
  font-size: 10px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-profile-vip-action {
  display: inline-flex;
  align-items: center;
  min-width: 86px;
  height: 40px;
  justify-content: center;
  border-radius: 999px;
  color: #101522;
  background: linear-gradient(135deg, #fff3bc 0%, #ffc54d 48%, #f19115 100%);
  box-shadow: 0 14px 24px rgb(245 168 38 / 0.22);
  font-size: 14px;
  font-weight: 760;
  white-space: nowrap;
}

.app-profile-vip-action svg {
  display: none;
}

/*
 * Legacy stat/vip declarations remain below in older builds. Keep the final
 * profile layout definitions here so this file has one effective visual rule.
 */
.app-profile-card .app-profile-stats {
  display: none !important;
}

.app-profile-card + .app-profile-vip-strip {
  margin-top: 12px;
}

/*
 * Hide the fixed bottom navigation while a mobile keyboard is active. On real
 * phones this prevents the nav from riding above the keyboard and covering
 * focused inputs.
 */
body.app-keyboard-active .app-mobile-tabbar,
body.app-keyboard-active .mobile-tabbar.app-mobile-tabbar {
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 120%) !important;
}

@supports (padding-bottom: env(keyboard-inset-height)) {
  body.app-keyboard-active .app-profile-device,
  body.app-keyboard-active .mobile-phone-frame {
    padding-bottom: calc(28px + env(keyboard-inset-height)) !important;
  }
}

/* Previous version compatibility. */
.app-profile-stat {
  display: none;
}

/* The following block is intentionally kept below to override old vip colors. */
.app-profile-vip-strip {
  border-color: rgb(25 31 44 / 0.88);
  background:
    radial-gradient(circle at 14% 16%, rgb(255 210 92 / 0.2), transparent 28%),
    radial-gradient(circle at 88% 60%, rgb(94 119 255 / 0.18), transparent 34%),
    linear-gradient(135deg, #202633 0%, #111722 56%, #05070b 100%);
}

.app-profile-vip-copy strong {
  color: #fff;
}

.app-profile-vip-copy span {
  color: rgb(226 231 243 / 0.76);
}

.app-profile-vip-action {
  color: #101522;
  background: linear-gradient(135deg, #fff3bc 0%, #ffc54d 48%, #f19115 100%);
}

/* Old login-note declaration hook */
.app-profile-login-note {
  display: none !important;
  margin: 14px 0 0;
  border: 1px solid #d8e6ff;
  border-radius: 16px;
  padding: 12px 14px;
  color: #38659f;
  background: #f4f8ff;
  font-size: 13px;
}

.app-profile-device.is-guest .app-profile-login-note {
  display: none;
}

.app-profile-body .app-mobile-tabbar {
  width: min(calc(100vw - 12px), 748px);
}

.app-profile-body .mobile-site-menu-fab,
.app-profile-body .mobile-site-menu-shade,
.app-profile-body .mobile-site-menu-panel {
  display: none !important;
}

.app-profile-device.is-dark {
  background: linear-gradient(180deg, #111827 0%, #0b1020 100%);
  color: #eef4ff;
}

.app-profile-device.is-dark .app-profile-title,
.app-profile-device.is-dark .app-profile-section-title,
.app-profile-device.is-dark .app-profile-name h2,
.app-profile-device.is-dark .app-profile-quick-card strong,
.app-profile-device.is-dark .app-profile-setting-copy strong {
  color: #f5f8ff;
}

.app-profile-device.is-dark .app-profile-icon-btn,
.app-profile-device.is-dark .app-profile-quick-card,
.app-profile-device.is-dark .app-profile-settings-list {
  border-color: rgb(255 255 255 / 0.1);
  background: rgb(20 31 55 / 0.92);
}

.app-profile-device.is-dark .app-profile-card {
  border-color: rgb(136 161 255 / 0.22);
  background:
    radial-gradient(circle at 86% 68%, rgb(73 89 255 / 0.28), transparent 32%),
    linear-gradient(135deg, #16213a 0%, #1a2442 48%, #101a34 100%);
}

.app-profile-device.is-dark .app-profile-name p,
.app-profile-device.is-dark .app-profile-quick-card span,
.app-profile-device.is-dark .app-profile-setting-copy span {
  color: #aebbd5;
}

@media (max-width: 520px) {
  .app-profile-shell {
    padding: 0;
  }

  .app-profile-device {
    width: 100%;
    padding-right: 14px;
    padding-left: 14px;
  }

  .app-profile-top {
    min-height: 78px;
  }

  .app-profile-card {
    min-height: 258px;
    padding: 27px 20px 20px;
    border-radius: 21px;
  }

  .app-profile-main-row {
    grid-template-columns: 86px minmax(0, 1fr) auto;
    gap: 14px;
  }

  .app-profile-avatar-wrap,
  .app-profile-avatar-ring {
    width: 86px;
    height: 86px;
  }

  .app-profile-avatar {
    width: 62px;
    height: 62px;
    border-radius: 20px;
  }

  .app-profile-avatar-edit {
    right: -2px;
    bottom: 0;
    width: 28px;
    height: 28px;
  }

  .app-profile-name h2 {
    font-size: 20px;
  }

  .app-profile-name p {
    font-size: 13px;
  }

  .app-profile-upgrade-pill {
    height: 36px;
    padding: 0 12px;
    font-size: 13px;
  }

  .app-profile-crown-art {
    top: 82px;
    right: 13px;
    bottom: auto;
    width: 138px;
    height: 106px;
  }

  .app-profile-stats {
    gap: 10px;
    margin-top: 50px;
  }

  .app-profile-stat {
    min-height: 76px;
    border-radius: 15px;
  }

  .app-profile-stat strong {
    font-size: 22px;
  }

  .app-profile-vip-strip {
    grid-template-columns: 48px minmax(0, 1fr) auto;
    gap: 12px;
    min-height: 82px;
    padding: 13px 16px;
  }

  .app-profile-vip-icon {
    width: 48px;
    height: 48px;
  }

  .app-profile-vip-copy strong {
    font-size: 18px;
  }

  .app-profile-vip-copy span {
    font-size: 10px;
  }

  .app-profile-vip-action {
    min-width: 92px;
    height: 38px;
    padding: 0 12px;
    font-size: 13px;
  }

  .app-profile-quick-grid {
    gap: 10px;
  }

  .app-profile-quick-card {
    grid-template-columns: 38px minmax(0, 1fr) 20px;
    min-height: 78px;
    gap: 6px;
    border-radius: 17px;
    padding: 11px 8px;
  }

  .app-profile-quick-icon {
    width: 38px;
    height: 38px;
    border-radius: 14px;
  }

  .app-profile-quick-card > span:nth-child(2) strong {
    font-size: 15px;
  }

  .app-profile-quick-card > span:nth-child(2) > span {
    font-size: 10px;
  }

  .app-profile-setting-row {
    grid-template-columns: 44px minmax(0, 1fr) auto;
    min-height: 75px;
    gap: 12px;
    padding: 12px 16px;
  }

  .app-profile-setting-icon {
    width: 42px;
    height: 42px;
  }

  .mobile-tabbar.app-mobile-tabbar,
  .app-mobile-tabbar {
    min-height: 82px;
    padding-right: 18px;
    padding-left: 18px;
  }
}

@media (max-width: 380px) {
  .app-profile-device {
    padding-right: 10px;
    padding-left: 10px;
  }

  .app-profile-card {
    padding-right: 14px;
    padding-left: 14px;
  }

  .app-profile-main-row {
    grid-template-columns: 76px minmax(0, 1fr);
  }

  .app-profile-upgrade-pill {
    grid-column: 2;
    justify-self: start;
    margin-top: 8px;
  }

  .app-profile-crown-art {
    opacity: 0.96;
  }

  .app-profile-stat span,
  .app-profile-quick-card > span:nth-child(2) > span,
  .app-profile-setting-copy span {
    font-size: 12px;
  }
}

/* Final APP profile contract: keep this block last so every APP breakpoint and
   older generated rule resolves to the same confirmed layout. */
.app-profile-device {
  width: min(100%, 760px);
  padding-top: 18px;
}

.app-profile-card {
  min-height: 270px;
  margin-top: 0;
}

.app-profile-card-settings {
  top: 28px;
  right: 22px;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 0;
  color: #68758d;
  background: transparent;
  box-shadow: none;
}

.app-profile-card-settings svg {
  width: 25px;
  height: 25px;
}

.app-profile-main-row {
  grid-template-columns: 96px minmax(0, 1fr);
  padding-right: 42px;
}

.app-profile-upgrade-pill,
.app-profile-stats,
.app-profile-stat,
.app-profile-login-note {
  display: none !important;
}

.app-profile-crown-art {
  top: 56px;
  right: 26px;
  z-index: 3;
  width: 132px;
  height: 104px;
  opacity: 1;
}

.app-profile-avatar-edit {
  right: -1px;
  bottom: 2px;
  width: 34px;
  height: 34px;
  border-radius: 999px;
}

.app-profile-avatar-edit svg {
  width: 22px;
  height: 22px;
}

.app-profile-vip-strip {
  min-height: 78px;
  margin-top: 0;
  border-color: rgb(25 31 44 / 0.88);
  border-radius: 18px;
  padding: 12px 15px;
  background:
    radial-gradient(circle at 14% 16%, rgb(255 210 92 / 0.2), transparent 28%),
    radial-gradient(circle at 88% 60%, rgb(94 119 255 / 0.18), transparent 34%),
    linear-gradient(135deg, #202633 0%, #111722 56%, #05070b 100%);
  box-shadow: 0 18px 34px rgb(4 10 24 / 0.16);
}

.app-profile-vip-strip-in-card {
  margin-top: 34px;
}

.app-profile-vip-icon {
  background:
    radial-gradient(circle at 34% 20%, rgb(255 255 255 / 0.34), transparent 24%),
    linear-gradient(145deg, #2f3747 0%, #151b27 100%);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.22), 0 14px 24px rgb(0 0 0 / 0.28);
}

.app-profile-vip-icon svg {
  width: 32px;
  height: 32px;
}

.app-profile-vip-copy strong {
  color: #fff;
}

.app-profile-vip-copy span {
  color: rgb(226 231 243 / 0.76);
}

.app-profile-vip-action {
  min-width: 86px;
  color: #101522;
  background: linear-gradient(135deg, #fff3bc 0%, #ffc54d 48%, #f19115 100%);
  box-shadow: 0 14px 24px rgb(245 168 38 / 0.22);
}

.app-profile-vip-action svg {
  display: none !important;
}

.mobile-tabbar.app-mobile-tabbar,
.app-mobile-tabbar {
  left: 50%;
  width: min(calc(100vw - 12px), 748px);
  transform: translateX(-50%);
}

body.app-keyboard-active .mobile-tabbar.app-mobile-tabbar,
body.app-keyboard-active .app-mobile-tabbar {
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 120%) !important;
}

@media (max-width: 600px) {
  .app-profile-shell {
    padding-right: 0;
    padding-left: 0;
  }

  .app-profile-device {
    width: 100%;
    padding-top: 14px;
  }

  .app-profile-main-row {
    grid-template-columns: 86px minmax(0, 1fr);
  }

  .app-profile-crown-art {
    top: 62px;
    right: 14px;
    width: 126px;
    height: 100px;
  }

  .app-profile-vip-strip-in-card {
    margin-top: 32px;
  }

  .app-profile-card-settings {
    right: 18px;
  }

  .mobile-tabbar.app-mobile-tabbar,
  .app-mobile-tabbar,
  .app-profile-body .app-mobile-tabbar {
    width: 100% !important;
  }
}

@media (max-width: 380px) {
  .app-profile-main-row {
    grid-template-columns: 76px minmax(0, 1fr);
    padding-right: 30px;
  }

  .app-profile-crown-art {
    top: 66px;
    right: 8px;
    width: 116px;
    height: 94px;
  }

  .app-profile-vip-strip-in-card {
    margin-top: 28px;
  }
}
