:root {
  --bg: #030303;
  --bg-soft: #090909;
  --panel: rgba(255, 255, 255, 0.04);
  --panel-2: rgba(255, 255, 255, 0.065);
  --line: rgba(255, 255, 255, 0.12);
  --line-2: rgba(255, 255, 255, 0.2);
  --text: #f5f4f0;
  --muted: #a6a5a0;
  --muted-2: #7f7d77;
  --accent: #e5d3a5;
  --accent-2: #d8d6d2;
  --cyan: #8ef0e4;
  --shadow: 0 28px 72px rgba(0, 0, 0, 0.44);
  color-scheme: dark;
  font-family: "Avenir Next", "SF Pro Display", "PingFang SC", "Hiragino Sans GB", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-width: 320px;
}

body {
  margin: 0;
  color: var(--text);
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.66), rgba(0, 0, 0, 0.88)),
    url("/assets/nextouch-marble-user.png") center/cover fixed,
    #030303;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.012) 1px, transparent 1px) 0 0 / 90px 90px,
    linear-gradient(rgba(255, 255, 255, 0.01) 1px, transparent 1px) 0 0 / 90px 90px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.96), transparent 96%);
  opacity: 0.08;
}

body::after {
  content: "";
  position: fixed;
  inset: -12%;
  pointer-events: none;
  background:
    radial-gradient(circle at 20% 22%, rgba(255, 255, 255, 0.03), transparent 26%),
    radial-gradient(circle at 78% 34%, rgba(255, 255, 255, 0.02), transparent 24%),
    radial-gradient(circle at 50% 80%, rgba(255, 255, 255, 0.014), transparent 20%);
  filter: blur(18px);
  opacity: 0.08;
  mix-blend-mode: screen;
}

html[data-loading="1"] main {
  visibility: hidden;
}

html[data-loading="1"] #loading-view {
  display: grid;
}

html[data-loading="0"] #loading-view {
  display: none;
}

button,
input,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
}

button {
  border: 0;
}

.shell {
  width: min(1280px, calc(100% - 24px));
  margin: 0 auto;
  padding: 18px 0 40px;
}

.topbar,
.top-actions,
.scene-copy,
.editor-head,
.dashboard-head,
.dialog-head,
.dialog-actions,
.wechat-line,
.form-actions {
  display: flex;
}

.topbar {
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 16px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.02)),
    linear-gradient(135deg, #131313, #080808);
  color: var(--accent-2);
  font-size: 1.05rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
}

.brand-copy strong,
.brand-copy small {
  display: block;
}

.brand-copy strong {
  font-size: 1.02rem;
  letter-spacing: 0.08em;
}

.brand-copy small {
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.2em;
}

.top-actions {
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.top-actions a,
.quiet-button,
.quiet-link {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  cursor: pointer;
  padding: 0 16px;
  text-decoration: none;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease,
    box-shadow 160ms ease;
}

.top-actions a,
.quiet-link {
  display: inline-flex;
  align-items: center;
}

.top-actions a:hover,
.quiet-button:hover,
.quiet-link:hover,
.primary-button:hover,
.primary-link:hover,
.upload-button:hover,
.segment button:hover,
.platform-row:hover {
  transform: translateY(-1px);
}

.view[hidden],
form[hidden] {
  display: none;
}

.loading-view {
  display: grid;
  place-items: center;
  min-height: calc(100vh - 120px);
  margin: 14px 0 22px;
  padding: 32px 20px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background:
    radial-gradient(circle at 50% 26%, rgba(255, 255, 255, 0.08), transparent 34%),
    linear-gradient(135deg, rgba(255, 236, 188, 0.12), rgba(175, 233, 226, 0.1) 52%, rgba(255, 255, 255, 0.04)),
    rgba(10, 10, 10, 0.96);
  text-align: center;
  box-shadow: var(--shadow);
}

.loading-view h1 {
  max-width: 12ch;
  margin-bottom: 12px;
  font-size: clamp(2rem, 4vw, 4rem);
}

.loading-view p:last-of-type {
  max-width: 42ch;
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.7;
}

.loading-mark {
  display: grid;
  width: 70px;
  height: 70px;
  place-items: center;
  margin-bottom: 16px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 22px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.02)),
    linear-gradient(135deg, #141414, #090909);
  color: var(--accent-2);
  font-size: 1.45rem;
  font-weight: 900;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.35);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--cyan);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 16px;
  font-size: clamp(2.2rem, 4vw, 4.8rem);
  line-height: 0.95;
  letter-spacing: -0.02em;
}

h2 {
  margin-bottom: 12px;
  font-size: clamp(1.35rem, 2.4vw, 2rem);
  line-height: 1.04;
}

.account-view,
.bind-view,
.dashboard-view,
.editor-view,
.profile-card,
.auth-panel,
.token-card,
.bind-summary,
.profile-form,
.mini-phone {
  border: 1px solid var(--line);
  border-radius: 30px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 42%),
    var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.account-view,
.bind-view {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 430px);
  align-items: start;
  gap: clamp(22px, 4vw, 56px);
  min-height: 720px;
  padding: clamp(20px, 4vw, 48px);
}

.scene-copy,
.bind-copy {
  display: grid;
  align-content: start;
  gap: 18px;
  max-width: 620px;
}

.scene-lead,
.status-line,
.device-token,
.device-status,
.public-id-line,
.bio,
.token-showcase small,
.token-card small,
.mini-phone-body p,
.cover-status,
.dashboard-meta span,
.bind-summary p,
.qr-empty,
.wechat-line span,
.avatar-upload-copy small,
.platform-meta small {
  color: var(--muted);
  line-height: 1.7;
}

.showcase-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  align-items: stretch;
}

.mini-phone {
  min-height: 340px;
  border-radius: 34px;
  padding: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent 48%),
    linear-gradient(180deg, #141414, #070707 88%);
  overflow: hidden;
}

.mini-phone.preview-claim {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 42%),
    linear-gradient(180deg, rgba(9, 9, 9, 0.92), rgba(4, 4, 4, 0.98)),
    url("/assets/nfc-necklace-hero.png") center/cover no-repeat;
}

.mini-phone.is-center {
  transform: translateY(18px);
}

.mini-phone-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 26px;
}

.mini-phone-top span {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--accent);
  font-weight: 800;
}

.mini-phone-top small {
  color: rgba(255, 255, 255, 0.72);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.mini-phone-body {
  display: grid;
  align-content: end;
  min-height: 236px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 26px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), transparent 48%),
    rgba(255, 255, 255, 0.02);
  padding: 22px;
}

.mini-phone-body strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1.45rem;
}

.mini-chip-row,
.sample-socials,
.editor-mini-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.mini-chip-row span,
.sample-socials span,
.editor-mini-list span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: #e8e7e2;
  padding: 0 12px;
  font-size: 0.82rem;
}

.profile-sample {
  justify-items: center;
  text-align: center;
}

.sample-avatar {
  width: 82px;
  height: 82px;
  margin-bottom: 16px;
  border: 2px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0.06)),
    linear-gradient(135deg, #202020, #090909);
  box-shadow: inset 0 0 0 10px rgba(255, 255, 255, 0.03);
}

.auth-panel {
  width: min(100%, 440px);
  padding: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 38%),
    rgba(255, 255, 255, 0.028);
}

.stack-form,
.profile-form {
  display: grid;
  gap: 14px;
}

.stack-form label,
.profile-form label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 0.92rem;
  min-width: 0;
}

.segmented {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  margin: 18px 0;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
}

.segmented button {
  min-height: 48px;
  border: 0;
  border-radius: 14px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
}

.segmented button.is-active {
  color: #111;
  background: linear-gradient(135deg, #f0e0b9 0%, #c8a86b 100%);
  box-shadow: 0 12px 20px rgba(202, 169, 105, 0.18);
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--line-2);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  outline: none;
}

input {
  min-height: 50px;
  padding: 0 14px;
}

input[type="file"] {
  padding: 12px 14px;
}

textarea {
  min-height: 110px;
  padding: 14px;
  resize: vertical;
}

input::placeholder,
textarea::placeholder {
  color: rgba(166, 165, 160, 0.72);
}

input:focus,
textarea:focus {
  border-color: rgba(229, 211, 165, 0.55);
  box-shadow: 0 0 0 4px rgba(229, 211, 165, 0.1);
}

.primary-button,
.primary-link {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #f2e4bf 0%, #cdb27a 50%, #f1e1b4 100%);
  color: #191510;
  cursor: pointer;
  font-weight: 800;
  padding: 0 20px;
  text-decoration: none;
  box-shadow: 0 14px 28px rgba(211, 173, 98, 0.18);
}

.quiet-link {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.token-showcase,
.nfc-badge,
.token-card,
.dashboard-meta,
.bind-summary,
.profile-card,
.empty-state {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.03);
}

.token-showcase,
.nfc-badge {
  display: inline-grid;
  gap: 6px;
  padding: 16px 18px;
}

.token-showcase.compact {
  margin-bottom: 8px;
}

.token-showcase.inline {
  margin-top: 18px;
}

.token-showcase span,
.nfc-badge span,
.token-card span,
.cover-token-label {
  color: var(--muted);
  font-size: 0.82rem;
}

.token-showcase strong,
.nfc-badge strong,
.token-card strong,
.cover-topline strong,
.dashboard-meta strong {
  font-size: clamp(1.22rem, 2vw, 1.9rem);
  letter-spacing: 0.02em;
}

.token-card {
  display: grid;
  gap: 6px;
  padding: 18px;
}

.token-card-accent {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent 34%),
    rgba(255, 255, 255, 0.03);
}

.flow-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.flow-pill-row span {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--accent-2);
  padding: 0 14px;
  font-size: 0.88rem;
}

.bind-summary {
  align-self: start;
  min-height: 320px;
  padding: 24px;
}

.bind-summary h2 {
  margin-bottom: 12px;
  font-size: clamp(1.45rem, 2vw, 2rem);
}

.dashboard-view {
  padding: clamp(20px, 4vw, 40px);
}

.dashboard-head {
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.dashboard-meta {
  display: grid;
  gap: 10px;
  min-width: 220px;
  padding: 18px;
  box-shadow: 0 12px 22px rgba(0, 0, 0, 0.24);
  text-align: right;
}

.device-list {
  display: grid;
  gap: 14px;
}

.device-card {
  display: flex;
  align-items: center;
  gap: 18px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 42%),
    rgba(255, 255, 255, 0.03);
  padding: 18px;
  box-shadow: var(--shadow);
}

.device-avatar {
  width: 88px;
  height: 88px;
  flex: none;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 24px;
  object-fit: cover;
  background: #111;
}

.device-meta {
  display: grid;
  gap: 8px;
  width: 100%;
}

.device-meta h2 {
  margin: 0;
  font-size: 1.3rem;
}

.device-status.is-bound {
  color: var(--cyan);
}

.device-status.is-empty {
  color: #d8b77c;
}

.device-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}

.empty-state {
  padding: 22px;
  border-style: dashed;
  color: var(--muted);
}

.editor-view {
  padding: clamp(20px, 4vw, 40px);
}

.editor-head {
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
}

.editor-links {
  display: grid;
  justify-items: end;
  gap: 10px;
}

.editor-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.28fr) minmax(280px, 0.72fr);
  gap: 18px;
}

.profile-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: clamp(18px, 3vw, 30px);
}

.full {
  grid-column: 1 / -1;
}

.form-actions {
  flex-wrap: wrap;
  gap: 10px;
}

.avatar-upload {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.03);
  padding: 18px;
}

.avatar-upload-copy span,
.avatar-upload-copy strong,
.avatar-upload-copy small {
  display: block;
}

.avatar-upload-copy span {
  color: var(--muted);
  font-size: 0.84rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.avatar-upload-copy strong {
  margin: 6px 0 8px;
  font-size: 1.14rem;
}

.avatar-upload-side {
  display: grid;
  justify-items: center;
  gap: 10px;
}

.editor-avatar-preview {
  width: 94px;
  height: 94px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  object-fit: cover;
  background: #111;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.36);
}

.upload-button {
  position: relative;
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  cursor: pointer;
  padding: 0 16px;
}

.upload-button input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.profile-card {
  width: min(100%, 430px);
  overflow: hidden;
  background: rgba(8, 8, 8, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow);
}

.public-view {
  display: grid;
  place-items: center;
  min-height: calc(100vh - 120px);
  padding: 12px 0 28px;
}

.profile-cover {
  position: relative;
  min-height: 210px;
  padding: 18px 18px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(circle at 14% 14%, rgba(255, 255, 255, 0.05), transparent 30%),
    radial-gradient(circle at 84% 18%, rgba(142, 240, 228, 0.04), transparent 28%),
    linear-gradient(135deg, rgba(16, 16, 16, 0.96) 0%, rgba(5, 5, 5, 0.98) 62%, rgba(14, 14, 14, 0.96) 100%);
}

.cover-topline {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cover-hero {
  position: absolute;
  inset: 54px 18px 52px;
  display: grid;
  place-items: center;
  opacity: 0.25;
  pointer-events: none;
}

.cover-hero img {
  max-width: min(100%, 360px);
  max-height: 170px;
  object-fit: contain;
  filter: grayscale(1) brightness(1.1);
}

.cover-status {
  position: absolute;
  right: 18px;
  bottom: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  padding: 8px 12px;
  font-size: 0.88rem;
}

.profile-main {
  padding: 0 18px 20px;
  text-align: center;
}

.avatar {
  display: block;
  width: 116px;
  height: 116px;
  margin: -58px auto 12px;
  border: 3px solid rgba(0, 0, 0, 0.92);
  border-radius: 50%;
  object-fit: cover;
  background: #111;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.38);
  position: relative;
  z-index: 1;
}

.profile-main h1 {
  margin-bottom: 10px;
  font-size: clamp(2rem, 4vw, 3.3rem);
  line-height: 1;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 18px;
}

.tag-row span {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  padding: 8px 12px;
  color: #dfdfda;
  font-size: 0.88rem;
}

.platform-list {
  display: grid;
  gap: 12px;
  margin-bottom: 16px;
}

.platform-row {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: 66px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.026);
  padding: 12px 14px;
  color: var(--text);
  text-align: left;
  cursor: pointer;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease;
}

.platform-row.is-disabled {
  opacity: 0.46;
  cursor: not-allowed;
}

.platform-row.is-active {
  border-color: rgba(255, 255, 255, 0.18);
}

.platform-icon {
  display: grid;
  width: 42px;
  height: 42px;
  flex: none;
  place-items: center;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 10px 20px rgba(0, 0, 0, 0.18);
}

.platform-icon svg {
  display: block;
  width: 22px;
  height: 22px;
  fill: currentColor;
  stroke: currentColor;
}

.platform-meta {
  display: grid;
  gap: 2px;
}

.platform-meta strong {
  font-size: 1rem;
}

.platform-meta span {
  color: var(--muted);
  font-size: 0.86rem;
}

.platform-chevron {
  margin-left: auto;
  color: rgba(255, 255, 255, 0.34);
  font-size: 1.6rem;
  line-height: 1;
}

.platform-row.wechat .platform-icon {
  background: linear-gradient(135deg, #66d36f, #25b94a);
  color: #f7fff8;
}

.platform-row.douyin .platform-icon {
  background: linear-gradient(135deg, #17151d, #ff5e88);
}

.platform-row.instagram .platform-icon {
  background: linear-gradient(135deg, #ff7b64, #8b4dff);
}

.platform-row.xiaohongshu .platform-icon {
  background: linear-gradient(135deg, #f44336, #e31b4b);
}

.platform-row.x .platform-icon,
.platform-row.twitter .platform-icon {
  background: linear-gradient(135deg, #6c7b94, #89a4ff);
}

.platform-row.youtube .platform-icon {
  background: linear-gradient(135deg, #ff4b4b, #c80000);
}

.wechat-line {
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.03);
  padding: 16px 18px;
}

.wechat-line strong {
  display: block;
  font-size: 1rem;
}

.wechat-dialog {
  width: min(calc(100% - 24px), 430px);
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 35%),
    #090909;
  color: var(--text);
  box-shadow: var(--shadow);
}

.wechat-dialog::backdrop {
  background: rgba(0, 0, 0, 0.72);
}

.dialog-head {
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 22px 22px 14px;
}

.dialog-head h2 {
  margin-bottom: 0;
}

.qr-stage {
  display: grid;
  width: calc(100% - 44px);
  min-height: 336px;
  margin: 0 auto;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.03);
}

.qr-stage img {
  display: block;
  width: min(100%, 330px);
  max-height: 440px;
  object-fit: contain;
}

.qr-stage img[hidden],
.qr-empty[hidden] {
  display: none;
}

.qr-empty {
  max-width: 260px;
  padding: 24px;
  text-align: center;
}

.qr-empty strong {
  display: block;
  margin-bottom: 8px;
  color: var(--text);
}

.dialog-actions {
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 22px 22px;
}

.dialog-actions .status-line {
  margin: 0;
}

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

.brand-mark,
.loading-mark {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.02)),
    linear-gradient(135deg, #161616, #070707);
}

.brand-mark img,
.loading-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-mark {
  padding: 6px;
}

.brand-mark img {
  border-radius: 13px;
}

.loading-mark {
  padding: 8px;
}

.loading-mark img {
  border-radius: 18px;
}

.loading-view {
  position: relative;
  overflow: hidden;
  border-color: rgba(255, 255, 255, 0.14);
  background:
    radial-gradient(circle at 50% 20%, rgba(255, 255, 255, 0.12), transparent 28%),
    radial-gradient(circle at 20% 15%, rgba(255, 211, 160, 0.14), transparent 20%),
    radial-gradient(circle at 82% 20%, rgba(150, 235, 221, 0.1), transparent 22%),
    rgba(10, 10, 10, 0.94);
}

.loading-view::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url("/assets/nextouch-marble-user.png") center/cover no-repeat;
  opacity: 0.18;
  mix-blend-mode: screen;
  pointer-events: none;
}

.loading-view > * {
  position: relative;
  z-index: 1;
}

.account-view,
.bind-view {
  gap: clamp(18px, 3vw, 40px);
  border-color: rgba(255, 255, 255, 0.1);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent 34%),
    rgba(12, 12, 12, 0.78);
}

.scene-copy,
.bind-copy {
  max-width: 640px;
}

.scene-copy h1,
.bind-copy h1 {
  max-width: 12ch;
  font-size: clamp(2rem, 3.2vw, 3.5rem);
  line-height: 0.96;
}

.scene-lead {
  max-width: 54ch;
  font-size: 1.02rem;
}

.brand-note {
  display: grid;
  gap: 6px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent 32%),
    rgba(255, 255, 255, 0.03);
}

.brand-note span {
  color: var(--cyan);
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.brand-note strong {
  font-size: 1.2rem;
  line-height: 1.15;
}

.brand-note small {
  color: var(--muted);
  line-height: 1.6;
}

.auth-panel {
  border-color: rgba(255, 255, 255, 0.1);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent 28%),
    rgba(18, 18, 18, 0.78);
}

.mini-phone,
.token-card,
.bind-summary,
.profile-card,
.dashboard-meta,
.device-card,
.wechat-line,
.platform-row,
.profile-form,
.avatar-upload,
.empty-state {
  border-color: rgba(255, 255, 255, 0.1);
}

.mini-phone {
  border-radius: 30px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 30%),
    rgba(12, 12, 12, 0.88);
}

.mini-phone.preview-claim,
.mini-phone.preview-editor,
.mini-phone.preview-profile {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 38%),
    rgba(12, 12, 12, 0.84);
}

.mini-phone-body {
  min-height: 244px;
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), transparent 48%),
    rgba(255, 255, 255, 0.03);
}

.sample-avatar {
  border-color: rgba(255, 255, 255, 0.18);
  background:
    radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.24), transparent 26%),
    linear-gradient(135deg, #262626, #090909);
}

.auth-panel,
.bind-summary,
.dashboard-meta,
.profile-form,
.profile-card,
.wechat-dialog {
  box-shadow: 0 30px 84px rgba(0, 0, 0, 0.5);
}

.dashboard-view,
.editor-view {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 30%),
    rgba(6, 6, 6, 0.78);
}

.dashboard-meta strong {
  color: var(--text);
}

.device-card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent 34%),
    rgba(255, 255, 255, 0.03);
}

.profile-form {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent 22%),
    rgba(10, 10, 10, 0.9);
}

.avatar-upload {
  border-radius: 24px;
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 255, 255, 0.05), transparent 30%),
    rgba(255, 255, 255, 0.03);
}

.editor-avatar-preview {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.22);
  object-fit: cover;
  background: #111;
}

.upload-button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  cursor: pointer;
  padding: 0 16px;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease;
}

.upload-button input {
  display: none;
}

.upload-button:hover {
  transform: translateY(-1px);
  border-color: rgba(229, 211, 165, 0.35);
  background: rgba(255, 255, 255, 0.06);
}

.profile-card {
  width: min(100%, 392px);
  overflow: hidden;
  background: transparent;
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: none;
}

.profile-cover {
  min-height: 168px;
  padding: 16px 12px 6px;
  border-bottom: 0;
  background:
    linear-gradient(180deg, rgba(6, 6, 6, 0.14), rgba(6, 6, 6, 0.26)),
    url("/assets/nextouch-marble-user.png") center/cover no-repeat;
}

.cover-topline {
  gap: 8px;
}

.cover-status {
  top: 18px;
  right: 18px;
  bottom: auto;
}

.profile-main {
  padding: 0 12px 16px;
}

.avatar {
  width: 116px;
  height: 116px;
  margin: -58px auto 12px;
  border: 4px solid rgba(255, 255, 255, 0.9);
  box-shadow:
    0 16px 34px rgba(0, 0, 0, 0.48),
    0 0 0 8px rgba(0, 0, 0, 0.56);
}

.profile-main h1 {
  margin-bottom: 8px;
  font-size: clamp(2rem, 4vw, 3rem);
}

.public-id-line {
  margin-bottom: 8px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.94rem;
}

.bio {
  max-width: 30ch;
  margin: 0 auto 10px;
}

.nfc-status-chip {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  margin-bottom: 16px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: rgba(235, 234, 229, 0.9);
  font-size: 0.88rem;
}

.profile-plaque {
  display: grid;
  place-items: center;
  gap: 4px;
  min-height: 86px;
  margin: 6px 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)),
    rgba(255, 255, 255, 0.03);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  text-align: center;
}

.profile-plaque strong {
  font-size: 1.5rem;
  letter-spacing: 0.14em;
}

.profile-plaque small {
  color: var(--muted);
  letter-spacing: 0.22em;
}

.platform-list {
  margin-bottom: 14px;
}

.platform-row {
  min-height: 64px;
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 26%),
    rgba(255, 255, 255, 0.03);
}

.platform-icon {
  width: 46px;
  height: 46px;
}

.platform-meta strong {
  font-size: 1.03rem;
}

.platform-meta span {
  font-size: 0.84rem;
}

.wechat-line {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 30%),
    rgba(255, 255, 255, 0.03);
}

.wechat-dialog {
  border-color: rgba(255, 255, 255, 0.12);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 34%),
    rgba(6, 6, 6, 0.98);
}

.qr-stage {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 30%),
    rgba(255, 255, 255, 0.03);
}

.token-card,
.nfc-badge,
.dashboard-meta {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent 34%),
    rgba(255, 255, 255, 0.03);
}

@media (max-width: 1060px) {
  .account-view,
  .bind-view,
  .editor-layout {
    grid-template-columns: 1fr;
  }

  .auth-panel {
    width: 100%;
  }

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

  .mini-phone.is-center {
    transform: none;
  }
}

@media (max-width: 760px) {
  .shell {
    width: min(100% - 16px, 640px);
    padding-top: 12px;
  }

  .topbar,
  .editor-head,
  .dashboard-head,
  .dialog-actions,
  .wechat-line,
  .avatar-upload {
    align-items: stretch;
    flex-direction: column;
  }

  .account-view,
  .bind-view,
  .editor-view,
  .dashboard-view {
    min-height: 0;
    padding: 18px;
  }

  .loading-view {
    min-height: calc(100vh - 96px);
    padding: 24px 18px;
  }

  .loading-view h1 {
    max-width: 10ch;
    font-size: clamp(1.8rem, 8vw, 2.8rem);
  }

  .loading-view p:last-of-type {
    max-width: 28ch;
    font-size: 0.95rem;
  }

  .profile-form {
    grid-template-columns: 1fr;
  }

  .full {
    grid-column: auto;
  }

  .dashboard-meta,
  .editor-links {
    justify-items: start;
    text-align: left;
  }

  .device-card {
    align-items: flex-start;
    flex-direction: column;
  }

  .account-view,
  .bind-view {
    display: flex;
    flex-direction: column;
  }

  .auth-panel {
    order: -1;
  }

  .profile-card {
    width: min(100%, 100%);
  }

  .avatar {
    width: 112px;
    height: 112px;
    margin-top: -66px;
  }

  .platform-row {
    min-height: 66px;
  }

  .platform-icon {
    width: 42px;
    height: 42px;
  }
}

@media (max-width: 1060px) {
  .account-view,
  .bind-view,
  .editor-layout {
    grid-template-columns: 1fr;
  }

  .auth-panel {
    width: 100%;
  }

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

  .mini-phone.is-center {
    transform: none;
  }
}

@media (max-width: 760px) {
  .shell {
    width: min(100% - 16px, 640px);
    padding-top: 12px;
  }

  .topbar,
  .editor-head,
  .dashboard-head,
  .dialog-actions,
  .wechat-line,
  .avatar-upload {
    align-items: stretch;
    flex-direction: column;
  }

  .account-view,
  .bind-view,
  .editor-view,
  .dashboard-view {
    min-height: 0;
    padding: 18px;
  }

  .loading-view {
    min-height: calc(100vh - 96px);
    padding: 24px 18px;
  }

  .loading-view h1 {
    max-width: 10ch;
    font-size: clamp(1.8rem, 8vw, 2.8rem);
  }

  .loading-view p:last-of-type {
    max-width: 28ch;
    font-size: 0.95rem;
  }

  .profile-form {
    grid-template-columns: 1fr;
  }

  .full {
    grid-column: auto;
  }

  .dashboard-meta,
  .editor-links {
    justify-items: start;
    text-align: left;
  }

  .device-card {
    align-items: flex-start;
    flex-direction: column;
  }

  .account-view,
  .bind-view {
    display: flex;
    flex-direction: column;
  }

  .auth-panel {
    order: -1;
  }

  .showcase-grid {
    display: none;
  }

  .scene-copy {
    max-width: none;
  }

  .public-view {
    min-height: 0;
    padding: 8px 0 20px;
  }

  .profile-card {
    width: min(100%, 398px);
    border-radius: 26px;
  }

  .profile-cover {
    min-height: 184px;
    padding: 14px 14px 12px;
  }

  .profile-main {
    padding: 0 14px 18px;
  }

  .avatar {
    width: 104px;
    height: 104px;
    margin: -52px auto 10px;
  }

  .profile-main h1 {
    font-size: clamp(1.8rem, 10vw, 2.5rem);
  }

  .platform-list {
    gap: 10px;
    margin-bottom: 14px;
  }

  .platform-row {
    min-height: 60px;
    border-radius: 20px;
    gap: 12px;
    padding: 11px 12px;
  }

  .platform-icon {
    width: 38px;
    height: 38px;
    border-radius: 13px;
  }

  .platform-meta strong {
    font-size: 0.95rem;
  }

  .platform-meta span {
    font-size: 0.82rem;
  }

  .wechat-line {
    padding: 14px 15px;
  }
}
