:root {
  color-scheme: light;
  --bg: #f5f8fb;
  --ink: #101217;
  --muted: #667085;
  --line: rgba(16, 18, 23, 0.11);
  --panel: rgba(255, 255, 255, 0.78);
  --panel-strong: rgba(255, 255, 255, 0.92);
  --cyan: #00c8ff;
  --lime: #b8ff45;
  --pink: #ff3d8b;
  --violet: #6a4bff;
  --shadow: 0 28px 90px rgba(22, 28, 45, 0.16);
  --soft-shadow: 0 16px 46px rgba(22, 28, 45, 0.12);
}

* { box-sizing: border-box; letter-spacing: 0; }
html { scroll-behavior: smooth; background: var(--bg); }
body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(122deg, #ffffff 0%, #eef7fb 36%, #f8fbff 63%, #f2f0ff 100%);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background-image:
    linear-gradient(rgba(16, 18, 23, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 18, 23, 0.045) 1px, transparent 1px),
    linear-gradient(120deg, rgba(0, 200, 255, 0.2), transparent 34%, rgba(255, 61, 139, 0.16) 70%, transparent);
  background-size: 52px 52px, 52px 52px, 100% 100%;
  mask-image: linear-gradient(180deg, black, transparent 82%);
}
button, input { font: inherit; }
a { color: inherit; }
button, label, a { -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 14px;
  z-index: 30;
  width: min(1240px, calc(100% - 40px));
  height: 68px;
  margin: 14px auto 0;
  padding: 0 10px 0 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.64);
  box-shadow: var(--soft-shadow);
  backdrop-filter: blur(22px);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 900; }
.brand img { border-radius: 14px; box-shadow: 0 10px 26px rgba(106, 75, 255, 0.2); }
.header-actions { display: flex; align-items: center; gap: 14px; }
.site-header nav { display: flex; align-items: center; gap: 24px; }
.site-header nav a { color: #3d4454; font-size: 14px; font-weight: 800; text-decoration: none; }
.site-header nav a:hover { color: #111318; }
.site-header .nav-download {
  padding: 10px 16px;
  color: white;
  border-radius: 999px;
  background: linear-gradient(135deg, #141820, #6a4bff 58%, #ff3d8b);
  box-shadow: 0 14px 34px rgba(106, 75, 255, 0.26);
}
.account-entry {
  position: relative;
  min-width: 0;
}
.account-login-pill,
.account-pill {
  min-height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.86);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 14px 34px rgba(35, 42, 80, 0.1);
  cursor: pointer;
  backdrop-filter: blur(18px);
}
.account-login-pill {
  padding: 0 16px;
  color: #111318;
  font-size: 13px;
  font-weight: 900;
}
.account-login-pill--loading { color: var(--muted); cursor: wait; }
.account-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 5px 11px 5px 6px;
}
.account-avatar {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 13px;
  color: white;
  background: linear-gradient(135deg, #111318, var(--violet), var(--pink));
  box-shadow: 0 12px 26px rgba(106, 75, 255, 0.26);
  font-size: 14px;
  font-weight: 950;
}
.account-avatar--large { width: 46px; height: 46px; border-radius: 17px; font-size: 18px; }
.account-avatar--page { width: 72px; height: 72px; border-radius: 24px; font-size: 28px; }
.account-pill__meta { display: grid; gap: 1px; text-align: left; }
.account-pill__meta strong { max-width: 92px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.account-pill__meta small { color: #5d6676; font-size: 11px; font-weight: 800; }
.account-pill i,
.account-accordion__item button i {
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  opacity: 0.55;
  transition: transform 180ms ease;
}
.account-pill[aria-expanded="true"] i,
.account-accordion__item.is-open button i { transform: rotate(225deg); }
.account-menu {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  z-index: 80;
  width: min(390px, calc(100vw - 28px));
  max-height: min(760px, calc(100vh - 100px));
  overflow: auto;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 26px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(248, 251, 255, 0.82)),
    radial-gradient(circle at 16% 0%, rgba(0, 200, 255, 0.18), transparent 36%),
    radial-gradient(circle at 92% 18%, rgba(255, 61, 139, 0.16), transparent 34%);
  box-shadow: 0 34px 100px rgba(20, 23, 34, 0.22);
  backdrop-filter: blur(24px);
  animation: accountMenuIn 190ms ease-out both;
}
.account-menu__shine {
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background: linear-gradient(120deg, rgba(0, 200, 255, 0.18), transparent 40%, rgba(255, 61, 139, 0.14));
  opacity: 0.8;
}
.account-menu-card,
.account-menu-stats,
.account-menu-actions,
.account-accordion,
.account-logout { position: relative; }
.account-menu-card {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border-radius: 20px;
  color: white;
  background: linear-gradient(135deg, #111318, #5b42f3 56%, #ff3d8b);
  box-shadow: 0 18px 42px rgba(91, 66, 243, 0.22);
}
.account-menu-card strong { display: block; font-size: 17px; }
.account-menu-card p { margin: 3px 0 0; color: rgba(255, 255, 255, 0.72); font-size: 12px; }
.account-menu-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 10px;
}
.account-menu-stats span {
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.84);
  border-radius: 17px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}
.account-menu-stats b { display: block; color: #111318; font-size: 24px; line-height: 1; }
.account-menu-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 10px;
}
.account-menu-actions button,
.account-menu-actions a,
.account-inline-link,
.account-logout {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 15px;
  cursor: pointer;
  text-decoration: none;
  font-size: 12px;
  font-weight: 900;
}
.account-menu-actions button {
  color: white;
  background: linear-gradient(135deg, #111318, var(--violet), var(--pink));
  box-shadow: 0 12px 28px rgba(106, 75, 255, 0.22);
}
.account-menu-actions a,
.account-inline-link { color: #3721b8; background: rgba(106, 75, 255, 0.1); }
.account-accordion { display: grid; gap: 9px; margin-top: 12px; }
.account-accordion__item {
  overflow: hidden;
  border: 1px solid rgba(123, 115, 143, 0.14);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
}
.account-accordion__item > button {
  width: 100%;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  border: 0;
  background: transparent;
  cursor: pointer;
  color: #111318;
  font-weight: 950;
}
.account-accordion__panel {
  display: grid;
  gap: 10px;
  padding: 0 14px 14px;
  animation: accountAccordionIn 180ms ease-out both;
}
.account-profile-list,
.account-detail-grid {
  display: grid;
  gap: 9px;
  margin: 0;
}
.account-profile-list div,
.account-detail-grid div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 11px;
  border-radius: 13px;
  background: rgba(246, 248, 252, 0.82);
}
.account-profile-list dt,
.account-detail-grid dt { color: var(--muted); font-size: 12px; font-weight: 850; }
.account-profile-list dd,
.account-detail-grid dd { margin: 0; color: #111318; font-size: 12px; font-weight: 900; text-align: right; }
.account-empty {
  margin: 0;
  padding: 12px;
  border-radius: 14px;
  color: var(--muted);
  background: rgba(246, 248, 252, 0.86);
  font-size: 12px;
  line-height: 1.6;
}
.mini-transaction-list { display: grid; gap: 8px; }
.mini-transaction {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 9px;
  align-items: center;
  padding: 10px;
  border-radius: 14px;
  background: rgba(246, 248, 252, 0.82);
  color: inherit;
  text-decoration: none;
}
.mini-transaction span { font-size: 13px; font-weight: 950; }
.mini-transaction strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.mini-transaction small { color: var(--muted); font-size: 11px; font-weight: 800; }
.is-income { color: #0c8f4f !important; }
.is-expense { color: #d9356a !important; }
.account-logout {
  width: 100%;
  margin-top: 12px;
  color: #7c253f;
  background: rgba(255, 61, 139, 0.1);
}

main { overflow: hidden; }
.hero {
  width: min(1240px, calc(100% - 40px));
  min-height: 720px;
  margin: 0 auto;
  padding: 64px 12px 92px;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(360px, 0.9fr);
  align-items: center;
  gap: clamp(38px, 6vw, 84px);
}
.eyebrow {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  color: #151922;
  font-size: 12px;
  font-weight: 900;
}
.eyebrow span {
  width: 34px;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--cyan), var(--lime));
  box-shadow: 0 0 24px rgba(0, 200, 255, 0.44);
}
.hero h1 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(42px, 5.3vw, 76px);
  line-height: 1.06;
  font-weight: 950;
}
.hero h1 em {
  display: inline-block;
  margin-top: 8px;
  color: transparent;
  font-style: normal;
  background: linear-gradient(104deg, #111318 0%, #6a4bff 38%, #ff3d8b 68%, #00a8ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
}
.intro {
  max-width: 650px;
  margin: 26px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.9;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 13px; margin-top: 32px; }
.button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  padding: 13px 22px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  text-decoration: none;
  font-size: 14px;
  font-weight: 900;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}
.button:hover { transform: translateY(-3px); }
.button--primary {
  color: white;
  background: linear-gradient(135deg, #111318, #6a4bff 54%, #ff3d8b);
  box-shadow: 0 20px 46px rgba(106, 75, 255, 0.3);
}
.button--ghost {
  color: #111318;
  border: 1px solid rgba(16, 18, 23, 0.14);
  background: rgba(255, 255, 255, 0.68);
  backdrop-filter: blur(16px);
}
.button--soft {
  color: #111318;
  background: linear-gradient(135deg, rgba(0, 200, 255, 0.18), rgba(184, 255, 69, 0.28));
  border: 1px solid rgba(0, 168, 255, 0.2);
}
.hero-command {
  width: min(650px, 100%);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 28px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.58);
  box-shadow: var(--soft-shadow);
  backdrop-filter: blur(18px);
}
.hero-command span {
  padding: 9px 12px;
  border-radius: 999px;
  color: #313846;
  background: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  font-weight: 850;
}
.hero-command i {
  width: 28px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--cyan), var(--pink));
}

.hero__visual { display: grid; place-items: center; perspective: 1200px; }
.hero-stage {
  position: relative;
  width: min(440px, 100%);
  aspect-ratio: 0.78;
  transform-style: preserve-3d;
  transform: perspective(1200px) rotateX(var(--tilt-x, -4deg)) rotateY(var(--tilt-y, 7deg));
  transition: transform 220ms ease;
}
.stage-backplate {
  position: absolute;
  inset: 8% -7% 5% 7%;
  border-radius: 34px;
  background:
    linear-gradient(145deg, rgba(0, 200, 255, 0.22), rgba(255, 255, 255, 0.18) 42%, rgba(255, 61, 139, 0.2)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.54) 0 1px, transparent 1px 20px);
  transform: translateZ(-70px) rotateZ(4deg);
  filter: saturate(1.2);
}
.video-card {
  position: absolute;
  inset: 0;
  padding: 10px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.88);
  border-radius: 34px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.5));
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px);
  transform: translateZ(42px);
}
.hero-video {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 26px;
  object-fit: cover;
  background: #ecf1f6;
}
.scan-ribbon {
  position: absolute;
  left: 10px;
  right: 10px;
  top: -20%;
  height: 22%;
  border-radius: 24px;
  background: linear-gradient(180deg, transparent, rgba(0, 200, 255, 0.34), transparent);
  mix-blend-mode: screen;
  animation: scan 4.8s ease-in-out infinite;
}
.video-shade {
  position: absolute;
  inset: 10px;
  border-radius: 26px;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(16, 18, 23, 0.02) 40%, rgba(16, 18, 23, 0.62));
}
.video-caption {
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: 28px;
  display: grid;
  gap: 5px;
  padding: 14px 16px;
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 18px;
  background: rgba(16, 18, 23, 0.34);
  backdrop-filter: blur(16px);
}
.video-caption span { font-size: 10px; font-weight: 900; }
.video-caption strong { font-size: 17px; line-height: 1.35; }
.floating-note,
.material-chip {
  position: absolute;
  z-index: 4;
  border: 1px solid rgba(255, 255, 255, 0.86);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 18px 42px rgba(22, 28, 45, 0.16);
  backdrop-filter: blur(18px);
}
.floating-note {
  display: grid;
  gap: 3px;
  min-width: 150px;
  padding: 12px 14px;
  border-radius: 18px;
  color: #2c3340;
  font-size: 12px;
  font-weight: 820;
  transform: translateZ(96px);
}
.floating-note b { color: #111318; font-size: 13px; }
.floating-note--top { top: 10%; left: -56px; }
.floating-note--bottom { right: -52px; bottom: 20%; }
.material-chip {
  padding: 9px 12px;
  border-radius: 999px;
  color: #111318;
  font-size: 12px;
  font-weight: 900;
  transform: translateZ(120px);
}
.material-chip--cyan { top: 36%; right: -28px; background: rgba(0, 200, 255, 0.22); }
.material-chip--lime { left: -28px; bottom: 8%; background: rgba(184, 255, 69, 0.32); }

.workbench, .result-panel {
  width: min(1200px, calc(100% - 40px));
  margin: 0 auto 76px;
  padding: clamp(24px, 4vw, 46px);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 30px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.62)),
    linear-gradient(120deg, rgba(0, 200, 255, 0.08), transparent 36%, rgba(255, 61, 139, 0.08));
  box-shadow: var(--shadow);
  backdrop-filter: blur(24px);
}
.workbench {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(28px, 4.6vw, 56px);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(248, 251, 255, 0.7)),
    linear-gradient(116deg, rgba(0, 200, 255, 0.16), rgba(255, 255, 255, 0) 36%, rgba(106, 75, 255, 0.12) 64%, rgba(255, 61, 139, 0.14));
  box-shadow:
    0 34px 110px rgba(33, 43, 74, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
}
.workbench::before {
  content: "";
  position: absolute;
  inset: 1px;
  z-index: -2;
  border-radius: inherit;
  background:
    linear-gradient(rgba(17, 19, 24, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17, 19, 24, 0.05) 1px, transparent 1px),
    linear-gradient(120deg, rgba(0, 200, 255, 0.18), transparent 38%, rgba(255, 61, 139, 0.13));
  background-size: 36px 36px, 36px 36px, 100% 100%;
  mask-image: linear-gradient(180deg, black 0%, rgba(0, 0, 0, 0.62) 52%, transparent 100%);
}
.workbench::after {
  content: "";
  position: absolute;
  inset: auto 36px 24px;
  z-index: -1;
  height: 120px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(0, 200, 255, 0.2), rgba(106, 75, 255, 0.16), rgba(255, 61, 139, 0.2));
  filter: blur(34px);
  opacity: 0.72;
}
.section-heading {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 30px;
}
.section-heading h2, .result-copy h2 { margin: 0; font-size: clamp(30px, 4vw, 48px); line-height: 1.12; }
.section-heading p:not(.eyebrow) { margin: 10px 0 0; color: var(--muted); }
.quota-badge {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 12px 16px;
  border: 1px solid rgba(0, 200, 255, 0.28);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
  color: #111318;
  white-space: nowrap;
  box-shadow: 0 14px 34px rgba(0, 200, 255, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.92);
}
.quota-badge strong { font-size: 13px; }
.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 6px rgba(184, 255, 69, 0.18), 0 0 22px rgba(184, 255, 69, 0.8);
}

.try-form {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.52fr) minmax(330px, 0.62fr);
  gap: 24px;
  align-items: start;
}
.try-form:has(#lower-upload-column:not([hidden])) {
  grid-template-columns: minmax(0, 1.72fr) minmax(320px, 0.58fr);
}
.upload-runway {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 22px);
  align-items: stretch;
  perspective: 1200px;
}
.upload-runway:has(#lower-upload-column:not([hidden])) {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.upload-column {
  min-width: 0;
  display: grid;
  gap: 10px;
  align-content: start;
  animation: studioCardIn 520ms cubic-bezier(0.2, 0.85, 0.22, 1) both;
}
.upload-column:nth-child(2) { animation-delay: 70ms; }
.upload-column:nth-child(3) { animation-delay: 140ms; }
.upload-card {
  --card-accent: var(--cyan);
  --card-accent-2: var(--lime);
  position: relative;
  min-height: clamp(430px, 36vw, 520px);
  display: grid;
  place-items: center;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid rgba(255, 255, 255, 0.92);
  border-radius: 30px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(250, 252, 255, 0.62)),
    linear-gradient(145deg, rgba(0, 200, 255, 0.14), rgba(255, 61, 139, 0.1));
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(250, 252, 255, 0.62)),
    linear-gradient(145deg, color-mix(in srgb, var(--card-accent) 18%, transparent), color-mix(in srgb, var(--card-accent-2) 13%, transparent));
  box-shadow:
    0 26px 70px rgba(35, 42, 80, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    inset 0 -44px 80px rgba(255, 255, 255, 0.45);
  cursor: pointer;
  transform-style: preserve-3d;
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease, filter 220ms ease;
}
.upload-card--person { --card-accent: #00c8ff; --card-accent-2: #b8ff45; }
.upload-card--garment { --card-accent: #6a4bff; --card-accent-2: #ff3d8b; }
.upload-card--lower { --card-accent: #ff8a3d; --card-accent-2: #00c8ff; }
.upload-card::before {
  content: "";
  position: absolute;
  inset: 16px;
  z-index: -1;
  border: 1px dashed rgba(17, 19, 24, 0.16);
  border-radius: 23px;
  background:
    linear-gradient(rgba(17, 19, 24, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17, 19, 24, 0.035) 1px, transparent 1px),
    linear-gradient(145deg, rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0));
  background-size: 28px 28px, 28px 28px, 100% 100%;
  pointer-events: none;
}
.upload-card::after {
  content: "";
  position: absolute;
  inset: 18px;
  z-index: -1;
  border-radius: 22px;
  background:
    linear-gradient(90deg, transparent, color-mix(in srgb, var(--card-accent) 44%, transparent), transparent) 0 18% / 100% 1px no-repeat,
    radial-gradient(circle at 50% 50%, color-mix(in srgb, var(--card-accent-2) 20%, transparent), transparent 54%);
  opacity: 0.72;
  pointer-events: none;
}
.upload-card:hover {
  transform: translateY(-8px) rotateX(1.4deg) rotateY(-1.2deg);
  border-color: color-mix(in srgb, var(--card-accent) 54%, rgba(255, 255, 255, 0.9));
  box-shadow:
    0 36px 92px rgba(28, 36, 72, 0.22),
    0 0 0 1px color-mix(in srgb, var(--card-accent) 26%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, 0.96);
  filter: saturate(1.08);
}
.upload-card:focus-within {
  outline: 3px solid color-mix(in srgb, var(--card-accent) 28%, transparent);
  outline-offset: 3px;
}
.upload-card input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.upload-card img {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  z-index: 1;
  object-fit: cover;
  filter: saturate(1.05) contrast(1.02);
}
.upload-placeholder {
  position: relative;
  z-index: 2;
  display: flex;
  max-width: min(260px, 82%);
  flex-direction: column;
  align-items: center;
  padding: 24px;
  text-align: center;
  transform: translateZ(34px);
}
.upload-icon {
  display: grid;
  width: 62px;
  height: 62px;
  place-items: center;
  margin-bottom: 20px;
  border: 1px solid rgba(255, 255, 255, 0.64);
  border-radius: 22px;
  color: #111318;
  background: linear-gradient(135deg, var(--card-accent), var(--card-accent-2));
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--card-accent) 92%, white), color-mix(in srgb, var(--card-accent-2) 88%, white));
  font-size: 14px;
  font-weight: 950;
  box-shadow:
    0 18px 38px color-mix(in srgb, var(--card-accent) 28%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, 0.75);
}
.upload-placeholder strong { color: #0f131b; font-size: clamp(18px, 1.5vw, 22px); line-height: 1.25; }
.upload-placeholder small { margin-top: 10px; color: #626d7f; line-height: 1.65; font-weight: 780; }
.upload-placeholder b {
  position: relative;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 24px;
  padding: 0 18px;
  overflow: hidden;
  border-radius: 999px;
  color: white;
  background: linear-gradient(135deg, #101217, #252a35);
  font-size: 12px;
  box-shadow: 0 18px 34px rgba(17, 19, 24, 0.26);
}
.upload-placeholder b::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.38), transparent);
  transform: translateX(-130%);
  animation: buttonShine 2.8s ease-in-out infinite;
}
.replace-button {
  width: fit-content;
  justify-self: center;
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid rgba(106, 75, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: #4c3bdf;
  box-shadow: 0 12px 26px rgba(106, 75, 255, 0.1);
  cursor: pointer;
  font-size: 12px;
  font-weight: 900;
}
.control-panel {
  min-width: 0;
  margin: 0;
  padding: 23px;
  border: 1px solid rgba(255, 255, 255, 0.86);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(18px);
}
.control-panel--studio {
  position: sticky;
  top: 96px;
  min-height: clamp(430px, 36vw, 520px);
  display: flex;
  flex-direction: column;
  margin-top: 0;
  overflow: visible;
  padding: 14px;
  border-color: rgba(255, 255, 255, 0.78);
  border-radius: 26px;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.84), rgba(248, 251, 255, 0.58)),
    linear-gradient(135deg, rgba(106, 75, 255, 0.1), rgba(0, 200, 255, 0.08) 46%, rgba(255, 61, 139, 0.1));
  box-shadow:
    0 30px 82px rgba(31, 39, 72, 0.17),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}
.control-panel--studio::before {
  content: "AI FITTING CONSOLE";
  position: absolute;
  top: 14px;
  right: 14px;
  display: block;
  color: #6a4bff;
  font-size: 9px;
  font-weight: 950;
  letter-spacing: 0.1em;
}
.control-group + .control-group { margin-top: 8px; }
.control-label { display: block; margin-bottom: 5px; color: #111318; font-size: 12px; font-weight: 950; }
.segmented { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.segmented input, .quality-option input { position: absolute; opacity: 0; pointer-events: none; }
.segmented span {
  display: grid;
  min-height: 34px;
  place-items: center;
  padding: 6px 8px;
  border: 1px solid rgba(123, 115, 143, 0.12);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.7);
  color: #5f6878;
  text-align: center;
  font-size: 11px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.86);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background 180ms ease;
}
.segmented span:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(80, 60, 180, 0.1); }
.segmented input:checked + span {
  border-color: rgba(0, 200, 255, 0.42);
  background: linear-gradient(135deg, rgba(0, 200, 255, 0.22), rgba(184, 255, 69, 0.22));
  color: #111318;
  box-shadow: 0 14px 32px rgba(0, 200, 255, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.92);
}
.quality-grid { display: grid; gap: 6px; }
.quality-option { position: relative; }
.control-panel--studio .quality-option { z-index: 1; }
.control-panel--studio .quality-option:hover,
.control-panel--studio .quality-option:focus-within { z-index: 8; }
.quality-option > span {
  position: relative;
  display: grid;
  gap: 2px;
  padding: 7px 8px 7px 28px;
  overflow: hidden;
  border: 1px solid rgba(123, 115, 143, 0.12);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.86);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}
.quality-option > span::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 11px;
  width: 10px;
  height: 10px;
  border: 1px solid rgba(106, 75, 255, 0.32);
  border-radius: 999px;
  background: white;
  box-shadow: inset 0 0 0 3px white;
}
.quality-option > span:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(80, 60, 180, 0.1); }
.quality-option b { color: #111318; font-size: 12px; }
.quality-option small { color: var(--muted); font-size: 10px; line-height: 1.35; }
.control-panel--studio .quality-option > span {
  min-height: 38px;
  align-content: center;
  overflow: visible;
}
.control-panel--studio .quality-option small {
  position: static;
  display: block;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  box-shadow: none;
  opacity: 1;
  pointer-events: auto;
  transform: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.control-panel--studio .quality-option:hover small,
.control-panel--studio .quality-option:focus-within small {
  opacity: 1;
  transform: none;
}
.control-panel--studio .control-group:nth-of-type(3) .quality-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.control-panel--studio .control-group:nth-of-type(3) .quality-option > span {
  min-height: 38px;
  align-content: center;
  padding: 7px 8px 7px 28px;
}
.control-panel--studio .control-group:nth-of-type(3) .quality-option > span::before {
  left: 9px;
  top: 11px;
}
.quality-option input:checked + span {
  border-color: rgba(106, 75, 255, 0.36);
  background: linear-gradient(135deg, rgba(106, 75, 255, 0.14), rgba(255, 61, 139, 0.11));
  box-shadow: 0 16px 36px rgba(106, 75, 255, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.92);
}
.quality-option input:checked + span::before { background: #6a4bff; box-shadow: inset 0 0 0 3px white, 0 0 0 5px rgba(106, 75, 255, 0.14); }
.preserve-check {
  display: flex;
  gap: 7px;
  align-items: flex-start;
  margin-top: 8px;
  padding: 8px 10px;
  border: 1px solid rgba(0, 200, 255, 0.24);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.72);
  color: #555f70;
  font-size: 10px;
  line-height: 1.4;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.84);
}
.preserve-check[hidden] { display: none; }
.preserve-check input { margin-top: 3px; accent-color: var(--cyan); }
.agreement-check { display: flex; gap: 8px; align-items: flex-start; margin-top: 7px; color: #667085; font-size: 9px; line-height: 1.35; }
.agreement-check input { margin: 2px 0 0; accent-color: #6a4bff; }
.agreement-check a { color: #4c3bdf; font-weight: 850; }
.form-error { margin: 12px 0 0; padding: 9px 11px; color: #9f1239; border-radius: 12px; background: #fff1f3; font-size: 12px; line-height: 1.5; }
.generate-button {
  position: relative;
  width: 100%;
  min-height: 50px;
  display: grid;
  gap: 2px;
  place-items: center;
  margin-top: 8px;
  padding: 9px 14px;
  overflow: hidden;
  border: 0;
  border-radius: 18px;
  color: white;
  background: linear-gradient(135deg, #111318, #6a4bff 54%, #ff3d8b);
  cursor: pointer;
  box-shadow: 0 22px 50px rgba(106, 75, 255, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.22);
  transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}
.generate-button::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.34), transparent);
  transform: translateX(-140%);
  animation: buttonShine 3.2s ease-in-out infinite;
}
.generate-button:hover {
  transform: translateY(-2px);
  filter: saturate(1.08);
  box-shadow: 0 28px 62px rgba(106, 75, 255, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}
.generate-button span { position: relative; font-weight: 950; }
.generate-button small { position: relative; opacity: 0.78; font-size: 10px; }
.generate-button:disabled { cursor: wait; opacity: 0.65; transform: none; }
.control-panel--studio .generate-button {
  position: relative;
  bottom: auto;
  z-index: 1;
  margin-top: auto;
}
.privacy-note { margin: 6px 0 0; color: #7a8290; font-size: 9px; line-height: 1.45; text-align: center; }

.result-panel { display: grid; grid-template-columns: minmax(260px, 0.8fr) minmax(300px, 1fr); gap: clamp(28px, 5vw, 70px); align-items: center; }
.result-media { min-height: 440px; overflow: hidden; border-radius: 24px; background: #edf2f7; }
.result-media img { width: 100%; height: 100%; display: block; object-fit: cover; }
.result-copy > p:not(.eyebrow) { color: var(--muted); font-size: 16px; line-height: 1.7; }
.result-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

.footer {
  width: min(1200px, calc(100% - 40px));
  display: grid;
  grid-template-columns: 1.25fr 0.8fr 0.9fr 1fr;
  gap: 24px;
  margin: 0 auto 28px;
  padding: 25px 28px;
  border: 1px solid rgba(255, 255, 255, 0.86);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.66);
  backdrop-filter: blur(18px);
}
.footer-brand { display: flex; gap: 11px; align-items: center; }
.footer img { border-radius: 12px; }
.footer strong { display: block; margin-bottom: 6px; font-size: 13px; }
.footer p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.65; }
.footer a { color: #4c3bdf; text-decoration: none; font-weight: 780; }

.account-page {
  width: min(1220px, calc(100% - 40px));
  min-height: calc(100vh - 160px);
  margin: 0 auto 70px;
  padding-top: 58px;
}
.account-page-shell,
.account-page-hero,
.account-page-grid {
  position: relative;
}
.account-page-shell {
  min-height: 520px;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: clamp(30px, 6vw, 70px);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 32px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(247, 250, 255, 0.68)),
    radial-gradient(circle at 18% 18%, rgba(0, 200, 255, 0.2), transparent 36%),
    radial-gradient(circle at 82% 6%, rgba(255, 61, 139, 0.16), transparent 32%);
  box-shadow: var(--shadow);
  backdrop-filter: blur(24px);
  text-align: center;
}
.account-page-orb {
  position: absolute;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(106, 75, 255, 0.28), transparent 68%);
  filter: blur(4px);
}
.account-page-shell h1 {
  position: relative;
  max-width: 720px;
  margin: 0;
  font-size: clamp(36px, 5vw, 68px);
  line-height: 1.08;
}
.account-page-shell p:not(.eyebrow) {
  position: relative;
  max-width: 620px;
  margin: 18px auto 24px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.8;
}
.account-page-loading {
  position: relative;
  display: grid;
  place-items: center;
  gap: 16px;
  color: #111318;
}
.account-page-loading span {
  width: 64px;
  height: 64px;
  border-radius: 22px;
  background: linear-gradient(135deg, var(--cyan), var(--lime));
  box-shadow: 0 24px 52px rgba(0, 200, 255, 0.28);
  animation: accountPulse 1.2s ease-in-out infinite;
}
.account-page-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.34fr);
  gap: 24px;
  align-items: stretch;
  margin-bottom: 22px;
}
.account-page-hero > div:first-child,
.account-balance-hero,
.account-side-card,
.account-section-panel {
  border: 1px solid rgba(255, 255, 255, 0.88);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.64)),
    linear-gradient(120deg, rgba(0, 200, 255, 0.08), transparent 44%, rgba(255, 61, 139, 0.08));
  box-shadow: var(--soft-shadow);
  backdrop-filter: blur(22px);
}
.account-page-hero > div:first-child {
  padding: clamp(28px, 5vw, 48px);
  border-radius: 30px;
}
.account-page-hero h1 {
  margin: 0;
  font-size: clamp(40px, 6vw, 76px);
  line-height: 1;
}
.account-page-hero p:not(.eyebrow) {
  max-width: 700px;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.75;
}
.account-balance-hero {
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 28px;
  border-radius: 30px;
  color: white;
  background: linear-gradient(135deg, #111318, #5b42f3 52%, #ff3d8b);
  box-shadow: 0 28px 70px rgba(91, 66, 243, 0.28);
}
.account-balance-hero span { color: rgba(255, 255, 255, 0.72); font-size: 13px; font-weight: 900; }
.account-balance-hero strong { font-size: 66px; line-height: 0.96; }
.account-balance-hero button {
  width: fit-content;
  min-height: 42px;
  margin-top: 10px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  color: #111318;
  background: rgba(255, 255, 255, 0.9);
  cursor: pointer;
  font-weight: 950;
}
.account-page-grid {
  display: grid;
  grid-template-columns: minmax(250px, 0.34fr) minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}
.account-side-card {
  position: sticky;
  top: 100px;
  display: grid;
  gap: 12px;
  justify-items: start;
  padding: 24px;
  border-radius: 28px;
}
.account-side-card h2 { margin: 4px 0 0; font-size: 24px; }
.account-side-card p { margin: 0; color: var(--muted); font-size: 13px; }
.account-side-stats {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 8px;
}
.account-side-stats span {
  padding: 12px;
  border-radius: 16px;
  background: rgba(246, 248, 252, 0.86);
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}
.account-side-stats b { display: block; color: #111318; font-size: 24px; line-height: 1; }
.account-page-nav {
  width: 100%;
  display: grid;
  gap: 9px;
  margin-top: 8px;
}
.account-page-nav a {
  padding: 12px 13px;
  border-radius: 15px;
  color: #3d4454;
  background: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 13px;
  font-weight: 900;
}
.account-page-nav a:hover { color: #111318; background: rgba(0, 200, 255, 0.12); }
.account-content-stack { display: grid; gap: 18px; }
.account-section-panel {
  scroll-margin-top: 110px;
  padding: clamp(20px, 3vw, 28px);
  border-radius: 28px;
}
.account-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}
.account-section-title div {
  display: flex;
  align-items: center;
  gap: 12px;
}
.account-section-title span {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 15px;
  color: #111318;
  background: linear-gradient(135deg, var(--cyan), var(--lime));
  font-size: 12px;
  font-weight: 950;
}
.account-section-title h2 { margin: 0; font-size: clamp(22px, 3vw, 32px); }
.account-section-title a,
.account-section-title button {
  min-height: 38px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #3d4454;
  background: rgba(255, 255, 255, 0.72);
  cursor: pointer;
  text-decoration: none;
  font-size: 12px;
  font-weight: 900;
}
.account-detail-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.account-detail-grid div {
  display: grid;
  justify-content: stretch;
  min-height: 86px;
  padding: 15px;
}
.account-detail-grid dd {
  text-align: left;
  font-size: 18px;
}
.transaction-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}
.transaction-toolbar button {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(123, 115, 143, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  color: #3d4454;
  font-size: 12px;
  font-weight: 900;
}
.transaction-toolbar button.is-active {
  color: white;
  border-color: transparent;
  background: linear-gradient(135deg, #111318, var(--violet), var(--pink));
  box-shadow: 0 12px 28px rgba(106, 75, 255, 0.2);
}
.transaction-list { display: grid; gap: 12px; }
.transaction-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 16px;
  border: 1px solid rgba(123, 115, 143, 0.14);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 14px 36px rgba(35, 42, 80, 0.07);
}
.transaction-card__mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 15px;
  background: rgba(12, 143, 79, 0.1);
  font-size: 18px;
  font-weight: 950;
}
.transaction-card__mark.is-expense { background: rgba(217, 53, 106, 0.1); }
.transaction-card strong { font-size: 15px; }
.transaction-card p { margin: 4px 0; color: #3d4454; font-size: 13px; line-height: 1.45; }
.transaction-card small { color: var(--muted); font-size: 12px; font-weight: 780; }
.transaction-card > b { font-size: 20px; }
.security-note {
  padding: 16px;
  border: 1px solid rgba(0, 200, 255, 0.18);
  border-radius: 18px;
  background: rgba(0, 200, 255, 0.08);
}
.security-note strong { display: block; color: #111318; }
.security-note p { margin: 7px 0 0; color: var(--muted); line-height: 1.65; }
.account-identity-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 14px 0;
}
.account-identity-actions button {
  min-height: 42px;
  padding: 0 15px;
  border: 1px solid rgba(106, 75, 255, 0.18);
  border-radius: 999px;
  color: #30228f;
  background:
    radial-gradient(circle at 18% 0%, rgba(255, 255, 255, 0.88), transparent 42%),
    linear-gradient(135deg, rgba(106, 75, 255, 0.12), rgba(0, 200, 255, 0.1));
  box-shadow: 0 12px 28px rgba(80, 60, 180, 0.08);
  cursor: pointer;
  font-size: 12px;
  font-weight: 900;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}
.account-identity-actions button:hover {
  transform: translateY(-2px);
  border-color: rgba(106, 75, 255, 0.36);
  box-shadow: 0 18px 38px rgba(80, 60, 180, 0.14);
}
.account-identity-done {
  margin: 14px 0;
  padding: 12px 14px;
  border: 1px solid rgba(7, 193, 96, 0.18);
  border-radius: 16px;
  color: #0d6337;
  background: rgba(7, 193, 96, 0.08);
  font-size: 12px;
  font-weight: 850;
}
.password-form {
  display: grid;
  gap: 12px;
}
.security-note + .password-form,
.account-identity-actions + .password-form,
.account-identity-done + .password-form { margin-top: 14px; }
.password-form label {
  display: grid;
  gap: 7px;
  color: #3d4454;
  font-size: 12px;
  font-weight: 900;
}
.password-form input {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.86);
  outline: 0;
}
.password-form input:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(0, 200, 255, 0.1);
}
.account-menu .password-form .button {
  min-height: 44px;
  width: 100%;
}
.account-menu .account-identity-actions {
  display: grid;
  grid-template-columns: 1fr;
}
.account-menu .account-identity-actions button {
  width: 100%;
}

.account-page--console {
  width: min(1240px, calc(100% - 40px));
  padding-top: 38px;
  color: #101217;
}
.account-page--console::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(rgba(16, 18, 23, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 18, 23, 0.035) 1px, transparent 1px),
    linear-gradient(120deg, rgba(0, 200, 255, 0.14), transparent 38%, rgba(106, 75, 255, 0.1) 64%, rgba(255, 61, 139, 0.12));
  background-size: 48px 48px, 48px 48px, 100% 100%;
  mask-image: linear-gradient(180deg, black, transparent 86%);
}
.account-page--console .account-page-shell,
.account-page--console .account-page-hero > div:first-child,
.account-page--console .account-balance-hero,
.account-page--console .account-side-card,
.account-page--console .account-section-panel {
  position: relative;
  overflow: hidden;
  border-color: rgba(255, 255, 255, 0.76);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.82), rgba(247, 250, 255, 0.58)),
    linear-gradient(120deg, rgba(0, 200, 255, 0.1), transparent 42%, rgba(255, 61, 139, 0.09));
  box-shadow:
    0 22px 70px rgba(32, 42, 78, 0.13),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(24px);
  animation: accountPanelRise 460ms cubic-bezier(0.2, 0.85, 0.22, 1) both;
}
.account-page--console .account-page-shell::before,
.account-page--console .account-page-hero > div:first-child::before,
.account-page--console .account-section-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent, rgba(0, 200, 255, 0.22), transparent) 0 0 / 100% 1px no-repeat,
    linear-gradient(180deg, rgba(255, 255, 255, 0.42), transparent 42%);
}
.account-page--console .account-page-shell {
  min-height: 420px;
  padding: clamp(28px, 5vw, 52px);
}
.account-page--console .account-page-orb {
  width: 280px;
  height: 280px;
  opacity: 0.7;
}
.account-page--console .account-page-shell h1,
.account-page--console .account-page-hero h1 {
  max-width: 640px;
  font-size: clamp(28px, 3.4vw, 44px);
  line-height: 1.08;
  letter-spacing: 0;
}
.account-page--console .account-page-shell p:not(.eyebrow),
.account-page--console .account-page-hero p:not(.eyebrow) {
  max-width: 620px;
  margin-top: 12px;
  font-size: 14px;
  line-height: 1.7;
}
.account-page--console .eyebrow {
  margin-bottom: 12px;
  font-size: 10px;
  letter-spacing: 0.08em;
}
.account-page--console .eyebrow span {
  width: 28px;
  height: 6px;
}
.account-page--console .account-page-loading {
  gap: 12px;
  font-size: 13px;
}
.account-page--console .account-page-loading span {
  width: 48px;
  height: 48px;
  border-radius: 18px;
}
.account-page--console .account-page-hero {
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.28fr);
  gap: 18px;
  margin-bottom: 18px;
}
.account-page--console .account-page-hero > div:first-child {
  padding: clamp(24px, 4vw, 34px);
  border-radius: 26px;
}
.account-page--console .account-balance-hero {
  gap: 6px;
  padding: 22px;
  border-radius: 26px;
  background:
    linear-gradient(135deg, rgba(17, 19, 24, 0.96), rgba(77, 54, 220, 0.92) 54%, rgba(255, 61, 139, 0.88)),
    linear-gradient(120deg, rgba(0, 200, 255, 0.24), transparent);
  box-shadow: 0 26px 64px rgba(91, 66, 243, 0.24);
}
.account-page--console .account-balance-hero span {
  font-size: 11px;
  letter-spacing: 0.08em;
}
.account-page--console .account-balance-hero strong {
  font-size: clamp(34px, 4.2vw, 48px);
  line-height: 0.98;
}
.account-page--console .account-balance-hero button {
  min-height: 36px;
  margin-top: 8px;
  padding: 0 14px;
  font-size: 12px;
}
.account-page--console .account-page-grid {
  grid-template-columns: minmax(220px, 0.28fr) minmax(0, 1fr);
  column-gap: 18px;
  row-gap: 14px;
  align-items: stretch;
}
.account-page--console .account-side-card {
  grid-column: 1;
  grid-row: 1;
  align-self: stretch;
  align-content: start;
  top: 0;
  gap: 10px;
  padding: 20px;
  border-radius: 24px;
}
.account-page--console .account-avatar--page {
  width: 58px;
  height: 58px;
  border-radius: 20px;
  font-size: 22px;
}
.account-page--console .account-side-card h2 {
  margin: 2px 0 0;
  font-size: 18px;
  line-height: 1.25;
}
.account-page--console .account-side-card p {
  font-size: 12px;
  line-height: 1.55;
}
.account-page--console .account-side-stats {
  gap: 8px;
  margin-top: 4px;
}
.account-page--console .account-side-stats span {
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.62);
  font-size: 11px;
}
.account-page--console .account-side-stats b {
  font-size: 20px;
}
.account-page--console .account-page-nav {
  gap: 8px;
  margin-top: 4px;
}
.account-page--console .account-page-nav a {
  min-height: 38px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  border: 1px solid rgba(123, 115, 143, 0.12);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.62);
  font-size: 12px;
}
.account-page--console .account-page-nav a:hover {
  border-color: rgba(0, 200, 255, 0.26);
  background: linear-gradient(135deg, rgba(0, 200, 255, 0.13), rgba(184, 255, 69, 0.14));
  box-shadow: 0 12px 26px rgba(0, 200, 255, 0.1);
}
.account-page--console .account-content-stack {
  display: contents;
}
.account-page--console .account-content-stack > .account-section-panel {
  grid-column: 2;
}
.account-page--console .account-section-panel {
  padding: clamp(18px, 2.5vw, 24px);
  border-radius: 24px;
}
.account-page--console .account-section-title {
  gap: 14px;
  margin-bottom: 14px;
}
.account-page--console .account-section-title div {
  gap: 10px;
}
.account-page--console .account-section-title span {
  width: 34px;
  height: 34px;
  border-radius: 13px;
  font-size: 10px;
  box-shadow: 0 12px 26px rgba(0, 200, 255, 0.18);
}
.account-page--console .account-section-title h2 {
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.2;
}
.account-page--console .account-section-title a,
.account-page--console .account-section-title button {
  min-height: 34px;
  padding: 0 12px;
  font-size: 11px;
}
.account-page--console .account-detail-grid {
  gap: 10px;
}
.account-page--console .account-detail-grid div {
  min-height: 72px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.74);
  background: rgba(255, 255, 255, 0.58);
}
.account-page--console .account-detail-grid dt {
  font-size: 11px;
}
.account-page--console .account-detail-grid dd {
  font-size: 14px;
  line-height: 1.45;
}
.account-page--console .transaction-toolbar {
  gap: 8px;
  margin-bottom: 12px;
}
.account-page--console .transaction-toolbar button {
  min-height: 34px;
  padding: 0 12px;
  font-size: 11px;
}
.account-page--console .transaction-list {
  gap: 10px;
}
.account-page--console .transaction-card {
  gap: 12px;
  padding: 13px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.68);
}
.account-page--console .transaction-card__mark {
  width: 34px;
  height: 34px;
  border-radius: 13px;
  font-size: 14px;
}
.account-page--console .transaction-card strong {
  font-size: 13px;
}
.account-page--console .transaction-card p {
  margin: 3px 0;
  font-size: 12px;
  line-height: 1.45;
}
.account-page--console .transaction-card small {
  font-size: 11px;
}
.account-page--console .transaction-card > b {
  font-size: 16px;
}
.account-page--console .security-note {
  padding: 13px;
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(0, 200, 255, 0.1), rgba(106, 75, 255, 0.08));
}
.account-page--console .security-note strong {
  font-size: 13px;
}
.account-page--console .security-note p {
  font-size: 12px;
  line-height: 1.55;
}
.account-page--console .account-identity-actions {
  gap: 8px;
  margin: 12px 0;
}
.account-page--console .account-identity-actions button,
.account-page--console .password-form .button {
  min-height: 38px;
  padding: 0 13px;
  font-size: 12px;
}
.account-page--console .account-identity-done,
.account-page--console .account-empty {
  font-size: 12px;
  line-height: 1.55;
}
.account-page--console .password-form {
  gap: 10px;
}
.account-page--console .password-form label {
  gap: 6px;
  font-size: 11px;
}
.account-page--console .password-form input {
  min-height: 42px;
  border-radius: 13px;
  font-size: 13px;
}

dialog {
  width: min(500px, calc(100% - 32px));
  max-height: min(760px, calc(100vh - 32px));
  overflow: auto;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 30px 100px rgba(25, 15, 42, 0.28);
}
dialog::backdrop { background: rgba(22, 15, 31, 0.48); backdrop-filter: blur(8px); }
.dialog-shell { position: relative; padding: 28px; }
.dialog-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(16, 18, 23, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
  color: #333947;
  box-shadow: 0 12px 28px rgba(22, 28, 45, 0.12);
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
  transition: transform 160ms ease, background 160ms ease, box-shadow 160ms ease;
}
.dialog-close:hover {
  transform: translateY(-1px) scale(1.04);
  background: white;
  box-shadow: 0 16px 34px rgba(22, 28, 45, 0.16);
}
.dialog-close:focus-visible {
  outline: 3px solid rgba(106, 75, 255, 0.28);
  outline-offset: 2px;
}
.dialog-icon { display: grid; width: 58px; height: 58px; place-items: center; margin: 0 auto 16px; border-radius: 19px; color: white; background: linear-gradient(135deg, #111318, var(--violet), var(--pink)); font-size: 20px; font-weight: 900; }
.dialog-shell h2 { margin: 0; text-align: center; font-size: 25px; }
.dialog-lead { margin: 11px 0 0; color: var(--muted); line-height: 1.65; text-align: center; }
.dialog-reward { display: flex; justify-content: center; gap: 10px; margin: 18px 0; padding: 13px; border-radius: 16px; background: rgba(106, 75, 255, 0.1); color: #3721b8; font-weight: 900; }
.dialog-actions { display: flex; justify-content: center; gap: 10px; margin-top: 20px; }
.dialog-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin: 18px 0; padding: 5px; border-radius: 14px; background: #eef2f7; }
.dialog-tabs button { padding: 10px; border: 0; border-radius: 10px; background: transparent; color: var(--muted); cursor: pointer; font-weight: 800; }
.dialog-tabs button[aria-selected="true"] { color: #111318; background: white; box-shadow: 0 5px 15px rgba(50, 30, 80, 0.08); }
.auth-form { display: grid; gap: 11px; }
.auth-form label { display: grid; gap: 6px; color: #4b5565; font-size: 12px; font-weight: 800; }
.auth-form input { width: 100%; min-height: 48px; padding: 11px 13px; border: 1px solid var(--line); border-radius: 14px; outline: 0; background: #fafbfc; }
.auth-form input:focus { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(0, 200, 255, 0.1); }
.dialog-shell .auth-form .agreement-check {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  font-size: 11px;
  line-height: 1.45;
}
.dialog-shell .auth-form .agreement-check input {
  flex: 0 0 1em;
  width: 1em;
  height: 1em;
  min-height: 1em;
  margin: 0;
  padding: 0;
  border-radius: 3px;
  accent-color: #6a4bff;
}
.dialog-shell .auth-form .agreement-check span {
  min-width: 0;
  line-height: 1.45;
}
.sms-row { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.sms-row button { padding: 0 13px; border: 1px solid rgba(0, 200, 255, 0.18); border-radius: 13px; color: #005d78; background: rgba(0, 200, 255, 0.1); cursor: pointer; font-weight: 800; }
.auth-submit { min-height: 50px; border: 0; border-radius: 15px; color: white; background: #111318; cursor: pointer; font-weight: 900; }
.auth-switch { border: 0; background: transparent; color: #4c3bdf; cursor: pointer; font-weight: 800; }
.wechat-login {
  position: relative;
  width: 100%;
  min-height: 50px;
  margin-top: 14px;
  overflow: hidden;
  border: 1px solid rgba(7, 193, 96, 0.28);
  border-radius: 16px;
  color: #073f24;
  background:
    radial-gradient(circle at 20% 0%, rgba(255, 255, 255, 0.9), transparent 34%),
    linear-gradient(135deg, rgba(7, 193, 96, 0.18), rgba(0, 200, 255, 0.1));
  box-shadow: 0 16px 34px rgba(7, 193, 96, 0.16);
  cursor: pointer;
  font-weight: 900;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}
.wechat-login::before {
  content: "✓";
  display: inline-grid;
  width: 22px;
  height: 22px;
  margin-right: 8px;
  place-items: center;
  border-radius: 999px;
  color: white;
  background: #07c160;
  box-shadow: 0 8px 18px rgba(7, 193, 96, 0.28);
}
.wechat-login:hover {
  transform: translateY(-2px);
  border-color: rgba(7, 193, 96, 0.52);
  box-shadow: 0 22px 46px rgba(7, 193, 96, 0.22);
}

.recharge-view {
  position: fixed;
  z-index: 90;
  inset: 0;
  display: grid;
  place-items: center;
  overflow: auto;
  padding: 28px 18px;
  background: radial-gradient(circle at 18% 18%, rgba(0, 200, 255, 0.22), transparent 32%),
    radial-gradient(circle at 78% 0%, rgba(255, 61, 139, 0.2), transparent 30%),
    rgba(17, 19, 24, 0.5);
  backdrop-filter: blur(18px);
}
.recharge-shell {
  position: relative;
  width: min(920px, 100%);
  max-height: min(860px, calc(100vh - 42px));
  overflow: auto;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 30px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(247, 250, 255, 0.86));
  box-shadow: 0 40px 110px rgba(11, 16, 40, 0.34);
  animation: rechargeIn 260ms ease-out both;
}
.recharge-view--standalone {
  position: relative;
  min-height: 100vh;
  place-items: start center;
  padding: 38px 18px 64px;
  background:
    radial-gradient(circle at 14% 8%, rgba(0, 200, 255, 0.24), transparent 28%),
    radial-gradient(circle at 80% 0%, rgba(255, 61, 139, 0.2), transparent 28%),
    linear-gradient(135deg, #eef8ff 0%, #fff8fc 48%, #f3f0ff 100%);
  backdrop-filter: none;
}
.recharge-view--standalone .recharge-shell {
  width: min(1180px, 100%);
  max-height: none;
  overflow: visible;
  padding: 32px;
  border-radius: 34px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(248, 251, 255, 0.78)),
    radial-gradient(circle at 12% 0%, rgba(0, 200, 255, 0.14), transparent 32%),
    radial-gradient(circle at 90% 8%, rgba(255, 61, 139, 0.12), transparent 30%);
}
.recharge-aurora {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(110deg, rgba(0, 200, 255, 0.14), transparent 32%, rgba(255, 61, 139, 0.16));
  opacity: 0.9;
}
.recharge-head {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}
.recharge-head h1 { margin: 0; font-size: clamp(30px, 4vw, 48px); letter-spacing: 0; }
.recharge-head p { margin: 7px 0 0; color: var(--muted); font-weight: 750; }
.plain-button { padding: 9px 13px; border: 1px solid var(--line); border-radius: 999px; background: white; cursor: pointer; font-weight: 850; }
.recharge-body { position: relative; margin-top: 22px; }
.recharge-loading,
.recharge-auth-card {
  padding: 26px;
  border: 1px solid rgba(255, 255, 255, 0.84);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 18px 50px rgba(45, 30, 90, 0.1);
}
.recharge-auth-card { display: grid; gap: 12px; justify-items: start; }
.recharge-auth-card strong { font-size: 24px; }
.recharge-auth-card p { margin: 0; color: var(--muted); line-height: 1.65; }
.recharge-layout { display: grid; gap: 18px; }
.recharge-view--standalone .recharge-layout {
  grid-template-columns: minmax(0, 1.24fr) minmax(300px, 0.76fr);
  align-items: start;
}
.recharge-form { display: grid; gap: 18px; }
.recharge-balance-card {
  padding: 22px;
  border-radius: 26px;
  color: white;
  background: linear-gradient(135deg, #111318, #5b42f3 52%, #ff3d8b);
  box-shadow: 0 24px 50px rgba(91, 66, 243, 0.26);
}
.recharge-balance-card span { color: rgba(255, 255, 255, 0.72); font-size: 13px; font-weight: 850; }
.recharge-balance-card strong { display: block; margin-top: 6px; font-size: 46px; line-height: 1; }
.recharge-balance-card small { color: rgba(255, 255, 255, 0.65); font-size: 13px; }
.recharge-balance-card p { margin: 10px 0 0; color: rgba(255, 255, 255, 0.72); }
.recharge-section { display: grid; gap: 12px; }
.recharge-section-title { display: flex; align-items: end; justify-content: space-between; gap: 16px; }
.recharge-section-title h2 { margin: 0; font-size: 19px; }
.recharge-section-title p { margin: 0; color: var(--muted); font-size: 12px; font-weight: 760; }
.plan-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.recharge-view--standalone .plan-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.plan-option input, .pay-option input { position: absolute; opacity: 0; }
.plan-option span {
  position: relative;
  display: grid;
  min-height: 126px;
  gap: 7px;
  padding: 17px;
  border: 1px solid rgba(123, 115, 143, 0.18);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.82);
  cursor: pointer;
  box-shadow: 0 16px 40px rgba(35, 42, 80, 0.07);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}
.plan-option span:hover { transform: translateY(-3px); }
.plan-option b { font-size: 19px; color: #111318; }
.plan-option strong { color: #4c3bdf; font-size: 15px; }
.plan-option small { align-self: end; color: var(--muted); font-size: 12px; font-weight: 800; }
.plan-option.is-selected span,
.plan-option input:checked + span {
  border-color: #6a4bff;
  background: linear-gradient(135deg, rgba(106, 75, 255, 0.13), rgba(0, 200, 255, 0.1));
  box-shadow: 0 18px 46px rgba(80, 60, 180, 0.18), 0 0 0 3px rgba(106, 75, 255, 0.08);
}
.custom-plan-card span { background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 239, 245, 0.92)); }
.custom-plan-card input {
  width: 100%;
  min-height: 40px;
  padding: 8px 10px;
  border: 1px solid rgba(255, 61, 139, 0.22);
  border-radius: 12px;
  background: white;
  outline: 0;
  font-size: 14px;
  font-weight: 900;
}
.custom-plan-card.is-selected span { border-color: #ff3d8b; box-shadow: 0 18px 46px rgba(255, 61, 139, 0.14), 0 0 0 3px rgba(255, 61, 139, 0.08); }
.pay-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pay-option span {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 58px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: rgba(255, 255, 255, 0.84);
  cursor: pointer;
  font-weight: 900;
}
.pay-option input:checked + span { border-color: #1677ff; background: rgba(22, 119, 255, 0.08); box-shadow: 0 0 0 3px rgba(22, 119, 255, 0.08); }
.pay-option--disabled span { color: #8a8390; cursor: not-allowed; background: rgba(245, 246, 248, 0.82); }
.pay-mark { display: grid; width: 28px; height: 28px; place-items: center; border-radius: 9px; color: white; font-style: normal; font-weight: 950; }
.pay-mark--alipay { background: #1677ff; }
.pay-mark--wechat { background: #20b35b; }
.recharge-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 15px 16px;
  border: 1px solid rgba(0, 200, 255, 0.2);
  border-radius: 18px;
  background: rgba(0, 200, 255, 0.08);
}
.recharge-summary span { color: #005d78; font-weight: 900; }
.recharge-summary strong { color: #111318; }
.recharge-tip { margin: -5px 0 0; color: #8a5a00; font-size: 12px; font-weight: 760; line-height: 1.55; }
.order-message { margin: 0; padding: 14px; border-radius: 16px; color: #5d5367; background: #f4f0f6; }
.order-message strong { display: block; margin-bottom: 4px; color: #111318; }
.order-message span { display: block; margin-bottom: 10px; }
.order-message button { margin: 4px 6px 0 0; }
.order-message--pending { border: 1px solid rgba(0, 200, 255, 0.22); background: rgba(0, 200, 255, 0.08); }
.order-message--error { border: 1px solid rgba(255, 61, 139, 0.22); color: #8a123d; background: rgba(255, 61, 139, 0.08); }
.recharge-records-panel {
  position: sticky;
  top: 20px;
  display: grid;
  gap: 16px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.86);
  border-radius: 28px;
  background:
    linear-gradient(145deg, rgba(18, 20, 30, 0.88), rgba(70, 52, 160, 0.78)),
    radial-gradient(circle at 80% 0%, rgba(255, 61, 139, 0.3), transparent 32%);
  color: white;
  box-shadow: 0 28px 80px rgba(45, 35, 100, 0.18);
}
.recharge-records-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
}
.recharge-records-head .eyebrow { color: rgba(255, 255, 255, 0.7); }
.recharge-records-head h2 { margin: 4px 0 0; font-size: 21px; letter-spacing: 0; }
.recharge-records-list { display: grid; gap: 18px; }
.recharge-records-list section { display: grid; gap: 10px; }
.recharge-records-list h3 {
  margin: 0;
  color: rgba(255, 255, 255, 0.74);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.recharge-record-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: start;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.09);
}
.recharge-record-dot {
  width: 10px;
  height: 10px;
  margin-top: 5px;
  border-radius: 50%;
  background: #ffb84d;
  box-shadow: 0 0 18px rgba(255, 184, 77, 0.5);
}
.recharge-record-dot.is-paid {
  background: #8cff64;
  box-shadow: 0 0 18px rgba(140, 255, 100, 0.5);
}
.recharge-record-item strong { display: block; font-size: 14px; }
.recharge-record-item small {
  display: block;
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.64);
  line-height: 1.45;
}
.recharge-record-empty {
  padding: 14px;
  border-radius: 16px;
  color: rgba(255, 255, 255, 0.68);
  background: rgba(255, 255, 255, 0.08);
}
.recharge-record-empty--error { color: #ffd6e5; }

.admin-page {
  width: min(1240px, calc(100% - 40px));
  margin: 0 auto 76px;
  padding-top: 42px;
}
.admin-loading-card,
.admin-gate,
.admin-dashboard,
.admin-panel,
.admin-drawer {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.82);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(246, 250, 255, 0.74)),
    radial-gradient(circle at 8% 8%, rgba(0, 200, 255, 0.16), transparent 34%),
    radial-gradient(circle at 90% 0%, rgba(255, 61, 139, 0.14), transparent 30%);
  box-shadow: 0 24px 80px rgba(20, 24, 42, 0.13);
  backdrop-filter: blur(24px);
}
.admin-loading-card,
.admin-gate {
  min-height: 440px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 14px;
  padding: 52px;
  border-radius: 34px;
  text-align: center;
}
.admin-loading-card span,
.admin-orbit {
  width: 82px;
  height: 82px;
  border-radius: 50%;
  border: 2px solid rgba(106, 75, 255, 0.28);
  border-top-color: var(--cyan);
  box-shadow: 0 0 44px rgba(0, 200, 255, 0.28), inset 0 0 24px rgba(255, 61, 139, 0.12);
  animation: adminSpin 1.6s linear infinite;
}
.admin-loading-card strong,
.admin-gate h1 { font-size: clamp(30px, 4vw, 54px); letter-spacing: 0; }
.admin-loading-card p,
.admin-gate p { max-width: 620px; margin: 0; color: var(--muted); font-weight: 760; line-height: 1.7; }
.admin-gate-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.admin-hero {
  display: grid;
  grid-template-columns: 1fr minmax(240px, 320px);
  gap: 18px;
  align-items: stretch;
  margin-bottom: 18px;
}
.admin-hero > div:first-child,
.admin-identity-card {
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.86);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 18px 52px rgba(20, 24, 42, 0.1);
  backdrop-filter: blur(20px);
}
.admin-hero h1 { margin: 6px 0 8px; font-size: clamp(34px, 4.8vw, 64px); line-height: 1.06; }
.admin-hero p { max-width: 680px; margin: 0; color: var(--muted); font-weight: 760; line-height: 1.68; }
.admin-identity-card { display: grid; align-content: center; gap: 6px; color: white; background: linear-gradient(135deg, #111318, #5b42f3 56%, #ff3d8b); }
.admin-identity-card small { color: rgba(255, 255, 255, 0.7); font-weight: 900; }
.admin-identity-card strong { font-size: 26px; }
.admin-identity-card span { color: rgba(255, 255, 255, 0.75); font-size: 13px; font-weight: 800; }
.admin-dashboard { margin-bottom: 18px; padding: 22px; border-radius: 30px; }
.admin-toolbar {
  position: relative;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  margin-bottom: 16px;
}
.admin-toolbar h2 { margin: 0; font-size: 22px; }
.admin-toolbar p { margin: 4px 0 0; color: var(--muted); font-size: 13px; font-weight: 760; }
.admin-toolbar select,
.admin-search input,
.admin-adjust-form input,
.admin-adjust-form textarea {
  min-height: 44px;
  border: 1px solid rgba(106, 75, 255, 0.16);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.82);
  padding: 0 13px;
  outline: 0;
  font-weight: 850;
}
.admin-stat-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.admin-stat-card {
  min-height: 136px;
  display: grid;
  align-content: space-between;
  gap: 10px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.86);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 16px 42px rgba(35, 42, 80, 0.08);
}
.admin-stat-card span { color: var(--muted); font-size: 12px; font-weight: 900; }
.admin-stat-card strong { font-size: clamp(26px, 3.2vw, 38px); line-height: 1; color: #111318; }
.admin-stat-card small { color: #6b7280; font-size: 12px; font-weight: 760; }
.admin-console-grid {
  display: grid;
  grid-template-columns: minmax(360px, 0.9fr) minmax(0, 1.2fr);
  gap: 18px;
  align-items: start;
}
.admin-panel,
.admin-drawer { border-radius: 30px; padding: 22px; }
.admin-search { display: grid; grid-template-columns: 1fr auto; gap: 10px; margin-bottom: 14px; }
.admin-user-list { display: grid; gap: 10px; }
.admin-user-row {
  width: 100%;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  min-height: 76px;
  padding: 12px;
  border: 1px solid rgba(123, 115, 143, 0.14);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.72);
  cursor: pointer;
  text-align: left;
  box-shadow: 0 12px 32px rgba(35, 42, 80, 0.06);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}
.admin-user-row:hover,
.admin-user-row.is-selected {
  transform: translateY(-2px);
  border-color: rgba(106, 75, 255, 0.38);
  box-shadow: 0 18px 42px rgba(82, 62, 180, 0.14);
}
.admin-avatar {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 16px;
  color: white;
  background: linear-gradient(135deg, #111318, var(--violet), var(--pink));
  font-weight: 950;
}
.admin-user-row strong { display: block; color: #111318; font-size: 15px; }
.admin-user-row small { color: var(--muted); font-size: 12px; font-weight: 800; }
.admin-user-row b { color: #4c3bdf; font-size: 13px; }
.admin-pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}
.admin-pagination button {
  min-height: 38px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: white;
  cursor: pointer;
  font-weight: 900;
}
.admin-pagination button:disabled { opacity: 0.45; cursor: not-allowed; }
.admin-drawer { position: sticky; top: 98px; }
.admin-drawer--empty {
  min-height: 420px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  text-align: center;
}
.admin-drawer--empty h2 { margin: 0; font-size: 30px; }
.admin-drawer--empty p { max-width: 420px; margin: 0; color: var(--muted); line-height: 1.7; font-weight: 760; }
.admin-drawer-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: start;
  margin-bottom: 16px;
}
.admin-drawer-head small { color: #5b42f3; font-weight: 950; }
.admin-drawer-head h2 { margin: 3px 0; font-size: 28px; }
.admin-drawer-head p { max-width: 410px; margin: 0; color: var(--muted); font-size: 12px; word-break: break-all; }
.admin-detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 16px;
}
.admin-detail-grid div {
  padding: 13px;
  border: 1px solid rgba(255, 255, 255, 0.86);
  border-radius: 17px;
  background: rgba(255, 255, 255, 0.72);
}
.admin-detail-grid dt { color: var(--muted); font-size: 11px; font-weight: 900; }
.admin-detail-grid dd { margin: 5px 0 0; color: #111318; font-size: 13px; font-weight: 900; word-break: break-word; }
.admin-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}
.admin-tabs button {
  min-height: 46px;
  border: 1px solid rgba(123, 115, 143, 0.14);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.74);
  cursor: pointer;
  font-size: 12px;
  font-weight: 900;
}
.admin-tabs button.is-active {
  color: white;
  border-color: transparent;
  background: linear-gradient(135deg, #111318, #6a4bff 60%, #ff3d8b);
  box-shadow: 0 14px 30px rgba(106, 75, 255, 0.2);
}
.admin-tabs b { margin-left: 6px; opacity: 0.72; }
.admin-records { display: grid; gap: 10px; max-height: 520px; overflow: auto; padding-right: 4px; }
.admin-record-card {
  display: grid;
  gap: 5px;
  padding: 14px;
  border: 1px solid rgba(123, 115, 143, 0.14);
  border-radius: 17px;
  background: rgba(255, 255, 255, 0.74);
}
.admin-record-card span { color: #5b42f3; font-size: 11px; font-weight: 950; }
.admin-record-card strong { color: #111318; font-size: 16px; }
.admin-record-card strong.is-positive { color: #0c8a4a; }
.admin-record-card strong.is-negative { color: #b42318; }
.admin-record-card small,
.admin-record-card em { color: var(--muted); font-size: 12px; font-style: normal; line-height: 1.55; }
.admin-empty {
  padding: 26px;
  border: 1px dashed rgba(106, 75, 255, 0.24);
  border-radius: 20px;
  color: var(--muted);
  text-align: center;
  font-weight: 850;
}
.admin-adjust-form { display: grid; gap: 13px; }
.admin-adjust-form label { display: grid; gap: 7px; color: #111318; font-size: 13px; font-weight: 900; }
.admin-adjust-form textarea { min-height: 96px; padding-top: 10px; resize: vertical; }

@keyframes rechargeIn {
  from { opacity: 0; transform: translateY(18px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes accountMenuIn {
  from { opacity: 0; transform: translateY(-8px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes accountAccordionIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes accountPulse {
  0%, 100% { transform: translateY(0) scale(1); filter: saturate(1); }
  50% { transform: translateY(-6px) scale(1.04); filter: saturate(1.25); }
}

@keyframes accountPanelRise {
  from { opacity: 0; transform: translateY(14px) scale(0.99); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes adminSpin {
  to { transform: rotate(360deg); }
}

@keyframes scan {
  0%, 100% { transform: translateY(0); opacity: 0; }
  18%, 70% { opacity: 1; }
  86% { transform: translateY(620%); opacity: 0; }
}

@keyframes studioCardIn {
  from { opacity: 0; transform: translateY(18px) rotateX(4deg) scale(0.985); }
  to { opacity: 1; transform: translateY(0) rotateX(0) scale(1); }
}

@keyframes buttonShine {
  0%, 58% { transform: translateX(-140%); }
  78%, 100% { transform: translateX(140%); }
}

@media (max-width: 980px) {
  .hero { min-height: auto; grid-template-columns: 1fr; padding-top: 42px; }
  .hero__copy { max-width: 780px; }
  .hero-stage { width: min(410px, 88vw); }
  .try-form,
  .try-form:has(#lower-upload-column:not([hidden])) { grid-template-columns: 1fr; }
  .upload-runway,
  .upload-runway:has(#lower-upload-column:not([hidden])) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .upload-runway:has(#lower-upload-column:not([hidden])) #lower-upload-column { grid-column: 1 / -1; }
  .control-panel { grid-column: auto; }
  .control-panel--studio { position: relative; top: auto; min-height: auto; margin-top: 0; }
  .footer { grid-template-columns: 1fr 1fr; }
  .site-header nav { gap: 14px; }
  .account-page-hero,
  .account-page-grid { grid-template-columns: 1fr; }
  .account-side-card { position: static; }
  .account-page--console .account-content-stack {
    display: grid;
    gap: 14px;
  }
  .account-page--console .account-side-card,
  .account-page--console .account-content-stack > .account-section-panel {
    grid-column: auto;
    grid-row: auto;
  }
  .account-page--console .account-side-card {
    align-self: auto;
  }
  .account-page-nav { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .admin-hero,
  .admin-console-grid { grid-template-columns: 1fr; }
  .admin-stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-drawer { position: relative; top: auto; }
  .recharge-view--standalone .recharge-layout { grid-template-columns: 1fr; }
  .recharge-records-panel { position: relative; top: auto; }
}

@media (max-width: 680px) {
  .site-header { width: calc(100% - 28px); height: 64px; top: 8px; margin-top: 8px; border-radius: 18px; }
  .brand span { font-size: 14px; }
  .site-header nav a:not(.nav-download) { display: none; }
  .site-header .nav-download { padding: 8px 12px; font-size: 12px; }
  .header-actions { gap: 8px; }
  .account-login-pill { min-height: 38px; padding: 0 12px; font-size: 12px; }
  .account-pill { min-height: 38px; padding: 4px; }
  .account-pill__meta { display: none; }
  .account-pill i { display: none; }
  .account-menu {
    position: fixed;
    top: 76px;
    right: 12px;
    left: 12px;
    width: auto;
    max-height: calc(100vh - 92px);
    border-radius: 24px;
  }
  .hero { width: calc(100% - 28px); padding: 32px 0 58px; }
  .hero h1 { font-size: clamp(34px, 10vw, 48px); line-height: 1.14; }
  .intro { font-size: 15px; }
  .hero-actions .button { width: 100%; }
  .hero-command { display: none; }
  .hero-stage { transform: none; }
  .floating-note--top { left: -4px; }
  .floating-note--bottom { right: -4px; }
  .material-chip { display: none; }
  .workbench, .result-panel { width: calc(100% - 24px); margin-bottom: 44px; padding: 20px; border-radius: 24px; }
  .workbench::after { inset: auto 18px 18px; }
  .section-heading { display: grid; align-items: start; }
  .quota-badge { width: fit-content; }
  .try-form { grid-template-columns: 1fr; }
  .upload-runway,
  .upload-runway:has(#lower-upload-column:not([hidden])) { grid-template-columns: 1fr; }
  .upload-runway:has(#lower-upload-column:not([hidden])) #lower-upload-column { grid-column: auto; }
  .control-panel { grid-column: auto; }
  .control-panel--studio .control-group:nth-of-type(3) .quality-grid { grid-template-columns: 1fr; }
  .control-panel--studio .control-group:nth-of-type(3) .quality-option > span { min-height: auto; }
  .control-panel--studio .quality-option small {
    position: static;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--muted);
    box-shadow: none;
    opacity: 1;
    transform: none;
  }
  .upload-card { min-height: 340px; border-radius: 24px; }
  .upload-placeholder { max-width: 280px; }
  .result-panel { grid-template-columns: 1fr; }
  .result-media { min-height: 390px; }
  .footer { width: calc(100% - 24px); grid-template-columns: 1fr; border-radius: 20px; }
  .account-page { width: calc(100% - 24px); padding-top: 34px; margin-bottom: 44px; }
  .account-page-shell,
  .account-page-hero > div:first-child,
  .account-balance-hero,
  .account-side-card,
  .account-section-panel { border-radius: 24px; }
  .account-page-hero h1 { font-size: clamp(34px, 12vw, 52px); }
  .account-balance-hero strong { font-size: 52px; }
  .account-side-stats,
  .account-detail-grid,
  .account-page-nav { grid-template-columns: 1fr; }
  .account-section-title { display: grid; align-items: start; }
  .transaction-card { grid-template-columns: auto 1fr; }
  .transaction-card > b { grid-column: 2; }
  .recharge-view { align-items: end; padding: 14px 10px 0; }
  .recharge-shell { max-height: 91vh; padding: 20px; border-radius: 28px 28px 0 0; }
  .recharge-view--standalone {
    align-items: start;
    padding: 14px 10px 34px;
  }
  .recharge-view--standalone .recharge-shell {
    max-height: none;
    overflow: visible;
    border-radius: 26px;
  }
  .recharge-head { display: grid; }
  .recharge-section-title { display: grid; align-items: start; }
  .plan-grid { grid-template-columns: 1fr; }
  .pay-grid { grid-template-columns: 1fr; }
  dialog { width: 100%; max-width: none; max-height: 88vh; margin: auto 0 0; border-radius: 28px 28px 0 0; }
  .admin-page { width: calc(100% - 24px); padding-top: 32px; margin-bottom: 44px; }
  .admin-hero > div:first-child,
  .admin-identity-card,
  .admin-dashboard,
  .admin-panel,
  .admin-drawer { border-radius: 24px; padding: 18px; }
  .admin-toolbar,
  .admin-drawer-head { display: grid; align-items: start; }
  .admin-stat-grid,
  .admin-search,
  .admin-detail-grid,
  .admin-tabs { grid-template-columns: 1fr; }
  .admin-user-row { grid-template-columns: auto 1fr; }
  .admin-user-row b { grid-column: 2; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
}
