:root {
  --bg: #f4f7fb;
  --bg-soft: #eef3fb;
  --panel: rgba(255, 255, 255, 0.94);
  --panel-soft: rgba(248, 250, 255, 0.98);
  --panel-border: rgba(70, 92, 145, 0.12);
  /* Platform dashboard tokens */
  --pl-bg: #f5f6f8;
  --pl-surface: #ffffff;
  --pl-border: #ebedf0;
  --pl-border-strong: #e2e5ea;
  --pl-text: #0e1422;
  --pl-muted: #868f9e;
  --pl-accent: #4a58ff;
  --pl-accent-soft: rgba(74, 88, 255, 0.09);
  --pl-good: #1ec483;
  --pl-warn: #ff4d6d;
  --pl-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --pl-sans: "Hanken Grotesk", "PingFang SC", "Hiragino Sans GB", ui-sans-serif, system-ui, sans-serif;
  --text-primary: #1e2433;
  --text-secondary: rgba(30, 36, 51, 0.72);
  --text-muted: rgba(30, 36, 51, 0.46);
  --accent: #4fc2ff;
  --accent-2: #7c5cff;
  --xhs: #ff4d6d;
  --success: #44e58a;
  --warning: #ffb84d;
  --surface: #ffffff;
  --shadow: 0 18px 42px rgba(66, 95, 145, 0.14);
  --shadow-strong: 0 28px 72px rgba(66, 95, 145, 0.2);
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 26px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(76, 101, 255, 0.12), transparent 24%),
    radial-gradient(circle at bottom right, rgba(255, 87, 118, 0.1), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(238, 243, 251, 0.94)),
    var(--bg);
  color: var(--text-primary);
  font-family:
    "Avenir Next", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
    ui-sans-serif, system-ui, sans-serif;
  line-height: 1.5;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 28px;
  align-items: center;
  min-height: 68px;
  padding: 0 clamp(18px, 4vw, 64px);
  border-bottom: 1px solid rgba(70, 92, 145, 0.08);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(20px);
}

.brand,
.nav-links,
.hero-actions,
.report-topline,
.proof-strip,
.notebook-toolbar,
.site-footer {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  overflow: hidden;
  border-radius: 16px;
  background: transparent;
  box-shadow: 0 16px 30px rgba(86, 84, 255, 0.24);
}

.brand-mark img {
  width: 42px;
  height: 42px;
  display: block;
  object-fit: contain;
}

.nav-links {
  justify-content: center;
  gap: 26px;
  color: var(--text-secondary);
  font-size: 14px;
}

.nav-links a:hover,
.site-footer a:hover {
  color: #0f7ae5;
}

.nav-cta,
.primary-button,
.secondary-button,
.notebook-toolbar button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 750;
}

.nav-cta,
.primary-button {
  background: linear-gradient(135deg, #4a58ff, var(--accent));
  color: #fff;
  box-shadow: 0 14px 26px rgba(74, 88, 255, 0.2);
}

.nav-cta {
  min-height: 38px;
  padding: 0 16px;
  font-size: 14px;
}

.hero-section {
  min-height: calc(100vh - 68px);
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(420px, 1fr);
  gap: clamp(34px, 5vw, 82px);
  align-items: center;
  padding: clamp(54px, 7vw, 92px) clamp(18px, 4vw, 64px) 64px;
  overflow: hidden;
}

.hero-copy {
  max-width: 680px;
}

.eyebrow {
  margin: 0 0 18px;
  color: #0f7ae5;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 24px;
  font-size: clamp(48px, 7vw, 96px);
  line-height: 0.98;
  letter-spacing: 0;
  max-width: 820px;
}

.hero-lede {
  max-width: 620px;
  color: var(--text-secondary);
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.72;
}

.hero-actions {
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 32px;
}

.primary-button,
.secondary-button {
  min-height: 48px;
  padding: 0 22px;
}

.secondary-button {
  border: 1px solid rgba(70, 92, 145, 0.12);
  background: rgba(255, 255, 255, 0.84);
  color: var(--text-secondary);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.55);
}

.report-stage {
  position: relative;
  min-height: 560px;
  border-radius: var(--radius-lg);
}

.report-card {
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-lg);
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.report-main {
  position: relative;
  z-index: 2;
  padding: clamp(20px, 3vw, 34px);
  min-height: 480px;
  overflow: hidden;
}

.report-topline {
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 36px;
  color: var(--text-muted);
  font-size: 13px;
}

.intent-quote {
  position: relative;
  border: 1px solid rgba(70, 92, 145, 0.1);
  border-radius: 22px;
  padding: 22px;
  margin-bottom: 32px;
  background:
    linear-gradient(135deg, rgba(79, 194, 255, 0.1), rgba(124, 92, 255, 0.08)),
    rgba(248, 250, 255, 0.92);
}

.quote-label,
.tiny-label {
  display: block;
  color: #0f7ae5;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.intent-quote p {
  margin: 8px 0 0;
  font-size: clamp(25px, 3.3vw, 42px);
  line-height: 1.16;
  font-weight: 760;
  letter-spacing: 0;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-bottom: 30px;
  background: rgba(70, 92, 145, 0.08);
  border: 1px solid rgba(70, 92, 145, 0.08);
  border-radius: 20px;
  overflow: hidden;
}

.hero-metrics div {
  padding: 18px;
  background: rgba(255, 255, 255, 0.86);
}

.hero-metrics strong {
  display: block;
  margin-bottom: 4px;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1;
}

.hero-metrics span {
  color: var(--text-muted);
  font-size: 13px;
}

.keyword-bars {
  display: grid;
  gap: 14px;
}

.bar-row {
  display: grid;
  grid-template-columns: 110px 1fr 34px;
  gap: 12px;
  align-items: center;
  color: var(--text-secondary);
  font-size: 14px;
}

.bar-row i {
  display: block;
  height: 13px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent-2), var(--accent));
  width: var(--w);
}

.bar-row b {
  color: var(--text-primary);
}

.floating-card {
  position: absolute;
  z-index: 3;
  width: 220px;
  padding: 18px;
  border-radius: var(--radius-md);
}

.floating-card strong {
  display: block;
  margin: 8px 0 6px;
  font-size: 18px;
}

.floating-card p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 13px;
}

.lead-card {
  right: -10px;
  bottom: 36px;
}

.task-card {
  left: -18px;
  top: 54px;
}

.proof-strip {
  margin: 0 clamp(18px, 4vw, 64px);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.74);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.proof-strip div {
  padding: 26px 24px;
  border-right: 1px solid rgba(70, 92, 145, 0.08);
}

.proof-strip div:last-child {
  border-right: 0;
}

.proof-strip strong,
.proof-strip span {
  display: block;
}

.proof-strip span {
  margin-top: 6px;
  color: var(--text-secondary);
  font-size: 14px;
}

.section-block {
  padding: clamp(70px, 10vw, 130px) clamp(18px, 4vw, 64px);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 34px;
}

.section-heading h2,
.download-section h2 {
  margin-bottom: 16px;
  font-size: clamp(36px, 5vw, 72px);
  line-height: 1;
  letter-spacing: 0;
}

.section-heading p:not(.eyebrow),
.download-section p:not(.eyebrow) {
  color: var(--text-secondary);
  font-size: 18px;
  line-height: 1.72;
}

.workflow-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.workflow-grid article {
  min-height: 260px;
  padding: 26px;
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 14px 32px rgba(66, 95, 145, 0.08);
}

.workflow-grid span {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(74, 88, 255, 0.1), rgba(79, 194, 255, 0.16));
  color: #0f7ae5;
  font-size: 13px;
  font-weight: 850;
}

.workflow-grid h3,
.trust-grid h3,
.feature-list h3 {
  margin: 22px 0 10px;
  font-size: 22px;
  letter-spacing: 0;
}

.workflow-grid p,
.trust-grid p,
.feature-list p {
  color: var(--text-secondary);
}

.feature-section {
  background:
    linear-gradient(180deg, rgba(245, 248, 255, 0.4), rgba(255, 255, 255, 0.62));
  color: var(--text-primary);
}

.feature-section .section-heading p:not(.eyebrow),
.feature-list p {
  color: var(--text-secondary);
}

.feature-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(360px, 0.72fr);
  gap: 32px;
  align-items: start;
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.feature-list article {
  min-height: 210px;
  padding: 24px;
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 16px 34px rgba(66, 95, 145, 0.09);
}

.notebook-visual {
  position: sticky;
  top: 92px;
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.94);
  color: var(--text-primary);
  box-shadow: var(--shadow-strong);
  overflow: hidden;
}

.notebook-toolbar {
  justify-content: space-between;
  min-height: 58px;
  padding: 0 18px;
  border-bottom: 1px solid rgba(70, 92, 145, 0.08);
  font-weight: 800;
}

.notebook-toolbar button {
  border: 0;
  min-height: 34px;
  padding: 0 12px;
  background: linear-gradient(135deg, #4a58ff, var(--accent));
  color: white;
}

.table-row {
  display: grid;
  grid-template-columns: 1.2fr 1fr 0.8fr;
  gap: 12px;
  align-items: center;
  min-height: 58px;
  padding: 0 18px;
  border-bottom: 1px solid rgba(70, 92, 145, 0.08);
  font-size: 14px;
}

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

.table-head {
  min-height: 42px;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 800;
  background: rgba(244, 247, 255, 0.9);
}

.hot {
  color: var(--xhs);
  font-weight: 800;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.trust-grid article {
  min-height: 220px;
  padding: 26px;
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 14px 32px rgba(66, 95, 145, 0.08);
}

.download-section {
  margin: 0 clamp(18px, 4vw, 64px) clamp(40px, 6vw, 80px);
  padding: clamp(36px, 6vw, 64px);
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(360px, 1fr);
  gap: 32px;
  align-items: center;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(244, 247, 255, 0.92));
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.download-grid {
  display: grid;
  gap: 12px;
}

.download-grid a {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 18px;
  border: 1px solid rgba(70, 92, 145, 0.1);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.82);
}

.download-grid a:hover {
  border-color: rgba(79, 194, 255, 0.58);
  box-shadow: 0 14px 28px rgba(66, 95, 145, 0.11);
}

.download-grid span {
  color: var(--text-secondary);
}

.site-footer {
  justify-content: space-between;
  min-height: 76px;
  padding: 0 clamp(18px, 4vw, 64px);
  color: var(--text-muted);
  border-top: 1px solid rgba(70, 92, 145, 0.08);
}

@media (max-width: 1080px) {
  .hero-section,
  .feature-layout,
  .download-section {
    grid-template-columns: 1fr;
  }

  .hero-section {
    min-height: auto;
  }

  .report-stage {
    min-height: 520px;
  }

  .workflow-grid,
  .trust-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .workflow-grid article:nth-child(2) {
    border-right: 0;
  }

  .workflow-grid article {
    border-bottom: 1px solid var(--panel-border);
  }
}

@media (max-width: 760px) {
  .site-header {
    grid-template-columns: 1fr auto;
    gap: 12px;
  }

  .nav-links {
    display: none;
  }

  .nav-cta {
    font-size: 13px;
  }

  .hero-section {
    padding-top: 36px;
  }

  .hero-actions,
  .proof-strip,
  .workflow-grid,
  .feature-list,
  .trust-grid,
  .hero-metrics {
    grid-template-columns: 1fr;
  }

  .primary-button,
  .secondary-button {
    width: 100%;
  }

  .report-stage {
    min-height: auto;
  }

  .floating-card {
    position: static;
    width: auto;
    margin-top: 12px;
  }

  .report-main {
    min-height: auto;
  }

  .hero-metrics div,
  .proof-strip div,
  .workflow-grid article {
    border-right: 0;
  }

  .proof-strip div:last-child,
  .workflow-grid article:last-child {
    border-bottom: 0;
  }

  .bar-row {
    grid-template-columns: 88px 1fr 28px;
    font-size: 12px;
  }

  .table-row {
    grid-template-columns: 1fr;
    gap: 4px;
    padding: 14px 18px;
  }

  .download-grid a {
    display: block;
  }

  .download-grid span {
    display: block;
    margin-top: 6px;
  }
}

/* ── Nav Auth Links ── */

.nav-auth {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-auth .nav-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  transition: color 0.2s, background 0.2s;
}

.nav-auth .nav-link:hover {
  color: var(--text-primary);
  background: rgba(70, 92, 145, 0.06);
}

/* ── Logged-in avatar (header) ── */

.nav-avatar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 5px 14px 5px 5px;
  border: 1px solid var(--panel-border);
  border-radius: 999px;
  background: var(--panel);
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
}
.nav-avatar:hover {
  background: rgba(74, 88, 255, 0.06);
  border-color: rgba(74, 88, 255, 0.3);
  transform: translateY(-1px);
}
.nav-avatar-img {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  flex-shrink: 0;
}
.nav-avatar-email {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-primary);
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
@media (max-width: 760px) {
  .nav-avatar-email { display: none; }
  .nav-avatar { padding: 4px; }
}

/* ── Auth Pages ── */

.auth-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 140px);
  padding: 48px 20px;
  gap: 24px;
}

.auth-card {
  width: 100%;
  max-width: 420px;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-md);
  padding: 40px 36px;
  box-shadow: var(--shadow);
}

.auth-card h1 {
  margin: 0 0 6px;
  font-size: 24px;
  font-weight: 800;
}

.auth-subtitle {
  margin: 0 0 28px;
  color: var(--text-muted);
  font-size: 14px;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.auth-form-inline {
  max-width: 420px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-field label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
}

.form-field input {
  padding: 10px 14px;
  border: 1px solid var(--panel-border);
  border-radius: 10px;
  font-size: 15px;
  font-family: inherit;
  background: var(--surface);
  color: var(--text-primary);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-field input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(79, 194, 255, 0.15);
}

.form-message {
  min-height: 20px;
  font-size: 13px;
  line-height: 1.4;
}

.form-message.form-error {
  color: var(--xhs);
}

.form-message.form-success {
  color: var(--success);
}

.form-message.form-warning {
  color: var(--warning);
}

.form-message a {
  color: var(--accent-2);
  text-decoration: underline;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 24px;
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  font-family: inherit;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.15s;
}

.btn-primary:hover {
  opacity: 0.92;
  transform: translateY(-1px);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-full {
  width: 100%;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 22px;
  background: transparent;
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  border: 1px solid var(--panel-border);
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-secondary:hover {
  background: rgba(70, 92, 145, 0.06);
}

.btn-sm {
  padding: 6px 14px;
  font-size: 13px;
}

.btn-danger {
  background: var(--xhs);
  color: #fff;
  border-color: var(--xhs);
}

.btn-danger:hover {
  opacity: 0.9;
}

.auth-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
  font-size: 14px;
  color: var(--text-muted);
}

.auth-links a {
  color: var(--accent-2);
  font-weight: 600;
}

.auth-links a:hover {
  text-decoration: underline;
}

.auth-links .sep {
  color: var(--text-muted);
}

.auth-success-panel {
  text-align: center;
}

.success-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(68, 229, 138, 0.15), rgba(79, 194, 255, 0.1));
  font-size: 28px;
  color: var(--success);
}

.auth-result-card {
  text-align: center;
}

.result-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 32px;
  font-weight: 800;
}

.result-icon-ok {
  background: rgba(68, 229, 138, 0.12);
  color: var(--success);
}

.result-icon-warn {
  background: rgba(255, 184, 77, 0.12);
  color: var(--warning);
}

.result-icon-err {
  background: rgba(255, 77, 109, 0.12);
  color: var(--xhs);
}

.auth-result-card h2 {
  margin: 0 0 8px;
  font-size: 22px;
}

.auth-result-card p {
  margin: 0 0 20px;
  color: var(--text-secondary);
  font-size: 14px;
}

/* ── Platform Page ── */

.platform-page {
  max-width: 720px;
  margin: 0 auto;
  padding: 40px 20px 60px;
}

.platform-page h1 {
  margin: 0 0 32px;
  font-size: 28px;
  font-weight: 800;
}

.platform-section {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-md);
  padding: 28px 28px;
  margin-bottom: 20px;
  box-shadow: var(--shadow);
}

.platform-section h2 {
  margin: 0 0 20px;
  font-size: 18px;
  font-weight: 700;
}

.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.info-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 16px;
  background: var(--panel-soft);
  border-radius: var(--radius-sm);
}

.info-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.info-value {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  word-break: break-all;
}

.stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
}

.stat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 20px 16px;
  background: var(--panel-soft);
  border-radius: var(--radius-sm);
}

.stat-number {
  font-size: 32px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 600;
}

.stat-value {
  font-size: 16px;
  font-weight: 700;
}

.text-success { color: var(--success); }
.text-danger { color: var(--xhs); }
.text-muted { color: var(--text-muted); }

.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
}

.badge-success {
  background: rgba(68, 229, 138, 0.12);
  color: var(--success);
}

.badge-danger {
  background: rgba(255, 77, 109, 0.12);
  color: var(--xhs);
}

.badge-muted {
  background: rgba(70, 92, 145, 0.08);
  color: var(--text-muted);
}

.device-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.device-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: var(--panel-soft);
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  transition: border-color 0.2s;
}

.device-row:hover {
  border-color: var(--panel-border);
}

.device-inactive {
  opacity: 0.55;
}

.device-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.device-name {
  font-size: 14px;
  font-weight: 600;
}

.device-meta {
  font-size: 12px;
  color: var(--text-muted);
}

.device-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ── Purchase Plan ── */

.purchase-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.purchase-header h2 {
  margin: 0;
}

.purchase-hint {
  font-size: 13px;
  font-weight: 600;
}

.purchase-section {
  transition: border-color 0.2s, box-shadow 0.2s;
}

.purchase-urgent {
  border-color: rgba(255, 77, 109, 0.4);
  box-shadow: 0 18px 42px rgba(255, 77, 109, 0.12);
}

.purchase-plan {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px;
  align-items: center;
}

.plan-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.plan-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-secondary);
}

.plan-price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  line-height: 1;
}

.price-amount {
  font-size: 40px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.price-unit {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-muted);
}

.plan-features {
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.plan-features li {
  position: relative;
  padding-left: 20px;
  font-size: 13px;
  color: var(--text-secondary);
}

.plan-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--success);
  font-weight: 700;
}

.plan-pay {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  min-width: 200px;
}

.pay-qr {
  width: 160px;
  height: 160px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--panel-border);
}

.pay-tip {
  margin: 0;
  font-size: 13px;
  color: var(--text-secondary);
}

.pay-tip strong {
  color: var(--xhs);
}

.pay-steps {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.pay-step {
  font-size: 13px;
  color: var(--text-secondary);
  padding: 8px 12px;
  background: var(--panel-soft);
  border-radius: 8px;
  text-align: center;
}

#buy-weekly-btn {
  margin-top: 12px;
  width: 100%;
}

#buy-weekly-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* ── Product Grid (套餐卡片) ── */

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
  padding: 10px 0 4px;
}

.membership-plan {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 550px;
  padding: 30px 24px 24px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), #fff),
    var(--pl-surface);
  border: 1px solid var(--pl-border-strong);
  border-radius: 18px;
  box-shadow: 0 12px 30px rgba(20, 38, 68, 0.06);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}

.membership-plan:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 42px rgba(20, 38, 68, 0.1);
}

.membership-plan--weekly {
  border: 2px solid #f09a34;
  box-shadow: 0 14px 34px rgba(240, 154, 52, 0.1);
}

.membership-plan--yearly.is-featured {
  transform: translateY(-8px);
  border: 2px solid #2296e8;
  box-shadow: 0 20px 42px rgba(34, 150, 232, 0.14);
}

.membership-plan--yearly.is-featured:hover {
  transform: translateY(-11px);
}

.membership-plan-ribbon {
  position: absolute;
  top: 0;
  right: 0;
  padding: 7px 13px;
  border-radius: 0 16px 0 13px;
  background: #167bc9;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.membership-plan--weekly .membership-plan-ribbon {
  background: #ed8b24;
}

.membership-plan-head {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 68px;
}

.membership-plan-head h3 {
  margin: 0;
  color: #111827;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.membership-tier-badge {
  align-self: flex-start;
  padding: 5px 9px;
  border-radius: 999px;
  background: #edf7ff;
  color: #137fc8;
  font-size: 11px;
  font-weight: 800;
}

.membership-plan--weekly .membership-tier-badge {
  background: #fff4e6;
  color: #c66b10;
}

.membership-price-row {
  display: flex;
  align-items: baseline;
  min-height: 62px;
  margin-top: 19px;
  color: #0b1324;
}

.membership-currency {
  margin-right: 2px;
  font-family: var(--pl-mono);
  font-size: 22px;
  font-weight: 750;
}

.membership-price {
  font-family: var(--pl-mono);
  font-size: clamp(36px, 3.4vw, 48px);
  font-weight: 800;
  letter-spacing: -0.06em;
  line-height: 1;
}

.membership-billing {
  margin-left: 7px;
  color: var(--pl-muted);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.membership-original-slot {
  min-height: 24px;
  margin-top: 5px;
}

.plan-original-price {
  color: #9299a6;
  font-family: var(--pl-mono);
  font-size: 12px;
  text-decoration: line-through;
  text-decoration-thickness: 1px;
}

.membership-feature-list {
  display: flex;
  flex-direction: column;
  gap: 11px;
  margin: 20px 0 24px;
  padding: 19px 0 0;
  border-top: 1px solid var(--pl-border);
  list-style: none;
}

.membership-feature-list li {
  position: relative;
  padding-left: 23px;
  color: #3d4656;
  font-size: 12.5px;
  line-height: 1.55;
}

.membership-feature-list li::before {
  content: "✓";
  position: absolute;
  top: 0;
  left: 0;
  color: #17b26a;
  font-size: 14px;
  font-weight: 900;
}

.membership-buy-button {
  width: 100%;
  min-height: 46px;
  margin-top: auto;
  border: 1px solid #59afe8;
  border-radius: 10px;
  background: #fff;
  color: #087dcc;
  font-family: inherit;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease,
    opacity 0.15s ease;
}

.membership-plan--weekly .membership-buy-button {
  border-color: transparent;
  background: linear-gradient(135deg, #ffad49, #ec831c);
  color: #fff;
  box-shadow: 0 10px 22px rgba(236, 131, 28, 0.2);
}

.membership-plan--yearly .membership-buy-button {
  border-color: transparent;
  background: linear-gradient(135deg, #17a3ef, #075ac7 72%, #1734a4);
  color: #fff;
  box-shadow: 0 12px 25px rgba(7, 90, 199, 0.22);
}

.membership-buy-button:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(7, 90, 199, 0.16);
}

.membership-buy-button:disabled {
  cursor: wait;
  opacity: 0.55;
}

body.dialog-open {
  overflow: hidden;
}

.payment-dialog-backdrop {
  position: fixed;
  z-index: 1000;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(10, 18, 34, 0.52);
  backdrop-filter: blur(8px);
  animation: payment-backdrop-in 0.2s ease both;
}

.payment-dialog-backdrop[hidden] {
  display: none;
}

.payment-dialog-panel {
  position: relative;
  width: min(100%, 420px);
  padding: 34px 36px 30px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 22px;
  background:
    radial-gradient(circle at 100% 0, rgba(31, 153, 235, 0.1), transparent 34%),
    #fff;
  box-shadow: 0 32px 90px rgba(7, 21, 48, 0.28);
  text-align: center;
  animation: payment-panel-in 0.25s ease both;
}

.payment-dialog-close {
  position: absolute;
  top: 14px;
  right: 15px;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #f0f3f7;
  color: #647083;
  font-family: inherit;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.payment-dialog-eyebrow {
  color: #168bd6;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.16em;
}

.payment-dialog-panel h2 {
  margin: 8px 0 5px;
  color: #101828;
  font-size: 25px;
  letter-spacing: -0.03em;
}

.payment-dialog-plan {
  margin: 0 0 19px;
  color: #667085;
  font-family: var(--pl-mono);
  font-size: 13px;
}

.payment-dialog-qr-wrap {
  display: inline-grid;
  place-items: center;
  padding: 11px;
  border: 1px solid #e1e8f0;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 9px 28px rgba(35, 64, 104, 0.1);
}

.payment-dialog-qr-wrap .pay-qr {
  display: block;
  width: 196px;
  height: 196px;
  border: 0;
  border-radius: 8px;
}

.payment-dialog-panel .pay-tip {
  margin: 17px 0 6px;
  color: #344054;
  font-size: 14px;
}

.payment-dialog-panel .pay-tip strong {
  color: #087dcc;
  font-family: var(--pl-mono);
}

.payment-dialog-status {
  min-height: 22px;
  margin: 0;
  color: #8a93a2;
  font-size: 12px;
}

.payment-dialog-status.is-success {
  color: #0b9d69;
  font-weight: 700;
}

.payment-dialog-status.is-warning {
  color: #c47712;
}

@keyframes payment-backdrop-in {
  from { opacity: 0; }
}

@keyframes payment-panel-in {
  from { opacity: 0; transform: translateY(10px) scale(0.98); }
}

/* ── Invite Card ── */

.invite-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.invite-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.invite-code {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.15em;
  color: var(--accent-2);
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
}

.invite-link-box {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.invite-link-input {
  padding: 9px 12px;
  border: 1px solid var(--panel-border);
  border-radius: 8px;
  font-size: 12px;
  font-family: ui-monospace, Menlo, monospace;
  color: var(--text-secondary);
  background: var(--surface);
}

.invite-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
}

.pay-note {
  margin: 8px 0 0;
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.5;
}

@media (max-width: 760px) {
  .nav-auth .nav-link {
    display: none;
  }

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

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

  .device-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .purchase-plan {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .plan-pay {
    min-width: 0;
  }

  .auth-card {
    padding: 28px 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* ────────────────────────────────────────────────────────────
   Platform Dashboard (DeepSeek-style sidebar + content)
   ──────────────────────────────────────────────────────────── */

body.pl-body {
  margin: 0;
  background: var(--pl-bg);
  color: var(--pl-text);
  font-family: var(--pl-sans);
  font-feature-settings: "ss01", "cv01";
  -webkit-font-smoothing: antialiased;
}

.pl-shell {
  display: grid;
  grid-template-columns: 248px 1fr;
  min-height: 100vh;
}

/* Sidebar */
.pl-sidebar {
  position: sticky;
  top: 0;
  align-self: start;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 22px 16px;
  border-right: 1px solid var(--pl-border);
  background: var(--pl-surface);
}

.pl-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 8px 18px;
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.01em;
}
.pl-brand-mark { width: 28px; height: 28px; display: grid; place-items: center; }
.pl-brand-mark img { width: 26px; height: 26px; }

.pl-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.pl-nav-item {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  padding: 10px 12px;
  border: none;
  background: transparent;
  color: var(--pl-text);
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 500;
  border-radius: 9px;
  cursor: pointer;
  text-align: left;
  position: relative;
  transition: background 0.15s, color 0.15s;
}
.pl-nav-ico {
  width: 19px;
  height: 19px;
  flex-shrink: 0;
  color: var(--pl-muted);
  stroke: currentColor;
  transition: color 0.15s;
}
.pl-nav-item:hover { background: var(--pl-bg); }
.pl-nav-item.is-active {
  background: var(--pl-accent-soft);
  color: var(--pl-accent);
  font-weight: 600;
}
.pl-nav-item.is-active .pl-nav-ico { color: var(--pl-accent); }
.pl-nav-item.is-active::before {
  content: "";
  position: absolute;
  left: -16px;
  top: 8px;
  bottom: 8px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: var(--pl-accent);
}

.pl-side-foot {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 16px;
}

.pl-status-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px;
  border: 1px solid var(--pl-border);
  border-radius: 12px;
  background: linear-gradient(180deg, #fbfcfe, #f5f6fb);
}
.pl-status-row { display: flex; align-items: center; gap: 8px; }
.pl-status-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--pl-muted);
}
.pl-status-dot.is-on { background: var(--pl-good); box-shadow: 0 0 0 3px rgba(30,196,131,0.15); }
.pl-status-dot.is-off { background: var(--pl-warn); box-shadow: 0 0 0 3px rgba(255,77,109,0.15); }
.pl-status-label { font-size: 12.5px; color: var(--pl-muted); }
.pl-status-value {
  font-family: var(--pl-mono);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.pl-link-btn {
  border: none;
  background: none;
  padding: 0;
  color: var(--pl-accent);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
}
.pl-link-btn:hover { text-decoration: underline; }

.pl-logout {
  width: 100%;
  padding: 10px;
  border: 1px solid var(--pl-border-strong);
  background: var(--pl-surface);
  color: var(--pl-muted);
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 500;
  border-radius: 9px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.pl-logout:hover { background: var(--pl-bg); color: var(--pl-text); }

/* Main */
.pl-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.pl-topbar {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 40px;
  background: rgba(245, 246, 248, 0.86);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--pl-border);
}
.pl-view-title {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.pl-topbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
}
.pl-user-email {
  font-size: 13.5px;
  color: var(--pl-muted);
  font-family: var(--pl-mono);
}
.pl-chip {
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  border: 1px solid var(--pl-border-strong);
}
.pl-chip.is-on { color: #0a8f5e; background: rgba(30,196,131,0.1); border-color: transparent; }
.pl-chip.is-off { color: var(--pl-warn); background: rgba(255,77,109,0.1); border-color: transparent; }

.pl-content {
  padding: 32px 40px 64px;
  max-width: 980px;
}

/* Views */
.pl-view { display: none; flex-direction: column; gap: 20px; animation: pl-fade 0.3s ease; }
.pl-view.is-active { display: flex; }
@keyframes pl-fade {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Metric row (hero numbers) */
.pl-cards-row {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 16px;
}
.pl-metric {
  padding: 20px;
  background: var(--pl-surface);
  border: 1px solid var(--pl-border);
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.pl-metric--hero {
  background: linear-gradient(135deg, var(--pl-accent), #6f7bff);
  border-color: transparent;
  color: #fff;
}
.pl-metric-label {
  font-size: 12.5px;
  color: var(--pl-muted);
  font-weight: 500;
}
.pl-metric--hero .pl-metric-label { color: rgba(255,255,255,0.78); }
.pl-metric-value {
  font-family: var(--pl-mono);
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.pl-metric-value-sm {
  font-size: 18px;
  font-weight: 600;
}
.pl-metric-foot {
  font-size: 12.5px;
  color: var(--pl-muted);
  margin-top: 2px;
}
.pl-metric--hero .pl-metric-foot { color: rgba(255,255,255,0.7); }

/* Cards */
.pl-card {
  background: var(--pl-surface);
  border: 1px solid var(--pl-border);
  border-radius: 14px;
  padding: 22px 24px;
}
.pl-card-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.pl-card-title {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.pl-card-sub {
  font-size: 12.5px;
  color: var(--pl-muted);
}

/* KV list */
.pl-kv { margin: 0; display: flex; flex-direction: column; }
.pl-kv-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 13px 0;
  border-bottom: 1px solid var(--pl-border);
}
.pl-kv-row:last-child { border-bottom: none; }
.pl-kv-row dt {
  font-size: 13.5px;
  color: var(--pl-muted);
  font-weight: 500;
}
.pl-kv-row dd {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  text-align: right;
}

/* Stats */
.pl-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.pl-stat-grid--lg .pl-stat-num { font-size: 32px; }
.pl-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 18px;
  background: var(--pl-bg);
  border-radius: 11px;
}
.pl-stat-num {
  font-family: var(--pl-mono);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--pl-text);
}
.pl-stat-label {
  font-size: 12.5px;
  color: var(--pl-muted);
  font-weight: 500;
}

/* Real labeled chart */
.pl-chart {
  margin: 24px 0 4px;
  border-top: 1px solid var(--pl-border);
  padding-top: 20px;
}
.pl-chart-meta {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.pl-chart-meta-left {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
/* Granularity toggle (日/周/月) */
.pl-granularity {
  display: inline-flex;
  border: 1px solid var(--pl-border-strong);
  border-radius: 8px;
  overflow: hidden;
  background: var(--pl-bg);
}
.pl-gran-btn {
  padding: 5px 14px;
  border: none;
  background: transparent;
  color: var(--pl-muted);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.pl-gran-btn:hover { color: var(--pl-text); }
.pl-gran-btn.is-active {
  background: var(--pl-accent);
  color: #fff;
}
.pl-gran-btn + .pl-gran-btn { border-left: 1px solid var(--pl-border-strong); }
.pl-chart-cap {
  font-size: 14px;
  font-weight: 600;
  color: var(--pl-text);
}
.pl-chart-axes {
  font-size: 12px;
  color: var(--pl-muted);
}
.pl-chart-wrap {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 8px;
}
/* Y axis */
.pl-chart-y {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-end;
  height: 200px;
  padding-bottom: 22px;
}
.pl-yval {
  font-family: var(--pl-mono);
  font-size: 11px;
  color: var(--pl-muted);
  line-height: 1;
}
/* Plot area */
.pl-chart-plot {
  display: flex;
  flex-direction: column;
}
.pl-chart-grid {
  position: relative;
  height: 200px;
  border-bottom: 1px solid var(--pl-border-strong);
}
.pl-gridline {
  position: absolute;
  left: 0; right: 0;
  border-top: 1px dashed var(--pl-border);
  pointer-events: none;
}
.pl-gridline:nth-child(1) { top: 0; }
.pl-gridline:nth-child(2) { top: 33%; }
.pl-gridline:nth-child(3) { top: 66%; }
.pl-gridline:nth-child(4) { top: 100%; border-top-style: solid; border-color: var(--pl-border-strong); }
.pl-chart-bars {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 4px;
  padding: 0 2px;
}
.pl-bar {
  flex: 1;
  min-width: 0;
  background: linear-gradient(180deg, var(--pl-accent), rgba(74, 88, 255, 0.55));
  border-radius: 4px 4px 0 0;
  position: relative;
  animation: pl-grow 0.6s ease backwards;
  transition: opacity 0.15s;
}
.pl-bar:hover { opacity: 0.82; }
.pl-bar.is-zero { background: var(--pl-border); height: 2px !important; }
.pl-bar-val {
  position: absolute;
  top: -18px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--pl-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--pl-text);
  white-space: nowrap;
}
@keyframes pl-grow { from { height: 0 !important; opacity: 0; } }
/* X axis labels */
.pl-chart-xlabels {
  display: flex;
  justify-content: space-between;
  gap: 4px;
  padding: 8px 2px 0;
}
.pl-xlab {
  flex: 1;
  min-width: 0;
  text-align: center;
  font-size: 11px;
  color: var(--pl-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

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

.consent-row {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #111827;
  font-size: 15px;
  line-height: 1.6;
}

.consent-row input {
  width: 18px;
  height: 18px;
  margin: 0;
  flex: 0 0 auto;
  accent-color: #1677ff;
}

.consent-prefix {
  color: #8a8f98;
}

.consent-row a {
  color: #111827;
  font-weight: 500;
  text-decoration: none;
}

.consent-row a:hover {
  text-decoration: underline;
}

.legal-document-body {
  background: #fff;
  color: #1f2329;
}

.legal-document-page {
  max-width: 920px;
  margin: 0 auto;
  padding: 72px 24px 120px;
}

.legal-document {
  max-width: 760px;
  margin: 0 auto;
}

.legal-document h1 {
  margin: 0 0 18px;
  color: #111827;
  font-size: 32px;
  font-weight: 700;
  line-height: 1.35;
}

.legal-document h2 {
  margin: 34px 0 14px;
  color: #111827;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.6;
}

.legal-document p,
.legal-document li {
  margin: 0 0 16px;
  color: #252b36;
  font-size: 15px;
  line-height: 2;
}

.legal-meta {
  margin: 0 0 34px;
  color: #6b7280;
  font-size: 14px;
  line-height: 1.9;
}

/* Purchase view header */
.pl-purchase-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 4px;
  flex-wrap: wrap;
}

/* Responsive */
@media (max-width: 960px) {
  .pl-shell { grid-template-columns: 1fr; }
  .pl-sidebar {
    position: relative;
    height: auto;
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    padding: 12px 16px;
  }
  .pl-nav { flex-direction: row; flex-wrap: wrap; gap: 4px; }
  .pl-nav-item { width: auto; padding: 8px 12px; font-size: 13.5px; }
  .pl-nav-item.is-active::before { display: none; }
  .pl-side-foot { margin-top: 0; flex-direction: row; align-items: center; margin-left: auto; padding-top: 0; }
  .pl-status-card { display: none; }
  .pl-topbar { padding: 14px 18px; }
  .pl-content { padding: 20px 18px 48px; }
  .pl-cards-row { grid-template-columns: 1fr; }
  .pl-user-email { display: none; }
}

@media (max-width: 760px) {
  .product-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .membership-plan,
  .membership-plan--yearly.is-featured {
    min-height: auto;
    transform: none;
  }

  .membership-plan--yearly.is-featured:hover {
    transform: translateY(-3px);
  }

  .membership-feature-list {
    margin-bottom: 22px;
  }

  .payment-dialog-panel {
    padding: 31px 22px 26px;
  }

  .payment-dialog-qr-wrap .pay-qr {
    width: 180px;
    height: 180px;
  }
}
