:root {
  --canvas-width: 1440;
  --canvas-height: 900;
  --fit-scale: 1;
  --ink: #f3fbff;
  --muted: rgba(230, 244, 255, 0.66);
  --line: rgba(132, 236, 255, 0.2);
  --green: #43f6b0;
  --cyan: #63fff0;
  --blue: #38a7ff;
  --bg: #02060d;
}

* { box-sizing: border-box; }
html, body { min-height: 100%; background: var(--bg); }
body {
  margin: 0;
  color: var(--ink);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", ui-sans-serif, system-ui, sans-serif;
}
a { color: inherit; text-decoration: none; }
.platform-viewport {
  min-height: 100dvh;
  overflow: hidden;
  background:
    radial-gradient(circle at 78% 14%, rgba(56, 167, 255, 0.2), transparent 32%),
    radial-gradient(circle at 17% 76%, rgba(67, 246, 176, 0.12), transparent 28%),
    linear-gradient(145deg, #02060d, #071528 66%, #02060d);
}
.platform-canvas {
  position: relative;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  width: 100%;
  min-height: 100dvh;
  margin: 0;
  padding: clamp(28px, 3vw, 56px) clamp(32px, 7vw, 140px) clamp(24px, 3vw, 48px);
}
.platform-canvas::before {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  background: linear-gradient(rgba(99,255,240,.028) 1px, transparent 1px), linear-gradient(90deg, rgba(99,255,240,.024) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(90deg, rgba(0,0,0,.7), transparent 75%);
}
.platform-header, .platform-content, .platform-footer { position: relative; z-index: 1; }
.platform-header { display: flex; align-items: center; justify-content: space-between; min-height: 48px; }
.platform-brand { display: inline-flex; align-items: center; gap: 13px; font-size: 22px; font-weight: 780; }
.platform-mark { display: grid; width: 36px; height: 36px; place-items: center; border: 1px solid rgba(99,255,240,.72); border-radius: 8px; color: var(--cyan); background: rgba(99,255,240,.08); }
.back-link { color: rgba(242,251,255,.78); font-size: 15px; font-weight: 650; }
.back-link:hover { color: var(--cyan); }
.platform-content { display: grid; grid-template-columns: minmax(0, 1fr) minmax(460px, 540px); gap: clamp(52px, 7vw, 160px); align-items: center; min-height: 0; }
.platform-copy h1 { margin: 0; font-size: 50px; line-height: 1.18; letter-spacing: -.03em; }
.platform-copy h1::after { display: block; width: 44px; height: 3px; margin-top: 24px; border-radius: 99px; content: ""; background: linear-gradient(90deg, var(--cyan), var(--green)); }
.platform-copy p { max-width: 560px; margin: 27px 0 0; color: var(--muted); font-size: 18px; line-height: 1.8; }
.platform-copy ul { margin: 28px 0 0; padding: 0; list-style: none; color: rgba(235,247,255,.78); font-size: 15px; line-height: 2; }
.platform-copy li::before { margin-right: 10px; color: var(--green); content: "✓"; }
.account-card { width: 100%; max-width: 540px; justify-self: end; border: 1px solid var(--line); border-radius: 16px; padding: 32px; background: linear-gradient(145deg, rgba(17,47,75,.76), rgba(5,16,31,.84)); box-shadow: inset 0 0 40px rgba(99,255,240,.04), 0 28px 90px rgba(0,0,0,.35); backdrop-filter: blur(14px); }
.account-tabs { display: flex; gap: 10px; margin-bottom: 27px; }
.account-tabs button { border: 0; border-radius: 7px; padding: 9px 13px; color: rgba(237,249,255,.66); background: transparent; cursor: pointer; font: inherit; font-size: 14px; font-weight: 680; }
.account-tabs button.is-active { color: #03130d; background: linear-gradient(135deg, #82fff4, #43f6b0); }
.account-card h2 { margin: 0; font-size: 26px; }
.account-card .sub { margin: 10px 0 21px; color: var(--muted); font-size: 14px; line-height: 1.65; }
.field { display: grid; gap: 8px; margin-top: 14px; }
.field label { color: rgba(240,250,255,.82); font-size: 13px; font-weight: 650; }
.field input { width: 100%; height: 46px; border: 1px solid rgba(155,225,255,.25); border-radius: 8px; padding: 0 13px; outline: none; color: #fff; background: rgba(3,12,24,.72); font: inherit; }
.field input:focus { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(99,255,240,.1); }
.code-row { display: grid; grid-template-columns: 1fr 118px; gap: 10px; }
.code-row button, .submit-button { border: 0; border-radius: 8px; cursor: pointer; font: inherit; font-weight: 720; }
.code-row button { color: var(--cyan); background: rgba(99,255,240,.08); border: 1px solid rgba(99,255,240,.28); }
.submit-button { width: 100%; height: 48px; margin-top: 24px; color: #02100c; background: linear-gradient(135deg, #82fff4, #43f6b0); }
.code-row button:disabled, .submit-button:disabled { cursor: not-allowed; opacity: .55; }
.form-note { min-height: 21px; margin: 13px 0 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.form-note.is-error { color: #ff9e9e; }
.account-session { display: none; text-align: center; }
.account-session.is-visible { display: block; }
.account-session .email { margin: 20px 0; color: var(--cyan); font-size: 20px; font-weight: 700; }
.session-actions { display: grid; gap: 10px; }
.session-actions a, .session-actions button { display: grid; height: 48px; place-items: center; border: 1px solid rgba(99,255,240,.32); border-radius: 8px; color: rgba(240,253,255,.92); background: transparent; cursor: pointer; font: inherit; font-weight: 700; }
.session-actions a:first-child { color: #02100c; background: linear-gradient(135deg, #82fff4, #43f6b0); }
.platform-footer { display: flex; flex-wrap: wrap; gap: 9px 21px; color: rgba(232,244,255,.56); font-size: 12px; }
.platform-footer a:hover { color: var(--cyan); }
.legal-content { display: block; min-height: 728px; padding-top: 70px; }
.legal-sheet { width: 980px; margin: 0 auto; border: 1px solid var(--line); border-radius: 16px; padding: 48px 58px; background: rgba(6,20,37,.82); box-shadow: 0 28px 90px rgba(0,0,0,.28); }
.legal-sheet h1 { margin: 0; font-size: 36px; }
.legal-sheet .updated { margin: 12px 0 34px; color: var(--muted); font-size: 13px; }
.legal-sheet h2 { margin: 26px 0 9px; font-size: 18px; }
.legal-sheet p { margin: 0; color: rgba(235,247,255,.78); font-size: 14px; line-height: 1.9; }
.support-content { grid-template-columns: 1fr; min-height: 700px; }
.support-card { width: 780px; max-width: 100%; margin: 0 auto; border: 1px solid var(--line); border-radius: 16px; padding: 42px; background: rgba(6,20,37,.82); }
.support-card h1 { margin: 0; font-size: 38px; }
.support-card p { color: var(--muted); font-size: 16px; line-height: 1.8; }
.support-email { display: block; margin: 28px 0; color: var(--cyan); font-size: 25px; font-weight: 730; }
@media (min-width: 801px) and (max-width: 1100px) {
  .platform-canvas { padding-inline: clamp(28px, 5vw, 56px); }
  .platform-content { grid-template-columns: minmax(0, 1fr) minmax(420px, 480px); gap: 48px; }
}
@media (max-width: 800px) {
  .platform-viewport { overflow: auto; }
  .platform-canvas { display: block; width: 100%; min-height: 100dvh; padding: 28px 22px; }
  .platform-content { grid-template-columns: 1fr; gap: 36px; min-height: auto; padding: 62px 0; }
  .platform-copy h1 { font-size: 38px; }
  .account-card { max-width: 540px; }
  .legal-content { padding-top: 44px; }
  .legal-sheet, .support-card { width: 100%; padding: 28px 22px; }
  .platform-footer { padding-top: 20px; }
}
