:root {
  --green: #31bf69;
  --green-dark: #239b54;
  --green-soft: #eaf8ef;
  --green-pale: #f2f8df;
  --ink: #1b211d;
  --muted: #929a95;
  --line: #e8ece9;
  --surface: #f7f9f7;
  --white: #fff;
  --danger: #df5b56;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; }

html,
body {
  width: 100%;
  min-width: 320px;
  min-height: 100%;
  margin: 0;
  background: #f3f5f3;
  color: var(--ink);
  font-family: "Avenir Next", Avenir, "PingFang SC", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}

button,
input,
select,
textarea { font: inherit; }

button {
  border: 0;
  color: inherit;
  background: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.prototype-stage { min-height: 100dvh; }

.h5-app {
  position: relative;
  width: min(100%, 480px);
  height: 100dvh;
  min-height: 560px;
  margin: 0 auto;
  overflow: hidden;
  background: var(--white);
}

#app,
.screen { height: 100%; }

.screen {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--white);
  animation: fade-in .18s ease-out;
}

@keyframes fade-in {
  from { opacity: .45; }
  to { opacity: 1; }
}

.page-scroll {
  flex: 1;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 24px 20px 30px;
  overscroll-behavior: contain;
  scrollbar-width: none;
}

.page-scroll::-webkit-scrollbar { display: none; }
.page-scroll.has-topbar { padding-top: 76px; }
.page-scroll.has-nav { padding-bottom: calc(92px + var(--safe-bottom)); }

.icon {
  width: 22px;
  height: 22px;
  display: inline-block;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.topbar {
  position: absolute;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  height: 58px;
  display: grid;
  grid-template-columns: 48px 1fr 48px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, .98);
}

.topbar > strong { text-align: center; font-size: 17px; }
.plain-icon { height: 48px; display: grid; place-items: center; }
.topbar-right { min-width: 48px; }

.bottom-nav {
  position: absolute;
  z-index: 30;
  left: 0;
  right: 0;
  bottom: 0;
  height: calc(72px + var(--safe-bottom));
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  padding: 7px 5px var(--safe-bottom);
  border-top: 1px solid #edf0ee;
  background: rgba(255,255,255,.98);
}

.nav-item {
  position: relative;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: #adb4af;
  font-size: 11px;
  font-weight: 600;
}

.nav-item .icon { width: 24px; height: 24px; }
.nav-item.active { color: var(--green-dark); }

.nav-item.active::before {
  content: "";
  position: absolute;
  top: 0;
  width: 40px;
  height: 3px;
  border-radius: 0 0 4px 4px;
  background: var(--green);
}

.brand-mark {
  position: relative;
  width: 34px;
  height: 34px;
  display: inline-block;
  flex: 0 0 auto;
  border-radius: 9px;
  background: var(--green);
  transform: rotate(30deg);
}

.brand-mark::before,
.brand-mark::after,
.brand-mark i {
  content: "";
  position: absolute;
  inset: 7px;
  border: 3px solid white;
  border-radius: 5px;
}

.brand-mark::after { inset: 13px; border-width: 2px; }
.brand-mark.large { width: 76px; height: 76px; border-radius: 19px; }
.brand-mark.large::before { inset: 15px; border-width: 6px; border-radius: 10px; }
.brand-mark.large::after { inset: 29px; border-width: 3px; }

.avatar {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border: 4px solid white;
  border-radius: 50%;
  color: white;
  background: linear-gradient(145deg, #53cb78, #158c4b);
  box-shadow: 0 7px 20px rgba(40, 145, 82, .22);
  font-size: 16px;
  font-weight: 800;
}

.avatar.small { width: 38px; height: 38px; border-width: 2px; font-size: 13px; }
.avatar img { width: 100%; height: 100%; display: block; border-radius: 50%; object-fit: cover; }
.profile-avatar { cursor: pointer; }

.primary-button {
  width: 100%;
  min-height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 7px;
  color: white;
  background: var(--green);
  font-size: 15px;
  font-weight: 700;
  box-shadow: 0 8px 20px rgba(49, 191, 105, .17);
}

.primary-button:active { background: var(--green-dark); }
.primary-button:disabled { color: #a0a8a3; background: #e9ecea; box-shadow: none; }

.page-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin: 8px 0 28px;
}

.page-head h1 { margin: 0; font-size: 32px; line-height: 1.15; }
.page-head p { margin: 7px 0 0; color: var(--muted); font-size: 14px; }
.page-head .caps { margin: 0 0 3px; color: #99a19c; font-size: 12px; font-weight: 800; letter-spacing: .18em; }

/* Splash and authentication */
.splash {
  position: relative;
  height: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  background: white;
}

.splash::before,
.splash::after {
  display: none;
}

.splash-center { position: relative; z-index: 2; display: grid; justify-items: center; gap: 24px; transform: translateY(-22px); }
.splash-brand { display: grid; justify-items: center; }
.site-brand-image { display: block; max-width: 100%; object-fit: contain; }
.splash-brand-image { width: 190px; height: 76px; object-fit: cover; object-position: center; }
.splash-brand .brand-mark { margin-top: 2px; }
.splash-center h1 { margin: 12px 0 5px; font-size: 25px; letter-spacing: .03em; }
.splash-center p { margin: 7px 0 0; color: #5c6961; font-size: 13px; letter-spacing: .14em; }
.splash-network-art { width: min(75vw, 300px); display: block; mix-blend-mode: multiply; }
.splash-button { position: absolute; z-index: 2; left: 28px; right: 28px; bottom: 78px; width: auto; color: white; background: #20d475; }
.language-link { position: absolute; z-index: 2; top: 24px; right: 24px; display: flex; align-items: center; gap: 6px; color: var(--green-dark); font-size: 13px; }
.language-link .icon { width: 18px; }

.auth-page .page-scroll { padding: 52px 28px 30px; }
.auth-logo { display: flex; align-items: center; gap: 12px; }
.auth-logo strong { font-size: 17px; }
.auth-brand-image { width: 145px; height: 54px; }
.auth-page:not(.login-page) .auth-logo { gap: 16px; }
.auth-page:not(.login-page) .auth-logo .brand-mark { width: 56px; height: 56px; border-radius: 15px; }
.auth-page:not(.login-page) .auth-logo .brand-mark::before { inset: 11px; border-width: 4px; border-radius: 7px; }
.auth-page:not(.login-page) .auth-logo .brand-mark::after { inset: 21px; border-width: 2px; }
.auth-page:not(.login-page) .auth-logo strong { font-size: 25px; }
.auth-page:not(.login-page) .auth-brand-image { width: min(190px, 72vw); height: 70px; }
.auth-copy { margin: 56px 0 34px; }
.auth-copy h1 { margin: 0 0 10px; font-size: 30px; }
.auth-copy p { margin: 0; color: var(--muted); font-size: 14px; }
.auth-form { display: grid; gap: 22px; }
.auth-form label,
.plain-form label { display: grid; gap: 9px; color: #59615c; font-size: 13px; font-weight: 600; }
.field-line { height: 50px; display: flex; align-items: center; gap: 11px; padding: 0 14px; border: 1px solid var(--line); border-radius: 6px; background: #fafbfa; }
.field-line .icon { width: 19px; color: #9da49f; }
.field-line input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--ink); }
.forgot { justify-self: end; margin-top: -10px; color: var(--green-dark); font-size: 12px; }
.auth-switch { margin: 24px 0 0; text-align: center; color: var(--muted); font-size: 13px; }
.auth-switch button { color: var(--green-dark); font-weight: 700; }
.turnstile-wrap { min-height: 65px; width: 100%; display: flex; justify-content: center; align-items: center; overflow: hidden; }
.turnstile-wrap > div { width: 100%; max-width: 300px; }

.login-page .page-scroll {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: max(34px, env(safe-area-inset-top)) 27px calc(28px + var(--safe-bottom));
}
.auth-language { position: absolute; z-index: 5; top: max(18px, env(safe-area-inset-top)); right: 20px; display: inline-flex; align-items: center; gap: 5px; color: var(--green-dark); font-size: 12px; }
.auth-language .icon { width: 18px; height: 18px; }
.login-brand { display: flex; align-items: center; gap: 8px; color: #299b55; }
.login-brand img { width: 45px; height: 51px; object-fit: contain; }
.login-brand strong { font-family: Georgia, "Times New Roman", serif; font-size: 20px; font-weight: 600; }
.login-visual {
  min-height: 300px;
  display: grid;
  place-items: center;
  margin: 17px -27px 7px;
}
.login-visual img { width: min(320px, 84vw); max-width: 100%; display: block; }
.login-form { gap: 22px; }
.login-form label { gap: 8px; color: #a9aeab; font-size: 14px; font-weight: 700; }
.login-form label > span { display: flex; align-items: center; gap: 9px; padding-left: 1px; }
.login-form label > span .icon { width: 21px; height: 21px; color: #c5cac7; stroke-width: 1.65; }
.login-form .field-line {
  height: 54px;
  padding: 0 18px;
  border: 1.5px solid #32b967;
  border-radius: 29px;
  background: white;
}
.login-form .field-line:focus-within { border-color: #229d54; box-shadow: 0 0 0 3px rgba(49,191,105,.1); }
.login-form .field-line input { height: 100%; font-size: 16px; }
.password-toggle { width: 40px; height: 40px; display: grid; place-items: center; margin-right: -10px; color: #c6cbc8; }
.password-toggle .icon { width: 25px; height: 25px; stroke-width: 1.6; }
.login-form .forgot { margin-top: -11px; color: #969b98; font-size: 14px; font-weight: 700; }
.login-form .primary-button { min-height: 54px; border-radius: 29px; background: #50bd75; font-size: 23px; box-shadow: none; }
.login-form .primary-button:active { background: #36aa61; }
.login-switch { margin-top: 19px; color: #b4b8b5; font-size: 14px; }
.login-switch button { color: #35ae62; }

@media (max-height: 680px) {
  .login-page .page-scroll { padding-top: 22px; }
  .login-visual { min-height: 220px; margin-top: 0; margin-bottom: 0; }
  .login-visual img { width: min(235px, 64vw); }
  .login-form { gap: 15px; }
  .login-form .field-line, .login-form .primary-button { height: 52px; min-height: 52px; }
  .login-switch { margin-top: 12px; }
}

/* Home */
.home-page .page-scroll { padding: 14px 18px 20px; }
.home-head { min-height: 38px; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0; margin-bottom: 8px; }
.home-welcome { min-width: 0; display: flex; align-items: center; gap: 8px; color: var(--green-dark); }
.home-welcome-logo { width: 23px; height: 26px; display: block; flex: 0 0 auto; object-fit: contain; }
.home-welcome strong { overflow: hidden; font-family: Georgia, "Times New Roman", serif; font-size: 17px; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.brand-inline { display: flex; align-items: center; gap: 10px; }
.brand-inline strong { font-size: 17px; }
.home-brand-image { width: 128px; height: 48px; }
.head-tools { display: flex; align-items: center; gap: 3px; }
.head-tools button { position: relative; width: 34px; height: 34px; display: grid; place-items: center; }
.head-tools button i { position: absolute; top: 6px; right: 6px; width: 6px; height: 6px; border-radius: 50%; background: #f06e5f; }
.head-tools .icon { width: 20px; }
.head-tools .home-language { width: 58px; display: flex; gap: 5px; border: 1px solid #b8bdb9; border-radius: 17px; font-size: 10px; }
.head-tools .home-language .icon { width: 19px; }
.welcome { margin: 5px 0 15px; }
.welcome h1 { margin: 0; font-size: 23px; }
.announcement { width: 100%; min-height: 39px; display: flex; align-items: center; gap: 8px; padding: 0 13px; margin-bottom: 10px; border: 1px solid #cdd2ce; border-radius: 20px; background: #fafbfa; color: #9ba19d; text-align: left; font-size: 12px; font-weight: 700; }
.announcement .icon { width: 21px; color: #9aa19c; }
.announcement span { flex: 1; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.home-hero { min-height: 205px; display: grid; grid-template-columns: 48% 52%; align-items: center; margin: 18px 0; overflow: hidden; border-radius: 7px; color: white; background: linear-gradient(135deg, #29b766, #54d694); }
.home-hero > div:last-child { position: relative; z-index: 2; padding: 20px 16px 20px 4px; }
.home-hero span { font-size: 12px; font-weight: 700; letter-spacing: .08em; }
.home-hero h2 { margin: 10px 0 22px; font-size: 20px; line-height: 1.35; }
.home-hero button { min-width: 88px; padding: 9px 14px; border-radius: 5px; color: var(--green-dark); background: white; font-size: 12px; font-weight: 700; }
.home-carousel { position: relative; margin: 0 0 10px; }
.home-banner-viewport { aspect-ratio: 16 / 9; overflow: hidden; border-radius: 6px; background: #e9f1eb; }
.home-banner-track { width: 100%; height: 100%; display: flex; transition: transform .42s ease; will-change: transform; }
.home-banner-slide { width: 100%; min-width: 100%; height: 100%; display: block; overflow: hidden; padding: 0; border: 0; background: #e9f1eb; line-height: 0; }
.home-banner-slide img { width: 100%; height: 100%; display: block; object-fit: cover; }
.home-banner-dots { position: absolute; right: 0; bottom: 9px; left: 0; z-index: 2; display: flex; justify-content: center; gap: 6px; pointer-events: none; }
.home-banner-dots button { width: 6px; height: 6px; padding: 0; border: 1px solid rgba(255,255,255,.88); border-radius: 50%; background: rgba(24,50,34,.24); box-shadow: 0 1px 4px rgba(19,39,27,.18); pointer-events: auto; transition: width .2s ease, border-radius .2s ease, background .2s ease; }
.home-banner-dots button.active { width: 16px; border-radius: 4px; background: white; }

.home-income-card { min-height: 136px; display: grid; grid-template-columns: minmax(0, 1fr) 100px; align-items: center; padding: 10px 10px 10px 12px; margin-bottom: 10px; border: 2px solid #bfc4c0; border-radius: 8px; background: #fff; }
.home-income-card > div { min-width: 0; display: grid; align-content: center; }
.home-income-card > div > span { color: #9ea4a0; font-size: 12px; font-weight: 700; }
.home-income-card > div > strong { margin: 3px 0 9px; font-size: 28px; line-height: 1.05; }
.home-income-card > div > b { margin-top: 3px; font-size: 18px; }
.home-income-card small { color: var(--green-dark); font-size: 10px; }
.home-income-card > button { min-width: 0; display: grid; justify-items: center; align-content: center; }
.home-income-card > button img { width: 82px; height: 82px; display: block; object-fit: contain; }
.home-income-card > button strong { min-width: 75px; min-height: 23px; display: grid; place-items: center; margin-top: -8px; padding: 0 8px; border-radius: 6px; color: white; background: #43ba72; font-size: 11px; }

.home-leaderboard { min-height: 174px; padding: 8px 8px 7px; margin-bottom: 10px; border: 1px solid #cfd4d0; border-radius: 7px; background: white; }
.home-leaderboard h2 { margin: 0 0 2px; text-align: center; font-size: 15px; }
.home-leaderboard > div { height: 137px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; }
.home-leaderboard article { position: relative; min-width: 0; height: 132px; display: flex; flex-direction: column; align-items: center; padding-top: 8px; }
.home-leaderboard article.rank-1 { padding-top: 14px; }
.rank-avatar { position: relative; z-index: 2; width: 46px; height: 46px; display: grid; place-items: center; overflow: hidden; border: 2px solid white; border-radius: 50%; color: white; background: linear-gradient(145deg, #4cbf7c, #1c7447); box-shadow: 0 3px 8px rgba(35,139,80,.2); font-size: 12px; font-weight: 800; }
.rank-1 .rank-avatar { width: 56px; height: 56px; background: linear-gradient(145deg, #5bbd9b, #2e7e68); }
.home-leaderboard article > img { position: absolute; z-index: 1; top: 27px; width: 108px; height: 60px; object-fit: cover; object-position: center 55%; }
.home-leaderboard .rank-1 > img { top: 38px; width: 128px; height: 65px; }
.home-leaderboard article > em { position: relative; z-index: 3; margin-top: -3px; color: #31935f; font-size: 7px; font-style: normal; }
.home-leaderboard article > strong { z-index: 3; width: 100%; margin-top: 15px; overflow: hidden; font-size: 9px; text-align: center; text-overflow: ellipsis; white-space: nowrap; }
.home-leaderboard .rank-1 > strong { margin-top: 14px; }
.home-leaderboard article > small { z-index: 3; display: flex; align-items: center; gap: 2px; margin-top: 4px; color: var(--green-dark); font-size: 7px; white-space: nowrap; }
.home-leaderboard article > small .icon { width: 9px; height: 9px; color: #ee8e27; }

.home-shortcuts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; margin-bottom: 7px; }
.home-shortcuts button { min-width: 0; display: grid; justify-items: center; gap: 5px; }
.home-shortcuts button > span { width: 56px; height: 56px; display: grid; place-items: center; border-radius: 8px; color: #42b96e; background: #f6f7f6; }
.home-shortcuts .icon { width: 29px; height: 29px; }
.home-shortcuts strong { color: #a1a7a3; font-size: 10px; font-weight: 600; white-space: nowrap; }

.partner-strip { height: 38px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: center; gap: 5px; overflow: hidden; }
.partner-strip img { width: 100%; height: 38px; display: block; object-fit: cover; object-position: center; }

.network-art { position: relative; min-height: 180px; display: grid; place-items: center; }
.network-art .network-core { position: relative; z-index: 2; display: grid; place-items: center; width: 82px; height: 82px; border-radius: 50%; background: rgba(255,255,255,.92); box-shadow: 0 0 35px rgba(255,255,255,.45); }
.network-art .network-core .brand-mark { width: 31px; height: 31px; }
.orbit { position: absolute; width: 145px; height: 64px; border: 1px solid rgba(255,255,255,.65); border-radius: 50%; transform: rotate(18deg); }
.orbit.two { transform: rotate(-38deg); }
.network-art .node { position: absolute; z-index: 3; width: 8px; height: 8px; border: 2px solid white; border-radius: 50%; background: var(--green); }
.network-art .n1 { top: 31px; left: 34px; }
.network-art .n2 { right: 28px; bottom: 47px; }
.network-art .n3 { left: 47px; bottom: 25px; }
.package-cover .network-art .network-core { background: rgba(255,255,255,.9); }

.shortcut-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 18px 0 27px; }
.shortcut { min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 0 2px; }
.shortcut > span { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; color: var(--green-dark); background: var(--green-soft); }
.shortcut .icon { width: 20px; }
.shortcut strong { margin-top: 2px; font-size: 12px; }
.shortcut small { color: var(--muted); font-size: 9px; }
.section-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.section-row h2 { margin: 0; font-size: 17px; }
.section-row button { display: flex; align-items: center; color: var(--muted); font-size: 11px; }
.section-row .icon { width: 15px; }
.node-summary { width: 100%; display: flex; align-items: center; gap: 12px; margin-top: 13px; padding: 15px; border: 1px solid var(--line); border-radius: 7px; text-align: left; background: white; }
.node-summary > div:nth-child(2) { flex: 1; display: grid; gap: 4px; }
.node-summary strong { font-size: 13px; }
.node-summary span { color: var(--muted); font-size: 10px; }
.node-summary em { color: var(--green-dark); font-size: 10px; font-style: normal; }
.round-icon { width: 38px; height: 38px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 50%; color: var(--green-dark); background: var(--green-soft); }
.round-icon .icon { width: 18px; }

/* Packages */
.packages-page .page-scroll { padding-top: 20px; }
.package-center-head { margin-bottom: 18px; }
.package-center-head .brand-inline { min-height: 44px; margin-bottom: 16px; color: var(--green-dark); }
.package-center-head .brand-inline strong { font-size: 19px; }
.package-brand-image { width: 140px; height: 44px; object-fit: cover; object-position: center; }
.package-center-head h1 { margin: 0; font-size: 29px; line-height: 1.18; }
.package-tabs { height: 42px; display: grid; grid-template-columns: 1fr 1fr; align-items: end; margin-bottom: 13px; border-bottom: 2px solid #d7dbd8; color: #b1b6b3; text-align: center; font-size: 13px; }
.package-tabs button { position: relative; width: 100%; height: 42px; display: grid; place-items: center; padding: 0 4px; color: inherit; font: inherit; font-weight: 600; }
.package-tabs button.active { color: var(--green-dark); }
.package-tabs button.active::after { content: ""; position: absolute; right: 0; bottom: -2px; left: 0; height: 3px; background: var(--green-dark); }
.package-list { display: grid; gap: 12px; }
.package-empty { margin: 48px 0; color: var(--muted); text-align: center; font-size: 13px; }
.package-card { position: relative; width: 100%; min-height: 108px; display: grid; grid-template-columns: minmax(118px, 1.12fr) minmax(0, 1fr) 90px; align-items: stretch; overflow: hidden; border: 1px solid #bbefd9; border-radius: 8px; background: #dcfaed; text-align: left; box-shadow: 0 3px 10px rgba(34,157,89,.06); }
.package-card-image { min-width: 0; overflow: hidden; border-radius: 7px; background: #bcefdc; }
.package-card-image img { width: 100%; height: 100%; display: block; object-fit: cover; }
.package-image-fallback { height: 100%; display: grid; place-items: center; }
.package-card-copy { min-width: 0; display: flex; flex-direction: column; justify-content: center; gap: 3px; padding: 9px 7px 8px 10px; }
.package-card-copy strong { overflow: hidden; color: var(--green-dark); font-size: 14px; line-height: 1.25; text-overflow: ellipsis; white-space: nowrap; }
.package-card-copy small { color: #52645a; font-size: 8px; line-height: 1.22; white-space: nowrap; }
.package-card-action { min-width: 0; display: flex; flex-direction: column; align-items: stretch; justify-content: center; padding: 9px 5px 7px 0; text-align: center; }
.package-card-action em { min-height: 25px; overflow-wrap: anywhere; color: #e7bc28; font-size: 8px; font-style: normal; line-height: 1.2; }
.package-card-action b { min-height: 40px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 4px; border-radius: 7px; color: white; background: #2eac69; font-size: 11px; }
.package-card-action b small { color: white; font-size: 7px; font-weight: 500; line-height: 1; }
.package-card:active:not(:disabled) { transform: translateY(1px); }
.package-card.is-locked { cursor: default; }
.package-card.is-level-locked .package-card-action b { background: #8a948e; }
.locked-label { position: absolute; z-index: 3; inset: 0; display: grid; place-items: center; color: #1c4030; background: rgba(99,226,181,.78); font-size: 17px; font-style: normal; font-weight: 800; }

/* Package detail */
.detail-page .page-scroll { padding-left: 0; padding-right: 0; padding-bottom: 35px; }
.package-cover { position: relative; height: 245px; display: grid; place-items: center; overflow: hidden; background: linear-gradient(145deg, #edf8f0, #9ce4b7); }
.package-cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(24,130,72,.22), transparent 55%); }
.package-cover > img { width: 100%; height: 100%; display: block; object-fit: cover; }
.package-cover .network-art { width: 100%; transform: scale(1.25); }
.package-cover > span { position: absolute; z-index: 4; right: 20px; bottom: 16px; color: white; font-size: 22px; font-weight: 800; }
.detail-intro { position: relative; padding: 22px 20px; border-bottom: 8px solid var(--surface); }
.detail-intro > span { color: var(--green-dark); font-size: 11px; font-weight: 700; }
.detail-intro h1 { margin: 6px 0 0; font-size: 21px; }
.detail-intro > strong { position: absolute; right: 20px; bottom: 22px; color: var(--green-dark); font-size: 21px; }
.detail-intro small { font-size: 9px; color: var(--muted); }
.parameter-list { padding: 5px 20px; }
.parameter-list > div { min-height: 45px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); font-size: 12px; }
.parameter-list span { color: var(--muted); }
.quantity-row { min-height: 65px; display: flex; align-items: center; justify-content: space-between; padding: 0 20px; border-top: 8px solid var(--surface); font-size: 13px; }
.quantity-row > div { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 5px; }
.quantity-row button { width: 38px; height: 34px; display: grid; place-items: center; }
.quantity-row .icon { width: 15px; }
.quantity-row strong { min-width: 40px; text-align: center; font-size: 13px; }
.activate-button { width: calc(100% - 40px); margin: 10px 20px 0; }
.package-level-notice { margin: 12px 20px 0; padding: 10px 12px; border: 1px solid #f0dca0; border-radius: 6px; color: #775c09; background: #fff9e7; font-size: 12px; text-align: center; }

/* Connect */
.connect-card { padding: 16px; margin-bottom: 24px; border-radius: 8px; background: #f3fbf6; }
.connect-visual { position: relative; height: 170px; overflow: hidden; border-radius: 7px; background: linear-gradient(145deg, #29b768, #5edda0); }
.connect-visual .network-art { transform: scale(.9); }
.running-dot { position: absolute; top: 13px; right: 13px; width: 11px; height: 11px; border: 3px solid rgba(255,255,255,.75); border-radius: 50%; background: #18e275; box-shadow: 0 0 12px #18e275; }
.connect-title { display: flex; justify-content: space-between; align-items: center; padding: 16px 2px 10px; }
.connect-title small { color: var(--muted); font-size: 9px; }
.connect-title h2 { margin: 4px 0 0; font-size: 17px; }
.connect-title > span { padding: 5px 10px; border-radius: 12px; color: var(--green-dark); background: #dff5e7; font-size: 10px; font-weight: 700; }
.node-progress > div { display: flex; justify-content: space-between; font-size: 10px; }
.node-progress i { height: 5px; display: block; margin-top: 7px; overflow: hidden; border-radius: 5px; background: #dfe8e1; }
.node-progress b { height: 100%; display: block; background: var(--green); }
.node-features { display: flex; justify-content: space-between; margin-top: 15px; padding-top: 12px; border-top: 1px solid #dcebe1; color: #6f7972; font-size: 9px; }
.node-features span { display: flex; align-items: center; gap: 4px; }
.node-features .icon { width: 13px; color: var(--green-dark); }
.subheading { margin: 22px 0 13px; font-size: 17px; }
.connect-page .page-scroll { padding: 14px 18px 22px; }
.connect-head { min-height: 38px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.connect-brand { min-width: 0; display: flex; align-items: center; gap: 8px; color: var(--green-dark); }
.connect-logo-mark { width: 25px; height: 28px; display: block; object-fit: contain; }
.connect-brand strong { font-family: Georgia, "Times New Roman", serif; font-size: 20px; font-weight: 500; white-space: nowrap; }
.connect-head > button { width: 36px; height: 36px; display: grid; place-items: center; color: #4ebc78; }
.connect-head > button .icon { width: 27px; height: 27px; }
.connect-page-title { margin: 5px 0 20px; text-align: center; font-size: 27px; line-height: 1.15; }
.node-device-card { min-height: 94px; display: grid; grid-template-columns: 94px minmax(0, 1fr) 68px; align-items: center; gap: 10px; padding: 8px 10px; overflow: hidden; border: 1px solid #dfe8e1; border-radius: 8px; background: #f5f8f6; }
.node-device-card.is-running { border-color: #29cb67; background: #e5faed; }
.node-device-image { width: 94px; height: 76px; display: block; border-radius: 7px; object-fit: cover; }
.node-device-copy { min-width: 0; display: grid; align-content: center; gap: 2px; }
.node-device-copy > div { min-width: 0; display: flex; align-items: center; gap: 5px; }
.node-device-copy h2 { min-width: 0; margin: 0 0 2px; overflow: hidden; font-size: 15px; line-height: 1.2; text-overflow: ellipsis; white-space: nowrap; }
.node-device-copy em { flex: 0 0 auto; color: #97a19a; font-size: 6px; font-style: normal; }
.node-device-card.is-running .node-device-copy em { color: var(--green-dark); }
.node-device-copy > span { color: #7c9083; font-size: 7px; line-height: 1.35; }
.node-device-card.is-running .node-device-copy > span { color: var(--green-dark); }
.node-power { width: 66px; height: 40px; display: grid; place-items: center start; flex: 0 0 auto; padding: 3px; border: 0; border-radius: 22px; color: #a1a9a4; background: #b9bdbb; transition: background .18s ease, transform .18s ease; }
.node-power .icon { width: 34px; height: 34px; padding: 5px; border: 2px solid #a4aaa6; border-radius: 50%; color: #969e99; background: white; stroke-width: 2; }
.node-power:not(span):active { transform: scale(.96); }
.node-power:disabled { cursor: wait; opacity: .7; }
.node-power.on { place-items: center end; background: #50c780; }
.node-power.on .icon { border-color: #2eaa65; color: #2eaa65; }
.node-specs { padding: 14px 10px 0; }
.node-specs h2 { margin: 0 0 5px; font-size: 17px; }
.node-specs dl { margin: 0; }
.node-specs dl > div { min-height: 21px; display: grid; grid-template-columns: 105px minmax(0, 1fr); align-items: center; }
.node-specs dt { display: flex; align-items: center; gap: 7px; color: #a6aba8; font-size: 11px; }
.node-specs dt::before { content: ""; width: 7px; height: 7px; flex: 0 0 auto; border-radius: 50%; background: #919793; box-shadow: 0 0 3px rgba(47,58,51,.4); }
.node-specs dd { min-width: 0; margin: 0; color: #a6aba8; font-size: 11px; white-space: nowrap; }
.node-specs dl > div:last-child dd { text-align: right; }
.score-stars { color: #9ea5a0 !important; letter-spacing: 1px; }
.node-scan { position: relative; height: 32px; margin: 5px 0 0; overflow: hidden; opacity: .78; background: repeating-linear-gradient(90deg, #969c98 0 3px, transparent 3px 7px); mask-image: linear-gradient(to right, transparent, black 2%, black 98%, transparent); }
.node-specs.is-running dt { color: #7ba18a; }
.node-specs.is-running dt::before { background: #18d967; box-shadow: 0 0 5px rgba(24,217,103,.5); }
.node-specs.is-running dd { color: #7ba18a; }
.node-specs.is-running .score-stars { color: var(--green) !important; }
.node-evaluation { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.node-evaluation > span { min-width: 34px; color: inherit; font-weight: 700; }
.node-evaluation b { color: inherit; font-size: 10px; font-weight: 500; }
.node-specs.is-running .node-evaluation b { color: var(--green-dark); }
.node-scan > span { position: absolute; inset: 0; width: 100%; display: block; background: repeating-linear-gradient(90deg, #969c98 0 3px, transparent 3px 7px); transition: opacity .35s ease, background .25s ease; }
.node-specs.is-running .node-scan > span { background: repeating-linear-gradient(90deg, #38cc78 0 3px, transparent 3px 7px); }
.node-claim-button { min-height: 38px; margin-top: 10px; font-size: 11px; }
.connect-package-section { margin-top: 16px; }
.connect-package-list { display: grid; gap: 10px; }
.connect-package-row { min-width: 0; min-height: 94px; display: grid; grid-template-columns: 138px minmax(0, 1fr) 72px; gap: 10px; align-items: center; padding: 7px; overflow: hidden; border: 0; border-radius: 8px; text-align: left; background: #d5f9ea; }
.connect-package-row:active { background: #c3f3dc; }
.connect-package-image { width: 138px; height: 80px; overflow: hidden; border-radius: 7px; background: #b8edda; }
.connect-package-image img { width: 100%; height: 100%; display: block; object-fit: cover; }
.connect-package-copy { min-width: 0; display: grid; align-content: center; gap: 2px; }
.connect-package-copy strong { overflow: hidden; color: #2a9e5e; font-size: 12px; line-height: 1.25; text-overflow: ellipsis; white-space: nowrap; }
.connect-package-copy small { overflow: hidden; color: #45584c; text-overflow: ellipsis; white-space: nowrap; font-size: 6px; line-height: 1.2; }
.connect-package-status { min-width: 0; height: 42px; display: grid; place-items: center; padding: 4px 5px; border-radius: 7px; color: #a5aaa7; background: rgba(255,255,255,.9); }
.connect-package-status.active { color: var(--green-dark); }
.connect-package-status small { display: grid; place-items: center; color: #66cc91; }
.connect-package-status.inactive small { color: #a5aaa7; }
.connect-package-status .icon { width: 19px; height: 19px; }
.closed-pool { display: flex; justify-content: space-between; align-items: center; margin-top: 16px; padding: 15px; border: 1px solid var(--line); border-radius: 7px; }
.closed-pool > div { display: flex; gap: 12px; align-items: center; }
.closed-pool > div > span { display: grid; gap: 3px; }
.closed-pool small { color: var(--muted); font-size: 9px; }
.closed-pool em { color: var(--muted); font-size: 10px; font-style: normal; }

/* Team */
.level-card { padding: 20px; border-radius: 8px; background: var(--green-soft); }
.level-card > div:first-child { display: flex; align-items: end; gap: 8px; }
.level-card > div:first-child span { color: #637069; font-size: 11px; }
.level-card > div:first-child strong { color: var(--green-dark); font-size: 26px; }
.level-card > button { position: absolute; right: 40px; margin-top: -31px; display: flex; align-items: center; color: var(--green-dark); font-size: 10px; }
.level-card .icon { width: 14px; }
.level-card p { margin: 16px 0 10px; color: #69736d; font-size: 10px; line-height: 1.6; }
.progress-line { height: 5px; overflow: hidden; border-radius: 5px; background: white; }
.progress-line span { height: 100%; display: block; background: var(--green); }
.progress-values { display: flex; justify-content: space-between; margin-top: 5px; color: #78827c; font-size: 9px; }
.team-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 14px 0; }
.team-stats > div { display: grid; grid-template-columns: 40px 1fr; align-items: center; column-gap: 10px; padding: 13px; border: 1px solid var(--line); border-radius: 7px; }
.team-stats .round-icon { grid-row: 1 / 3; }
.team-stats strong { font-size: 17px; }
.team-stats small { color: var(--muted); font-size: 9px; }
.generation-strip { display: grid; grid-template-columns: repeat(3, 1fr); margin: 14px 0; border: 1px solid var(--line); border-radius: 7px; background: #f8faf8; }
.generation-strip span { min-width: 0; display: grid; justify-items: center; gap: 4px; padding: 13px 7px; color: var(--muted); font-size: 9px; }
.generation-strip span + span { border-left: 1px solid var(--line); }
.generation-strip b { color: var(--ink); font-size: 16px; }
.leader-card,
.member-card { margin-top: 14px; padding: 17px; border: 1px solid var(--line); border-radius: 7px; }
.leader-card h2 { margin: 0 0 14px; font-size: 16px; }
.leader { display: flex; align-items: center; gap: 10px; }
.leader > div { flex: 1; display: grid; gap: 4px; }
.leader small { color: var(--muted); font-size: 9px; }
.leader em { color: var(--green-dark); font-size: 9px; font-style: normal; }
.member-row { display: flex; align-items: center; gap: 11px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.member-row:last-child { border: 0; padding-bottom: 0; }
.member-row > div { flex: 1; display: grid; gap: 4px; }
.member-row small { color: var(--muted); font-size: 9px; }
.member-row em { color: var(--green-dark); font-style: normal; font-weight: 700; font-size: 12px; }
.body-note { margin: 0 0 16px; color: var(--muted); font-size: 11px; line-height: 1.65; }
.body-note.centered { text-align: center; }
.level-tabs { display: flex; gap: 6px; padding-bottom: 16px; overflow-x: auto; }
.level-tabs button { flex: 0 0 auto; padding: 7px 11px; border-radius: 15px; background: #f0f2f0; color: #8a928d; font-size: 10px; }
.level-tabs button.active { color: white; background: var(--green); }
.level-list { display: grid; }
.level-item { min-height: 75px; display: flex; align-items: center; gap: 12px; border-bottom: 1px solid var(--line); }
.level-item > span { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; color: #9da49f; background: #f0f2f0; font-size: 11px; }
.level-item.done > span { color: white; background: var(--green); }
.level-item .icon { width: 15px; }
.level-item > div { flex: 1; }
.level-item h2 { margin: 0 0 4px; font-size: 13px; }
.level-item p { margin: 0; color: var(--muted); font-size: 9px; }
.level-item em { color: var(--muted); font-size: 9px; font-style: normal; }
.level-item.done em { color: var(--green-dark); }

.team-page .page-scroll { padding: 13px 18px 22px; }
.team-head { min-height: 40px; display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 7px; }
.team-brand { min-width: 0; display: flex; align-items: center; gap: 8px; color: var(--green-dark); }
.team-brand img { width: 25px; height: 28px; object-fit: contain; }
.team-brand strong { font-family: Georgia, "Times New Roman", serif; font-size: 20px; font-weight: 500; white-space: nowrap; }
.team-head > button { width: 38px; height: 38px; display: grid; place-items: center; color: #49bb74; }
.team-head > button .icon { width: 27px; height: 27px; }
.team-level-card { position: relative; min-height: 132px; display: grid; grid-template-columns: 64px minmax(0, 1fr) 92px; align-items: center; gap: 6px; overflow: hidden; padding: 14px 10px; border-radius: 7px; color: #35a9b8; background: #bdf4f7; }
.team-level-card.level-0 { color: #858b87; background: #e2e4e3; }
.team-level-card.level-1 { color: #b49324; background: #fff2bd; }
.team-level-card.level-2 { color: #35a9b8; background: #bdf4f7; }
.team-level-card.level-3 { color: #bd59d0; background: #f5dcf7; }
.team-level-card.level-4 { color: #358fbd; background: #c9eafa; }
.team-level-card.level-5 { color: #ca682e; background: #ffd1aa; }
.team-level-card.level-6 { color: #269a62; background: #bff6d8; }
.team-level-mark { width: 58px; height: 58px; display: block; object-fit: contain; mix-blend-mode: multiply; }
.team-level-copy { position: relative; z-index: 2; min-width: 0; display: grid; align-content: center; gap: 8px; }
.team-level-copy > strong { font-family: Georgia, "Times New Roman", serif; font-size: 30px; line-height: 1; }
.team-level-copy > span { font-size: 10px; }
.team-level-copy p { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 0; font-size: 10px; }
.team-level-copy p b { display: flex; align-items: center; gap: 2px; font-weight: 500; white-space: nowrap; }
.team-level-copy p .icon { width: 14px; height: 14px; color: #10ba4c; stroke-width: 4; }
.team-vip-image { width: 94px; height: 94px; display: block; object-fit: contain; opacity: .5; mix-blend-mode: multiply; }
.team-level-card > em { position: absolute; top: 0; right: 0; min-width: 90px; padding: 6px 10px; border-radius: 0 7px 0 9px; color: inherit; background: rgba(255,255,255,.35); text-align: center; font-size: 9px; font-style: normal; }
.team-level-tabs { display: grid; grid-template-columns: repeat(7, 1fr); margin: 6px 0 16px; }
.team-level-tabs button { min-width: 0; height: 29px; padding: 0; border-radius: 4px; color: #a3aaa5; font-size: 10px; }
.team-level-tabs button.active { color: white; background: #9da29f; font-weight: 700; }
.team-block { margin-bottom: 10px; }
.team-section-title { display: flex; align-items: center; gap: 8px; margin-bottom: 7px; }
.team-section-title > span { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; color: #42bd72; background: #d8f8e4; }
.team-section-title > span .icon { width: 24px; height: 24px; }
.team-section-title h2 { margin: 0 0 2px; font-size: 14px; }
.team-section-title small { color: #adb3af; font-size: 7px; }
.team-overview-card { min-height: 135px; display: grid; grid-template-columns: 54% 46%; overflow: hidden; border: 1px solid #54c77e; border-radius: 8px 8px 0 0; background: #f9fffb; }
.team-overview-stats { display: grid; grid-template-columns: 1fr 1fr; align-content: center; gap: 17px 10px; padding: 13px 8px; }
.team-overview-stats > div { min-width: 0; display: grid; grid-template-columns: 29px minmax(0, 1fr); align-items: center; column-gap: 5px; }
.team-overview-stats > div > span { grid-row: 1 / 3; width: 29px; height: 29px; display: grid; place-items: center; border-radius: 50%; color: #42bd72; background: #d8f8e4; }
.team-overview-stats .icon { width: 16px; height: 16px; }
.team-overview-stats small { overflow: hidden; color: #909a93; font-size: 7px; text-overflow: ellipsis; white-space: nowrap; }
.team-overview-stats strong { overflow: hidden; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.team-overview-stats strong em { display: block; margin-top: 2px; color: #36b669; font-size: 5px; font-style: normal; }
.team-overview-card > img { width: 100%; height: 100%; display: block; object-fit: cover; object-position: center; mix-blend-mode: multiply; }
.team-package-matrix { overflow: hidden; border: 1px solid #54c77e; border-top: 0; border-radius: 0 0 7px 7px; }
.matrix-row { min-height: 29px; display: grid; grid-template-columns: 68px repeat(6, minmax(0, 1fr)); align-items: center; color: #35ad65; font-size: 7px; }
.matrix-row + .matrix-row { border-top: 1px solid #75d095; }
.matrix-row > * { min-width: 0; padding: 0 2px; overflow: hidden; text-align: center; text-overflow: ellipsis; white-space: nowrap; }
.matrix-row > strong { display: flex; align-items: center; gap: 3px; color: #979f9a; font-size: 7px; font-weight: 500; text-align: left; }
.matrix-row > strong .icon { width: 12px; height: 12px; flex: 0 0 auto; }
.matrix-head { min-height: 25px; color: #56bd7a; background: #d1f4cf; }
.matrix-head b { font-weight: 500; }
.team-leader-card { margin: 8px 0; }
.team-leader-card > h2 { display: flex; align-items: center; gap: 5px; margin: 0 0 6px; color: #152019; font-size: 13px; }
.team-leader-card > h2 .icon { width: 17px; height: 17px; color: #45bd72; }
.leader-profile { min-height: 52px; display: grid; grid-template-columns: 1.15fr 1fr 1fr; overflow: hidden; border: 1px solid #84d8a3; border-radius: 7px; background: #fff; }
.leader-metric { min-width: 0; display: flex; align-items: center; gap: 4px; padding: 7px 6px; }
.leader-metric + .leader-metric { border-left: 1px solid #e0eee3; }
.leader-metric > img { width: 24px; height: 24px; flex: 0 0 auto; display: block; object-fit: contain; }
.leader-metric > div { min-width: 0; display: grid; gap: 2px; }
.leader-metric small { overflow: hidden; color: #929a95; font-size: 7px; line-height: 1.2; text-overflow: ellipsis; white-space: nowrap; }
.leader-metric strong { overflow: hidden; color: #1f2b23; font-size: 8px; line-height: 1.2; text-overflow: ellipsis; white-space: nowrap; }
.leader-metric em { color: #38ad65; font-size: 6px; font-style: normal; }
.team-invite-card { min-height: 145px; display: grid; grid-template-columns: minmax(0, 1fr) 130px; overflow: hidden; padding: 10px; border: 1px solid #dbe6df; border-radius: 7px; }
.team-invite-card > div { position: relative; z-index: 2; min-width: 0; }
.team-invite-card h2 { margin: 0 0 3px; color: #39ad67; font-size: 15px; }
.team-invite-card p { margin: 0 0 12px; color: #989f9b; font-size: 7px; }
.team-invite-card label { display: block; margin-bottom: 4px; color: #a1a7a3; font-size: 6px; }
.team-invite-code { height: 38px; display: grid; grid-template-columns: 1fr 50px; align-items: center; overflow: hidden; border: 1px solid #b9e8ca; border-radius: 7px; color: #37b368; background: white; }
.team-invite-code strong { padding-left: 10px; overflow: hidden; font-size: 16px; text-overflow: ellipsis; white-space: nowrap; }
.team-invite-code button { height: 100%; border-left: 1px solid #b9e8ca; color: #37b368; font-size: 9px; }
.team-invite-link { min-height: 30px; display: flex; align-items: center; justify-content: center; gap: 5px; margin-top: 8px; padding: 0 12px; border-radius: 15px; color: white; background: #4dbe78; font-size: 8px; }
.team-invite-link .icon { width: 12px; height: 12px; }
.team-invite-card > img { width: 135px; height: 130px; align-self: center; object-fit: contain; mix-blend-mode: multiply; }
.team-members { margin-top: 10px; }

.commission-page .page-scroll { padding-top: 14px; }
.commission-intro { margin: 0 0 14px; color: #7f8983; font-size: 11px; line-height: 1.7; }
.commission-section { margin-bottom: 20px; }
.commission-section > h2 { display: flex; align-items: center; gap: 6px; margin: 0 0 7px; color: #40b76e; font-size: 18px; }
.commission-section > h2 .icon { width: 25px; height: 25px; }
.commission-section > h2 small { color: #9ca39f; font-size: 9px; font-weight: 400; }
.commission-section .team-package-matrix { border-top: 1px solid #54c77e; border-radius: 7px; }
.commission-rates { display: grid; grid-template-columns: repeat(3, 1fr); margin-bottom: 8px; border: 1px solid #54c77e; border-radius: 7px; background: #eefbed; }
.commission-rates span { display: grid; justify-items: center; gap: 3px; padding: 8px 4px; color: #8a958e; font-size: 8px; }
.commission-rates span + span { border-left: 1px solid #83d39f; }
.commission-rates b { color: #32ad62; font-size: 13px; }
.commission-table { overflow: hidden; border: 1px solid #54c77e; border-radius: 7px; }
.commission-row { min-height: 44px; display: grid; grid-template-columns: 1.05fr 1.25fr .8fr 1.25fr; align-items: center; color: #36ab64; text-align: center; font-size: 11px; }
.commission-row + .commission-row { border-top: 1px solid #78cf96; }
.commission-head-row { min-height: 48px; background: #d1f4cf; color: #42af67; font-size: 15px; }
.commission-row strong { color: #8f9792; font-family: Georgia, "Times New Roman", serif; font-size: 17px; }
.commission-examples { margin-top: 10px; color: #8d9690; font-size: 10px; line-height: 1.65; }
.commission-examples p { margin: 0 0 6px; }
.commission-examples strong { color: #758079; }
.commission-examples small { display: block; color: #a0a8a3; font-size: 9px; line-height: 1.55; }

/* Profile and wallet */
.profile-user { display: flex; align-items: center; gap: 14px; margin: 5px 0 20px; }
.profile-user > div { flex: 1; }
.profile-user h1 { display: inline-block; margin: 0 8px 4px 0; font-size: 22px; }
.profile-user p { margin: 0; color: var(--muted); font-size: 10px; }
.profile-user p button { vertical-align: middle; color: var(--green-dark); }
.profile-user p .icon { width: 13px; }
.profile-user > div > span { float: right; margin-top: -39px; padding: 5px 9px; border-radius: 12px; color: var(--green-dark); background: var(--green-soft); font-size: 10px; font-weight: 700; }
.wallet-overview { padding: 19px; border-radius: 8px; color: white; background: linear-gradient(135deg, #21aa5b, #56d88b); }
.wallet-overview p { margin: 0; opacity: .75; font-size: 10px; }
.wallet-overview h2 { margin: 6px 0 18px; font-size: 28px; }
.wallet-overview h2 small { font-size: 10px; }
.wallet-overview > div { display: flex; justify-content: space-between; align-items: center; font-size: 10px; }
.wallet-overview button { padding: 6px 10px; border-radius: 4px; color: var(--green-dark); background: white; font-size: 9px; }
.wallet-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 18px 0; }
.wallet-actions .shortcut small { display: none; }
.wallet-actions .shortcut > span { width: 42px; height: 42px; }
.profile-menu { border-top: 1px solid var(--line); }
.menu-row { width: 100%; min-height: 52px; display: flex; align-items: center; gap: 12px; border-bottom: 1px solid var(--line); text-align: left; font-size: 13px; }
.menu-row > .icon:first-child { width: 19px; color: #6d766f; }
.menu-row > span { flex: 1; }
.menu-row > .icon:last-child { width: 15px; color: #b7bdb9; }
.switch { width: 39px; height: 22px; position: relative; border-radius: 13px; background: #d8ddda; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: white; transition: .2s; }
.switch.on { background: var(--green); }
.switch.on::after { transform: translateX(17px); }
.asset-total { padding: 22px; border-radius: 8px; color: white; background: linear-gradient(135deg, #20ad5d, #57d993); }
.asset-total p { margin: 0 0 5px; opacity: .8; font-size: 11px; }
.asset-total h1 { margin: 0; font-size: 29px; }
.asset-total small { font-size: 10px; }
.three-wallets { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 14px; }
.three-wallets button { min-width: 0; display: grid; justify-items: center; gap: 5px; padding: 13px 5px; border: 1px solid var(--line); border-radius: 7px; }
.three-wallets .icon { width: 21px; color: var(--green-dark); }
.three-wallets span { font-size: 9px; }
.three-wallets strong { font-size: 12px; }
.three-wallets small { color: var(--muted); font-size: 8px; }
.record-tabs { display: flex; gap: 8px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.record-tabs button { padding: 6px 10px; border-radius: 13px; color: var(--muted); font-size: 10px; }
.record-tabs button.active { color: var(--green-dark); background: var(--green-soft); }
.record-row { min-height: 65px; display: flex; align-items: center; gap: 11px; border-bottom: 1px solid var(--line); }
.record-row > div { flex: 1; display: grid; gap: 4px; }
.record-row strong { font-size: 12px; }
.record-row small { color: var(--muted); font-size: 9px; }
.record-row em { font-size: 11px; font-style: normal; font-weight: 700; }
.record-row em.positive { color: var(--green-dark); }
.record-row em.negative { color: #59635d; }
.records-loading { margin: 34px 0; color: var(--muted); text-align: center; font-size: 11px; }
.records-empty { display: grid; justify-items: center; gap: 12px; margin: 34px 0; color: var(--muted); font-size: 11px; }
.records-empty p { margin: 0; }
.records-empty button { min-height: 34px; padding: 0 18px; border-radius: 5px; color: white; background: var(--green); }

/* Forms and secondary pages */
.plain-form { display: grid; gap: 18px; }
.plain-form input,
.plain-form select,
.plain-form textarea { width: 100%; height: 48px; padding: 0 13px; border: 1px solid var(--line); border-radius: 6px; outline: 0; color: var(--ink); background: #fafbfa; }
.plain-form input:focus,
.plain-form select:focus,
.plain-form textarea:focus { border-color: var(--green); }
.qr { width: 165px; height: 165px; display: grid; place-items: center; margin: 0 auto; border: 10px solid white; outline: 1px solid var(--line); background: repeating-linear-gradient(45deg, #1e2921 0 5px, white 5px 10px); }
.qr > span { width: 62px; height: 62px; display: grid; place-items: center; background: white; }
.copy-field { display: flex; }
.copy-field input { border-radius: 6px 0 0 6px; }
.copy-field button { min-width: 65px; border-radius: 0 6px 6px 0; color: white; background: var(--green); font-size: 11px; font-weight: 700; }
.address-field { display: grid; grid-template-columns: minmax(0, 1fr) 65px; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; background: #fafbfa; }
.address-field code { min-height: 48px; display: flex; align-items: center; padding: 11px 13px; overflow-wrap: anywhere; color: var(--ink); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11px; line-height: 1.45; }
.address-field button { color: white; background: var(--green); font-size: 11px; font-weight: 700; }
.form-note { padding: 14px; border-radius: 6px; color: #7b847e; background: var(--surface); font-size: 10px; line-height: 1.6; }
.form-note strong { color: var(--ink); }
.form-note p { margin: 6px 0 0; }
.wallet-balance { padding: 19px; margin-bottom: 20px; border-radius: 7px; color: white; background: linear-gradient(135deg, #20ad5d, #57d993); }
.wallet-balance span { display: block; margin-bottom: 6px; opacity: .8; font-size: 10px; }
.wallet-balance strong { font-size: 26px; }
.wallet-balance small { font-size: 10px; }
.fee-list { display: grid; gap: 9px; padding: 13px; border-radius: 6px; background: var(--surface); font-size: 10px; }
.fee-list span { display: flex; justify-content: space-between; }
.transfer-arrow { display: grid; place-items: center; height: 40px; color: var(--green-dark); transform: rotate(90deg); }
.invite-hero { display: grid; justify-items: center; padding: 24px 10px; text-align: center; }
.invite-hero > .icon { width: 52px; height: 52px; color: var(--green); }
.invite-hero h1 { margin: 15px 0 6px; font-size: 23px; }
.invite-hero p { margin: 0; color: var(--muted); font-size: 11px; }
.invite-code { display: grid; justify-items: center; gap: 8px; padding: 23px; margin-bottom: 14px; border: 1px solid var(--line); border-radius: 7px; }
.invite-code span { color: var(--muted); font-size: 10px; }
.invite-code strong { color: var(--green-dark); font-size: 31px; letter-spacing: .15em; }
.invite-code button { color: var(--green-dark); font-size: 11px; font-weight: 700; }
.invite-copy { margin: 18px auto; max-width: 280px; color: var(--muted); text-align: center; font-size: 10px; line-height: 1.7; }
.message-detail { padding: 15px; margin: 12px 0; border-radius: 6px; background: var(--surface); }
.message-detail h2 { margin: 0 0 8px; font-size: 14px; overflow-wrap: anywhere; }
.message-detail time { display: block; margin-bottom: 10px; color: var(--muted); font-size: 11px; }
.message-detail p { margin: 0; color: var(--ink); font-size: 13px; line-height: 1.7; white-space: pre-wrap; overflow-wrap: anywhere; }
.file-input { position: absolute; width: 1px; height: 1px; overflow: hidden; opacity: 0; pointer-events: none; }
.upload-field { display: grid; gap: 9px; }
.upload-label { color: #59615c; font-size: 13px; font-weight: 600; }
.upload-box { min-height: 110px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; border: 1px dashed #bdc6c0; border-radius: 6px; color: var(--muted); background: #fafbfa; font-size: 10px; }
.upload-box .icon { color: var(--green-dark); }
.language-list { border-top: 1px solid var(--line); }
.language-list button { width: 100%; min-height: 62px; display: flex; align-items: center; justify-content: space-between; gap: 14px; border-bottom: 1px solid var(--line); font-size: 13px; text-align: left; }
.language-option { display: inline-flex; align-items: center; gap: 12px; min-width: 0; }
.language-flag { width: 36px; height: 23px; display: block; flex: 0 0 auto; overflow: hidden; border-radius: 3px; object-fit: cover; box-shadow: 0 0 0 1px rgba(26,46,34,.08); }
.language-list .icon { width: 18px; color: var(--green-dark); }
.support-page .page-scroll { display: flex; flex-direction: column; padding-bottom: 0; }
.support-head { display: flex; align-items: center; gap: 10px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.support-head > div { display: grid; gap: 3px; }
.support-head strong { font-size: 13px; }
.support-head small { color: var(--green-dark); font-size: 9px; }
.support-head small::before { content: ""; width: 5px; height: 5px; display: inline-block; margin-right: 5px; border-radius: 50%; background: currentColor; vertical-align: 1px; }
.support-head small.offline { color: var(--muted); }
.chat { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 14px; overflow-y: auto; padding: 22px 0; scroll-behavior: smooth; }
.chat-message { max-width: 78%; display: flex; flex-direction: column; gap: 4px; align-self: flex-start; }
.chat-message.user { align-self: flex-end; align-items: flex-end; }
.chat-message > div { overflow: hidden; padding: 11px 13px; border-radius: 3px 8px 8px 8px; background: #f0f2f0; font-size: 11px; line-height: 1.55; overflow-wrap: anywhere; }
.chat-message.user > div { border-radius: 8px 3px 8px 8px; color: white; background: var(--green); }
.chat-message p { margin: 0; }
.chat-message img { display: block; width: auto; max-width: min(260px, 100%); max-height: 300px; border-radius: 5px; object-fit: contain; }
.chat-message p + a img { margin-top: 8px; }
.chat-message time { padding: 0 3px; color: var(--muted); font-size: 8px; }
.chat-loading { align-self: center; margin: auto 0; color: var(--muted); font-size: 10px; }
.support-login { display: grid; justify-items: center; gap: 10px; margin: auto; color: var(--muted); font-size: 11px; }
.support-login p { margin: 0; }
.support-login button { min-height: 36px; padding: 0 18px; border-radius: 5px; color: white; background: var(--green); font-weight: 700; }
.chat-form { display: grid; gap: 7px; padding: 10px 0 calc(10px + var(--safe-bottom)); border-top: 1px solid var(--line); background: white; }
.chat-compose { display: grid; grid-template-columns: 42px minmax(0, 1fr) 46px; align-items: end; gap: 7px; }
.chat-compose textarea { min-width: 0; height: 42px; max-height: 92px; padding: 11px 12px; resize: none; border: 1px solid var(--line); border-radius: 5px; outline: 0; font-size: 11px; line-height: 18px; }
.chat-compose textarea:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(49,191,105,.1); }
.chat-image-button, .chat-send-button { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 5px; }
.chat-image-button { border: 1px solid var(--line); color: var(--green-dark); background: var(--surface); }
.chat-send-button { width: 46px; color: white; background: var(--green); }
.chat-image-button .icon, .chat-send-button .icon { width: 19px; height: 19px; }
.chat-send-button:disabled { opacity: .55; cursor: wait; }
.chat-upload-help { color: var(--muted); font-size: 8px; }
.support-image-preview { min-height: 30px; display: flex; align-items: center; gap: 8px; padding: 6px 8px; border: 1px solid #cde8d6; border-radius: 4px; color: var(--green-dark); background: var(--green-soft); font-size: 9px; }
.support-image-preview[hidden] { display: none; }
.support-image-preview span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.support-image-preview button { width: 22px; height: 22px; display: grid; place-items: center; }
.support-image-preview .icon { width: 14px; height: 14px; }
.about-page .page-scroll { padding: 14px 20px 44px; }
.about-head { height: 43px; display: flex; align-items: center; }
.about-head button { width: 38px; height: 38px; display: grid; place-items: center; margin-left: -9px; color: #a8ada9; }
.about-head .icon { width: 29px; height: 29px; stroke-width: 2.5; }
.about-poster { width: 100%; aspect-ratio: 1672 / 941; display: block; margin-top: 3px; object-fit: cover; }
.about-copy { padding: 0; color: #a1a5a2; background: transparent; font-size: 14px; line-height: 1.55; }
.about-copy h1 { margin: 47px 0 5px; color: #151a17; font-size: 25px; line-height: 1.25; }
.about-copy h2 { margin: 0 0 21px; color: #151a17; font-size: 16px; line-height: 1.4; }
.about-copy p { margin: 0 0 22px; text-align: justify; }
.about-copy strong { display: flex; align-items: center; gap: 7px; margin-top: 6px; color: #111713; font-size: 15px; }
.about-copy strong i { width: 31px; height: 1px; display: block; background: #6f7471; }
.about-whitepaper { min-height: 49px; display: flex; align-items: center; gap: 10px; margin-top: 30px; padding: 0 13px; border: 1px solid #d8e9dc; border-radius: 7px; color: var(--green-dark); background: #f7fcf8; font-size: 12px; font-weight: 700; text-decoration: none; }
.about-whitepaper .icon:first-child { width: 19px; }
.about-whitepaper .icon:last-child { width: 15px; margin-left: auto; color: #a9b9ae; }
.empty { display: grid; gap: 20px; justify-items: center; padding-top: 100px; }

/* Dialog and toast */
.toast {
  position: fixed;
  z-index: 100;
  left: 50%;
  bottom: 90px;
  max-width: min(300px, calc(100% - 40px));
  padding: 10px 16px;
  border-radius: 4px;
  color: white;
  background: rgba(27,33,29,.9);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 8px);
  transition: .2s;
  font-size: 12px;
}

.toast.show { opacity: 1; transform: translate(-50%, 0); }
.node-start-overlay {
  position: fixed;
  z-index: 200;
  inset: 0;
  width: 100vw;
  height: 100dvh;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #000;
  touch-action: none;
}
.node-start-overlay::after {
  content: "";
  width: 30px;
  height: 30px;
  position: absolute;
  border: 2px solid rgba(255,255,255,.25);
  border-top-color: #fff;
  border-radius: 50%;
  animation: node-video-loading .75s linear infinite;
}
.node-start-overlay.is-playing::after { display: none; }
.node-start-video {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
  object-fit: cover;
  opacity: 0;
  pointer-events: none;
}
.node-start-overlay.is-playing .node-start-video { opacity: 1; }
.node-start-overlay:fullscreen,
.node-start-overlay:-webkit-full-screen { width: 100%; height: 100%; }
@keyframes node-video-loading { to { transform: rotate(360deg); } }
.dialog-backdrop { position: fixed; z-index: 90; inset: 0; display: grid; place-items: center; padding: 24px; background: rgba(14,22,17,.48); }
.dialog { width: min(330px, 100%); padding: 27px 22px 20px; border-radius: 9px; background: white; text-align: center; }
.dialog-symbol { width: 46px; height: 46px; display: grid; place-items: center; margin: 0 auto 13px; border-radius: 50%; color: white; background: var(--green); }
.dialog.error .dialog-symbol { background: var(--danger); }
.dialog h2 { margin: 0 0 9px; font-size: 18px; }
.dialog p { margin: 0 0 22px; color: var(--muted); font-size: 11px; line-height: 1.6; }
.dialog > div { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.dialog > div button { height: 43px; border-radius: 5px; background: #f0f2f0; font-size: 12px; font-weight: 700; }
.dialog > div button.confirm { color: white; background: var(--green); }
.dialog.totp-dialog, .dialog.secure-setting-dialog { width: min(360px, 100%); max-height: min(90dvh, 650px); overflow-y: auto; }
.dialog.forgot-password-dialog { width: min(360px, 100%); max-height: min(90dvh, 650px); overflow-y: auto; }
.totp-instructions { margin-bottom: 16px !important; text-align: left; }
.dialog .totp-copy-row { display: grid; grid-template-columns: minmax(0, 1fr) 56px; align-items: stretch; gap: 7px; margin-bottom: 10px; text-align: left; }
.totp-copy-row > div { min-width: 0; }
.totp-copy-row > div > span { display: block; margin-bottom: 5px; color: var(--muted); font-size: 10px; font-weight: 700; }
.totp-secret, .totp-account { display: block; width: 100%; padding: 9px 10px; overflow-wrap: anywhere; border-radius: 5px; color: var(--green-dark); background: var(--green-soft); font-size: 11px; letter-spacing: .08em; line-height: 1.45; }
.totp-account { letter-spacing: 0; }
.dialog .totp-copy-row .totp-copy { align-self: end; height: 36px; border: 1px solid #b9dfc7; border-radius: 5px; color: #216e40; background: var(--green-soft); font-size: 12px; font-weight: 700; }
.dialog .totp-copy-row .totp-copy:hover { background: #d9f1e2; }
.dialog .totp-copy-row .totp-copy:active { background: #c7e8d3; }
.dialog .totp-copy-row .totp-copy:focus-visible { outline: 2px solid #216e40; outline-offset: 2px; }
.dialog-form { display: grid; gap: 12px; text-align: left; }
.dialog-form label { display: grid; gap: 6px; color: #59615c; font-size: 12px; font-weight: 700; }
.dialog-form input { width: 100%; height: 44px; padding: 0 12px; border: 1px solid var(--line); border-radius: 6px; outline: 0; background: #fafbfa; }
.dialog-form input:focus { border-color: var(--green); }
.dialog-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 3px; }
.dialog-form .dialog-actions button { height: 43px; border-radius: 5px; background: #f0f2f0; font-size: 12px; font-weight: 700; }
.dialog-form .dialog-actions button.confirm { color: white; background: var(--green); }

@media (max-width: 360px) {
  .page-scroll { padding-left: 16px; padding-right: 16px; }
  .page-head h1 { font-size: 29px; }
  .shortcut small { display: none; }
  .home-hero { grid-template-columns: 45% 55%; }
  .package-card { min-height: 101px; grid-template-columns: minmax(102px, 1.05fr) minmax(0, 1fr) 76px; }
  .package-card-copy { padding-left: 7px; padding-right: 4px; }
  .package-card-copy strong { font-size: 12px; }
  .package-card-copy small { font-size: 7px; }
  .package-card-action b { font-size: 10px; }
}

@media (min-width: 481px) {
  .h5-app { box-shadow: 0 0 38px rgba(35, 53, 42, .08); }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
