:root {
  --bg: #f6f2e8;
  --bg-soft: #fffaf1;
  --panel: rgba(255, 252, 245, 0.94);
  --panel-strong: rgba(255, 248, 236, 0.98);
  --line: rgba(44, 64, 93, 0.18);
  --line-strong: rgba(44, 64, 93, 0.38);
  --text: #17304d;
  --muted: #61758d;
  --accent: #ff8c42;
  --accent-2: #ffd166;
  --accent-3: #7ac7c4;
  --success: #18876c;
  --danger: #cb4d3e;
  --shadow: 0 24px 60px rgba(70, 92, 119, 0.14);
}

* {
  box-sizing: border-box;
}

[v-cloak] {
  display: none !important;
}

html.admin-session-expected .admin-login-gate {
  display: none !important;
}

html,
body {
  margin: 0;
  min-height: 100%;
  scrollbar-gutter: stable both-edges;
  overflow-y: scroll;
  color: var(--text);
  background:
    linear-gradient(140deg, rgba(255, 209, 102, 0.25), transparent 28%),
    linear-gradient(325deg, rgba(122, 199, 196, 0.22), transparent 34%),
    linear-gradient(180deg, #fff9ef 0%, #f3ecdf 100%);
  font-family: "IBM Plex Sans", "PingFang SC", "Microsoft YaHei", sans-serif;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(23, 48, 77, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 48, 77, 0.05) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}

a {
  color: inherit;
  text-decoration: none;
}

.link-inline {
  color: var(--accent);
  font-size: 14px;
  font-weight: 600;
}

.link-inline:hover {
  color: var(--text);
}

button,
input {
  font: inherit;
}

.shell {
  width: min(1180px, calc(100vw - 32px));
  margin: 0 auto;
}

.page-shell {
  width: min(760px, calc(100vw - 32px));
  margin: 0 auto;
}

.topbar {
  position: relative;
  z-index: 10;
  border-bottom: 1px solid rgba(23, 48, 77, 0.08);
  background: rgba(255, 249, 239, 0.96);
}

.topbar--admin {
  background: rgba(241, 247, 250, 0.88);
}

.topbar__inner {
  min-height: 72px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  min-width: 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.08em;
  flex: 0 0 auto;
  white-space: nowrap;
}

.brand__square {
  width: 18px;
  height: 18px;
  border: 0;
  background: center / contain no-repeat url("/assets/brand-mark.svg?v=20260414b");
}

.topbar__nav {
  display: flex;
  flex: 1 1 auto;
  min-width: 0;
  flex-wrap: nowrap;
  justify-content: flex-end;
  gap: 18px;
  overflow-x: auto;
  overflow-y: hidden;
  white-space: nowrap;
  scrollbar-width: none;
  -ms-overflow-style: none;
  color: var(--muted);
  font-size: 14px;
}

.topbar__nav::-webkit-scrollbar {
  display: none;
}

.topbar__nav a {
  padding: 8px 0;
  border-bottom: 2px solid transparent;
}

.topbar__nav a:hover {
  border-color: var(--accent);
}

.topbar__nav .is-active,
.console-nav .is-active {
  color: var(--text);
  border-color: var(--accent);
}

.hero,
.admin-hero {
  position: relative;
  overflow: hidden;
}

.hero {
  padding: 8px 0 28px;
}

.hero__lines {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(23, 48, 77, 0.08) 1px, transparent 1px),
    linear-gradient(rgba(23, 48, 77, 0.08) 1px, transparent 1px);
  background-size: 132px 132px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.95), transparent);
}

.hero__inner,
.admin-hero__inner {
  position: relative;
  display: grid;
  gap: 22px;
}

.hero__inner {
  grid-template-columns: minmax(0, 1.4fr) minmax(320px, 0.8fr);
  align-items: start;
}

.hero__copy {
  align-self: start;
  padding-top: 0;
}

.admin-hero {
  padding: 36px 0 8px;
}

.admin-hero__inner {
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.7fr);
  align-items: center;
}

.eyebrow,
.hint,
.note,
.stat-box span,
.summary-grid span {
  color: var(--muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 12px;
}

.note--warning {
  color: var(--danger);
}

.hero h1,
.admin-hero h1 {
  margin: 4px 0 16px;
  font-size: clamp(42px, 9vw, 84px);
  line-height: 0.94;
}

.hero__subtitle {
  margin: -2px 0 14px;
  color: var(--muted);
  font-size: 18px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero p,
.admin-hero p {
  margin: 0;
  max-width: 680px;
  line-height: 1.8;
  font-size: 16px;
  color: var(--muted);
}

.hero__detail {
  margin-top: 14px;
  max-width: 760px;
  font-size: 15px;
  line-height: 1.9;
}

.hero__features {
  margin-top: 20px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.62);
}

.hero__features-title {
  margin-bottom: 12px;
  color: var(--text);
  font-size: 20px;
  font-weight: 700;
}

.hero__features-list {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.9;
}

.hero__features-list li {
  margin-bottom: 8px;
}

.hero__features-note {
  margin-top: 14px !important;
  color: var(--text) !important;
  font-weight: 600;
}

.journey-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 20px;
}

.journey-strip article {
  display: grid;
  gap: 8px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow);
}

.journey-strip span {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.journey-strip strong {
  font-size: 20px;
}

.journey-strip p {
  max-width: none;
  margin: 0;
  color: var(--muted) !important;
  font-size: 14px !important;
  line-height: 1.8 !important;
}

.hero__actions,
.inline-actions,
.summary-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero__actions {
  margin-top: 28px;
}

.hero__stats,
.hero__auth,
.summary-grid,
.metric-strip {
  display: grid;
  gap: 14px;
}

.hero__stats,
.hero__auth {
  grid-template-columns: 1fr;
}

.stat-box,
.summary-grid article,
.metric-strip article,
.auth-card,
.summary-card,
.subscription-board,
.plan-card,
.credential-card,
.order-row,
.admin-hero__panel,
.table-wrap,
.empty-block {
  background: linear-gradient(180deg, var(--panel), var(--panel-strong));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.stat-box,
.summary-grid article,
.metric-strip article,
.admin-hero__panel {
  padding: 18px;
  display: grid;
  gap: 10px;
  min-width: 0;
}

.stat-box strong,
.summary-grid strong,
.metric-strip strong,
.admin-hero__panel strong {
  font-size: 28px;
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
  line-height: 1.2;
}

.layout {
  display: grid;
  gap: 22px;
  padding: 20px 0 48px;
}

.panel {
  padding: 22px;
  border: 1px solid var(--line);
  background: rgba(255, 252, 246, 0.5);
}

.panel--locked {
  background:
    linear-gradient(135deg, rgba(255, 209, 102, 0.14), rgba(122, 199, 196, 0.08)),
    rgba(255, 252, 246, 0.68);
}

.panel__header {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  padding-bottom: 18px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.panel__header h2 {
  margin: 8px 0 0;
  font-size: 28px;
}

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

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.stack {
  display: grid;
  gap: 12px;
}

label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
}

input {
  width: 100%;
  height: 50px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.88);
  color: var(--text);
  outline: none;
  border-radius: 0;
}

select {
  width: 100%;
  height: 50px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.88);
  color: var(--text);
  outline: none;
  border-radius: 0;
}

textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.88);
  color: var(--text);
  outline: none;
  border-radius: 0;
  resize: vertical;
}

input:focus {
  border-color: var(--accent);
}

.button {
  height: 46px;
  padding: 0 18px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.75);
  color: var(--text);
  cursor: pointer;
  border-radius: 0;
  transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

.button:hover {
  transform: translateY(-1px);
  border-color: var(--accent);
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
  transform: none;
}

.button--primary {
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  border-color: transparent;
}

.button--small {
  height: 36px;
  padding: 0 12px;
}

.action-menu {
  position: relative;
  display: inline-block;
}

.action-menu summary {
  list-style: none;
}

.action-menu summary::-webkit-details-marker {
  display: none;
}

.action-menu__toggle {
  min-width: 76px;
}

.action-menu[open] .action-menu__toggle {
  border-color: var(--accent);
  background: linear-gradient(90deg, rgba(255, 140, 66, 0.16), rgba(255, 209, 102, 0.22));
}

.action-menu__panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 4;
  min-width: 140px;
  padding: 8px;
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--panel), var(--panel-strong));
  box-shadow: var(--shadow);
}

.action-menu__button {
  width: 100%;
  justify-content: center;
}

.code-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.tab-row {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
}

.tab-row button {
  flex: 1;
  height: 42px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.7);
  color: var(--muted);
}

.tab-row button.active {
  color: var(--text);
  background: linear-gradient(90deg, rgba(255, 140, 66, 0.16), rgba(255, 209, 102, 0.22));
  border-color: var(--accent);
}

.auth-card,
.summary-card,
.subscription-board,
.table-wrap,
.empty-block {
  padding: 18px;
}

.auth-card--hero {
  padding: 22px;
}

.hero__auth {
  align-content: start;
}

.hero__auth-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 12px;
}

.hero__auth-head h2 {
  margin: 0;
  font-size: 32px;
}

.hero__auth-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.locked-copy {
  max-width: 760px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.9;
}

.locked-copy p {
  margin: 0;
}

.locked-copy p + p {
  margin-top: 8px;
}

.console-hero {
  padding-bottom: 18px;
}

.console-hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
  gap: 22px;
  align-items: start;
}

.console-hero__side {
  display: grid;
  gap: 12px;
}

.console-user-meta {
  display: grid;
  gap: 8px;
}

.console-user-meta span {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.console-user-meta strong {
  font-size: 24px;
}

.status {
  padding: 12px 14px;
  border: 1px solid rgba(24, 135, 108, 0.28);
  background: rgba(24, 135, 108, 0.09);
  color: var(--success);
}

.summary-actions {
  margin-top: 16px;
}

.subscription-board {
  display: grid;
  gap: 14px;
}

.subscription-board--with-qr {
  grid-template-columns: minmax(0, 1fr) 188px;
  align-items: start;
}

.subscription-board__main {
  display: grid;
  gap: 14px;
}

.subscription-client-list {
  display: grid;
  gap: 10px;
}

.subscription-client-row {
  display: grid;
  grid-template-columns: minmax(112px, 0.45fr) minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.subscription-client-row__head {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.subscription-client-row__head strong {
  color: var(--text);
  font-size: 14px;
  line-height: 1.25;
}

.subscription-client-row__head span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.3;
}

.subscription-board__qr {
  display: grid;
  gap: 10px;
  justify-items: end;
}

.subscription-qr-frame {
  width: 188px;
  min-height: 188px;
  padding: 12px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
}

.subscription-qr-frame img {
  display: block;
  width: 100%;
  height: auto;
}

.subscription-qr-note,
.subscription-qr-empty {
  width: 188px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.subscription-qr-empty {
  min-height: 48px;
  display: grid;
  place-items: center;
  padding: 12px;
}

.plan-grid,
.credential-grid,
.shortcut-grid {
  display: grid;
  gap: 16px;
}

.plan-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.plan-grid--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.plan-section-header {
  margin-top: 34px;
}

.credential-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.shortcut-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.plan-card,
.credential-card,
.shortcut-card {
  padding: 18px;
}

.plan-card {
  position: relative;
}

.shortcut-card {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--panel), var(--panel-strong));
  box-shadow: var(--shadow);
}

.shortcut-card strong {
  font-size: 22px;
}

.shortcut-card span {
  color: var(--muted);
  line-height: 1.7;
}

.plan-card__top {
  display: block;
  padding-right: 180px;
}

.plan-card__top > div {
  min-width: 0;
}

.plan-card__top h3,
.credential-card h3 {
  margin: 0;
  font-size: 22px;
}

.featured-tag {
  display: inline-block;
  margin-bottom: 8px;
  padding: 4px 8px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  color: #fff;
  font-size: 12px;
  letter-spacing: 0.08em;
}

.plan-card__top p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.6;
  white-space: nowrap;
}

.plan-card__top strong {
  position: absolute;
  top: 18px;
  right: 18px;
  min-width: max-content;
  text-align: right;
  line-height: 1;
  font-size: 28px;
  color: var(--accent);
}

.theme-user[data-console-page="plans"] .plan-card__top p {
  min-height: 0;
}

.plan-card__meta,
.protocol-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 8px 0 14px;
}

.plan-card__meta span,
.protocol-pills span {
  padding: 8px 10px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
  color: var(--muted);
  font-size: 12px;
}

.protocol-pills .on {
  border-color: var(--accent);
  color: var(--text);
}

pre {
  margin: 12px 0 0;
  white-space: pre-wrap;
  word-break: break-word;
  color: var(--muted);
  font-family: "IBM Plex Mono", "SFMono-Regular", monospace;
  line-height: 1.7;
}

.mono {
  font-family: "IBM Plex Mono", "SFMono-Regular", monospace;
  font-size: 12px;
  word-break: break-all;
}

.order-list {
  display: grid;
  gap: 12px;
}

.order-row {
  padding: 16px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.order-row div {
  display: grid;
  gap: 6px;
}

.metric-strip {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.metric-strip--wide {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.table {
  width: 100%;
  border-collapse: collapse;
}

.table th,
.table td {
  padding: 14px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.table-actions {
  position: relative;
  text-align: right;
}

.table th {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.empty-block {
  color: var(--muted);
}

.content-card {
  padding: 18px;
  background: linear-gradient(180deg, var(--panel), var(--panel-strong));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.content-card h2 {
  margin: 10px 0 14px;
  font-size: 24px;
}

.content-card__head {
  display: grid;
  gap: 4px;
  margin-bottom: 14px;
}

.content-card__head h2 {
  margin: 0;
}

.content-card__description {
  max-width: 680px;
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.85;
}

.status-grid,
.feature-grid {
  display: grid;
  gap: 14px;
}

.status-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 18px;
}

.status-grid--four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.status-grid--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.status-card {
  padding: 18px;
  background: linear-gradient(180deg, var(--panel), var(--panel-strong));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  display: grid;
  gap: 10px;
  min-width: 0;
  overflow: hidden;
}

.status-card span {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.status-card strong {
  font-size: 28px;
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
  line-height: 1.2;
}

.steps-list {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.9;
}

.steps-list li {
  margin-bottom: 10px;
}

.content-card--guide {
  display: grid;
  gap: 16px;
  align-content: start;
}

.compact-status-grid {
  margin-bottom: 0;
}

.compact-status-grid .status-card strong {
  font-size: 27px;
  line-height: 1.22;
}

.feature-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.feature-grid span {
  padding: 12px 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.74);
  color: var(--text);
}

.plain-list,
.link-list {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.8;
}

.plain-list li {
  margin-bottom: 10px;
}

.plain-list strong {
  display: block;
  color: var(--text);
}

.link-list li {
  margin-bottom: 10px;
}

.link-list a {
  color: var(--text);
  font-weight: 600;
  margin-right: 8px;
}

.link-list span {
  color: var(--muted);
  font-size: 14px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.billing-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.billing-grid--submit {
  margin-top: 12px;
}

.billing-submit {
  display: flex;
  align-items: end;
}

.traffic-refresh-inline {
  justify-content: flex-end;
}

.amount-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.protocol-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.region-node-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
}

.node-list {
  display: grid;
  gap: 0;
}

.node-list__item {
  display: grid;
  gap: 10px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.node-list__item:first-child {
  padding-top: 0;
  border-top: 0;
}

.node-list__item:last-child {
  padding-bottom: 0;
}

.node-list__item strong {
  display: block;
  margin-bottom: 4px;
  font-size: 18px;
}

.node-list__item span {
  color: var(--muted);
  font-size: 14px;
}

.node-list__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.node-list__meta span {
  padding: 6px 10px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.74);
  color: var(--text);
  font-size: 12px;
}

.summary-grid--compact {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.referral-note {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

.protocol-stat-card {
  padding: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(255, 248, 238, 0.95));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  display: grid;
  gap: 8px;
}

.protocol-stat-card span,
.protocol-stat-card small {
  color: var(--muted);
}

.protocol-stat-card span {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.protocol-stat-card strong {
  font-size: 28px;
  color: var(--text);
}

.traffic-filter-pills {
  margin-top: 14px;
  margin-bottom: 0;
  align-items: center;
}

.trend-chart {
  padding-top: 10px;
}

.trend-chart__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 12px;
  align-items: end;
  min-height: 220px;
}

.trend-chart__col {
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 10px;
  align-items: end;
}

.trend-chart__col strong,
.trend-chart__col span {
  color: var(--text);
  font-size: 13px;
  text-align: center;
}

.trend-chart__bar {
  height: 160px;
  padding: 0 8px;
  display: flex;
  align-items: end;
  justify-content: center;
  border-bottom: 1px solid var(--line);
}

.trend-chart__bar i {
  display: block;
  width: 100%;
  min-height: 4px;
  background: linear-gradient(180deg, #ff8a3d, #ffd26f);
  border: 1px solid rgba(255, 138, 61, 0.35);
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}

.toolbar__field {
  min-width: 220px;
  flex: 1 1 260px;
  display: grid;
  gap: 8px;
}

.toolbar__field--small {
  flex: 0 1 180px;
  min-width: 160px;
}

.toolbar__field span {
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.table tbody tr.is-selected-row td {
  background: rgba(255, 140, 66, 0.08);
}

.checkbox-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  color: var(--muted);
}

.checkbox-row label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.checkbox-row input {
  width: 18px;
  height: 18px;
}

.theme-admin {
  min-height: 100vh;
  background: #eef6fb;
}

.theme-admin #admin-app {
  min-height: 100vh;
  background:
    linear-gradient(135deg, rgba(122, 199, 196, 0.2), transparent 30%),
    linear-gradient(315deg, rgba(79, 151, 211, 0.18), transparent 36%),
    linear-gradient(180deg, #eef6fb 0%, #edf5fb 100%);
}

@media (max-width: 960px) {
  .hero__inner,
  .console-hero__inner,
  .admin-hero__inner,
  .journey-strip,
  .grid-2,
  .grid-3,
  .status-grid,
  .region-node-grid,
  .feature-grid,
  .protocol-stats,
  .summary-grid--compact,
  .metric-strip,
  .metric-strip--wide,
  .form-grid,
  .billing-grid {
    grid-template-columns: 1fr;
  }

  .plan-grid--three {
    grid-template-columns: 1fr;
  }

  .subscription-board--with-qr {
    grid-template-columns: 1fr;
  }

  .subscription-board__qr {
    justify-items: start;
  }

  .subscription-client-row {
    grid-template-columns: 1fr;
    align-items: stretch;
  }
}

@media (max-width: 720px) {
  .topbar__inner,
  .panel__header,
  .plan-card__top,
  .order-row {
    flex-direction: column;
    align-items: start;
  }

  .hero h1,
  .admin-hero h1 {
    font-size: 46px;
  }

  .shell {
    width: min(100vw - 20px, 1180px);
  }

  .hero__auth-head,
  .hero__auth-foot,
  .code-row {
    display: grid;
    grid-template-columns: 1fr;
  }
}

/* 20260918: simple user console refresh */
.console-page {
  --console-bg: #f6f7f9;
  --console-surface: #ffffff;
  --console-text: #1f2937;
  --console-muted: #6b7280;
  --console-line: #e5e7eb;
  --console-blue: #2563eb;
  --console-blue-soft: #eff6ff;
  --console-success: #16a34a;
  min-height: 100vh;
  background: var(--console-bg);
  color: var(--console-text);
}

.console-page::before {
  display: none;
}

.console-shell {
  width: min(1180px, calc(100vw - 40px));
  margin: 0 auto;
}

.console-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--console-surface);
  border-bottom: 1px solid var(--console-line);
}

.console-topbar__inner {
  min-height: 64px;
  display: flex;
  align-items: center;
  gap: 30px;
}

.console-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  color: var(--console-text);
  font-size: 21px;
  font-weight: 700;
}

.console-brand__mark {
  width: 28px;
  height: 28px;
  background: url("/assets/brand-mark.svg?v=20260414b") center / contain no-repeat;
}

.console-nav {
  display: flex;
  align-items: stretch;
  gap: 24px;
  flex: 1;
  height: 64px;
}

.console-nav a {
  display: flex;
  align-items: center;
  color: var(--console-muted);
  font-size: 14px;
  border-bottom: 2px solid transparent;
}

.console-nav a:hover,
.console-nav a.is-active {
  color: var(--console-blue);
  border-color: var(--console-blue);
}

.console-account {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  color: var(--console-muted);
  font-size: 13px;
  white-space: nowrap;
}

.console-account__avatar {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--console-blue);
  font-size: 12px;
  font-weight: 700;
}

.console-account__email {
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.console-account a,
.console-account button {
  padding: 0;
  color: var(--console-muted);
  background: transparent;
  border: 0;
  cursor: pointer;
  font: inherit;
}

.console-account a:hover,
.console-account button:hover {
  color: var(--console-blue);
}

.console-main {
  padding: 38px 0 64px;
}

.console-page-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.console-page-heading h1 {
  margin: 0;
  color: var(--console-text);
  font-size: 30px;
  line-height: 1.1;
}

.console-page-heading p {
  margin: 6px 0 0;
  color: var(--console-muted);
}

.console-kicker {
  color: var(--console-blue) !important;
  font-size: 12px !important;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.console-button {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  color: #374151;
  background: #fff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.console-button:hover {
  border-color: #9ca3af;
  background: #f9fafb;
}

.console-button--primary {
  border-color: var(--console-blue);
  color: #fff;
  background: var(--console-blue);
}

.console-button--primary:hover {
  border-color: #1d4ed8;
  background: #1d4ed8;
}

.console-button--small {
  min-height: 32px;
  padding: 0 12px;
  font-size: 12px;
}

.console-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.console-summary-grid,
.console-content-grid,
.console-bottom-grid {
  display: grid;
  gap: 16px;
}

.console-summary-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 16px;
}

.console-summary-card,
.console-panel {
  background: var(--console-surface);
  border: 1px solid var(--console-line);
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.03);
}

.console-summary-card {
  min-height: 132px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 22px;
}

.console-summary-card > div:nth-child(2) {
  min-width: 0;
  flex: 1;
}

.console-summary-card > span,
.console-summary-card span,
.console-summary-card small {
  display: block;
  color: var(--console-muted);
}

.console-summary-card span {
  font-size: 13px;
}

.console-summary-card strong {
  display: block;
  margin: 8px 0 5px;
  color: var(--console-text);
  font-size: 22px;
  line-height: 1.15;
  white-space: nowrap;
}

.console-summary-card small {
  font-size: 12px;
}

.console-summary-card__icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 50%;
  font-size: 15px;
  font-weight: 700;
}

.console-summary-card__icon--blue { color: #2563eb; background: #dbeafe; }
.console-summary-card__icon--green { color: #16a34a; background: #dcfce7; }
.console-summary-card__icon--purple { color: #7c3aed; background: #ede9fe; }

.console-progress {
  height: 5px;
  margin-top: 12px;
  overflow: hidden;
  border-radius: 99px;
  background: #e5e7eb;
}

.console-progress i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--console-blue);
}

.console-content-grid {
  grid-template-columns: minmax(0, 1.15fr) minmax(340px, 0.85fr);
  margin-bottom: 16px;
}

.console-bottom-grid {
  grid-template-columns: minmax(0, 1.15fr) minmax(340px, 0.85fr);
}

.console-panel {
  min-width: 0;
  padding: 22px;
}

.console-panel__heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.console-panel__heading h2 {
  margin: 0;
  color: var(--console-text);
  font-size: 17px;
}

.console-panel__heading p {
  margin: 5px 0 0;
  color: var(--console-muted);
  font-size: 12px;
}

.console-panel__heading > a {
  flex: 0 0 auto;
  color: var(--console-blue);
  font-size: 12px;
}

.console-field-label {
  display: block;
  margin-bottom: 8px;
  color: #4b5563;
  font-size: 12px;
  font-weight: 600;
}

.console-url-field {
  display: flex;
  gap: 8px;
}

.console-url-field input {
  min-width: 0;
  flex: 1;
  height: 38px;
  padding: 0 12px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  color: #6b7280;
  background: #f9fafb;
  font: inherit;
  font-size: 12px;
}

.console-icon-button {
  min-width: 58px;
  height: 38px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  color: #374151;
  background: #fff;
  cursor: pointer;
}

.console-icon-button:hover {
  border-color: var(--console-blue);
  color: var(--console-blue);
}

.console-action-row {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}

.console-helper {
  margin: 12px 0 0;
  color: var(--console-muted);
  font-size: 12px;
}

.console-detail-lines {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid #f0f1f3;
}

.console-detail-lines span,
.console-detail-lines strong {
  display: block;
}

.console-detail-lines span {
  color: var(--console-muted);
  font-size: 12px;
}

.console-detail-lines strong {
  margin-top: 5px;
  color: var(--console-text);
  font-size: 13px;
}

.console-node-list {
  display: grid;
  gap: 2px;
}

.console-node-row {
  min-height: 48px;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) 70px 60px;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid #f0f1f3;
}

.console-node-row:last-child {
  border-bottom: 0;
}

.console-node-row__flag {
  font-size: 20px;
}

.console-node-row__name strong,
.console-node-row__name small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.console-node-row__name strong {
  color: var(--console-text);
  font-size: 13px;
}

.console-node-row__name small {
  margin-top: 3px;
  color: var(--console-muted);
  font-size: 11px;
}

.console-node-row__latency {
  color: var(--console-muted);
  font-size: 12px;
  text-align: right;
}

.console-status {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
  font-size: 11px;
  white-space: nowrap;
}

.console-status i,
.console-activity-dot {
  width: 6px;
  height: 6px;
  display: inline-block;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #9ca3af;
}

.console-status--healthy { color: var(--console-success); }
.console-status--healthy i { background: var(--console-success); }
.console-status--degraded { color: #d97706; }
.console-status--degraded i { background: #d97706; }
.console-status--offline { color: #dc2626; }
.console-status--offline i { background: #dc2626; }

.console-empty {
  padding: 28px 0;
  color: var(--console-muted);
  font-size: 13px;
  text-align: center;
}

.console-bars {
  height: 150px;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  align-items: end;
  gap: 12px;
  padding-top: 12px;
}

.console-bar-item {
  min-width: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: end;
  gap: 8px;
}

.console-bar-item__track {
  width: 100%;
  height: 112px;
  display: flex;
  align-items: end;
  overflow: hidden;
  border-radius: 4px 4px 2px 2px;
  background: #f3f4f6;
}

.console-bar-item__track i {
  width: 100%;
  display: block;
  border-radius: 4px 4px 2px 2px;
  background: #60a5fa;
}

.console-bar-item span {
  max-width: 100%;
  overflow: hidden;
  color: var(--console-muted);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.console-activity-list {
  display: grid;
}

.console-activity-list > div {
  min-height: 43px;
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid #f0f1f3;
  color: #4b5563;
  font-size: 12px;
}

.console-activity-list > div:last-child {
  border-bottom: 0;
}

.console-activity-list time {
  color: #9ca3af;
  font-size: 11px;
}

.console-flash {
  margin-top: 16px;
  padding: 10px 12px;
  border: 1px solid #fecaca;
  border-radius: 6px;
  color: #b91c1c;
  background: #fef2f2;
  font-size: 12px;
}

@media (max-width: 900px) {
  .console-topbar__inner {
    gap: 20px;
  }

  .console-nav {
    gap: 16px;
  }

  .console-account__email {
    display: none;
  }

  .console-content-grid,
  .console-bottom-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .console-shell {
    width: min(100% - 28px, 560px);
  }

  .console-topbar__inner {
    min-height: 58px;
    gap: 16px;
    overflow-x: auto;
  }

  .console-nav {
    height: 58px;
    gap: 18px;
  }

  .console-account {
    display: none;
  }

  .console-main {
    padding-top: 28px;
  }

  .console-page-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
  }

  .console-summary-grid {
    grid-template-columns: 1fr;
  }

  .console-summary-card {
    min-height: 112px;
  }
}

@media (max-width: 460px) {
  .console-nav a:nth-child(n + 5) {
    display: none;
  }

  .console-panel {
    padding: 17px;
  }

  .console-detail-lines {
    grid-template-columns: 1fr;
  }

  .console-node-row {
    grid-template-columns: 26px minmax(0, 1fr) 52px;
  }

  .console-status {
    display: none;
  }
}

/* 20260918: align the sign-in page with the user console */
.auth-page {
  min-height: 100vh;
  background: var(--console-bg, #f6f7f9);
  color: var(--console-text, #1f2937);
}

.auth-page .console-topbar {
  position: relative;
}

.auth-page__topnote {
  margin-left: auto;
  color: var(--console-muted, #6b7280);
  font-size: 13px;
}

.auth-page__main {
  width: min(440px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 76px 0 96px;
}

.auth-page__intro {
  margin-bottom: 22px;
  text-align: center;
}

.auth-page__intro h1 {
  margin: 8px 0 0;
  color: var(--console-text, #1f2937);
  font-size: 30px;
  line-height: 1.15;
}

.auth-page__intro p:last-child {
  margin: 10px 0 0;
  color: var(--console-muted, #6b7280);
  font-size: 14px;
}

.auth-page .auth-card--simple {
  padding: 28px;
  border: 1px solid var(--console-line, #e5e7eb);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}

.auth-page .auth-form-grid {
  gap: 18px;
}

.auth-page .auth-form-grid label {
  display: block;
}

.auth-page .auth-form-grid label > span {
  display: block;
  margin-bottom: 8px;
  color: #374151;
  font-size: 13px;
  font-weight: 600;
}

.auth-page .auth-form-grid input {
  width: 100%;
  height: 42px;
  box-sizing: border-box;
  padding: 0 12px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  color: var(--console-text, #1f2937);
  background: #fff;
  font: inherit;
  font-size: 14px;
  outline: 0;
}

.auth-page .auth-form-grid input:focus {
  border-color: var(--console-blue, #2563eb);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.auth-page .auth-form-grid input::placeholder {
  color: #9ca3af;
}

.auth-page .code-row {
  display: flex;
  gap: 8px;
}

.auth-page .code-row input {
  min-width: 0;
  flex: 1;
}

.auth-page .code-row .button {
  min-width: 112px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  color: #374151;
  background: #fff;
  font-size: 12px;
  cursor: pointer;
}

.auth-page .button--primary {
  width: 100%;
  min-height: 42px;
  margin-top: 2px;
  border: 1px solid var(--console-blue, #2563eb);
  border-radius: 6px;
  color: #fff;
  background: var(--console-blue, #2563eb);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.auth-page .button--primary:hover {
  border-color: #1d4ed8;
  background: #1d4ed8;
}

.auth-page .status {
  margin-top: 16px;
  padding: 10px 12px;
  border: 1px solid #fecaca;
  border-radius: 6px;
  color: #b91c1c;
  background: #fef2f2;
  font-size: 12px;
}

.auth-page .auth-assist {
  display: grid;
  gap: 12px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid #f0f1f3;
}

.auth-page .auth-assist__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--console-muted, #6b7280);
  font-size: 12px;
}

.auth-page .auth-assist__link,
.auth-page .auth-assist__action {
  padding: 0;
  border: 0;
  color: var(--console-blue, #2563eb);
  background: transparent;
  font: inherit;
  cursor: pointer;
}

.auth-page .auth-assist__link:hover,
.auth-page .auth-assist__action:hover {
  color: #1d4ed8;
}

@media (max-width: 520px) {
  .auth-page__topnote {
    display: none;
  }

  .auth-page__main {
    padding-top: 52px;
  }

  .auth-page .auth-card--simple {
    padding: 22px 18px;
  }
}

body.theme-user {
  --bg: #f7f2ea;
  --bg-soft: #fff9f1;
  --panel: rgba(255, 253, 248, 0.92);
  --panel-strong: rgba(255, 250, 244, 0.98);
  --line: rgba(23, 38, 58, 0.08);
  --line-strong: rgba(23, 38, 58, 0.18);
  --text: #17263a;
  --muted: #6f7d8f;
  --accent: #b98545;
  --accent-2: #d2a263;
  --accent-3: #d9c7b1;
  --success: #2f6a59;
  --danger: #b5554c;
  --shadow: 0 28px 72px rgba(23, 38, 58, 0.1);
  color: var(--text);
  font-family: "IBM Plex Sans", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(232, 215, 191, 0.58), transparent 32%),
    radial-gradient(circle at 85% 15%, rgba(185, 133, 69, 0.12), transparent 20%),
    linear-gradient(180deg, #fbf6ef 0%, #f5eee3 48%, #f7f1e7 100%);
}

body.theme-user::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 20% 22%, rgba(255, 255, 255, 0.7), transparent 18%),
    linear-gradient(120deg, rgba(185, 133, 69, 0.08), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.24), transparent 70%);
  pointer-events: none;
}

body.theme-user::after {
  content: "";
  position: fixed;
  right: -140px;
  top: 96px;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232, 215, 191, 0.34), transparent 68%);
  pointer-events: none;
  filter: blur(10px);
}

.theme-user .shell {
  width: min(1240px, calc(100vw - 40px));
}

.theme-user .topbar {
  border-bottom: 1px solid rgba(23, 38, 58, 0.06);
  background: rgba(251, 246, 239, 0.98);
}

.theme-user .topbar__inner {
  min-height: 84px;
  gap: 24px;
}

.theme-user .brand {
  gap: 14px;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.theme-user .brand__square {
  width: 20px;
  height: 20px;
  border: 0;
  border-radius: 0;
  background: center / contain no-repeat url("/assets/brand-mark.svg?v=20260414b");
  box-shadow: 0 8px 18px rgba(185, 133, 69, 0.18);
}

.theme-user .topbar__nav {
  gap: 5px;
  font-size: 18px;
}

.theme-user .topbar__nav a {
  padding: 10px 8px;
  border: 0;
  border-radius: 999px;
  transition: background 0.2s ease, color 0.2s ease;
}

.theme-user .topbar__nav a:hover {
  border-color: transparent;
  background: rgba(23, 38, 58, 0.05);
  transform: none;
}

.theme-user .topbar__nav .is-active,
.theme-user .console-nav .is-active {
  background: rgba(185, 133, 69, 0.14);
  color: var(--text);
  border-color: transparent;
}

.theme-user .hero {
  padding: 28px 0 20px;
}

.theme-user .hero__lines {
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.72), transparent 48%),
    linear-gradient(180deg, rgba(23, 38, 58, 0.04), transparent 72%);
  mask-image: none;
}

.theme-user .hero__inner,
.theme-user .console-hero__inner {
  gap: 28px;
}

.theme-user .hero__inner--gate {
  grid-template-columns: minmax(0, 1.16fr) minmax(360px, 0.84fr);
  align-items: start;
}

.theme-user .hero--auth-only {
  min-height: calc(100vh - 92px);
  display: grid;
  align-items: center;
  padding: 48px 0 72px;
}

.theme-user .hero__inner--auth-only {
  grid-template-columns: minmax(0, 520px);
  justify-content: center;
}

.theme-user .auth-only-panel {
  display: grid;
  gap: 18px;
  width: min(100%, 520px);
  margin: 0 auto;
}

.theme-user .hero__auth-head--auth-only {
  justify-content: flex-start;
}

.theme-user .hero__auth-head--auth-only h1 {
  font-size: clamp(44px, 7vw, 72px);
}

.theme-user .auth-only-card {
  gap: 16px;
}

.theme-user .auth-only-link {
  align-self: flex-start;
}

body.theme-user.page-auth-landing {
  background:
    radial-gradient(circle at 14% 20%, rgba(210, 168, 113, 0.22), transparent 26%),
    radial-gradient(circle at 86% 8%, rgba(23, 48, 77, 0.08), transparent 20%),
    linear-gradient(180deg, #f7f1e7 0%, #efe6d8 100%);
}

.theme-user.page-auth-landing::before {
  background-image:
    linear-gradient(rgba(33, 54, 84, 0.032) 1px, transparent 1px),
    linear-gradient(90deg, rgba(33, 54, 84, 0.032) 1px, transparent 1px);
  background-size: 56px 56px;
}

.theme-user.page-auth-landing .topbar {
  background: rgba(247, 241, 232, 0.78);
}

.theme-user.page-auth-landing .topbar__inner {
  min-height: 88px;
}

.theme-user.page-auth-landing .hero--auth-only {
  min-height: calc(100vh - 88px);
  padding: 32px 0 64px;
}

.theme-user.page-auth-landing .hero__lines {
  background:
    radial-gradient(circle at 50% 10%, rgba(255, 255, 255, 0.94), transparent 30%),
    linear-gradient(130deg, rgba(185, 133, 69, 0.06), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.4), transparent 76%);
}

.theme-user.page-auth-landing .hero__inner--auth-only {
  grid-template-columns: minmax(0, 1fr);
}

.theme-user.page-auth-landing .auth-shell-card {
  display: grid;
  width: min(100%, 860px);
  margin: 0 auto;
  grid-template-columns: minmax(220px, 0.42fr) minmax(420px, 0.82fr);
  align-items: center;
  gap: 18px;
  padding: 32px 30px;
  border-radius: 40px;
  border: 1px solid rgba(23, 48, 77, 0.08);
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 255, 255, 0.95), transparent 28%),
    radial-gradient(circle at 84% 16%, rgba(219, 183, 126, 0.11), transparent 16%),
    linear-gradient(180deg, rgba(255, 251, 244, 0.99), rgba(248, 241, 230, 0.98));
  box-shadow: 0 28px 56px rgba(78, 63, 45, 0.09);
}

.theme-user.page-auth-landing .auth-showcase__story,
.theme-user.page-auth-landing .auth-showcase__panel {
  display: grid;
  min-width: 0;
}

.theme-user.page-auth-landing .auth-showcase__panel {
  width: min(100%, 438px);
  justify-self: end;
  align-self: center;
}

.theme-user.page-auth-landing .auth-story-card {
  position: relative;
  min-height: 100%;
  padding: 6px 12px 6px 0;
  display: grid;
  align-content: center;
  gap: 18px;
  border-right: 1px solid rgba(23, 48, 77, 0.08);
  color: var(--text);
}

.theme-user.page-auth-landing .auth-story-card::before {
  display: none;
}

.theme-user.page-auth-landing .auth-story-card::after {
  display: none;
}

.theme-user.page-auth-landing .auth-story-brand,
.theme-user.page-auth-landing .auth-story-logo,
.theme-user.page-auth-landing .auth-story-card__copy,
.theme-user.page-auth-landing .auth-story-card__signature {
  position: relative;
  z-index: 1;
}

.theme-user.page-auth-landing .auth-story-brand {
  display: grid;
  justify-items: center;
}

.theme-user.page-auth-landing .auth-story-logo {
  display: grid;
  justify-items: center;
  gap: 8px;
}

.theme-user.page-auth-landing .auth-story-logo__wordmark {
  display: none;
}

.theme-user.page-auth-landing .auth-story-logo__title {
  display: none;
}

.theme-user.page-auth-landing .auth-story-logo__title strong {
  display: none;
}

.theme-user.page-auth-landing .auth-story-logo__star {
  display: none;
}

.theme-user.page-auth-landing .auth-story-logo__subtitle {
  display: none;
}

.theme-user.page-auth-landing .auth-story-logo__art {
  width: min(100%, 118px);
  height: auto;
  filter: drop-shadow(0 14px 20px rgba(214, 157, 74, 0.14));
}

.theme-user.page-auth-landing .auth-story-card__copy {
  display: grid;
  gap: 14px;
  width: min(100%, 248px);
  justify-self: center;
}

.theme-user.page-auth-landing .auth-story-card__copy p {
  margin: 0;
  max-width: none;
  color: #58697d;
  font-size: 15px;
  line-height: 1.86;
}

.theme-user.page-auth-landing .auth-story-card__copy--poem {
  margin-top: 2px;
}

.theme-user.page-auth-landing .auth-story-card__signature {
  display: grid;
  gap: 6px;
  margin-top: auto;
  width: min(100%, 248px);
  justify-self: center;
}

.theme-user.page-auth-landing .auth-story-card__signature strong {
  color: var(--text);
  font-size: 21px;
  line-height: 1.35;
}

.theme-user.page-auth-landing .auth-story-card__signature span {
  color: #a26f34;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.theme-user.page-auth-landing .auth-only-card {
  padding: 2px 0 0;
  gap: 16px;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.theme-user.page-auth-landing .auth-panel__header {
  display: grid;
  gap: 0;
}

.theme-user.page-auth-landing .auth-panel__header h2 {
  margin: 0;
  font-size: clamp(36px, 4.2vw, 46px);
  line-height: 1.04;
  letter-spacing: -0.04em;
}

.theme-user.page-auth-landing .auth-form-grid {
  gap: 14px;
}

.theme-user.page-auth-landing label {
  gap: 10px;
  color: #66788f;
  font-size: 14px;
  font-weight: 600;
}

.theme-user.page-auth-landing input {
  height: 52px;
  border-radius: 18px;
  border: 1px solid rgba(23, 48, 77, 0.1);
  background: rgba(255, 255, 255, 0.9);
}

.theme-user.page-auth-landing input::placeholder {
  color: #8c97a6;
}

.theme-user.page-auth-landing .code-row {
  grid-template-columns: minmax(0, 1fr) 160px;
  gap: 12px;
}

.theme-user.page-auth-landing .code-row .button {
  height: 52px;
  border-radius: 18px;
  background: rgba(250, 244, 235, 0.95);
}

.theme-user.page-auth-landing .button--primary {
  height: 52px;
  font-size: 18px;
  font-weight: 700;
  background: linear-gradient(135deg, #c98d44 0%, #d9a760 100%);
  box-shadow: 0 18px 34px rgba(185, 133, 69, 0.24);
}

.theme-user.page-auth-landing .button--primary:hover {
  background: linear-gradient(135deg, #ba7d37 0%, #cc964f 100%);
}

.theme-user.page-auth-landing .auth-assist {
  display: grid;
  border: 1px solid rgba(23, 48, 77, 0.08);
  border-radius: 22px;
  overflow: hidden;
  background: rgba(252, 248, 241, 0.92);
  margin-top: 2px;
}

.theme-user.page-auth-landing .auth-assist__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 50px;
  padding: 0 18px;
  color: #738197;
  font-size: 15px;
}

.theme-user.page-auth-landing .auth-assist__row + .auth-assist__row {
  border-top: 1px solid rgba(23, 48, 77, 0.08);
}

.theme-user.page-auth-landing .auth-assist__link,
.theme-user.page-auth-landing .auth-assist__action {
  color: #b98545;
  font-size: 15px;
  font-weight: 700;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
}

.theme-user.page-auth-landing .auth-assist__link:hover,
.theme-user.page-auth-landing .auth-assist__action:hover {
  color: #8f6330;
}

.theme-user.page-auth-landing .status {
  border-radius: 18px;
  border-color: rgba(185, 133, 69, 0.2);
  background: rgba(185, 133, 69, 0.1);
  color: #8b6330;
}

.theme-user .hero__copy,
.theme-user .gate-copy {
  display: grid;
  gap: 24px;
}

.theme-user .eyebrow,
.theme-user .hint,
.theme-user .note,
.theme-user .stat-box span,
.theme-user .summary-grid span {
  color: #8c7b67;
  letter-spacing: 0.16em;
  font-size: 11px;
}

.theme-user .note--warning {
  color: #b96541;
}

.theme-user .hero h1,
.theme-user .admin-hero h1,
.theme-user .panel__header h2,
.theme-user .content-card h2,
.theme-user .plan-card__top h3,
.theme-user .credential-card h3,
.theme-user .status-card strong,
.theme-user .shortcut-card strong {
  font-family: "Iowan Old Style", "Palatino Linotype", "Songti SC", "STSong", serif;
}

.theme-user .hero h1,
.theme-user .admin-hero h1 {
  margin: 0;
  font-size: clamp(50px, 8vw, 82px);
  line-height: 1;
  letter-spacing: 0.01em;
}

.theme-user .hero__subtitle {
  margin: -10px 0 0;
  color: #8b6b48;
  font-size: 14px;
  letter-spacing: 0.24em;
}

.theme-user .hero p,
.theme-user .admin-hero p,
.theme-user .locked-copy,
.theme-user .plain-list,
.theme-user .link-list,
.theme-user .steps-list {
  color: var(--muted);
}

.theme-user .gate-copy__lead {
  max-width: 760px;
  margin: 0;
  font-size: 18px;
  line-height: 1.95;
  color: var(--text);
}

.theme-user .trust-strip,
.theme-user .hero-metric-strip,
.theme-user .gate-lock-grid,
.theme-user .gate-teaser-grid {
  display: grid;
  gap: 16px;
}

.theme-user .trust-strip {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.theme-user .hero-metric-strip {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.theme-user .gate-lock-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.theme-user .gate-teaser-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.theme-user .trust-stat,
.theme-user .hero-metric-strip article,
.theme-user .gate-lock-card {
  padding: 22px;
  border: 1px solid rgba(23, 38, 58, 0.08);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(250, 244, 235, 0.94));
  box-shadow: var(--shadow);
}

.theme-user .trust-stat,
.theme-user .gate-lock-card {
  display: grid;
  gap: 10px;
}

.theme-user .trust-stat span,
.theme-user .hero-metric-strip span,
.theme-user .gate-lock-card span {
  color: #8c7b67;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.theme-user .trust-stat strong,
.theme-user .hero-metric-strip strong,
.theme-user .gate-lock-card strong {
  display: block;
  min-width: 0;
  max-width: 100%;
  font-size: clamp(22px, 2.1vw, 26px);
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.theme-user .trust-stat p,
.theme-user .gate-lock-card p {
  margin: 0;
  max-width: none;
  font-size: 14px;
  line-height: 1.8;
}

.theme-user .gate-lock-card em {
  color: var(--accent);
  font-style: normal;
  font-size: 13px;
  font-weight: 600;
}

.theme-user .journey-strip {
  gap: 16px;
}

.theme-user .journey-strip article {
  border-radius: 24px;
  border: 1px solid rgba(23, 38, 58, 0.08);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(250, 244, 235, 0.94));
  box-shadow: var(--shadow);
}

.theme-user .journey-strip span {
  color: #9b8569;
}

.theme-user .journey-strip strong {
  font-size: 22px;
}

.theme-user .hero__auth,
.theme-user .gate-auth {
  align-content: start;
}

.theme-user .hero__auth-head h2 {
  font-size: 34px;
}

.theme-user .auth-card,
.theme-user .summary-card,
.theme-user .subscription-board,
.theme-user .table-wrap,
.theme-user .empty-block,
.theme-user .content-card,
.theme-user .status-card,
.theme-user .plan-card,
.theme-user .credential-card,
.theme-user .shortcut-card,
.theme-user .order-row,
.theme-user .protocol-stat-card {
  border-radius: 28px;
  border: 1px solid rgba(23, 38, 58, 0.08);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.8), rgba(250, 244, 235, 0.96));
  box-shadow: var(--shadow);
}

.theme-user .auth-card--hero {
  padding: 28px;
}

.theme-user .gate-auth-card {
  display: grid;
  gap: 18px;
}

.theme-user .gate-auth__notes {
  display: grid;
  gap: 12px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.theme-user .gate-auth__notes article {
  display: grid;
  gap: 6px;
}

.theme-user .gate-auth__notes span {
  color: #8c7b67;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.theme-user .gate-auth__notes strong {
  font-size: 15px;
  line-height: 1.7;
}

.theme-user label {
  color: var(--muted);
  font-size: 13px;
}

.theme-user input,
.theme-user select,
.theme-user textarea {
  border-radius: 18px;
  border: 1px solid rgba(23, 38, 58, 0.14);
  background: rgba(255, 255, 255, 0.86);
}

.theme-user input:focus,
.theme-user select:focus,
.theme-user textarea:focus {
  border-color: rgba(185, 133, 69, 0.72);
  box-shadow: 0 0 0 4px rgba(185, 133, 69, 0.1);
}

.theme-user .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  height: 48px;
  padding: 0 22px;
  border: 1px solid rgba(23, 38, 58, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.84);
  color: var(--text);
  font-weight: 600;
}

.theme-user .button:hover {
  border-color: rgba(185, 133, 69, 0.42);
  background: rgba(255, 255, 255, 0.96);
}

.theme-user .button--primary {
  color: #fffdf8;
  background: linear-gradient(135deg, #b98545 0%, #d2a263 100%);
  border-color: transparent;
  box-shadow: 0 16px 30px rgba(185, 133, 69, 0.22);
}

.theme-user .button--primary:hover {
  background: linear-gradient(135deg, #aa763b 0%, #c49456 100%);
}

.theme-user .button--small {
  height: 38px;
  padding: 0 14px;
}

.theme-user .tab-row {
  gap: 12px;
  margin-bottom: 16px;
}

.theme-user .tab-row button {
  border-radius: 999px;
  border: 1px solid rgba(23, 38, 58, 0.1);
  background: rgba(255, 255, 255, 0.68);
  color: var(--muted);
}

.theme-user .tab-row button.active {
  color: var(--text);
  border-color: rgba(185, 133, 69, 0.36);
  background: rgba(185, 133, 69, 0.12);
}

.theme-user .link-inline {
  color: var(--accent);
}

.theme-user .status {
  border-radius: 18px;
  border: 1px solid rgba(47, 106, 89, 0.22);
  background: rgba(47, 106, 89, 0.08);
  color: var(--success);
}

.theme-user .panel {
  padding: 28px;
  border-radius: 32px;
  border: 1px solid rgba(23, 38, 58, 0.08);
  background: linear-gradient(180deg, rgba(255, 253, 248, 0.7), rgba(250, 244, 235, 0.84));
  box-shadow: var(--shadow);
}

.theme-user .panel--soft,
.theme-user .panel--locked {
  background: linear-gradient(180deg, rgba(255, 253, 248, 0.76), rgba(250, 244, 235, 0.92));
}

.theme-user .layout {
  gap: 24px;
  padding: 8px 0 56px;
}

.theme-user .panel__header {
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(23, 38, 58, 0.08);
}

.theme-user .panel__header h2,
.theme-user .content-card h2 {
  font-size: 34px;
  line-height: 1.1;
}

.theme-user .content-card,
.theme-user .status-card,
.theme-user .shortcut-card,
.theme-user .plan-card {
  padding: 22px;
}

.theme-user .shortcut-card,
.theme-user .detail-card,
.theme-user .trade-side-panel {
  display: grid;
  gap: 14px;
}

.theme-user .shortcut-card span {
  line-height: 1.8;
}

.theme-user .shortcut-card:hover {
  transform: translateY(-2px);
  border-color: rgba(185, 133, 69, 0.24);
}

.theme-user .featured-tag {
  border-radius: 999px;
  padding: 5px 10px;
  background: rgba(185, 133, 69, 0.14);
  color: var(--accent);
}

.theme-user .plan-card__top p {
  white-space: pre-line;
}

.theme-user .plan-card__top strong {
  color: var(--accent);
}

.theme-user .plan-card__meta span,
.theme-user .protocol-pills span,
.theme-user .node-list__meta span {
  border-radius: 999px;
  border-color: rgba(23, 38, 58, 0.08);
  background: rgba(255, 255, 255, 0.84);
}

.theme-user .protocol-pills .on {
  border-color: rgba(185, 133, 69, 0.3);
  background: rgba(185, 133, 69, 0.1);
}

.theme-user .status-grid {
  gap: 16px;
}

.theme-user .status-card {
  gap: 12px;
}

.theme-user .status-card strong {
  font-size: 28px;
  line-height: 1.2;
}

.theme-user .console-hero {
  padding-bottom: 6px;
}

.theme-user .console-hero__inner {
  grid-template-columns: minmax(0, 1.12fr) minmax(360px, 0.88fr);
}

.theme-user .membership-card,
.theme-user .trade-summary-card {
  border: 1px solid rgba(23, 38, 58, 0.08);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.8), rgba(250, 244, 235, 0.96));
  color: var(--text);
  box-shadow: var(--shadow);
}

.theme-user .membership-card__eyebrow {
  color: #8c7b67;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.theme-user .membership-card__plan {
  font-family: "Iowan Old Style", "Palatino Linotype", "Songti SC", "STSong", serif;
  max-width: 100%;
  overflow-wrap: anywhere;
  font-size: clamp(30px, 3vw, 36px);
  line-height: 1.1;
}

.theme-user .membership-card__meta {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.theme-user .membership-card__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.theme-user .membership-card__grid article {
  display: grid;
  gap: 8px;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(23, 38, 58, 0.08);
  background: rgba(255, 255, 255, 0.82);
  min-width: 0;
  overflow: hidden;
}

.theme-user .membership-card__grid span {
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.theme-user .membership-card__grid strong {
  font-size: 18px;
  line-height: 1.5;
  color: var(--text);
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.theme-user .membership-card .button {
  background: rgba(255, 255, 255, 0.84);
  color: var(--text);
  border-color: rgba(23, 38, 58, 0.12);
}

.theme-user .membership-card .button--primary {
  border-color: transparent;
  background: linear-gradient(135deg, #b98545 0%, #d2a263 100%);
  color: #fffdf8;
}

.theme-user .hero__actions,
.theme-user .inline-actions,
.theme-user .summary-actions {
  margin-top: 0;
}

.theme-user .membership-card .status,
.theme-user .trade-summary-card .status {
  border-color: rgba(47, 106, 89, 0.22);
  background: rgba(47, 106, 89, 0.08);
  color: var(--success);
}

.theme-user .purchase-success-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(18, 24, 34, 0.42);
  backdrop-filter: blur(12px);
}

.theme-user .purchase-success-modal__dialog {
  width: min(440px, 100%);
  display: grid;
  gap: 18px;
  padding: 28px;
  border-radius: 28px;
  border: 1px solid rgba(23, 38, 58, 0.1);
  background: rgba(255, 253, 248, 0.96);
  box-shadow: 0 26px 80px rgba(23, 38, 58, 0.22);
}

.theme-user .purchase-success-modal__mark {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(47, 106, 89, 0.12);
  color: var(--success);
  font-size: 13px;
  font-weight: 800;
}

.theme-user .purchase-success-modal__body {
  display: grid;
  gap: 10px;
}

.theme-user .purchase-success-modal__body h2 {
  margin: 0;
  font-size: 24px;
  line-height: 1.25;
}

.theme-user .purchase-success-modal__body p {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

.theme-user .purchase-success-modal__tips {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 14px 16px 14px 34px;
  border-radius: 18px;
  border: 1px solid rgba(23, 38, 58, 0.08);
  background: rgba(255, 255, 255, 0.72);
  color: var(--text);
}

.theme-user .purchase-success-modal__tips li {
  line-height: 1.7;
  padding-left: 2px;
}

.theme-user .purchase-success-modal__countdown {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 18px;
  border: 1px solid rgba(47, 106, 89, 0.18);
  background: rgba(47, 106, 89, 0.08);
  color: var(--success);
}

.theme-user .purchase-success-modal__countdown strong {
  min-width: 28px;
  font-size: 24px;
  line-height: 1;
}

.theme-user .purchase-success-modal__countdown span {
  color: var(--text);
  line-height: 1.5;
}

.theme-user .purchase-success-modal__actions {
  display: flex;
  justify-content: flex-end;
}

.theme-user .overview-grid,
.theme-user .purchase-layout,
.theme-user .billing-flow {
  display: grid;
  gap: 22px;
}

.theme-user .overview-grid {
  grid-template-columns: minmax(0, 1.18fr) minmax(340px, 0.82fr);
}

.theme-user .purchase-layout {
  grid-template-columns: minmax(0, 1.24fr) minmax(320px, 0.76fr);
  align-items: start;
}

.theme-user .billing-flow {
  grid-template-columns: minmax(0, 1.18fr) minmax(320px, 0.82fr);
  align-items: start;
}

.theme-user .purchase-layout__main,
.theme-user .billing-flow__main {
  display: grid;
  gap: 18px;
}

.theme-user .detail-list {
  display: grid;
  gap: 0;
}

.theme-user .detail-list__row {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 15px 0;
  border-top: 1px solid rgba(23, 38, 58, 0.08);
}

.theme-user .detail-list__row:first-child {
  padding-top: 0;
  border-top: 0;
}

.theme-user .detail-list__row span {
  color: var(--muted);
}

.theme-user .detail-list__row strong {
  text-align: right;
  font-size: 16px;
  line-height: 1.7;
}

.theme-user .trade-summary-card .detail-list__row,
.theme-user .membership-card .detail-list__row {
  border-top-color: rgba(23, 38, 58, 0.08);
}

.theme-user .trade-summary-card .detail-list__row span,
.theme-user .membership-card .detail-list__row span {
  color: var(--muted);
}

.theme-user .trade-summary-card .detail-list__row strong,
.theme-user .membership-card .detail-list__row strong {
  color: var(--text);
}

.theme-user .promo-box {
  display: grid;
  gap: 14px;
  padding: 18px 20px;
  border-radius: 24px;
  border: 1px solid rgba(23, 38, 58, 0.08);
  background: rgba(255, 255, 255, 0.74);
}

.theme-user .promo-box__field {
  display: grid;
  gap: 8px;
}

.theme-user .promo-box__field span {
  color: var(--muted);
  font-size: 13px;
}

.theme-user .promo-box__head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 18px;
}

.theme-user .promo-box__head h3 {
  margin: 6px 0 0;
  font-size: 30px;
  line-height: 1.1;
}

.theme-user .promo-box__head p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.8;
}

.theme-user .promo-box__badge {
  display: grid;
  gap: 8px;
  justify-items: end;
  padding: 14px 16px;
  min-width: 170px;
  border-radius: 20px;
  border: 1px solid rgba(185, 133, 69, 0.18);
  background: rgba(255, 255, 255, 0.76);
}

.theme-user .promo-box__badge span {
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.theme-user .promo-box__badge strong {
  font-size: 18px;
}

.theme-user .promo-box__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: end;
}

.theme-user .promo-box__field--wide input {
  width: 100%;
}

.theme-user .promo-box__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.theme-user .promo-box__details {
  padding-top: 6px;
}

.theme-user .promo-box--wide {
  margin: 0;
  padding: 24px 26px;
  border-radius: 30px;
}

.theme-user[data-console-page="plans"] .layout {
  gap: 14px;
}

.theme-user .plan-price {
  display: grid;
  justify-items: end;
  gap: 6px;
}

.theme-user .plan-price small {
  color: var(--muted);
  font-size: 13px;
  text-decoration: line-through;
}

.theme-user .detail-card__footer,
.theme-user .plan-card__foot {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid rgba(23, 38, 58, 0.08);
}

.theme-user .plan-card__foot {
  align-items: center;
  justify-content: space-between;
}

.theme-user .plan-card__foot span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.theme-user .plan-card__foot .button {
  margin-left: auto;
}

.theme-user .traffic-meter {
  padding: 18px 20px;
  border-radius: 24px;
  border: 1px solid rgba(23, 38, 58, 0.08);
  background: rgba(255, 255, 255, 0.76);
}

.theme-user .traffic-meter__head,
.theme-user .traffic-meter__foot {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

.theme-user .traffic-meter__head span,
.theme-user .traffic-meter__foot span {
  color: var(--muted);
  font-size: 13px;
}

.theme-user .traffic-meter__head strong {
  font-size: 16px;
}

.theme-user .traffic-meter__track {
  height: 12px;
  margin: 14px 0 12px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(23, 38, 58, 0.08);
}

.theme-user .traffic-meter__track i {
  display: block;
  height: 100%;
  min-width: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, #d7ab71 0%, #b98545 100%);
}

.theme-user .traffic-breakdown {
  display: grid;
  gap: 16px;
  margin-top: 16px;
}

.theme-user .traffic-breakdown__item {
  min-width: 0;
}

.theme-user .traffic-breakdown__meta {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.theme-user .traffic-breakdown__meta div {
  min-width: 0;
}

.theme-user .traffic-breakdown__meta span,
.theme-user .traffic-breakdown__meta em {
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
  line-height: 1.6;
}

.theme-user .traffic-breakdown__meta strong {
  display: block;
  margin-top: 2px;
  font-size: clamp(16px, 2vw, 19px);
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.theme-user .rights-list {
  display: grid;
  gap: 14px;
}

.theme-user .rights-card {
  display: grid;
  grid-template-columns: minmax(180px, 0.72fr) minmax(220px, 1fr) minmax(260px, 1fr);
  gap: 18px;
  align-items: stretch;
  padding: 18px;
  border-radius: 24px;
  border: 1px solid rgba(23, 38, 58, 0.08);
  background: rgba(255, 255, 255, 0.74);
}

.theme-user .rights-card__head,
.theme-user .rights-usage,
.theme-user .rights-metrics {
  min-width: 0;
}

.theme-user .rights-card__head {
  display: flex;
  align-items: center;
}

.theme-user .rights-card__head h3 {
  margin: 8px 0 6px;
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.theme-user .rights-card__kind {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(47, 106, 89, 0.1);
  color: var(--success);
  font-size: 12px;
  font-weight: 700;
}

.theme-user .rights-usage {
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(250, 244, 235, 0.8);
}

.theme-user .rights-usage span,
.theme-user .rights-usage em,
.theme-user .rights-metrics dt {
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
  line-height: 1.5;
}

.theme-user .rights-usage strong {
  font-size: clamp(22px, 3vw, 30px);
  line-height: 1.1;
  overflow-wrap: anywhere;
}

.theme-user .rights-usage__track {
  height: 8px;
  margin-top: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(23, 38, 58, 0.09);
}

.theme-user .rights-usage__track i {
  display: block;
  height: 100%;
  min-width: 6px;
  border-radius: inherit;
  background: linear-gradient(90deg, #2f6a59 0%, #b98545 100%);
}

.theme-user .rights-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.theme-user .rights-metrics div {
  min-width: 0;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.62);
}

.theme-user .rights-metrics dd {
  margin: 5px 0 0;
  font-weight: 700;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.theme-user .trade-side-panel {
  position: sticky;
  top: 108px;
}

.theme-user .amount-grid--commerce .button {
  min-width: 118px;
}

.theme-user .billing-grid--submit input[type="number"] {
  -moz-appearance: textfield;
}

.theme-user .billing-grid--submit input[type="number"]::-webkit-outer-spin-button,
.theme-user .billing-grid--submit input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.theme-user .table-wrap {
  padding: 8px 18px;
}

.theme-user .table th,
.theme-user .table td {
  border-bottom: 1px solid rgba(23, 38, 58, 0.08);
}

.theme-user .table th {
  color: #8c7b67;
}

.theme-user .empty-block {
  line-height: 1.8;
}

.theme-user .teaser-card p,
.theme-user .link-list span,
.theme-user .plain-list li,
.theme-user .steps-list li,
.theme-user .referral-note {
  line-height: 1.85;
}

.theme-user .link-list a {
  color: var(--text);
}

.theme-user .content-card--guide {
  gap: 18px;
}

.theme-user .subscription-board--with-qr {
  gap: 18px;
}

.theme-user .subscription-qr-frame {
  border-radius: 22px;
  border-color: rgba(23, 38, 58, 0.08);
  background: rgba(255, 255, 255, 0.88);
}
.theme-user .table tbody tr.is-selected-row td {
  background: rgba(185, 133, 69, 0.08);
}

@media (max-width: 1080px) {
  .theme-user .hero__inner--gate,
  .theme-user .hero__inner--auth-only,
  .theme-user .console-hero__inner,
  .theme-user .overview-grid,
  .theme-user .purchase-layout,
  .theme-user .billing-flow {
    grid-template-columns: 1fr;
  }

  .theme-user .trust-strip,
  .theme-user .hero-metric-strip,
  .theme-user .gate-lock-grid,
  .theme-user .gate-teaser-grid {
    grid-template-columns: 1fr;
  }

  .theme-user .trade-side-panel {
    position: static;
  }

  .theme-user .rights-card {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .theme-user .shell {
    width: min(100vw - 22px, 1240px);
  }

  .theme-user .topbar__inner,
  .theme-user .panel__header {
    gap: 14px;
  }

  .theme-user .topbar__nav a {
    padding: 8px 6px;
  }

  .theme-user .hero {
    padding-top: 18px;
  }

  .theme-user .hero--auth-only {
    min-height: auto;
    padding-bottom: 40px;
  }

  .theme-user .hero h1,
  .theme-user .admin-hero h1 {
    font-size: 46px;
  }

  .theme-user .panel,
  .theme-user .auth-card--hero,
  .theme-user .content-card,
  .theme-user .status-card,
  .theme-user .plan-card,
  .theme-user .shortcut-card {
    padding: 20px;
  }

  .theme-user .membership-card__grid {
    grid-template-columns: 1fr;
  }

  .theme-user .plan-card__foot,
  .theme-user .detail-card__footer,
  .theme-user .traffic-meter__head,
  .theme-user .traffic-meter__foot,
  .theme-user .detail-list__row {
    flex-direction: column;
    align-items: flex-start;
  }

  .theme-user .detail-list__row strong {
    text-align: left;
  }

  .theme-user .rights-metrics {
    grid-template-columns: 1fr;
  }

}

@media (max-width: 1080px) {
  .theme-user.page-auth-landing .auth-shell-card {
    width: 100%;
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 26px;
  }

  .theme-user.page-auth-landing .auth-story-card {
    min-height: auto;
    padding: 4px 0 20px;
    border-right: 0;
    border-bottom: 1px solid rgba(23, 48, 77, 0.08);
  }

  .theme-user.page-auth-landing .auth-showcase__panel {
    width: min(100%, 560px);
    justify-self: center;
  }
}

@media (max-width: 720px) {
  .theme-user.page-auth-landing .topbar__inner {
    min-height: 76px;
  }

  .theme-user.page-auth-landing .hero--auth-only {
    padding-top: 20px;
  }

  .theme-user.page-auth-landing .auth-shell-card {
    padding: 20px 18px;
    border-radius: 28px;
  }

  .theme-user.page-auth-landing .auth-story-card,
  .theme-user.page-auth-landing .auth-only-card {
    padding: 4px 0;
  }

  .theme-user.page-auth-landing .auth-story-card__copy p {
    font-size: 15px;
  }

  .theme-user.page-auth-landing .auth-story-logo__subtitle,
  .theme-user.page-auth-landing .auth-story-card__signature span {
    font-size: 14px;
    letter-spacing: 0.08em;
  }

  .theme-user.page-auth-landing .auth-story-card__signature strong {
    font-size: 22px;
  }

  .theme-user.page-auth-landing .auth-panel__header h2 {
    font-size: 38px;
  }

  .theme-user.page-auth-landing .button--primary,
  .theme-user.page-auth-landing input,
  .theme-user.page-auth-landing .code-row .button {
    height: 50px;
  }

  .theme-user.page-auth-landing .code-row {
    grid-template-columns: 1fr;
  }

  .theme-user.page-auth-landing .auth-assist__row {
    min-height: 0;
    padding: 14px 18px;
    flex-direction: column;
    align-items: flex-start;
  }
}

body.theme-user.theme-admin {
  background:
    radial-gradient(circle at top left, rgba(232, 215, 191, 0.64), transparent 30%),
    radial-gradient(circle at 84% 14%, rgba(185, 133, 69, 0.16), transparent 20%),
    linear-gradient(180deg, #fbf6ef 0%, #f3ece1 46%, #f7f0e5 100%);
}

body.theme-user.theme-admin::after {
  right: -180px;
  top: 120px;
  width: 560px;
  height: 560px;
}

.theme-user.theme-admin #admin-app {
  min-height: 100vh;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
}

.theme-user.theme-admin .shell {
  width: min(1360px, calc(100vw - 40px));
}

.theme-user.theme-admin .topbar__inner {
  min-height: auto;
  padding: 18px 0;
  align-items: center;
}

.theme-user.theme-admin .topbar__nav {
  flex: 1 1 auto;
  gap: 8px;
}

.theme-user.theme-admin .admin-hero {
  padding: 24px 0 10px;
}

.theme-user.theme-admin .admin-hero__inner {
  grid-template-columns: minmax(0, 1.12fr) minmax(320px, 0.88fr);
  gap: 24px;
  align-items: stretch;
}

.theme-user.theme-admin .admin-gate-hero {
  min-height: calc(100vh - 116px);
  display: grid;
  align-items: center;
  padding: 28px 0 36px;
}

.theme-user.theme-admin .admin-gate-hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  align-items: center;
  align-content: center;
  justify-content: center;
}

.theme-user.theme-admin .admin-gate-hero__spacer {
  display: none;
}

.theme-user.theme-admin .admin-gate-panel {
  width: min(100%, 810px);
  min-height: clamp(340px, calc(100vh - 286px), 520px);
  padding: clamp(22px, 3vw, 34px);
  border-radius: 34px;
  border: 1px solid rgba(23, 38, 58, 0.08);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(250, 244, 235, 0.98));
  box-shadow:
    0 28px 88px rgba(185, 133, 69, 0.14),
    0 10px 26px rgba(23, 38, 58, 0.06);
  display: grid;
  align-items: center;
  justify-items: center;
  justify-self: center;
}

.theme-user.theme-admin .admin-gate-card {
  width: min(100%, 420px);
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  gap: 14px;
}

.theme-user.theme-admin .admin-gate-card__head {
  display: grid;
  gap: 6px;
  margin-bottom: 8px;
}

.theme-user.theme-admin .admin-gate-card__head .eyebrow {
  margin: 0;
  color: #8c7b67;
  font-size: 12px;
  line-height: 1.2;
  letter-spacing: 0.18em;
}

.theme-user.theme-admin .admin-gate-card__head h2 {
  margin: 0;
  font-family: "IBM Plex Sans", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: clamp(36px, 4.4vw, 48px);
  font-weight: 700;
  line-height: 0.96;
  letter-spacing: -0.02em;
}

.theme-user.theme-admin .admin-gate-card form {
  width: 100%;
}

.theme-user.theme-admin .admin-gate-card label {
  gap: 8px;
}

.theme-user.theme-admin .admin-gate-card label span {
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}

.theme-user.theme-admin .admin-gate-card input {
  height: 60px;
  padding: 0 20px;
  border-radius: 22px;
  border-color: rgba(23, 38, 58, 0.1);
  background: rgba(243, 245, 250, 0.88);
  font-size: 16px;
}

.theme-user.theme-admin .admin-gate-card .button--primary {
  width: 100%;
  height: 60px;
  margin-top: 8px;
  border-radius: 22px;
  font-size: 19px;
  font-weight: 700;
}

.theme-user.theme-admin .admin-gate-card .status {
  margin-top: 4px;
}

.theme-user.theme-admin .admin-hero__panel,
.theme-user.theme-admin .metric-strip article,
.theme-user.theme-admin .action-menu__panel {
  border-radius: 28px;
  border: 1px solid rgba(23, 38, 58, 0.08);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(250, 244, 235, 0.96));
  box-shadow: var(--shadow);
}

.theme-user.theme-admin .metric-strip,
.theme-user.theme-admin .metric-strip--wide {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
}

.theme-user.theme-admin .metric-strip article,
.theme-user.theme-admin .admin-hero__panel {
  padding: 22px;
  gap: 10px;
}

.theme-user.theme-admin .metric-strip article span,
.theme-user.theme-admin .admin-hero__panel div,
.theme-user.theme-admin .admin-hero__panel span {
  color: #8c7b67;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.theme-user.theme-admin .metric-strip article strong,
.theme-user.theme-admin .admin-hero__panel strong {
  font-family: "Iowan Old Style", "Palatino Linotype", "Songti SC", "STSong", serif;
  font-size: 30px;
  line-height: 1.1;
}

.theme-user.theme-admin .panel {
  padding: 26px;
  border-radius: 30px;
}

.theme-user.theme-admin .panel__header h2 {
  font-size: 32px;
}

.theme-user.theme-admin .toolbar {
  align-items: end;
  margin-bottom: 18px;
}

.theme-user.theme-admin .toolbar__field span {
  color: #8c7b67;
  font-size: 11px;
  letter-spacing: 0.14em;
}

.theme-user.theme-admin .content-card,
.theme-user.theme-admin .status-card,
.theme-user.theme-admin .table-wrap,
.theme-user.theme-admin .empty-block {
  border-radius: 28px;
}

.theme-user.theme-admin .table-wrap {
  padding: 8px 20px;
}

.theme-user.theme-admin .table tbody tr:hover td {
  background: rgba(185, 133, 69, 0.06);
}

.theme-user.theme-admin .table-actions {
  width: 1%;
  white-space: nowrap;
}

.theme-user.theme-admin .action-menu__panel {
  padding: 10px;
}

.theme-user.theme-admin .admin-time-window {
  display: grid;
  gap: 16px;
  padding: 22px;
  border-radius: 28px;
  border: 1px solid rgba(23, 38, 58, 0.08);
  background:
    linear-gradient(135deg, rgba(185, 133, 69, 0.08), rgba(255, 250, 242, 0.92)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(250, 244, 235, 0.96));
  box-shadow: var(--shadow);
}

.theme-user.theme-admin .admin-time-window__head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: end;
}

.theme-user.theme-admin .admin-time-window__head h3 {
  margin: 6px 0 0;
  font-size: 26px;
  line-height: 1.15;
}

.theme-user.theme-admin .admin-time-window__summary {
  display: grid;
  gap: 6px;
  justify-items: end;
  padding: 14px 16px;
  border-radius: 20px;
  border: 1px solid rgba(185, 133, 69, 0.18);
  background: rgba(255, 255, 255, 0.72);
}

.theme-user.theme-admin .admin-time-window__summary span {
  color: #8c7b67;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.theme-user.theme-admin .admin-time-window__summary strong {
  font-family: "Iowan Old Style", "Palatino Linotype", "Songti SC", "STSong", serif;
  font-size: 26px;
  line-height: 1;
}

.theme-user.theme-admin .admin-time-window__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(160px, 0.65fr) minmax(0, 1.2fr);
  gap: 14px;
}

.theme-user.theme-admin .admin-time-window__field {
  display: grid;
  gap: 8px;
  padding: 16px 18px;
  border-radius: 22px;
  border: 1px solid rgba(23, 38, 58, 0.08);
  background: rgba(255, 255, 255, 0.76);
}

.theme-user.theme-admin .admin-time-window__field span {
  color: #8c7b67;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.theme-user.theme-admin .admin-time-window__field input {
  height: 56px;
  padding: 0 16px;
  border-radius: 18px;
  border: 1px solid rgba(23, 38, 58, 0.1);
  background: rgba(248, 244, 236, 0.92);
  font-size: 16px;
  color: var(--text);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.theme-user.theme-admin .admin-time-window__field input:focus {
  border-color: rgba(185, 133, 69, 0.48);
  background: rgba(255, 251, 245, 0.98);
  outline: none;
}

.theme-user.theme-admin .admin-time-window__field small {
  color: var(--muted);
  line-height: 1.7;
}

.theme-user.theme-admin .admin-time-window__field--days input {
  text-align: center;
  font-weight: 700;
  font-size: 20px;
}

.theme-user.theme-admin .admin-time-window__presets {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.theme-user.theme-admin .admin-time-window__presets .button {
  border-color: rgba(185, 133, 69, 0.22);
  background: rgba(255, 255, 255, 0.7);
}

.theme-user.theme-admin .admin-time-window__presets .button:hover {
  border-color: rgba(185, 133, 69, 0.42);
  background: rgba(255, 249, 240, 0.95);
}

@media (max-width: 1080px) {
  .theme-user.theme-admin .shell {
    width: min(100vw - 22px, 1360px);
  }

  .theme-user.theme-admin .topbar__inner {
    align-items: stretch;
  }

  .theme-user.theme-admin .topbar__nav {
    justify-content: flex-start;
  }

  .theme-user.theme-admin .admin-hero__inner {
    grid-template-columns: 1fr;
  }

  .theme-user.theme-admin .admin-gate-hero {
    min-height: calc(100vh - 108px);
    padding: 20px 0 28px;
  }

  .theme-user.theme-admin .admin-gate-hero__inner {
    grid-template-columns: 1fr;
  }

  .theme-user.theme-admin .admin-gate-panel {
    width: min(100%, 720px);
    min-height: auto;
    justify-self: center;
  }

  .theme-user.theme-admin .admin-time-window__grid {
    grid-template-columns: 1fr;
  }

  .theme-user.theme-admin .admin-time-window__head {
    align-items: stretch;
  }

  .theme-user.theme-admin .admin-time-window__summary {
    justify-items: start;
  }

  .theme-user .promo-box__layout {
    grid-template-columns: 1fr;
  }

  .theme-user .promo-box__head {
    align-items: start;
  }

  .theme-user .promo-box__badge {
    justify-items: start;
  }

  .theme-user .promo-box__actions {
    justify-content: flex-start;
  }
}

@media (max-width: 720px) {
  .theme-user.theme-admin .admin-gate-panel {
    width: 100%;
    padding: 20px;
    border-radius: 28px;
  }

  .theme-user.theme-admin .admin-gate-card {
    width: 100%;
  }

  .theme-user.theme-admin .admin-gate-card__head h2 {
    font-size: 34px;
  }

  .theme-user.theme-admin .admin-gate-card__head .eyebrow {
    font-size: 12px;
  }

  .theme-user.theme-admin .admin-gate-card input {
    height: 58px;
    padding: 0 16px;
    font-size: 16px;
  }

  .theme-user.theme-admin .admin-gate-card .button--primary {
    height: 58px;
    font-size: 18px;
  }
}

/* 20260918: final user-console palette override */
body.auth-page,
body.console-page {
  --console-bg: #f6f7f9;
  --console-surface: #ffffff;
  --console-text: #1f2937;
  --console-muted: #6b7280;
  --console-line: #e5e7eb;
  --console-blue: #2563eb;
  --console-success: #16a34a;
  color: var(--console-text) !important;
  background: var(--console-bg) !important;
}

body.auth-page::before,
body.auth-page::after,
body.console-page::before,
body.console-page::after {
  display: none !important;
  content: none !important;
}

body.auth-page .console-topbar,
body.console-page .console-topbar {
  background: #fff !important;
  border-bottom: 1px solid #e5e7eb !important;
}

body.auth-page .auth-page__intro h1,
body.auth-page .auth-page__intro p,
body.auth-page .auth-page__topnote {
  color: var(--console-text) !important;
}

body.auth-page .auth-page__intro p:last-child,
body.auth-page .auth-page__topnote {
  color: var(--console-muted) !important;
}

body.auth-page .auth-card--simple {
  border: 1px solid #e5e7eb !important;
  border-radius: 8px !important;
  background: #fff !important;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05) !important;
}

body.auth-page .auth-form-grid input {
  border-color: #d1d5db !important;
  border-radius: 6px !important;
  color: #1f2937 !important;
  background: #fff !important;
}

body.auth-page .auth-form-grid input:focus {
  border-color: #2563eb !important;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12) !important;
}

body.auth-page .button--primary {
  border-color: #2563eb !important;
  border-radius: 6px !important;
  color: #fff !important;
  background: #2563eb !important;
}

body.auth-page .button--primary:hover {
  border-color: #1d4ed8 !important;
  background: #1d4ed8 !important;
}

body.auth-page .auth-assist {
  border-top-color: #f0f1f3 !important;
}

body.auth-page .auth-assist__link,
body.auth-page .auth-assist__action {
  color: #2563eb !important;
}

body.console-page .console-summary-card,
body.console-page .console-panel {
  border-color: #e5e7eb !important;
  border-radius: 8px !important;
  background: #fff !important;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.03) !important;
}

body.console-page .console-button--primary {
  border-color: #2563eb !important;
  color: #fff !important;
  background: #2563eb !important;
}

body.console-page .console-nav a:hover,
body.console-page .console-nav a.is-active {
  color: #2563eb !important;
  background: transparent !important;
  border-color: #2563eb !important;
}
