:root {
  --bg: #f6f7fb;
  --surface: #ffffff;
  --surface-soft: #f9fafc;
  --ink: #16211d;
  --muted: #66736e;
  --line: #dfe5e2;
  --accent: #0f7c66;
  --accent-strong: #075b4a;
  --violet: #4857a8;
  --amber: #a46a12;
  --danger: #b2372d;
  --shadow: 0 18px 46px rgba(22, 33, 29, .08);
}

* { box-sizing: border-box; }
html { background: var(--bg); }
body {
  margin: 0;
  background:
    linear-gradient(180deg, #eef5f2 0, rgba(246,247,251,0) 360px),
    var(--bg);
  color: var(--ink);
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", sans-serif;
  letter-spacing: 0;
}
a { color: inherit; }
.shell { min-height: 100vh; display: flex; }

.sidebar {
  position: sticky;
  top: 0;
  width: 248px;
  height: 100vh;
  padding: 22px 16px;
  background: #101916;
  color: #edf5f1;
  border-right: 1px solid rgba(255,255,255,.08);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  margin-bottom: 22px;
  font-size: 18px;
  font-weight: 800;
}
.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: #e6fff5;
  color: #0b5b49;
  font-size: 12px;
  letter-spacing: 0;
}
.sidebar nav { display: grid; gap: 6px; }
.sidebar a {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 0 12px;
  border-radius: 8px;
  color: #dce7e2;
  text-decoration: none;
  font-size: 14px;
}
.sidebar a:hover { background: rgba(255,255,255,.08); color: white; }
.sidebar a.active {
  background: #e6fff5;
  color: #0b5b49;
  font-weight: 800;
}

.admin-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  background: #eef1f5;
}
.admin-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 20px 14px;
  background: #0e1726;
  color: #e8eef8;
  border-right: 1px solid rgba(255,255,255,.08);
}
.admin-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  margin-bottom: 20px;
}
.admin-brand span {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: #38bdf8;
  color: #082f49;
  font-weight: 900;
}
.admin-brand strong { font-size: 16px; }
.admin-sidebar nav { display: grid; gap: 6px; }
.admin-sidebar a {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 0 12px;
  border-radius: 8px;
  color: #cbd5e1;
  text-decoration: none;
  font-size: 14px;
}
.admin-sidebar a:hover,
.admin-sidebar a.active {
  background: #1d4ed8;
  color: white;
}
.admin-main {
  min-width: 0;
  padding: 22px 28px 42px;
}
.admin-auth-shell {
  grid-template-columns: minmax(0, 1fr);
}
.admin-auth-main {
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 24px;
}
.admin-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 58px;
  margin-bottom: 22px;
  padding: 10px 14px 10px 18px;
  border: 1px solid #d8dee8;
  border-radius: 8px;
  background: white;
  box-shadow: 0 10px 28px rgba(15,23,42,.06);
}
.admin-topbar strong { display: block; font-size: 15px; }
.admin-topbar span { color: #64748b; font-size: 13px; }
.admin-page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  padding: 20px;
  border: 1px solid #d8dee8;
  border-radius: 8px;
  background: white;
  box-shadow: 0 12px 30px rgba(15,23,42,.06);
}
.admin-page-head h1 { font-size: 26px; }
.admin-panel {
  border-color: #d8dee8;
  box-shadow: 0 12px 30px rgba(15,23,42,.06);
}
.admin-menu-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.admin-menu-grid a {
  display: grid;
  gap: 8px;
  min-height: 110px;
  padding: 18px;
  border: 1px solid #d8dee8;
  border-radius: 8px;
  background: white;
  color: #172033;
  text-decoration: none;
  font-weight: 900;
  box-shadow: 0 12px 30px rgba(15,23,42,.06);
}
.admin-menu-grid a span {
  color: #64748b;
  font-size: 13px;
  font-weight: 500;
}
.admin-menu-grid a:hover {
  border-color: #93c5fd;
  transform: translateY(-1px);
}

.main {
  flex: 1;
  min-width: 0;
  padding: 22px 30px 42px;
}
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 58px;
  margin-bottom: 24px;
  padding: 10px 14px 10px 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255,255,255,.86);
  box-shadow: 0 10px 30px rgba(22,33,29,.05);
}
.topbar strong { display: block; font-size: 15px; }
.topbar span { color: var(--muted); font-size: 13px; }
.topbar-actions { display: flex; align-items: center; gap: 10px; }
.account-menu {
  position: relative;
}
.account-menu summary {
  list-style: none;
}
.account-menu summary::-webkit-details-marker {
  display: none;
}
.avatar-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid rgba(15,124,102,.18);
  border-radius: 50%;
  background: linear-gradient(145deg, #ecfff8, #d8f7ec);
  box-shadow: 0 10px 24px rgba(15,124,102,.12);
  cursor: pointer;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.avatar-trigger:hover {
  transform: translateY(-1px);
  border-color: rgba(15,124,102,.34);
  box-shadow: 0 14px 30px rgba(15,124,102,.18);
}
.avatar-circle {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--accent), #13b68d);
  color: #fff;
  overflow: hidden;
}
.avatar-circle::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 50%;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255,255,255,.96);
  transform: translateX(-50%);
}
.avatar-circle::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 6px;
  width: 18px;
  height: 10px;
  border-radius: 12px 12px 5px 5px;
  background: rgba(255,255,255,.96);
  transform: translateX(-50%);
}
.account-popover {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 30;
  display: grid;
  gap: 8px;
  width: min(240px, calc(100vw - 36px));
  padding: 14px;
  border: 1px solid rgba(148,163,184,.28);
  border-radius: 8px;
  background: rgba(255,255,255,.98);
  box-shadow: 0 22px 46px rgba(15,23,42,.14);
}
.account-popover::before {
  content: "";
  position: absolute;
  top: -6px;
  right: 15px;
  width: 10px;
  height: 10px;
  border-top: 1px solid rgba(148,163,184,.28);
  border-left: 1px solid rgba(148,163,184,.28);
  background: rgba(255,255,255,.98);
  transform: rotate(45deg);
}
.account-popover strong {
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: 14px;
}
.account-popover span {
  margin-top: -4px;
  color: var(--muted);
  font-size: 12px;
}
.account-popover a,
.account-popover button {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  min-width: 0;
  min-height: 36px;
  max-width: none;
  padding: 0 10px;
  border-radius: 8px;
  color: var(--ink);
  font-size: 13px;
  text-decoration: none;
}
.account-popover a {
  background: #f5faf8;
}
.account-popover button {
  border-color: transparent;
  background: #fff1f2;
  color: #be123c;
}

.page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}
.hero-head {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(135deg, #ffffff 0, #eff8f4 100%);
  box-shadow: var(--shadow);
}
.eyebrow {
  color: var(--accent);
  font-weight: 800;
  margin: 0 0 6px;
  font-size: 13px;
}
h1 { margin: 0; font-size: 30px; line-height: 1.15; }
h2 { margin: 0 0 12px; font-size: 17px; line-height: 1.3; }
p { line-height: 1.65; }
.user-chip {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font-weight: 700;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}
.metrics article, .workbench > div, .auth-panel, .panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}
.metrics article {
  position: relative;
  padding: 18px;
  overflow: hidden;
}
.metrics article::after {
  content: "";
  position: absolute;
  right: 14px;
  top: 16px;
  width: 42px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--violet));
  opacity: .22;
}
.metrics span { display: block; color: var(--muted); margin-bottom: 8px; font-size: 13px; }
.metrics strong { display: block; font-size: 24px; line-height: 1.2; }
.metric-mainline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.metric-recharge-button {
  min-width: 68px;
  min-height: 34px;
  padding: 0 13px;
  border-color: rgba(15, 124, 102, .2);
  background: var(--accent);
  color: white;
  box-shadow: 0 8px 18px rgba(15,124,102,.18);
}
.balance-number {
  margin: 4px 0 18px;
  font-size: 28px;
  line-height: 1.15;
  font-weight: 900;
}

.workbench {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 18px;
  margin-bottom: 18px;
}
.key-page-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(440px, 1fr);
  gap: 18px;
  align-items: start;
}
.key-left-column {
  display: grid;
  gap: 14px;
  min-width: 0;
}
.key-policy-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 14px;
}
.key-policy-panel h2 { margin-bottom: 4px; }
.key-policy-panel .muted {
  margin: 0;
  font-size: 13px;
}
.key-policy-panel button {
  grid-row: 1 / span 2;
  grid-column: 2;
}
.key-list-panel table {
  min-width: 680px;
}
.workbench > div, .panel { padding: 22px; }
.workspace-grid, .data-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 18px;
}
.panel { margin-bottom: 18px; }
.panel.key-policy-panel {
  padding: 16px 18px;
}
.panel.key-list-panel,
.panel.key-example-panel {
  margin-bottom: 0;
}
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.section-head .muted { margin: 0; }
.section-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-left: auto;
}
.section-actions .form-message {
  margin-top: 0;
  text-align: right;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}
table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}
th, td {
  padding: 12px 11px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
  font-size: 14px;
}
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: var(--surface-soft); }
th {
  background: #f0f4f2;
  color: #52605b;
  font-size: 12px;
  font-weight: 800;
}
.empty { color: var(--muted); text-align: center; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; }

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  background: #eef2f0;
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
}
.tag-active, .tag-success, .tag-paid, .tag-credit { background: #dff5eb; color: var(--accent-strong); }
.tag-disabled, .tag-failed { background: #f8dfdc; color: var(--danger); }
.tag-pending, .tag-expired, .tag-cancelled, .tag-debit { background: #faecd2; color: var(--amber); }
.status-filter-chip {
  min-width: 0;
  min-height: 24px;
  max-width: none;
  padding: 0 8px;
  border: 0;
  box-shadow: none;
}
.status-filter-chip:hover {
  transform: none;
  box-shadow: none;
}

pre {
  overflow: auto;
  padding: 14px;
  border-radius: 8px;
  background: #101916;
  color: #e9f8f1;
  line-height: 1.55;
}
.button, button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  min-width: 72px;
  max-width: 160px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: var(--accent);
  color: white;
  font: inherit;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
  white-space: nowrap;
}
.button:hover, button:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(15,124,102,.18);
}
.button.ghost, button.secondary {
  border-color: var(--line);
  background: var(--surface);
  color: var(--ink);
}
.status-tabs {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
}
.status-tabs button.active {
  border-color: rgba(15,124,102,.2);
  background: #dff5eb;
  color: var(--accent-strong);
}
button.danger { background: var(--danger); }
button:disabled { cursor: not-allowed; opacity: .55; transform: none; box-shadow: none; }
form > button {
  justify-self: start;
}
.modal form > button,
.modal .secret-panel > button,
.modal .pay-panel > button {
  justify-self: end;
  width: max-content;
  margin-left: auto;
}
.modal .section-head {
  margin-bottom: 18px;
}
.modal .form-message {
  text-align: right;
}
.actions button {
  min-width: 56px;
  min-height: 34px;
  padding: 0 10px;
  font-size: 13px;
}
.topbar-actions .button,
.topbar-actions button {
  min-width: 72px;
}
.panel > button,
.panel > .button,
.workbench > div > button,
.workbench > div > .button {
  display: flex;
  width: max-content;
  margin-left: auto;
}

.secret-panel, .pay-panel {
  display: grid;
  gap: 10px;
  margin-top: 16px;
  padding: 14px;
  border: 1px solid #b9e0d2;
  border-radius: 8px;
  background: #eefaf5;
}
.secret-panel[hidden], .pay-panel[hidden] { display: none; }
.modal[hidden] { display: none; }
.modal {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(16, 25, 22, .42);
}
.modal-panel {
  width: min(520px, 100%);
  max-height: min(720px, calc(100vh - 40px));
  overflow: auto;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 24px 80px rgba(16,25,22,.28);
}
.icon-button {
  min-width: 36px;
  width: 36px;
  padding: 0;
  font-size: 18px;
}
.qrcode-box {
  display: grid;
  place-items: center;
  width: 224px;
  min-height: 224px;
  margin: 4px auto;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}
.qrcode-box img,
.qrcode-box canvas {
  width: 200px;
  height: 200px;
}
.amount-options {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.amount-options button {
  width: 100%;
  min-width: 0;
}
code {
  overflow-wrap: anywhere;
  font-family: Consolas, "Courier New", monospace;
  font-size: 13px;
}

.auth-panel {
  width: min(460px, calc(100vw - 32px));
  margin: 10vh auto;
  padding: 30px;
}
.auth-shell {
  display: block;
  min-height: 100vh;
  background:
    linear-gradient(140deg, #f5fbf8 0, #ffffff 46%, #f4f5ff 100%),
    #ffffff;
}
.auth-main {
  min-height: 100vh;
  padding: 0;
}
.login-page {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(380px, .65fr);
  align-items: center;
  gap: 44px;
  width: min(1120px, calc(100% - 40px));
  min-height: 100vh;
  margin: 0 auto;
  padding: 88px 0 56px;
}
.login-brand {
  position: absolute;
  top: 28px;
  left: 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #14201d;
  text-decoration: none;
  font-size: 18px;
  font-weight: 900;
}
.login-brand span {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: #0f7c66;
  color: white;
  font-size: 12px;
}
.login-story {
  display: grid;
  gap: 22px;
}
.login-kicker {
  margin: 0;
  color: #0f7c66;
  font-size: 13px;
  font-weight: 900;
}
.login-story h1 {
  max-width: 660px;
  font-size: 48px;
  line-height: 1.1;
}
.login-story p {
  max-width: 620px;
  margin: 0;
  color: #52605b;
  font-size: 17px;
}
.login-benefits {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.login-benefits span {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 13px;
  border: 1px solid rgba(15, 124, 102, .14);
  border-radius: 999px;
  background: white;
  color: #27413a;
  font-size: 13px;
  font-weight: 900;
  box-shadow: 0 10px 24px rgba(20, 32, 29, .05);
}
.login-preview {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 680px;
  padding: 14px;
  border: 1px solid rgba(20, 32, 29, .08);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(15,124,102,.12), rgba(72,87,168,.08)),
    #ffffff;
  box-shadow: 0 22px 54px rgba(20, 32, 29, .08);
}
.login-preview div {
  display: grid;
  gap: 8px;
  min-height: 116px;
  padding: 18px;
  border: 1px solid rgba(20, 32, 29, .08);
  border-radius: 8px;
  background: rgba(255,255,255,.88);
}
.login-preview span {
  color: #66736e;
  font-size: 13px;
}
.login-preview strong {
  align-self: end;
  color: #14201d;
  font-size: 22px;
}
.login-card {
  width: 100%;
  margin: 0;
  padding: 34px;
  border-color: rgba(20, 32, 29, .1);
  box-shadow: 0 26px 70px rgba(20, 32, 29, .12);
}
.login-card h2 {
  margin: 6px 0 10px;
  font-size: 30px;
}
.login-card > p {
  margin-top: 0;
  color: #66736e;
}
.login-card form {
  margin-top: 20px;
}
.login-card input {
  min-height: 48px;
}
.login-card button[type="submit"] {
  width: 100%;
  max-width: none;
  min-height: 48px;
  margin-top: 4px;
  box-shadow: 0 14px 28px rgba(15, 124, 102, .22);
}
.login-card .muted {
  margin: 16px 0 0;
  font-size: 14px;
}
.login-card .muted a {
  color: #0f7c66;
  font-weight: 900;
  text-decoration: none;
}
.admin-auth-main .auth-panel {
  margin: 0;
}
.auth-panel p { color: var(--muted); }
form { display: grid; gap: 14px; }
label { display: grid; gap: 6px; color: #2d3935; font-weight: 800; font-size: 14px; }
input, select {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  background: white;
  color: var(--ink);
  font: inherit;
  outline: none;
}
input:focus, select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(15,124,102,.13);
}
input:disabled { background: #eef2f0; color: var(--muted); }
.table-input {
  min-width: 150px;
  min-height: 34px;
  padding: 0 9px;
}
.table-input.small { min-width: 96px; }
.table-input.tiny { min-width: 78px; }
.table-input.wide { min-width: 220px; }
.admin-table {
  min-width: 1080px;
}
.admin-table th,
.admin-table td {
  padding: 10px 9px;
}
.admin-table .actions {
  justify-content: flex-end;
}
.filters {
  display: flex;
  align-items: end;
  gap: 14px;
  flex-wrap: wrap;
}
.filters label { min-width: 220px; }
.pagination {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 14px;
}
.pagination button {
  min-width: 76px;
}
.checkline {
  display: inline-flex;
  grid-template-columns: auto 1fr;
  align-items: center;
  min-height: 42px;
  gap: 8px;
}
.checkline input { width: auto; min-height: auto; }
.muted, .form-message { color: var(--muted); }
.form-message { min-height: 22px; margin-top: 10px; }
.danger-text { color: var(--danger); }

.landing-shell {
  display: block;
  min-height: 100vh;
  background:
    linear-gradient(180deg, #f5fbf8 0, #ffffff 540px, #f7f8fc 100%),
    #ffffff;
}
.landing-main {
  padding: 0;
}
.landing-page {
  min-height: 100vh;
  color: #14201d;
}
.landing-nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 28px;
  width: min(1180px, calc(100% - 40px));
  min-height: 76px;
  margin: 0 auto;
  border-bottom: 1px solid rgba(20, 32, 29, .08);
  background: rgba(245, 251, 248, .88);
  backdrop-filter: blur(16px);
}
.landing-brand,
.landing-nav-links a,
.landing-actions a,
.landing-cta-row a,
.landing-final-cta a {
  text-decoration: none;
}
.landing-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 900;
}
.landing-brand span {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: #0f7c66;
  color: white;
  font-size: 12px;
}
.landing-nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 26px;
  color: #52605b;
  font-size: 14px;
  font-weight: 800;
}
.landing-nav-links a:hover {
  color: #0f7c66;
}
.landing-actions,
.landing-cta-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.landing-text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: max-content;
  min-height: 32px;
  color: #0f7c66;
  font-weight: 900;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}
.landing-text-link span {
  font-size: 13px;
  line-height: 1;
  transition: transform .16s ease;
}
.landing-text-link-large {
  min-height: 44px;
  font-size: 18px;
}
.landing-text-link:hover {
  color: #075b4a;
}
.landing-text-link:hover span {
  transform: translate(2px, -2px);
}
.landing-login,
.landing-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid rgba(20, 32, 29, .12);
  border-radius: 8px;
  background: rgba(255,255,255,.78);
  color: #14201d;
  font-weight: 900;
}
.landing-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 8px;
  background: #0f7c66;
  color: white;
  font-weight: 900;
  box-shadow: 0 14px 28px rgba(15, 124, 102, .22);
}
.landing-primary-large {
  min-height: 50px;
  padding: 0 24px;
}
.landing-primary:hover,
.landing-login:hover,
.landing-secondary:hover {
  transform: translateY(-1px);
}
.landing-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.22fr) minmax(340px, .68fr);
  align-items: center;
  gap: 44px;
  width: min(1180px, calc(100% - 40px));
  min-height: 650px;
  margin: 0 auto;
  padding: 48px 0 72px;
}
.landing-copy {
  display: grid;
  gap: 22px;
}
.landing-kicker {
  margin: 0;
  color: #0f7c66;
  font-size: 13px;
  font-weight: 900;
}
.landing-copy h1 {
  max-width: 680px;
  font-size: 56px;
  line-height: 1.08;
}
.landing-lead {
  max-width: 620px;
  margin: 0;
  color: #52605b;
  font-size: 18px;
}
.landing-proof-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  max-width: 620px;
}
.landing-proof-grid span {
  display: inline-grid;
  place-items: center;
  min-height: 40px;
  border: 1px solid rgba(15, 124, 102, .14);
  border-radius: 8px;
  background: #ffffff;
  color: #27413a;
  font-size: 13px;
  font-weight: 900;
  box-shadow: 0 10px 24px rgba(20, 32, 29, .05);
}
.landing-product-visual {
  position: relative;
  justify-self: end;
  width: 100%;
  max-width: 460px;
  padding: 10px;
  border: 1px solid rgba(15, 124, 102, .16);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(15,124,102,.12), rgba(72,87,168,.08)),
    #ffffff;
  box-shadow: 0 20px 46px rgba(20, 32, 29, .1);
}
.visual-window {
  display: grid;
  gap: 10px;
  overflow: hidden;
  min-height: 410px;
  padding: 12px;
  border: 1px solid rgba(20, 32, 29, .08);
  border-radius: 8px;
  background: #f8faf9;
}
.visual-topbar {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(20, 32, 29, .08);
  color: #52605b;
}
.visual-topbar span {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #dfe5e2;
}
.visual-topbar span:first-child { background: #e0a62c; }
.visual-topbar span:nth-child(2) { background: #38a169; }
.visual-topbar strong {
  margin-left: auto;
  font-size: 13px;
}
.visual-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.visual-summary article,
.visual-route-card,
.visual-code-card {
  border: 1px solid rgba(20, 32, 29, .08);
  border-radius: 8px;
  background: white;
  box-shadow: 0 14px 30px rgba(20, 32, 29, .06);
}
.visual-summary article {
  display: grid;
  gap: 6px;
  padding: 14px;
}
.visual-summary span,
.visual-code-card span,
.visual-route-row span {
  color: #66736e;
  font-size: 13px;
}
.visual-summary strong {
  font-size: 22px;
}
.visual-summary em,
.visual-route-row em {
  color: #0f7c66;
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}
.visual-route-card {
  display: grid;
  gap: 8px;
  padding: 14px;
}
.visual-card-head,
.visual-route-row {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .8fr) auto;
  align-items: center;
  gap: 12px;
}
.visual-card-head {
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(20, 32, 29, .08);
}
.visual-card-head span {
  justify-self: end;
  min-width: 54px;
  padding: 4px 8px;
  border-radius: 999px;
  background: #dff5eb;
  color: #075b4a;
  text-align: center;
  font-size: 12px;
  font-weight: 900;
}
.visual-route-row {
  min-height: 44px;
  padding: 0 10px;
  border-radius: 8px;
  background: #f4f7f6;
}
.visual-route-row strong {
  font-size: 13px;
}
.visual-code-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px;
}
.visual-code-card strong {
  color: #4857a8;
  font-family: Consolas, "Courier New", monospace;
  font-size: 13px;
}
.landing-section,
.landing-split-section,
.landing-final-cta {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}
.landing-section {
  padding: 58px 0 34px;
}
.landing-section-head {
  max-width: 700px;
  margin-bottom: 24px;
}
.landing-section h2,
.landing-split-section h2,
.landing-final-cta h2 {
  font-size: 34px;
  line-height: 1.18;
}
.landing-feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.landing-feature-grid article {
  min-height: 230px;
  padding: 22px;
  border: 1px solid rgba(20, 32, 29, .08);
  border-radius: 8px;
  background: white;
  box-shadow: 0 16px 36px rgba(20, 32, 29, .06);
}
.landing-feature-grid span {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 28px;
  border-radius: 999px;
  background: #edf2ff;
  color: #4857a8;
  font-size: 12px;
  font-weight: 900;
}
.landing-feature-grid h3 {
  margin: 22px 0 10px;
  font-size: 18px;
}
.landing-feature-grid p,
.landing-split-section p,
.landing-final-cta p {
  margin: 0;
  color: #66736e;
}
.landing-split-section {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(360px, .6fr);
  gap: 42px;
  align-items: center;
  padding: 58px 0;
}
.landing-flow {
  display: grid;
  gap: 12px;
}
.landing-flow span {
  min-height: 54px;
  padding: 16px 18px;
  border: 1px solid rgba(20, 32, 29, .08);
  border-radius: 8px;
  background: #101916;
  color: #f4fbf8;
  font-weight: 900;
}
.landing-flow span:nth-child(2) {
  background: #0f7c66;
}
.landing-flow span:nth-child(3) {
  background: #4857a8;
}
.landing-flow span:nth-child(4) {
  background: #a46a12;
}
.landing-final-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 64px;
  padding: 30px;
  border: 1px solid rgba(15, 124, 102, .16);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 22px 54px rgba(20, 32, 29, .08);
}

@media (max-width: 980px) {
  .shell { display: block; }
  .sidebar {
    position: static;
    width: 100%;
    height: auto;
  }
  .sidebar nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .main { padding: 18px; }
  .topbar, .page-head { align-items: flex-start; flex-direction: column; }
  .topbar-actions { width: 100%; flex-wrap: wrap; }
  .metrics, .workbench, .workspace-grid, .data-grid, .key-page-grid { grid-template-columns: 1fr; }
  .landing-nav {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 14px 0;
  }
  .landing-nav-links {
    justify-content: flex-start;
    flex-wrap: wrap;
  }
  .landing-hero,
  .landing-split-section,
  .login-page {
    grid-template-columns: 1fr;
  }
  .login-page {
    align-items: start;
    padding-top: 96px;
  }
  .login-story h1 {
    font-size: 40px;
  }
  .landing-hero {
    min-height: auto;
    padding-top: 36px;
  }
  .landing-product-visual {
    justify-self: start;
  }
  .landing-copy h1 {
    font-size: 42px;
  }
  .landing-feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  h1 { font-size: 25px; }
  .sidebar nav { grid-template-columns: 1fr; }
  .key-policy-panel { grid-template-columns: 1fr; }
  .key-policy-panel button { grid-row: auto; grid-column: auto; }
  .panel, .workbench > div, .auth-panel { padding: 18px; }
  .filters label, .filters button { width: 100%; min-width: 0; }
  .amount-options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .landing-nav,
  .landing-hero,
  .landing-section,
  .landing-split-section,
  .landing-final-cta,
  .login-page {
    width: min(100% - 28px, 1180px);
  }
  .login-brand {
    top: 22px;
  }
  .login-story h1 {
    font-size: 32px;
  }
  .login-story p {
    font-size: 16px;
  }
  .login-preview {
    grid-template-columns: 1fr;
  }
  .login-card {
    padding: 22px;
  }
  .login-card h2 {
    font-size: 26px;
  }
  .landing-actions,
  .landing-cta-row,
  .landing-final-cta {
    align-items: stretch;
    flex-direction: column;
  }
  .landing-actions a,
  .landing-cta-row a,
  .landing-final-cta a {
    width: 100%;
  }
  .landing-actions .landing-text-link,
  .landing-cta-row .landing-text-link,
  .landing-final-cta .landing-text-link {
    width: max-content;
  }
  .landing-copy h1 {
    font-size: 34px;
  }
  .landing-lead {
    font-size: 16px;
  }
  .landing-proof-grid,
  .landing-feature-grid,
  .visual-summary {
    grid-template-columns: 1fr;
  }
  .landing-product-visual {
    padding: 8px;
  }
  .visual-window {
    min-height: auto;
    padding: 12px;
  }
  .visual-card-head,
  .visual-route-row,
  .visual-code-card {
    grid-template-columns: 1fr;
  }
  .visual-code-card {
    align-items: flex-start;
    flex-direction: column;
  }
  .landing-section h2,
  .landing-split-section h2,
  .landing-final-cta h2 {
    font-size: 27px;
  }
}

/* Public pages: deep AI-product presentation inspired by modern model portals. */
.landing-shell {
  background:
    linear-gradient(180deg, #061424 0, #081a32 48%, #f5f7fb 48%, #f5f7fb 100%);
}
.landing-main {
  padding: 0;
}
.landing-page {
  position: relative;
  overflow: hidden;
  color: #ecf6ff;
  background:
    linear-gradient(120deg, rgba(36, 96, 255, .18), transparent 34%),
    linear-gradient(240deg, rgba(35, 218, 183, .16), transparent 32%),
    #071426;
}
.landing-page::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 720px;
  pointer-events: none;
  background:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 68px 68px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,.9), transparent 86%);
}
.landing-nav {
  position: relative;
  z-index: 2;
  min-height: 72px;
  border-bottom: 1px solid rgba(178, 213, 255, .14);
  background: rgba(7, 20, 38, .68);
  color: #dcecff;
}
.landing-brand span {
  background: linear-gradient(135deg, #37d7ff, #26d0a8);
  color: #061424;
}
.landing-nav-links {
  color: rgba(224, 240, 255, .72);
}
.landing-nav-links a:hover {
  color: #55d8ff;
}
.landing-text-link {
  color: #56e0c4;
  text-decoration-color: rgba(86, 224, 196, .68);
}
.landing-text-link:hover {
  color: #8df2df;
}
.landing-hero {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 34px;
  min-height: 720px;
  padding: 76px 0 64px;
  text-align: center;
}
.landing-copy {
  justify-items: center;
  gap: 18px;
}
.landing-kicker {
  color: #55d8ff;
  letter-spacing: 0;
}
.landing-copy h1 {
  max-width: 980px;
  color: #ffffff;
  font-size: 64px;
  line-height: 1.04;
  text-shadow: 0 0 34px rgba(56, 186, 255, .34);
}
.landing-lead {
  max-width: 780px;
  color: rgba(230, 242, 255, .78);
  font-size: 18px;
}
.landing-command {
  display: grid;
  grid-template-columns: auto minmax(260px, 1fr) auto;
  align-items: center;
  gap: 14px;
  width: min(720px, 100%);
  min-height: 62px;
  margin-top: 12px;
  padding: 8px 10px 8px 22px;
  border: 1px solid rgba(124, 196, 255, .28);
  border-radius: 8px;
  background: rgba(8, 28, 54, .78);
  box-shadow: 0 18px 70px rgba(0, 0, 0, .28), inset 0 1px 0 rgba(255,255,255,.1);
  text-align: left;
}
.landing-command span {
  color: rgba(221, 238, 255, .62);
  font-size: 13px;
  font-weight: 800;
}
.landing-command strong {
  color: #ffffff;
  font-size: 15px;
}
.landing-command a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 42px;
  padding: 0;
  color: #71efd9;
  font-weight: 900;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}
.landing-cta-row {
  justify-content: center;
}
.landing-proof-grid {
  max-width: 760px;
}
.landing-proof-grid span {
  border-color: rgba(124, 196, 255, .22);
  background: rgba(11, 32, 58, .72);
  color: #dcecff;
  box-shadow: none;
}
.landing-product-visual {
  justify-self: center;
  max-width: 860px;
  border-color: rgba(124, 196, 255, .24);
  background:
    linear-gradient(135deg, rgba(28, 106, 255, .18), rgba(33, 219, 184, .12)),
    rgba(6, 19, 36, .72);
  box-shadow: 0 26px 90px rgba(0, 0, 0, .34);
}
.visual-window {
  min-height: 0;
  padding: 16px;
  background: rgba(7, 19, 36, .86);
  border-color: rgba(160, 215, 255, .18);
}
.visual-topbar {
  color: rgba(224, 240, 255, .72);
  border-bottom-color: rgba(160, 215, 255, .16);
}
.visual-model-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.visual-model-grid article,
.visual-route-card,
.visual-code-card {
  border: 1px solid rgba(160, 215, 255, .18);
  border-radius: 8px;
  background: rgba(13, 37, 68, .78);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
}
.visual-model-grid article {
  display: grid;
  gap: 9px;
  min-height: 126px;
  padding: 16px;
  text-align: left;
}
.visual-model-grid span,
.visual-route-row span,
.visual-code-card span {
  color: #66dcff;
  font-size: 13px;
  font-weight: 900;
}
.visual-model-grid strong {
  color: #ffffff;
  font-size: 18px;
}
.visual-model-grid em,
.visual-route-row em {
  color: rgba(225, 240, 255, .68);
  font-size: 12px;
  font-style: normal;
}
.visual-route-card {
  padding: 16px;
}
.visual-card-head {
  color: #ffffff;
  border-bottom-color: rgba(160, 215, 255, .16);
}
.visual-card-head span {
  background: rgba(45, 224, 187, .16);
  color: #71efd9;
}
.visual-route-row {
  background: rgba(255,255,255,.045);
  color: #ffffff;
}
.visual-route-row strong {
  color: #ffffff;
}
.visual-code-card strong {
  color: #71efd9;
}
.landing-section,
.landing-split-section,
.landing-final-cta {
  position: relative;
  z-index: 1;
  color: #14201d;
}
.landing-section {
  margin-top: 0;
  padding-top: 70px;
}
.landing-section h2,
.landing-split-section h2,
.landing-final-cta h2 {
  color: #10203b;
  font-size: 36px;
}
.landing-feature-grid article {
  border-color: #dbe6f2;
  background: #ffffff;
  box-shadow: 0 20px 50px rgba(16, 32, 59, .08);
}
.landing-feature-grid span {
  background: #eaf5ff;
  color: #176ddc;
}
.landing-flow span {
  background: #10203b;
}
.landing-flow span:nth-child(2) {
  background: #176ddc;
}
.landing-flow span:nth-child(3) {
  background: #0c9f8a;
}
.landing-flow span:nth-child(4) {
  background: #5b55d8;
}
.landing-final-cta {
  border-color: #dbe6f2;
  background: #ffffff;
  box-shadow: 0 22px 54px rgba(16, 32, 59, .08);
}

.auth-shell {
  background:
    linear-gradient(120deg, rgba(36, 96, 255, .2), transparent 36%),
    linear-gradient(240deg, rgba(35, 218, 183, .14), transparent 34%),
    #071426;
}
.auth-main {
  background:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 72px 72px;
}
.login-page {
  grid-template-columns: minmax(0, .96fr) minmax(380px, .62fr);
  color: #ecf6ff;
}
.login-brand {
  color: #ffffff;
}
.login-brand span {
  background: linear-gradient(135deg, #37d7ff, #26d0a8);
  color: #061424;
}
.login-kicker {
  color: #55d8ff;
}
.login-story h1 {
  color: #ffffff;
  font-size: 52px;
  text-shadow: 0 0 34px rgba(56, 186, 255, .28);
}
.login-story p {
  color: rgba(230, 242, 255, .78);
}
.login-benefits span,
.login-preview,
.login-card {
  border-color: rgba(124, 196, 255, .22);
  background: rgba(8, 28, 54, .72);
  color: #dcecff;
  box-shadow: 0 24px 80px rgba(0, 0, 0, .26);
}
.login-preview div {
  border-color: rgba(160, 215, 255, .18);
  background: rgba(13, 37, 68, .8);
}
.login-preview span {
  color: #66dcff;
  font-weight: 900;
}
.login-preview strong {
  color: #ffffff;
}
.login-model-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.login-model-strip span {
  min-height: 30px;
  padding: 6px 12px;
  border: 1px solid rgba(124, 196, 255, .22);
  border-radius: 999px;
  background: rgba(255,255,255,.06);
  color: #dcecff;
  font-size: 12px;
  font-weight: 900;
}
.login-card {
  backdrop-filter: blur(16px);
}
.login-card h2 {
  color: #ffffff;
}
.login-card > p,
.login-card .muted {
  color: rgba(230, 242, 255, .68);
}
.login-card label {
  color: rgba(230, 242, 255, .86);
}
.login-card input {
  border-color: rgba(160, 215, 255, .22);
  background: rgba(5, 18, 35, .68);
  color: #ffffff;
}
.login-card input::placeholder {
  color: rgba(230, 242, 255, .42);
}
.login-card button[type="submit"] {
  background: linear-gradient(135deg, #2de0bb, #4cb8ff);
  color: #061424;
}
.login-card .muted a {
  color: #71efd9;
}

@media (max-width: 980px) {
  .landing-shell {
    background: #071426;
  }
  .landing-hero {
    min-height: auto;
    text-align: left;
  }
  .landing-copy {
    justify-items: start;
  }
  .landing-command {
    grid-template-columns: 1fr;
    width: 100%;
  }
  .landing-product-visual {
    width: 100%;
  }
  .visual-model-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .landing-copy h1,
  .login-story h1 {
    font-size: 34px;
  }
  .landing-hero {
    padding-top: 44px;
  }
  .visual-model-grid {
    grid-template-columns: 1fr;
  }
  .landing-command a {
    width: max-content;
  }
}

/* Eastmoney Miaoxiang-inspired cosmic hero refresh. */
.landing-shell,
.auth-shell {
  background: #02050d;
}
.landing-page,
.login-page {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 28% 18%, rgba(77, 85, 255, .34), transparent 28%),
    radial-gradient(circle at 72% 36%, rgba(0, 196, 255, .16), transparent 34%),
    linear-gradient(90deg, #0e233b 0, #080b18 44%, #03040b 100%);
}
.cosmic-stars {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 18% 22%, rgba(255,255,255,.9) 0 1px, transparent 2px),
    radial-gradient(circle at 42% 9%, rgba(255,255,255,.75) 0 1px, transparent 2px),
    radial-gradient(circle at 58% 30%, rgba(255,255,255,.8) 0 1px, transparent 2px),
    radial-gradient(circle at 78% 18%, rgba(255,255,255,.9) 0 1px, transparent 2px),
    radial-gradient(circle at 88% 44%, rgba(255,255,255,.65) 0 1px, transparent 2px),
    radial-gradient(circle at 29% 54%, rgba(108,219,255,.82) 0 1px, transparent 2px),
    linear-gradient(180deg, rgba(9,17,33,.02), rgba(2,5,13,.58));
  background-size: 100% 100%, 100% 100%, 100% 100%, 100% 100%, 100% 100%, 100% 100%, 100% 100%;
}
.cosmic-stars::before,
.cosmic-stars::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle, rgba(255,255,255,.76) 0 1px, transparent 1.8px),
    radial-gradient(circle, rgba(89,215,255,.65) 0 1px, transparent 1.8px);
  background-size: 180px 180px, 260px 260px;
  background-position: 20px 40px, 80px 20px;
  opacity: .55;
  animation: starDrift 22s linear infinite;
}
.cosmic-stars::after {
  opacity: .32;
  background-size: 320px 320px, 420px 420px;
  animation-duration: 36s;
  animation-direction: reverse;
}
.cosmic-planet {
  position: absolute;
  pointer-events: none;
  border-radius: 50%;
  overflow: hidden;
  background:
    radial-gradient(circle at 35% 26%, rgba(255,255,255,.78), transparent 0 10%, transparent 16%),
    radial-gradient(circle at 42% 34%, #95fff5 0, #42dce9 26%, #1787c8 58%, #0c316b 100%);
  box-shadow:
    inset -36px -42px 80px rgba(2, 7, 28, .62),
    inset 18px 16px 46px rgba(255,255,255,.26),
    0 0 54px rgba(67, 221, 255, .58);
}
.cosmic-planet::before {
  content: "";
  position: absolute;
  inset: -20%;
  border-radius: inherit;
  background:
    linear-gradient(28deg, transparent 18%, rgba(255,255,255,.16) 20%, transparent 23% 38%, rgba(8,84,126,.24) 41%, transparent 45%),
    linear-gradient(158deg, transparent 16%, rgba(8,84,126,.22) 20%, transparent 26% 44%, rgba(255,255,255,.12) 48%, transparent 54%),
    radial-gradient(circle at 60% 70%, rgba(0,0,0,.18), transparent 24%);
  background-size: 180px 180px, 220px 220px, 100% 100%;
  animation: planetSpin 18s linear infinite;
}
.cosmic-planet-main {
  left: 50%;
  bottom: -430px;
  width: 1320px;
  height: 1320px;
  transform: translateX(-50%);
}
.cosmic-planet-left {
  left: -86px;
  bottom: 330px;
  width: 178px;
  height: 178px;
  opacity: .95;
}
.cosmic-planet-right {
  right: -68px;
  bottom: 350px;
  width: 178px;
  height: 178px;
  background:
    radial-gradient(circle at 36% 28%, rgba(255,255,255,.8), transparent 0 10%, transparent 16%),
    radial-gradient(circle at 42% 34%, #a48dff 0, #6c5fff 34%, #2b216f 100%);
  box-shadow:
    inset -28px -34px 70px rgba(2, 4, 24, .7),
    0 0 48px rgba(112, 97, 255, .58);
}
.cosmic-planet-login {
  left: -220px;
  bottom: -360px;
  width: 820px;
  height: 820px;
}
.cosmic-spark {
  position: absolute;
  right: 22%;
  top: 150px;
  width: 40px;
  height: 40px;
  pointer-events: none;
  background: linear-gradient(135deg, #5cf5ff, #875cff);
  clip-path: polygon(50% 0, 62% 36%, 100% 50%, 62% 64%, 50% 100%, 38% 64%, 0 50%, 38% 36%);
  filter: drop-shadow(0 0 20px rgba(104,224,255,.72));
  animation: sparkPulse 3.2s ease-in-out infinite;
}
.landing-nav {
  width: min(1000px, calc(100% - 42px));
  background: rgba(0, 0, 0, .32);
  border-bottom: 1px solid rgba(255,255,255,.2);
  backdrop-filter: blur(10px);
}
.landing-brand span,
.login-brand span {
  background: linear-gradient(135deg, #65f4ff, #875cff);
  color: #050812;
}
.landing-hero {
  min-height: calc(100vh - 72px);
  padding: 78px 0 22px;
  display: grid;
  align-content: start;
  gap: 42px;
  text-align: center;
}
.landing-copy {
  position: relative;
  z-index: 2;
}
.landing-kicker {
  color: rgba(255,255,255,.86);
  font-size: 14px;
  letter-spacing: 0;
}
.landing-copy h1 {
  max-width: 960px;
  color: #ffffff;
  font-size: 62px;
  line-height: 1.12;
  text-shadow: 0 12px 42px rgba(0,0,0,.42);
}
.landing-copy h1 span,
.login-story h1 span {
  color: #62e8ff;
}
.landing-lead {
  max-width: 850px;
  color: rgba(255,255,255,.82);
  font-size: 20px;
}
.landing-experience-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 200px;
  min-height: 46px;
  border: 1px solid rgba(255,255,255,.82);
  border-radius: 999px;
  color: #ffffff;
  text-decoration: none;
  font-size: 18px;
  font-weight: 700;
  background: rgba(255,255,255,.08);
  backdrop-filter: blur(8px);
}
.landing-proof-grid {
  display: flex;
  justify-content: center;
  gap: 38px;
  max-width: none;
  color: #fff;
}
.landing-proof-grid span {
  min-height: auto;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  color: #ffffff;
  font-size: 19px;
  font-weight: 500;
}
.landing-proof-grid span::before {
  content: "•";
  margin-right: 12px;
}
.landing-card-row {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  width: min(980px, calc(100% - 40px));
  margin: 130px auto 0;
}
.landing-card {
  min-height: 146px;
  padding: 24px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255,255,255,.14), rgba(255,255,255,.05));
  box-shadow: 0 20px 70px rgba(0,0,0,.28), inset 0 1px 0 rgba(255,255,255,.12);
  color: #ffffff;
  text-align: left;
  backdrop-filter: blur(12px);
}
.landing-card span {
  color: #68eaff;
  font-size: 13px;
  font-weight: 900;
}
.landing-card h2 {
  margin: 14px 0 8px;
  color: #ffffff;
  font-size: 22px;
}
.landing-card p {
  margin: 0;
  color: rgba(255,255,255,.72);
  font-size: 14px;
}
.landing-about {
  position: relative;
  z-index: 2;
  width: min(860px, calc(100% - 40px));
  margin: 34px auto 50px;
  color: rgba(255,255,255,.72);
  text-align: center;
}
.auth-main {
  background: transparent;
}
.login-page {
  grid-template-columns: minmax(0, 1fr) minmax(380px, 430px);
  gap: 62px;
  width: min(1120px, calc(100% - 48px));
}
.login-story,
.login-card,
.login-brand {
  position: relative;
  z-index: 2;
}
.login-story h1 {
  color: #ffffff;
  font-size: 54px;
}
.login-story p {
  color: rgba(255,255,255,.78);
  font-size: 18px;
}
.login-benefits span {
  border-color: rgba(255,255,255,.2);
  background: rgba(255,255,255,.08);
  color: #ffffff;
  box-shadow: none;
}
.login-card {
  border-color: rgba(255,255,255,.22);
  background: rgba(4, 10, 24, .72);
  box-shadow: 0 26px 90px rgba(0,0,0,.42), inset 0 1px 0 rgba(255,255,255,.1);
}
@keyframes starDrift {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-80px, 60px, 0); }
}
@keyframes planetSpin {
  from { transform: rotate(0deg) translateX(0); }
  to { transform: rotate(360deg) translateX(0); }
}
@keyframes sparkPulse {
  0%, 100% { transform: scale(.92) rotate(0deg); opacity: .78; }
  50% { transform: scale(1.12) rotate(18deg); opacity: 1; }
}

@media (max-width: 980px) {
  .cosmic-planet-main {
    width: 980px;
    height: 980px;
    bottom: -330px;
  }
  .landing-card-row,
  .login-page {
    grid-template-columns: 1fr;
  }
  .landing-card-row {
    margin-top: 72px;
  }
}

@media (max-width: 560px) {
  .landing-copy h1,
  .login-story h1 {
    font-size: 36px;
  }
  .landing-lead,
  .login-story p {
    font-size: 16px;
  }
  .landing-proof-grid {
    align-items: center;
    flex-direction: column;
    gap: 12px;
  }
  .cosmic-planet-left,
  .cosmic-planet-right,
  .cosmic-spark {
    display: none;
  }
  .cosmic-planet-main {
    width: 760px;
    height: 760px;
    bottom: -300px;
  }
}

/* Login composition correction: full-bleed background with balanced copy/form placement. */
.auth-shell {
  min-height: 100vh;
  background: #02050d;
}
.auth-main {
  min-height: 100vh;
  padding: 0;
  background: transparent;
}
.login-page {
  width: 100%;
  max-width: none;
  min-height: 100vh;
  margin: 0;
  padding: 108px max(72px, calc((100vw - 1240px) / 2)) 72px;
  display: grid;
  grid-template-columns: minmax(520px, 1fr) minmax(420px, 460px);
  gap: 96px;
  align-items: center;
  background:
    radial-gradient(circle at 25% 25%, rgba(72, 68, 255, .32), transparent 28%),
    radial-gradient(circle at 78% 52%, rgba(44, 222, 201, .18), transparent 34%),
    linear-gradient(90deg, #102544 0, #080d1d 44%, #03040b 100%);
}
.login-page .cosmic-stars,
.login-page .cosmic-planet {
  position: absolute;
}
.login-topbar {
  position: absolute;
  z-index: 3;
  top: 28px;
  left: max(72px, calc((100vw - 1240px) / 2));
  right: max(72px, calc((100vw - 1240px) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.login-topbar .login-brand {
  position: static;
  top: auto;
  left: auto;
}
.login-home-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  color: #71efd9;
  font-size: 15px;
  font-weight: 900;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}
.login-home-link span {
  font-size: 13px;
  line-height: 1;
}
.login-story {
  grid-column: 1;
  grid-row: 1;
  align-self: center;
  max-width: 680px;
  padding-top: 26px;
}
.login-story h1 {
  max-width: 680px;
  margin: 0;
  font-size: 58px;
  line-height: 1.08;
}
.login-story h1 strong {
  display: block;
  color: #ffffff;
  font: inherit;
}
.login-story p {
  max-width: 620px;
  margin: 22px 0 0;
}
.login-benefits {
  margin-top: 24px;
}
.login-card {
  grid-column: 2;
  grid-row: 1;
  justify-self: end;
  align-self: center;
  width: min(460px, 100%);
  margin: 0;
  padding: 36px;
}
.sms-code-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}
.sms-code-row input {
  width: 100%;
}
.sms-code-button {
  min-width: 116px;
  min-height: 48px;
  padding: 0 14px;
  border-color: rgba(113, 239, 217, .38);
  color: #71efd9;
  white-space: nowrap;
}
.sms-code-button:disabled {
  cursor: not-allowed;
  opacity: .58;
}
.login-page .cosmic-planet-login {
  left: 50%;
  bottom: -640px;
  width: 1180px;
  height: 1180px;
  transform: translateX(-58%);
  opacity: .82;
  overflow: visible;
  background: transparent;
  box-shadow: none;
}
.login-page .cosmic-planet-login::before,
.login-page .cosmic-planet-login::after {
  display: none;
}
.login-page .cosmic-planet-right {
  right: max(32px, calc((100vw - 1320px) / 2));
  bottom: 32%;
}

@media (max-width: 1120px) {
  .login-page {
    grid-template-columns: 1fr;
    gap: 34px;
    padding: 96px 28px 54px;
  }
  .login-topbar {
    left: 28px;
    right: 28px;
  }
  .login-story {
    grid-column: 1;
    grid-row: auto;
    max-width: 760px;
    padding-top: 0;
  }
  .login-card {
    grid-column: 1;
    grid-row: auto;
    justify-self: start;
    width: min(520px, 100%);
  }
}

@media (max-width: 560px) {
  .login-page {
    padding: 88px 18px 42px;
  }
  .login-topbar {
    left: 18px;
    right: 18px;
    top: 20px;
    gap: 14px;
  }
  .login-home-link {
    font-size: 14px;
    white-space: nowrap;
  }
  .login-topbar .login-brand strong {
    font-size: 16px;
  }
  .login-topbar .login-brand span {
    width: 32px;
    height: 32px;
  }
  .login-story h1 {
    font-size: 36px;
  }
  .login-card {
    padding: 24px;
  }
  .sms-code-row {
    grid-template-columns: 1fr;
  }
  .sms-code-button {
    width: 100%;
  }
}

@media (max-width: 380px) {
  .login-topbar {
    align-items: flex-start;
    flex-direction: column;
  }
  .login-page {
    padding-top: 118px;
  }
}

/* Landing planet refinement: lower globe, earth texture, and Mars/Venus side planets. */
.landing-page .cosmic-planet {
  z-index: 1;
}
.landing-page .cosmic-planet-main {
  bottom: -960px;
  background:
    radial-gradient(circle at 30% 22%, rgba(255,255,255,.72), transparent 0 8%, transparent 13%),
    radial-gradient(ellipse at 31% 42%, rgba(60, 156, 92, .92) 0 7%, transparent 8%),
    radial-gradient(ellipse at 43% 36%, rgba(70, 181, 103, .84) 0 5%, transparent 6%),
    radial-gradient(ellipse at 54% 54%, rgba(184, 155, 88, .64) 0 8%, transparent 9%),
    radial-gradient(ellipse at 68% 44%, rgba(55, 151, 92, .78) 0 6%, transparent 7%),
    radial-gradient(ellipse at 43% 67%, rgba(70, 171, 96, .74) 0 7%, transparent 8%),
    radial-gradient(circle at 42% 34%, #6ff3ff 0, #2aaee8 29%, #126fb8 58%, #082d73 100%);
  box-shadow:
    inset -56px -58px 120px rgba(1, 8, 30, .66),
    inset 22px 18px 54px rgba(255,255,255,.28),
    0 0 78px rgba(70, 214, 255, .55);
}
.landing-page .cosmic-planet-main::before {
  background:
    radial-gradient(ellipse at 26% 38%, rgba(53, 132, 72, .82) 0 9%, transparent 10%),
    radial-gradient(ellipse at 44% 31%, rgba(216, 184, 108, .42) 0 5%, transparent 6%),
    radial-gradient(ellipse at 58% 47%, rgba(40, 139, 82, .78) 0 11%, transparent 12%),
    radial-gradient(ellipse at 72% 58%, rgba(206, 178, 108, .48) 0 7%, transparent 8%),
    linear-gradient(18deg, transparent 18%, rgba(255,255,255,.2) 20%, transparent 24% 45%, rgba(255,255,255,.14) 48%, transparent 53%),
    linear-gradient(158deg, transparent 18%, rgba(3, 72, 135, .28) 23%, transparent 30% 58%, rgba(255,255,255,.16) 63%, transparent 69%);
  background-size: 300px 240px, 260px 220px, 360px 280px, 300px 220px, 240px 210px, 340px 280px;
  background-position: 4% 8%, 30% 0, 45% 24%, 62% 36%, 0 0, 30px 20px;
  opacity: .88;
  animation: planetSpin 24s linear infinite;
}
.landing-page .cosmic-planet-main::after {
  content: "";
  position: absolute;
  inset: -12%;
  border-radius: inherit;
  pointer-events: none;
  background:
    linear-gradient(18deg, transparent 18%, rgba(255,255,255,.22) 21%, transparent 25% 42%, rgba(255,255,255,.16) 46%, transparent 52%),
    linear-gradient(162deg, transparent 20%, rgba(255,255,255,.14) 24%, transparent 29% 56%, rgba(255,255,255,.18) 60%, transparent 66%);
  background-size: 360px 220px, 420px 260px;
  opacity: .58;
  animation: planetSpin 32s linear infinite reverse;
}
.landing-page .cosmic-planet-left {
  background:
    radial-gradient(circle at 34% 26%, rgba(255,226,184,.74), transparent 0 9%, transparent 15%),
    radial-gradient(circle at 34% 42%, rgba(109, 45, 31, .72) 0 8%, transparent 9%),
    radial-gradient(circle at 61% 63%, rgba(128, 55, 35, .66) 0 10%, transparent 11%),
    radial-gradient(circle at 45% 36%, #f0a15c 0, #bb5832 42%, #5f261d 100%);
  box-shadow:
    inset -28px -34px 68px rgba(43, 15, 18, .72),
    inset 16px 14px 36px rgba(255,229,180,.22),
    0 0 42px rgba(232, 94, 48, .48);
}
.landing-page .cosmic-planet-left::before {
  background:
    linear-gradient(18deg, transparent 18%, rgba(98, 37, 24, .5) 23%, transparent 30% 55%, rgba(255,194,117,.18) 59%, transparent 66%),
    radial-gradient(circle at 36% 48%, rgba(83, 30, 25, .55), transparent 18%),
    radial-gradient(circle at 62% 58%, rgba(255,188,112,.22), transparent 16%);
  background-size: 150px 100px, 100% 100%, 100% 100%;
  opacity: .86;
  animation-duration: 28s;
}
.landing-page .cosmic-planet-right {
  background:
    radial-gradient(circle at 36% 28%, rgba(255,255,226,.78), transparent 0 9%, transparent 16%),
    radial-gradient(ellipse at 38% 42%, rgba(255, 224, 128, .72) 0 12%, transparent 13%),
    radial-gradient(ellipse at 61% 57%, rgba(191, 126, 53, .54) 0 14%, transparent 15%),
    radial-gradient(circle at 42% 34%, #fff2a4 0, #e4b44f 42%, #8d6129 100%);
  box-shadow:
    inset -28px -34px 70px rgba(60, 37, 13, .7),
    inset 14px 12px 34px rgba(255,255,220,.24),
    0 0 48px rgba(238, 184, 77, .55);
}
.landing-page .cosmic-planet-right::before {
  background:
    linear-gradient(20deg, transparent 16%, rgba(255,243,185,.22) 21%, transparent 30% 42%, rgba(128,78,30,.24) 48%, transparent 58%),
    linear-gradient(154deg, transparent 14%, rgba(255,225,135,.26) 21%, transparent 34% 60%, rgba(135,78,32,.28) 66%, transparent 72%);
  background-size: 150px 86px, 190px 110px;
  opacity: .9;
  animation-duration: 30s;
}
.landing-page .landing-card-row {
  z-index: 4;
  margin-top: 84px;
}
.landing-page .landing-card {
  background: linear-gradient(180deg, rgba(12, 35, 62, .76), rgba(7, 18, 36, .52));
  box-shadow: 0 24px 72px rgba(0,0,0,.32), inset 0 1px 0 rgba(255,255,255,.14);
}

@media (max-width: 980px) {
  .landing-page .cosmic-planet-main {
    bottom: -720px;
  }
  .landing-page .landing-card-row {
    margin-top: 56px;
  }
}

@media (max-width: 560px) {
  .landing-page .cosmic-planet-main {
    bottom: -560px;
  }
}

/* Landing real planet assets: use local NASA/JPL imagery instead of painted CSS textures. */
.landing-page .cosmic-planet-main,
.landing-page .cosmic-planet-left,
.landing-page .cosmic-planet-right {
  background: #02050d;
}
.landing-page .cosmic-planet-main {
  width: 1200px;
  height: 1200px;
  bottom: -840px;
  border-radius: 0;
  overflow: visible;
  background: transparent;
  box-shadow: none;
  perspective: 1800px;
}
.earth-webgl-globe,
.earth-map-sphere {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  background: #061936;
  filter: drop-shadow(0 0 48px rgba(83, 203, 255, .42));
  isolation: isolate;
  transform: rotateX(0deg) translateZ(0);
}
.earth-webgl-globe {
  z-index: 2;
  background: transparent;
  opacity: 0;
  transition: opacity .3s ease;
}
.earth-map-sphere {
  opacity: 0;
}
.earth-webgl-canvas {
  display: block;
  width: 100%;
  height: 100%;
}
.cosmic-planet.webgl-ready .earth-webgl-globe {
  opacity: 1;
}
.cosmic-planet.webgl-ready .earth-map-sphere {
  opacity: 0;
}
.cosmic-planet.webgl-unavailable .earth-map-sphere {
  opacity: 1;
}
.earth-map-track {
  position: absolute;
  inset: 0 auto 0 0;
  width: 400%;
  height: 100%;
  background-image: url("/static/img/planets/earth-map-color.jpg");
  background-repeat: repeat-x;
  background-size: 50% 100%;
  transform: translate3d(0, 0, 0);
  animation: earthMapSphereSpin 36s linear infinite;
  animation-play-state: paused;
  will-change: transform;
}
.cosmic-planet.webgl-unavailable .earth-map-track {
  animation-play-state: running;
}
.earth-map-sphere::before,
.earth-map-sphere::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  pointer-events: none;
  z-index: 3;
}
.earth-map-sphere::before {
  background:
    radial-gradient(circle at 30% 22%, rgba(255,255,255,.2), transparent 0 18%, transparent 42%),
    radial-gradient(circle at 50% 52%, transparent 0 54%, rgba(55, 205, 255, .22) 72%, rgba(96, 224, 255, .48) 98%);
  mix-blend-mode: screen;
}
.earth-map-sphere::after {
  background:
    radial-gradient(circle at 30% 22%, rgba(255,255,255,.22), transparent 0 18%, transparent 42%),
    radial-gradient(circle at 72% 74%, rgba(0, 6, 24, .68), transparent 0 60%),
    linear-gradient(90deg, rgba(0, 6, 24, .58), transparent 26% 70%, rgba(0, 4, 18, .64));
}
.landing-page .cosmic-planet-left {
  box-shadow:
    inset -24px -30px 58px rgba(34, 12, 12, .66),
    inset 12px 10px 30px rgba(255,216,164,.16),
    0 0 42px rgba(221, 92, 44, .46);
}
.landing-page .cosmic-planet-right {
  box-shadow:
    inset -24px -32px 62px rgba(50, 36, 18, .62),
    inset 12px 10px 32px rgba(255,255,225,.18),
    0 0 48px rgba(235, 205, 128, .42);
}
.landing-page .cosmic-planet-main::before,
.landing-page .cosmic-planet-left::before,
.landing-page .cosmic-planet-right::before {
  inset: -10%;
  border-radius: 50%;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  opacity: 1;
  transform: scale(1.08) rotate(0deg);
  transform-origin: center;
  animation: planetImageSpin 74s linear infinite;
  will-change: transform;
}
.landing-page .cosmic-planet-main::before {
  display: none;
}
.landing-page .cosmic-planet-left::before {
  background-image: url("/static/img/planets/mars.png");
  animation-duration: 58s;
}
.landing-page .cosmic-planet-right::before {
  background-image: url("/static/img/planets/venus.jpg");
  animation-duration: 82s;
  animation-direction: reverse;
}
.landing-page .cosmic-planet-main::after,
.landing-page .cosmic-planet-left::after,
.landing-page .cosmic-planet-right::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  pointer-events: none;
  background:
    radial-gradient(circle at 30% 24%, rgba(255,255,255,.24), transparent 0 20%, transparent 42%),
    radial-gradient(circle at 74% 74%, rgba(0,0,0,.42), transparent 0 54%);
  background-size: 100% 100%;
  opacity: 1;
  animation: none;
}
.landing-page .cosmic-planet-main::after {
  display: none;
}
@keyframes earthMapSphereSpin {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-50%, 0, 0); }
}
@keyframes planetImageSpin {
  from { transform: scale(1.08) rotate(0deg); }
  to { transform: scale(1.08) rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .earth-map-track {
    animation: none;
  }
}

@media (max-width: 980px) {
  .landing-page .cosmic-planet-main {
    width: 980px;
    height: 980px;
    bottom: -700px;
  }
}

@media (max-width: 560px) {
  .landing-page .cosmic-planet-main {
    width: 760px;
    height: 760px;
    bottom: -560px;
  }
}
