:root {
  --bg: #f8fbfc;
  --bg-accent: rgba(192, 243, 235, 0.42);
  --grid: rgba(123, 146, 170, 0.08);
  --text: #111a2e;
  --muted: #5d677d;
  --line: #dbe8ee;
  --panel: rgba(255, 255, 255, 0.92);
  --teal-soft: #dff8f3;
  --shadow: 0 10px 30px rgba(27, 63, 82, 0.08);
  --radius: 22px;
  --chip: #ffffff;
  --chip-border: rgba(199, 211, 226, 0.72);
  --chip-shadow: 0 12px 30px rgba(54, 79, 110, 0.08);
  --primary: #18b7a2;
  --primary-deep: #109785;
  --terminal: #182235;
  --terminal-top: #212b41;
  --terminal-text: #dce7ff;
  --terminal-dim: #6d7895;
  --terminal-green: #27d17f;
  --terminal-yellow: #ffc83d;
}

[data-theme="dark"] {
  --bg: #0f1728;
  --bg-accent: rgba(39, 138, 132, 0.2);
  --grid: rgba(88, 112, 153, 0.14);
  --text: #eef4ff;
  --muted: #93a4c0;
  --chip: rgba(20, 31, 50, 0.9);
  --chip-border: rgba(78, 98, 132, 0.34);
  --chip-shadow: 0 16px 36px rgba(1, 5, 14, 0.28);
  --terminal: #131d31;
  --terminal-top: #1a253c;
  --terminal-text: #dce6ff;
  --terminal-dim: #7280a1;
  --terminal-green: #2ad487;
  --terminal-yellow: #ffd053;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  font-family: "SF Pro Display", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px),
    radial-gradient(circle at 50% 45%, var(--bg-accent), transparent 33%),
    radial-gradient(circle at 0% 100%, rgba(187, 245, 237, 0.36), transparent 24%),
    radial-gradient(circle at 100% 0%, rgba(190, 238, 234, 0.38), transparent 22%),
    var(--bg);
  background-size: 32px 32px, 32px 32px, auto, auto, auto, auto;
  transition: background-color 220ms ease, color 220ms ease;
}

button {
  font: inherit;
}

.page-shell {
  min-height: 100vh;
  padding: 18px 0 40px;
}

.auth-page-shell {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.topbar,
.hero,
.auth-view {
  padding-left: 28px;
  padding-right: 28px;
}

.topbar {
  width: 100%;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 24px;
}

.topbar.home-topbar {
  background: transparent;
  border: none;
  box-shadow: none;
  backdrop-filter: none;
}

.brand-badge,
.icon-action,
.login-chip,
.cta-button {
  border: 1px solid var(--chip-border);
  box-shadow: var(--chip-shadow);
}

.brand-badge {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 15px;
  background: var(--chip);
  text-decoration: none;
}

.brand-mark {
  color: #93a3bb;
  font-size: 21px;
  font-weight: 700;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.lang-dropdown {
  position: relative;
}

.icon-action,
.login-chip {
  height: 38px;
  border-radius: 999px;
  background: var(--chip);
  color: var(--text);
  cursor: pointer;
}

.icon-action {
  min-width: 38px;
  padding: 0 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.lang-switch {
  min-width: 82px;
}

.flag,
.chevron {
  font-size: 13px;
}

.chevron {
  color: #9aa5bb;
  transition: transform 180ms ease;
}

.lang-switch[aria-expanded="true"] .chevron {
  transform: rotate(180deg);
}

.lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: 128px;
  padding: 8px 0;
  border: 1px solid rgba(212, 220, 234, 0.95);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 14px 30px rgba(42, 58, 82, 0.14);
  backdrop-filter: blur(14px);
}

[data-theme="dark"] .brand-mark,
[data-theme="dark"] .icon-action,
[data-theme="dark"] .terminal-title {
  color: #bfcee8;
}

[data-theme="dark"] .lang-menu {
  border-color: rgba(75, 92, 124, 0.78);
  background: rgba(20, 31, 50, 0.96);
  box-shadow: 0 18px 34px rgba(2, 6, 16, 0.4);
}

.lang-option {
  width: 100%;
  height: 40px;
  padding: 0 14px;
  border: none;
  background: transparent;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #465066;
  cursor: pointer;
  text-align: left;
}

.lang-option.active {
  background: rgba(40, 214, 192, 0.12);
  color: #0d8578;
}

[data-theme="dark"] .lang-option {
  color: #c4d1e8;
}

[data-theme="dark"] .lang-option.active {
  background: rgba(40, 214, 192, 0.14);
  color: #7ce3d7;
}

.lang-option-check {
  margin-left: auto;
  color: #1eb7a4;
  opacity: 0;
}

.lang-option.active .lang-option-check {
  opacity: 1;
}

.login-chip {
  padding: 0 18px;
  border: none;
  background: #152038;
  color: #fff;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

[data-theme="dark"] .login-chip {
  background: #24324b;
  color: #ffffff;
}

[data-theme="dark"] .auth-logo,
[data-theme="dark"] .auth-card,
[data-theme="dark"] .input-shell {
  background: rgba(20, 31, 50, 0.9);
  border-color: rgba(70, 91, 125, 0.5);
}

[data-theme="dark"] .auth-card {
  box-shadow: 0 24px 54px rgba(2, 7, 18, 0.34);
}

[data-theme="dark"] .auth-brand h1 {
  color: #35d0c0;
}

[data-theme="dark"] .auth-field {
  color: #d7e2f7;
}

[data-theme="dark"] .input-shell.active {
  border-color: #2cc8b5;
  box-shadow: 0 0 0 3px rgba(44, 200, 181, 0.12);
}

[data-theme="dark"] .input-shell input {
  color: #eef4ff;
}

[data-theme="dark"] .field-hint {
  color: #8798b6;
}

[data-theme="dark"] .input-shell input::placeholder,
[data-theme="dark"] .input-icon,
[data-theme="dark"] .input-toggle,
[data-theme="dark"] .auth-footer {
  color: #8798b6;
}

.hero {
  max-width: 1180px;
  min-height: calc(100vh - 96px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(520px, 1fr) minmax(360px, 430px);
  align-items: center;
  gap: 56px;
  padding: 36px 0 24px;
}

.hero-copy {
  max-width: 700px;
  padding-left: 176px;
  transform: translateY(26px);
}

.eyebrow {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.04em;
}

.hero-copy h1 {
  margin: 0;
  font-size: clamp(66px, 7vw, 78px);
  line-height: 0.9;
  letter-spacing: -0.065em;
  white-space: nowrap;
}

.hero-text {
  margin: 22px 0 0;
  color: var(--muted);
  font-size: clamp(30px, 2.7vw, 38px);
  line-height: 1.3;
}

.hero-actions {
  margin-top: 42px;
}

.cta-button {
  min-width: 182px;
  height: 48px;
  padding: 0 24px;
  border: none;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-deep));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  cursor: pointer;
  font-size: 22px;
  font-weight: 600;
}

.cta-arrow {
  font-size: 26px;
  line-height: 1;
  transform: translateY(-1px);
}

.terminal-card {
  width: 420px;
  border-radius: 16px;
  overflow: hidden;
  background: var(--terminal);
  box-shadow: 0 18px 38px rgba(18, 28, 50, 0.18);
  justify-self: end;
  transform: translate(8px, 34px);
}

.auth-view {
  min-height: calc(100vh - 96px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 24px 16px 34px;
}

.auth-page-rework {
  position: relative;
  overflow: hidden;
}

.auth-page-rework::before,
.auth-page-rework::after {
  content: "";
  position: fixed;
  inset: auto;
  pointer-events: none;
  z-index: 0;
}

.auth-page-rework::before {
  top: 72px;
  left: 7vw;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(33, 201, 174, 0.2) 0%, rgba(33, 201, 174, 0.04) 48%, transparent 72%);
  filter: blur(8px);
}

.auth-page-rework::after {
  right: 6vw;
  bottom: 54px;
  width: 440px;
  height: 440px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(23, 145, 181, 0.14) 0%, rgba(23, 145, 181, 0.04) 44%, transparent 74%);
  filter: blur(14px);
}

.auth-page-rework .auth-view.login-split {
  position: relative;
  z-index: 1;
  width: min(100%, 920px);
  min-height: calc(100vh - 40px);
  grid-template-columns: minmax(0, 1fr);
  align-content: center;
  align-items: center;
  justify-items: center;
  gap: 18px;
  margin: 0 auto;
  padding: 12px 20px;
}

.auth-page-rework .auth-brand {
  grid-column: auto;
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(100%, 520px);
  align-items: stretch;
  justify-content: center;
  gap: 14px;
  min-height: auto;
  padding: 0;
  text-align: left;
}

.auth-page-rework .auth-card-rework {
  grid-column: auto;
}

.auth-page-rework .auth-register,
.auth-page-rework .auth-footer {
  grid-column: auto;
  justify-self: center;
  width: min(100%, 520px);
}

.auth-brand-copy {
  display: grid;
  gap: 10px;
  width: 100%;
  justify-items: start;
}

.auth-brand-label {
  display: inline-flex;
  width: fit-content;
  padding: 6px 11px;
  border-radius: 999px;
  border: 1px solid rgba(41, 193, 170, 0.18);
  background: rgba(255, 255, 255, 0.72);
  color: #127d78;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  box-shadow: 0 14px 26px rgba(35, 81, 96, 0.08);
  backdrop-filter: blur(12px);
  margin: 0;
}

.auth-page-rework .auth-brand h1 {
  margin: 0;
  width: 100%;
  font-size: clamp(30px, 3.2vw, 34px);
  line-height: 1.1;
  letter-spacing: -0.06em;
  text-align: left;
}

.auth-page-rework .auth-brand-copy > p {
  width: 100%;
  max-width: none;
  font-size: 14px;
  color: #60718a;
  text-align: left;
}

.auth-brand-orbit {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;
  width: 100%;
  min-height: 0;
  margin: 4px 0 0;
}

.orbit-chip {
  position: static;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 112px;
  height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(212, 232, 238, 0.9);
  background: rgba(255, 255, 255, 0.74);
  color: #33526b;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  box-shadow: 0 18px 30px rgba(52, 87, 109, 0.09);
  backdrop-filter: blur(12px);
}

.orbit-chip-a {
  left: 0;
  top: 0;
}

.orbit-chip-b {
  left: 140px;
  top: 0;
}

.orbit-chip-c {
  left: 292px;
  top: 0;
}

.auth-page-rework .auth-brand-panel {
  position: relative;
  width: min(100%, 560px);
  margin-top: 6px;
  padding: 6px 0 0 28px;
  border: none;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.auth-page-rework .auth-brand-panel::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 28px;
  width: 2px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(31, 200, 178, 0.96), rgba(31, 200, 178, 0.16) 72%, transparent);
}

.auth-page-rework .auth-brand-panel::after {
  content: "";
  position: absolute;
  left: -7px;
  top: 10px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(31, 200, 178, 0.9) 0%, rgba(31, 200, 178, 0.22) 44%, rgba(31, 200, 178, 0) 72%);
}

.auth-page-rework .auth-brand-panel h2 {
  font-size: clamp(28px, 3vw, 36px);
  line-height: 1.05;
  max-width: 520px;
}

.auth-page-rework .auth-brand-panel > p {
  max-width: 500px;
  margin-top: 16px;
  color: #60718a;
  font-size: 15px;
  line-height: 1.8;
}

.auth-brand-grid {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  align-items: start;
}

.brand-metric {
  min-height: 118px;
  padding: 18px 20px;
  border-radius: 22px;
  border: 1px solid rgba(214, 228, 239, 0.92);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.76), rgba(244, 251, 255, 0.44));
  box-shadow:
    0 18px 34px rgba(50, 82, 106, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(12px);
}

.brand-metric:last-child {
  transform: translateY(18px);
}

.brand-metric-value {
  display: inline-flex;
  margin-bottom: 12px;
  color: #163049;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.brand-metric p {
  margin: 0;
  color: #6f8195;
  font-size: 13px;
  line-height: 1.7;
}

.auth-card-rework {
  position: relative;
  width: min(100%, 520px);
  padding: 18px;
  border-radius: 30px;
  border: 1px solid rgba(210, 226, 235, 0.96);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(248, 252, 255, 0.9));
  box-shadow:
    0 36px 80px rgba(31, 61, 88, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.auth-card-rework::before {
  content: "";
  position: absolute;
  inset: 14px;
  border-radius: 26px;
  background:
    linear-gradient(160deg, rgba(246, 252, 255, 0.82), rgba(255, 255, 255, 0.62));
  border: 1px solid rgba(235, 241, 247, 0.92);
  pointer-events: none;
}

.auth-card-rework > * {
  position: relative;
  z-index: 1;
}

.code-login-section {
  display: grid;
  gap: 14px;
}

.code-login-status {
  margin: 4px 0 0;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(240, 186, 186, 0.72);
  background: linear-gradient(180deg, rgba(255, 244, 244, 0.96), rgba(255, 249, 249, 0.96));
  color: #cb4f4f;
  font-size: 13px;
  line-height: 1.55;
}

.auth-page-rework .auth-form {
  gap: 16px;
  padding: 18px 18px 16px;
}

.auth-page-rework .auth-field {
  gap: 8px;
  font-size: 13px;
  color: #374151;
  font-weight: 500;
}

.auth-page-rework .input-shell {
  height: 42px;
  gap: 10px;
  padding: 0 16px;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  box-shadow: none;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.auth-page-rework .input-shell-strong {
  border-color: #e5e7eb;
  background: #ffffff;
}

.auth-page-rework .input-shell:focus-within,
.auth-page-rework .input-shell.active {
  border-color: #14b8a6;
  box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.12);
}

.auth-page-rework .input-icon {
  width: 20px;
  height: 20px;
  border-radius: 0;
  background: transparent;
  color: #9ca3af;
  font-size: 14px;
  font-weight: 500;
}

.auth-page-rework .input-toggle {
  height: 28px;
  padding: 0 8px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: #9ca3af;
  font-size: 14px;
  font-weight: 500;
}

.auth-page-rework .code-action {
  min-width: 76px;
}

.auth-page-rework .field-hint {
  font-size: 14px;
  line-height: 1.55;
}

.auth-page-rework .auth-agreement {
  margin-top: 2px;
}

.auth-page-rework .auth-blocker {
  min-height: 20px;
  margin: 4px 0 0;
  font-size: 13px;
}

.auth-page-rework .auth-submit {
  height: 54px;
  margin-top: 0;
  border-radius: 18px;
  font-size: 14px;
  font-weight: 800;
  background: linear-gradient(135deg, #1fc8b2, #119986);
  box-shadow: 0 22px 34px rgba(22, 177, 158, 0.24);
}

.auth-page-rework .auth-submit:not(:disabled):hover {
  filter: brightness(1.02);
  transform: translateY(-1px);
}

.auth-page-rework .auth-register,
.auth-page-rework .auth-footer {
  position: relative;
  z-index: 1;
}

.auth-page-rework .auth-register {
  font-size: 14px;
}

.auth-page-rework .auth-footer {
  font-size: 12px;
}

.auth-page-rework .auth-card h2 {
  font-size: 24px;
  line-height: 1.2;
}

.auth-page-rework .input-shell input {
  font-size: 14px;
  color: #111827;
}

.auth-page-rework .input-shell input::placeholder {
  font-size: 14px;
  color: #9ca3af;
}

.auth-page-rework .auth-agreement {
  font-size: 13px;
  line-height: 1.54;
}

[data-theme="dark"] .auth-page-rework::before {
  background: radial-gradient(circle, rgba(31, 196, 170, 0.16) 0%, rgba(31, 196, 170, 0.05) 46%, transparent 72%);
}

[data-theme="dark"] .auth-page-rework::after {
  background: radial-gradient(circle, rgba(29, 132, 170, 0.18) 0%, rgba(29, 132, 170, 0.05) 44%, transparent 74%);
}

[data-theme="dark"] .auth-brand-label,
[data-theme="dark"] .orbit-chip,
[data-theme="dark"] .brand-metric {
  background: rgba(18, 28, 47, 0.74);
  border-color: rgba(73, 93, 127, 0.48);
  color: #c7d7ee;
}

[data-theme="dark"] .auth-page-rework .auth-brand-copy > p,
[data-theme="dark"] .auth-page-rework .auth-brand-panel > p,
[data-theme="dark"] .brand-metric p {
  color: #8ea3c1;
}

[data-theme="dark"] .auth-page-rework .auth-brand-panel,
[data-theme="dark"] .auth-card-rework {
  background: linear-gradient(180deg, rgba(18, 28, 47, 0.9), rgba(15, 23, 39, 0.84));
  border-color: rgba(68, 87, 117, 0.54);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.34);
}

[data-theme="dark"] .auth-page-rework .auth-brand-panel {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}

[data-theme="dark"] .auth-page-rework .auth-brand-panel::before {
  background: linear-gradient(180deg, rgba(78, 223, 205, 0.98), rgba(78, 223, 205, 0.16) 72%, transparent);
}

[data-theme="dark"] .auth-page-rework .auth-brand-panel::after {
  background: radial-gradient(circle, rgba(78, 223, 205, 0.92) 0%, rgba(78, 223, 205, 0.24) 44%, rgba(78, 223, 205, 0) 72%);
}

[data-theme="dark"] .auth-card-rework::before {
  background: linear-gradient(180deg, rgba(24, 35, 57, 0.82), rgba(18, 26, 42, 0.62));
  border-color: rgba(56, 73, 101, 0.6);
}

[data-theme="dark"] .auth-page-rework .input-shell {
  background: rgba(30, 41, 59, 0.7);
  border-color: rgba(71, 85, 105, 0.9);
  box-shadow: none;
}

[data-theme="dark"] .auth-page-rework .input-icon {
  background: transparent;
  color: #94a3b8;
}

[data-theme="dark"] .auth-page-rework .input-toggle {
  background: transparent;
  border-color: transparent;
  color: #94a3b8;
}

[data-theme="dark"] .auth-agreement {
  border-color: rgba(67, 85, 115, 0.64);
  background: linear-gradient(180deg, rgba(22, 33, 52, 0.9), rgba(18, 28, 45, 0.94));
  color: #95a8c8;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

[data-theme="dark"] .auth-agreement input {
  border-color: rgba(120, 139, 170, 0.92);
  background: linear-gradient(180deg, rgba(27, 39, 61, 0.98), rgba(18, 29, 47, 0.98));
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

[data-theme="dark"] .auth-agreement input:hover {
  border-color: #98accd;
}

[data-theme="dark"] .code-login-status {
  border-color: rgba(202, 116, 116, 0.4);
  background: linear-gradient(180deg, rgba(70, 26, 30, 0.58), rgba(54, 20, 24, 0.48));
  color: #ff9d9d;
}

@media (max-width: 960px) {
  .auth-page-shell {
    display: block;
    padding: 18px 0 32px;
  }

  .auth-page-rework .auth-view.login-split {
    width: min(100%, 680px);
    min-height: auto;
    gap: 22px;
    padding-top: 24px;
  }

  .auth-page-rework .auth-brand {
    width: min(100%, 520px);
    align-items: center;
    text-align: center;
    padding-top: 4px;
  }

  .auth-page-rework .auth-logo {
    align-self: center;
  }

  .auth-brand-copy {
    justify-items: center;
  }

  .auth-brand-label {
    margin: 0 auto;
  }

  .auth-brand-orbit {
    width: min(100%, 430px);
    min-height: 0;
    justify-content: center;
  }

  .orbit-chip-a {
    left: 8px;
    top: 0;
  }

  .orbit-chip-b {
    left: 146px;
    top: 0;
  }

  .orbit-chip-c {
    left: 294px;
    top: 0;
    right: auto;
  }
}

@media (max-width: 640px) {
  .auth-page-rework .auth-view.login-split {
    min-height: auto;
    gap: 18px;
    padding: 18px 10px 24px;
  }

  .auth-page-rework .auth-brand {
    gap: 12px;
    padding: 0;
  }

  .auth-page-rework .auth-brand h1 {
    font-size: 30px;
  }

  .auth-brand-orbit {
    min-height: 0;
    width: 100%;
    justify-content: center;
  }

  .orbit-chip {
    min-width: 0;
    width: auto;
    font-size: 11px;
  }

  .orbit-chip-a {
    left: 0;
    top: 0;
  }

  .orbit-chip-b {
    left: 86px;
    top: 32px;
  }

  .orbit-chip-c {
    left: 32px;
    top: 74px;
    right: auto;
  }

  .auth-card-rework {
    padding: 14px;
    border-radius: 28px;
  }

  .auth-card-rework::before {
    inset: 10px;
    border-radius: 22px;
  }

  .auth-page-rework .auth-form {
    padding-left: 12px;
    padding-right: 12px;
  }

  .auth-page-rework .input-shell {
    height: 42px;
    padding: 0 12px;
  }

  .auth-page-rework .code-action {
    min-width: 96px;
    padding: 0 10px;
    font-size: 12px;
  }
}

.auth-view.login-split {
  width: min(100%, 980px);
  display: grid;
  grid-template-columns: minmax(270px, 0.9fr) minmax(360px, 1.05fr);
  align-items: center;
  gap: 34px;
}

.auth-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.login-split .auth-brand {
  align-items: flex-start;
}

.auth-logo {
  width: 60px;
  height: 60px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 17px;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(219, 230, 239, 0.9);
  box-shadow: 0 14px 30px rgba(63, 87, 112, 0.1);
}

.auth-brand h1 {
  margin: 10px 0 0;
  color: #16a99a;
  font-size: 38px;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.auth-brand p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.auth-brand-panel {
  margin-top: 24px;
  padding: 22px;
  border-radius: 26px;
  border: 1px solid rgba(201, 231, 225, 0.86);
  background:
    radial-gradient(circle at 18% 0%, rgba(38, 200, 181, 0.18), transparent 34%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.84), rgba(235, 249, 246, 0.74));
  box-shadow: 0 24px 54px rgba(54, 96, 110, 0.12);
}

.brand-kicker {
  display: inline-flex;
  margin-bottom: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(17, 158, 142, 0.11);
  color: #0f8f81;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.auth-brand-panel h2 {
  margin: 0;
  color: #152238;
  font-size: 24px;
  line-height: 1.25;
  letter-spacing: -0.04em;
}

.auth-brand-panel p {
  margin-top: 12px;
  color: #64748b;
  font-size: 14px;
  line-height: 1.75;
}

.auth-card {
  width: min(100%, 500px);
  padding: 30px 34px 28px;
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(250, 253, 253, 0.94));
  border: 1px solid rgba(212, 226, 236, 0.94);
  box-shadow: 0 30px 70px rgba(42, 71, 98, 0.14);
  backdrop-filter: blur(18px);
}

.auth-card h2 {
  margin: 0;
  text-align: left;
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.auth-caption {
  margin: 8px 0 22px;
  text-align: left;
  color: var(--muted);
  font-size: 15px;
}

.auth-form {
  display: grid;
  gap: 14px;
  padding: 0 2px;
}

.auth-field {
  display: grid;
  gap: 8px;
  color: #243247;
  font-size: 15px;
  font-weight: 700;
}

.input-shell {
  height: 48px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  border-radius: 18px;
  border: 1px solid rgba(206, 218, 234, 0.96);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
  transition: border-color 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.input-shell-strong {
  border-color: rgba(28, 190, 171, 0.34);
  background: rgba(248, 254, 253, 0.98);
}

.input-shell:focus-within,
.input-shell.active {
  border-color: #26c8b5;
  box-shadow: 0 0 0 3px rgba(38, 200, 181, 0.1);
}

.input-icon,
.input-toggle {
  color: #a5b0c3;
  font-size: 14px;
}

.input-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.input-icon-svg {
  width: 16px;
  height: 16px;
  display: block;
}

.input-shell input {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  background: transparent;
  color: var(--text);
  font: inherit;
}

.input-shell input::placeholder {
  color: #a0aec2;
}

.input-toggle {
  border: 1px solid rgba(31, 174, 158, 0.28);
  background: rgba(234, 250, 247, 0.88);
  cursor: pointer;
  padding: 0 12px;
  height: 32px;
  border-radius: 999px;
  color: #118e80;
  font-weight: 800;
  white-space: nowrap;
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease, opacity 180ms ease;
}

.input-toggle:hover:not(:disabled) {
  border-color: rgba(31, 174, 158, 0.5);
  background: rgba(213, 247, 241, 0.96);
}

.input-toggle:disabled {
  cursor: not-allowed;
  opacity: 0.72;
  color: #8a98ad;
  border-color: rgba(203, 216, 232, 0.9);
  background: rgba(245, 248, 252, 0.92);
}

.field-hint {
  color: #9ca8bb;
  font-size: 12px;
  font-weight: 500;
  margin-top: -4px;
}

.field-hint.is-error {
  color: #c45151;
}

.human-check-card {
  display: grid;
  gap: 10px;
  padding: 12px;
  border-radius: 16px;
  border: 1px solid rgba(211, 223, 236, 0.95);
  background: linear-gradient(180deg, rgba(247, 251, 255, 0.96), rgba(241, 248, 252, 0.92));
}

.human-check-card.is-verified .slider-captcha-stage,
.human-check-card.is-verified .human-refresh-btn {
  display: none;
}

.human-check-card.is-verified {
  gap: 10px;
  padding: 14px 16px;
  border-color: rgba(43, 185, 144, 0.22);
  background:
    radial-gradient(circle at 0% 50%, rgba(67, 211, 167, 0.12), transparent 34%),
    linear-gradient(135deg, rgba(245, 255, 251, 0.98), rgba(233, 249, 243, 0.96));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.7);
}

.human-check-card.is-verified .human-check-copy {
  grid-template-columns: auto 1fr;
  align-items: center;
  column-gap: 12px;
  row-gap: 2px;
}

.human-check-card.is-verified .slider-hint {
  color: #5d7d72;
  font-size: 12px;
  font-weight: 600;
  grid-column: 2;
}

.human-check-card.is-verified .human-check-badge {
  position: relative;
  min-width: auto;
  padding: 0;
  width: 40px;
  height: 40px;
  border-radius: 14px;
  background: linear-gradient(135deg, #2fc99d, #149d86);
  color: transparent;
  box-shadow: 0 10px 18px rgba(26, 174, 139, 0.24);
}

.human-check-card.is-verified .human-check-badge::before {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 22px;
  height: 22px;
  background: center / 22px 22px no-repeat;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M9.55 17.6 4.7 12.75l1.4-1.4 3.45 3.45 8.35-8.35 1.4 1.4z'/%3E%3C/svg%3E");
}

.human-check-card.is-verified .human-check-question {
  color: #17352f;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.2;
  margin: 0;
}

.human-check-card.is-verified .human-check-actions {
  width: 100%;
}

.human-check-copy {
  display: grid;
  gap: 6px;
}

.human-check-badge {
  width: fit-content;
  min-width: 74px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(24, 183, 162, 0.12);
  color: #0f8f81;
  font-size: 12px;
  font-weight: 700;
}

.human-check-question {
  margin: 0;
  color: #213145;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
}

.slider-captcha-stage {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 112px;
  width: 224px;
  padding: 4px 0;
  margin: 0 auto;
}

.slider-captcha-canvas {
  width: 224px;
  height: 104px;
  display: block;
  border-radius: 16px;
  border: 1px solid rgba(204, 218, 232, 0.9);
  background: linear-gradient(180deg, rgba(249, 252, 255, 0.94), rgba(240, 247, 252, 0.92));
}

.slider-captcha-piece {
  position: absolute;
  left: 0;
  top: 0;
  width: 29px;
  height: 29px;
  border-radius: 10px;
  pointer-events: auto;
  cursor: grab;
  filter: drop-shadow(0 8px 14px rgba(16, 53, 77, 0.18));
  user-select: none;
  touch-action: none;
  will-change: transform;
  z-index: 2;
}

.slider-captcha-piece:active {
  cursor: grabbing;
}

.human-check-answer-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.human-check-actions {
  width: 224px;
  justify-self: center;
  align-items: center;
}

.slider-hint {
  color: #7b8aa0;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
}

.human-refresh-btn {
  height: 38px;
  padding: 0 12px;
  border: 1px solid rgba(193, 207, 225, 0.96);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.92);
  color: #6d7f97;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.human-refresh-btn:hover {
  border-color: rgba(24, 183, 162, 0.45);
  color: #118e80;
}

.auth-submit {
  height: 48px;
  margin-top: 0;
  border: none;
  border-radius: 18px;
  background: linear-gradient(135deg, #20c4af, #109c92);
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  box-shadow: 0 16px 30px rgba(23, 182, 164, 0.24);
  cursor: pointer;
}

.auth-submit:disabled {
  cursor: not-allowed;
  background: linear-gradient(135deg, #b8e5df, #a8d8d2);
  box-shadow: none;
}

.auth-blocker {
  min-height: 18px;
  margin: -2px 0 -4px;
  color: #8b6d27;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;
}

.auth-blocker.is-ready {
  color: #118e80;
}

.auth-register,
.auth-footer {
  margin: 0;
  text-align: center;
}

.auth-register {
  color: var(--muted);
  font-size: 14px;
}

.auth-register a {
  color: #10a291;
  text-decoration: none;
  font-weight: 700;
}

.auth-footer {
  color: #a6b1c1;
  font-size: 12px;
}

.standalone-auth .auth-card {
  margin-top: 4px;
}

.app {
  display: grid;
  grid-template-columns: 254px 1fr;
  min-height: 100vh;
}

.sidebar {
  background: rgba(255, 255, 255, 0.88);
  border-right: 1px solid rgba(220, 230, 239, 0.9);
  padding: 18px 12px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  backdrop-filter: blur(12px);
}

.nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.nav-item {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 46px;
  padding: 0 14px;
  border: none;
  border-radius: 16px;
  background: transparent;
  color: #2f4155;
  text-align: left;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.nav-item:hover {
  background: rgba(24, 183, 160, 0.09);
  color: #108a7a;
}

.nav-item.active {
  background: linear-gradient(135deg, rgba(217, 247, 241, 0.98), rgba(198, 241, 233, 0.92));
  color: #0f7f72;
  box-shadow: inset 0 0 0 1px rgba(145, 223, 208, 0.9);
}

.nav-item-with-icon {
  justify-content: flex-start;
}

.nav-icon {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: currentColor;
  flex: 0 0 auto;
}

.nav-item.active .nav-icon {
  background: rgba(255, 255, 255, 0.55);
}

.nav-icon-svg {
  width: 18px;
  height: 18px;
  display: block;
}

.main {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 100vh;
  position: relative;
}

.topbar {
  position: fixed;
  top: 0;
  left: 254px;
  right: 0;
  width: auto;
  max-width: none;
  margin: 0;
  z-index: 30;
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 26px;
  border-bottom: 1px solid var(--line);
  background: rgba(245, 252, 253, 0.92);
  backdrop-filter: blur(14px);
  box-shadow: 0 8px 24px rgba(27, 63, 82, 0.06);
}

.topbar.home-topbar {
  position: static;
  top: auto;
  left: auto;
  right: auto;
  width: 100%;
  max-width: none;
  z-index: auto;
  min-height: auto;
  justify-content: flex-end;
  padding: 0 28px;
  border-bottom: none;
  background: transparent;
  backdrop-filter: none;
  box-shadow: none;
}

.page-meta h1 {
  margin: 0;
  font-size: 18px;
}

.page-meta p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.topbar-right {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: max-content;
  align-items: center;
  gap: 16px;
  color: #46596d;
  flex-wrap: nowrap;
  justify-content: end;
  min-width: 0;
}

.topbar-right > * {
  flex: 0 0 auto;
}

.top-link {
  border: none;
  background: transparent;
  color: inherit;
  font: inherit;
  padding: 6px 8px;
  border-radius: 12px;
  cursor: pointer;
  text-decoration: none;
}

.top-link:hover {
  background: rgba(16, 138, 122, 0.08);
  color: #0a8f83;
}

.topbar-doc-link,
.topbar-lang-link {
  padding: 0;
  border-radius: 0;
}

.topbar-user-group {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.user-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: none;
  background: transparent;
  padding: 4px 6px;
  border-radius: 16px;
  cursor: pointer;
  color: inherit;
}

.user-chip:hover {
  background: rgba(16, 138, 122, 0.08);
  color: #0a8f83;
}

.user-name {
  font-weight: 600;
  white-space: nowrap;
}

.topbar-user-name {
  display: inline-flex;
  align-items: center;
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pill,
.btn,
input,
select,
textarea {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.92);
  border-radius: 14px;
  box-shadow: var(--shadow);
}

.pill {
  padding: 8px 12px;
  font-weight: 600;
  color: #087d6f;
  background: #ebfcf8;
  border-color: #d0f2ea;
}

.avatar {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: linear-gradient(135deg, #13b8a1, #0a8f83);
  color: #fff;
  font-weight: 700;
}

.content {
  padding: 110px 26px 28px;
  display: grid;
  gap: 22px;
}

.hero-note {
  background: linear-gradient(180deg, rgba(215, 248, 244, 0.75), rgba(239, 251, 252, 0.55));
  border: 1px solid #d7eeef;
  border-radius: 26px;
  padding: 20px 22px;
  box-shadow: var(--shadow);
}

.panel {
  display: none;
}

.panel.active {
  display: block;
}

.panel-switch {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 22px 0;
}

.switch-btn {
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid #daeaef;
  background: #fff;
  cursor: pointer;
  font-weight: 600;
  color: #4c6073;
}

.switch-btn.active {
  color: #0e8f7e;
  background: #e8fbf7;
  border-color: #ccefe7;
}

.stats-grid,
.two-col {
  display: grid;
  gap: 18px;
}

.stats-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.two-col {
  grid-template-columns: 1.5fr 1fr;
}

.card {
  background: var(--panel);
  border: 1px solid rgba(222, 236, 241, 0.95);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
  min-width: 0;
}

.card-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  gap: 12px;
  flex-wrap: wrap;
}

.card-title h3 {
  margin: 0;
  font-size: 15px;
}

.subtle {
  color: var(--muted);
  font-size: 13px;
}

.metric {
  display: flex;
  gap: 14px;
  align-items: center;
}

.icon-box {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: var(--teal-soft);
  color: var(--teal);
  font-weight: 700;
  flex: none;
}

.metric strong {
  display: block;
  font-size: 14px;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 4px;
}

.metric .value {
  font-size: 20px;
  font-weight: 800;
  line-height: 1.05;
}

.value-accent-green {
  color: var(--green);
}

.value-accent-purple {
  color: var(--purple);
}

.metric .hint {
  margin-top: 4px;
  font-size: 13px;
  color: var(--muted);
}

.toolbar {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.api-toolbar {
  margin-bottom: 18px;
}

.btn {
  height: 44px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #254157;
  cursor: pointer;
}

.btn.primary {
  background: linear-gradient(135deg, #18b7a0, #109f91);
  color: #fff;
  border-color: transparent;
}

.small {
  height: 32px;
  padding: 0 10px;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  text-align: left;
  padding: 14px 12px;
  border-bottom: 1px solid #ebf1f5;
  vertical-align: middle;
}

th {
  color: #5e7086;
  font-size: 13px;
  font-weight: 700;
}

.table-scroll {
  overflow-x: auto;
  overflow-y: hidden;
  max-width: 100%;
}

.api-keys-table table {
  min-width: 960px;
}

.api-keys-table th:first-child,
.api-keys-table td:first-child {
  position: sticky;
  left: 0;
  z-index: 2;
  background: rgba(255, 255, 255, 0.94);
  min-width: 140px;
}

.api-keys-table th:last-child,
.api-keys-table td:last-child {
  position: sticky;
  right: 0;
  z-index: 2;
  background: rgba(255, 255, 255, 0.94);
  min-width: 180px;
}

.api-keys-table th:first-child,
.api-keys-table th:last-child {
  z-index: 3;
}

.status {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.status.active {
  background: #ebfcf6;
  color: #0d9664;
}

.status.off {
  background: #f4f6f8;
  color: #7b8794;
}

.list {
  display: grid;
  gap: 14px;
}

.list-item {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid #ebf1f5;
  background: #ffffffd4;
}

.muted {
  color: var(--muted);
}

.strong {
  font-weight: 700;
}

.green {
  color: var(--green);
}

.purple {
  color: var(--purple);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
}

.field.full,
.toolbar.full {
  grid-column: 1 / -1;
}

input,
select,
textarea {
  width: 100%;
  padding: 12px 14px;
  font: inherit;
}

.field input[type="checkbox"] {
  width: 18px;
  height: 18px;
  box-shadow: none;
}

.field:has(input[type="checkbox"]) {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(12, 22, 34, 0.36);
  backdrop-filter: blur(4px);
}

.modal-dialog {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 8vh auto 0;
  padding: 0 16px;
}

.modal-wide {
  max-width: 980px;
}

.form-note {
  padding: 12px 14px;
  border: 1px dashed var(--line);
  border-radius: 14px;
  background: #f8fcff;
  color: var(--muted);
  font-size: 13px;
}

.inline-form-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.inline-form-actions input {
  flex: 1;
}

.code-card {
  margin-top: 16px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #293241;
  background: #141b28;
  color: #eef4ff;
}

.code-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: #232c3a;
  border-bottom: 1px solid #2f3948;
}

.code-card pre {
  margin: 0;
  padding: 16px;
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-word;
  font-family: Consolas, "Courier New", monospace;
  line-height: 1.55;
}

.empty {
  padding: 18px;
  color: var(--muted);
  text-align: center;
}

.terminal-top {
  height: 42px;
  padding: 0 16px;
  background: var(--terminal-top);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.traffic-lights {
  position: absolute;
  left: 16px;
  display: flex;
  gap: 8px;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.red {
  background: #ff5f57;
}

.yellow {
  background: #febc2e;
}

.green {
  background: #28c840;
}

.terminal-title {
  color: #6f7d9b;
  font-size: 14px;
  letter-spacing: 0.16em;
}

.terminal-body {
  padding: 20px 24px 22px;
  color: var(--terminal-text);
  font-family: "SFMono-Regular", "Consolas", monospace;
  font-size: 13px;
  line-height: 2.15;
}

.line {
  white-space: nowrap;
}

.prompt {
  color: var(--terminal-green);
  font-weight: 700;
}

.cmd {
  color: #28d6c0;
}

.dim {
  color: var(--terminal-dim);
  font-style: italic;
}

.status-code {
  display: inline-flex;
  align-items: center;
  padding: 1px 8px;
  margin-right: 8px;
  border-radius: 6px;
  background: rgba(40, 209, 127, 0.18);
  color: var(--terminal-green);
  font-weight: 700;
}

.json {
  color: var(--terminal-yellow);
}

.cursor {
  display: inline-block;
  width: 10px;
  height: 18px;
  transform: translateY(3px);
  background: var(--terminal-green);
  animation: blink 1s steps(1, end) infinite;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%) translateY(16px);
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(21, 32, 56, 0.94);
  color: #fff;
  font-size: 14px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
}

[data-theme="dark"] .toast {
  background: rgba(15, 23, 40, 0.96);
  border: 1px solid rgba(73, 92, 124, 0.42);
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.auth-agreement {
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid rgba(210, 221, 232, 0.92);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(248, 251, 253, 0.94), rgba(255, 255, 255, 0.98));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.88);
  font-size: 13px;
  color: #607287;
  line-height: 1.6;
}

.auth-agreement input {
  position: relative;
  margin: 0;
  width: 20px;
  height: 20px;
  appearance: none;
  -webkit-appearance: none;
  border: 1.5px solid #9aa9bc;
  border-radius: 6px;
  background: linear-gradient(180deg, #ffffff, #f3f7fb);
  display: inline-block;
  cursor: pointer;
  flex: 0 0 auto;
  box-shadow:
    0 1px 2px rgba(31, 50, 81, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
  transition: border-color 120ms ease, background-color 120ms ease, box-shadow 120ms ease, transform 120ms ease;
}

.auth-agreement input::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 43%;
  width: 6px;
  height: 10px;
  border-right: 2.5px solid #ffffff;
  border-bottom: 2.5px solid #ffffff;
  transform: translate(-50%, -50%) rotate(45deg) scale(0);
  transform-origin: center center;
  transition: transform 120ms ease;
}

.auth-agreement input:hover {
  border-color: #6f829a;
  box-shadow:
    0 2px 6px rgba(31, 50, 81, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.auth-agreement input:checked {
  border-color: #169b95;
  background: linear-gradient(180deg, #2faea8, #198f97);
  box-shadow:
    0 6px 12px rgba(22, 155, 149, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.auth-agreement input:checked::after {
  transform: translate(-50%, -50%) rotate(45deg) scale(1);
}

.auth-agreement span {
  flex: 1 1 auto;
}

.auth-agreement.is-loading {
  position: relative;
  color: #476276;
}

.auth-agreement.is-loading::after {
  content: "";
  width: 14px;
  height: 14px;
  margin-top: 2px;
  border: 2px solid rgba(14, 143, 126, 0.18);
  border-top-color: #0e8f7e;
  border-radius: 999px;
  animation: auth-spin 0.72s linear infinite;
  flex: 0 0 auto;
}

.auth-agreement a {
  color: #0e8f7e;
  text-decoration: none;
}

.auth-agreement a:hover {
  text-decoration: underline;
}

.auth-submit:disabled {
  background: linear-gradient(135deg, #91d5cf, #78c4bd);
  box-shadow: none;
  cursor: not-allowed;
  opacity: 1;
}

.auth-submit.is-loading {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.auth-submit.is-loading::before {
  content: "";
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.45);
  border-top-color: #ffffff;
  border-radius: 999px;
  animation: auth-spin 0.72s linear infinite;
}

@keyframes auth-spin {
  to {
    transform: rotate(360deg);
  }
}

.modal-content {
  padding: 16px 20px 20px;
  color: #223146;
  line-height: 1.7;
}

.modal-content :first-child {
  margin-top: 0;
}

.agreement-reading-modal .modal-dialog {
  max-width: 920px;
  margin-top: 4vh;
}

.agreement-reading-modal .card {
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(214, 225, 237, 0.96);
  box-shadow: 0 24px 60px rgba(27, 46, 73, 0.18);
}

.agreement-reading-modal .card-title {
  padding: 20px 24px 18px;
  border-bottom: 1px solid #e8eef4;
  align-items: flex-start;
}

.agreement-reading-modal .card-title h3 {
  font-size: 28px;
  line-height: 1.2;
}

.agreement-reading-modal .modal-content {
  max-height: min(72vh, 920px);
  overflow-y: auto;
  padding: 28px 28px 34px;
  color: #203047;
  font-size: 16px;
  line-height: 1.9;
}

.agreement-reading-modal .modal-content h1,
.agreement-reading-modal .modal-content h2,
.agreement-reading-modal .modal-content h3,
.agreement-reading-modal .modal-content h4 {
  color: #14233b;
  line-height: 1.3;
}

.agreement-reading-modal .modal-content p,
.agreement-reading-modal .modal-content li {
  color: #344762;
}

.agreement-reading-modal .modal-content ol,
.agreement-reading-modal .modal-content ul {
  padding-left: 24px;
}

.legal-shell {
  min-height: 100vh;
  padding: 48px 24px 64px;
  background:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px),
    radial-gradient(circle at 50% 0%, rgba(191, 243, 238, 0.42), transparent 22%),
    #f8fbfc;
  background-size: 32px 32px, 32px 32px, auto, auto;
}

.legal-page {
  width: min(880px, 100%);
  margin: 0 auto;
  padding: 8px 0;
}

.legal-head {
  padding-bottom: 24px;
  border-bottom: 1px solid #e3edf3;
}

.legal-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  background: #e9fbf7;
  color: #0d8f80;
  font-size: 13px;
  font-weight: 700;
}

.legal-title {
  margin: 14px 0 0;
  color: #14233b;
  font-size: clamp(34px, 4vw, 44px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.legal-meta {
  margin-top: 12px;
  color: #6f7f95;
  font-size: 15px;
}

.legal-content {
  padding-top: 28px;
  color: #223247;
  font-size: 16px;
  line-height: 1.95;
}

.legal-content h1,
.legal-content h2,
.legal-content h3,
.legal-content h4 {
  color: #132239;
  line-height: 1.32;
}

.legal-content p,
.legal-content li {
  color: #31455f;
}

.legal-content ol,
.legal-content ul {
  padding-left: 24px;
}

.hidden {
  display: none;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

@media (max-width: 960px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 40px;
    padding-top: 72px;
  }

  .hero-copy {
    max-width: none;
    padding-left: 0;
    transform: none;
  }

  .terminal-card {
    justify-self: stretch;
    max-width: 520px;
    width: 100%;
    transform: none;
  }
}

@media (max-width: 640px) {
  .page-shell {
    padding: 18px 16px 28px;
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .topbar-actions {
    width: 100%;
    justify-content: flex-end;
    flex-wrap: wrap;
  }

  .hero {
    min-height: auto;
    padding-top: 28px;
  }

  .hero-copy h1 {
    font-size: 44px;
    white-space: normal;
  }

  .hero-text {
    font-size: 20px;
  }

  .cta-button {
    width: 100%;
    font-size: 20px;
  }

  .terminal-body {
    font-size: 13px;
    overflow-x: auto;
  }
}

.dashboard-body {
  background: #f7fbfc;
  min-height: 100vh;
  overflow: hidden;
}

.dashboard-shell {
  height: 100vh;
  display: grid;
  grid-template-columns: 240px 1fr;
  overflow: hidden;
}

.dashboard-sidebar {
  background: #fff;
  border-right: 1px solid #e6edf2;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
}

.dashboard-brand {
  height: 64px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 10px;
  border-bottom: 1px solid #edf2f6;
}

.dashboard-brand-text {
  font-size: 17px;
  font-weight: 800;
  color: #172033;
}

.dashboard-nav {
  display: grid;
  gap: 8px;
  padding: 18px 12px 0;
}

.dashboard-nav-item {
  min-height: 40px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 16px;
  border-radius: 16px;
  text-decoration: none;
  color: #37465a;
  font-size: 15px;
  font-weight: 600;
  transition: background-color 180ms ease, color 180ms ease;
}

.dashboard-nav-item:hover {
  background: #f5fbfb;
  color: #0da296;
}

.dashboard-nav-item.active {
  background: linear-gradient(135deg, #eefcfa, #e0f7f4);
  color: #0da296;
}

.dashboard-nav-item .nav-icon {
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  color: #55647a;
}

.dashboard-nav-item .nav-icon-svg {
  width: 20px;
  height: 20px;
  display: block;
  stroke: currentColor;
}

.dashboard-nav-item.active .nav-icon,
.dashboard-nav-item:hover .nav-icon {
  color: #0da296;
}

.dashboard-nav-item .nav-label {
  min-width: 0;
  line-height: 1.2;
}

.dashboard-sidebar-bottom {
  margin-top: auto;
  padding: 14px 10px;
  border-top: 1px solid #edf2f6;
  display: grid;
  gap: 8px;
}

.sidebar-ghost-btn {
  height: 38px;
  border: none;
  border-radius: 12px;
  background: transparent;
  color: #43536a;
  text-align: left;
  padding: 0 14px;
  font-size: 15px;
}

.dashboard-shell.is-collapsed {
  grid-template-columns: 88px 1fr;
}

.dashboard-shell.is-collapsed .dashboard-brand {
  justify-content: center;
  padding: 0 8px;
}

.dashboard-shell.is-collapsed .dashboard-brand-text,
.dashboard-shell.is-collapsed .dashboard-nav-item .nav-label {
  display: none;
}

.dashboard-shell.is-collapsed .dashboard-nav {
  padding-left: 10px;
  padding-right: 10px;
}

.dashboard-shell.is-collapsed .dashboard-nav-item {
  justify-content: center;
  padding-left: 0;
  padding-right: 0;
  gap: 0;
}

.dashboard-shell.is-collapsed .dashboard-sidebar-bottom {
  padding-left: 10px;
  padding-right: 10px;
}

.dashboard-shell.is-collapsed .sidebar-ghost-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-left: 0;
  padding-right: 0;
  font-size: 13px;
}

.dashboard-main {
  min-height: 0;
  height: 100vh;
  overflow-y: auto;
  overflow-x: hidden;
  background:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px),
    radial-gradient(circle at 42% 0%, rgba(191, 243, 238, 0.58), transparent 20%),
    #f8fbfc;
  background-size: 32px 32px, 32px 32px, auto, auto;
  overscroll-behavior: contain;
}

.dashboard-topbar {
  height: 64px;
  padding: 0 24px 0 22px;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid #edf2f6;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.dashboard-heading h1 {
  margin: 0;
  color: #172033;
  font-size: 17px;
  font-weight: 800;
}

.dashboard-heading p {
  margin: 4px 0 0;
  color: #7b8599;
  font-size: 12px;
}

.dashboard-top-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  color: #3e4c60;
  font-size: 14px;
}

.top-dropdown {
  position: relative;
}

.top-icon-btn,
.top-doc-btn,
.top-lang-btn {
  border: none;
  background: transparent;
  color: #415168;
  font: inherit;
}

.top-balance-pill {
  height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  background: #eefaf8;
  color: #0a9487;
  display: inline-flex;
  align-items: center;
  font-weight: 700;
}

.top-user {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid #d7e1ea;
  background: #fff;
  border-radius: 16px;
  padding: 8px 12px;
  cursor: pointer;
}

.user-chip {
  width: 32px;
  height: 32px;
  border-radius: 12px;
  background: #17a99c;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 700;
}

.top-user-meta {
  display: grid;
  gap: 2px;
}

.top-user-meta strong {
  font-size: 14px;
  color: #172033;
}

.top-user-meta span,
.user-caret {
  color: #7b8599;
  font-size: 12px;
}

.top-icon-btn,
.top-doc-btn,
.top-lang-btn {
  cursor: pointer;
}

.auth-submit:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  box-shadow: none;
}

.top-dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 164px;
  padding: 8px;
  border-radius: 16px;
  border: 1px solid #d7e1ea;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 16px 36px rgba(40, 61, 84, 0.12);
  display: grid;
  gap: 6px;
  z-index: 20;
}

.top-dropdown-menu.hidden {
  display: none;
}

.top-dropdown-item {
  height: 40px;
  border: none;
  border-radius: 12px;
  background: transparent;
  color: #233146;
  text-align: left;
  padding: 0 12px;
  font: inherit;
  cursor: pointer;
}

.top-dropdown-item:hover {
  background: #edf9f7;
  color: #0d9488;
}

.top-dropdown-item.danger:hover {
  background: #fff1f3;
  color: #d12f5f;
}

.top-subscription-dropdown {
  position: relative;
}

.top-subscription-pill {
  height: 38px;
  padding: 0 12px;
  border-radius: 16px;
  border: 2px solid #231c2e;
  background: linear-gradient(135deg, #f8edff, #f6eaff);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #6d35ff;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(112, 84, 186, 0.12);
}

.top-subscription-icon {
  font-size: 16px;
  line-height: 1;
}

.top-subscription-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2ac95a;
}

.top-subscription-count {
  color: #4d365f;
  font-size: 14px;
  font-weight: 700;
}

.top-subscription-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  width: 340px;
  border-radius: 18px;
  border: 1px solid #dce5ec;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 18px 36px rgba(34, 53, 79, 0.14);
  overflow: hidden;
  z-index: 22;
}

.top-subscription-menu.hidden {
  display: none;
}

.top-subscription-menu-head {
  padding: 16px 18px 14px;
  border-bottom: 1px solid #edf2f6;
}

.top-subscription-menu-head strong {
  display: block;
  color: #1b2538;
  font-size: 16px;
}

.top-subscription-menu-head span {
  display: block;
  margin-top: 6px;
  color: #7c8799;
  font-size: 14px;
}

.top-subscription-menu-body {
  padding: 14px 18px 12px;
}

.top-subscription-row {
  display: grid;
  gap: 12px;
}

.top-subscription-row-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.top-subscription-row-head strong {
  color: #1b2538;
  font-size: 14px;
}

.top-subscription-row-head span {
  color: #6d7a90;
  font-size: 14px;
}

.top-subscription-mini-line {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.top-subscription-mini-line span {
  color: #4a5568;
  font-size: 13px;
  font-weight: 700;
}

.top-subscription-mini-line em {
  color: #6d7a90;
  font-size: 13px;
  font-style: normal;
  white-space: nowrap;
}

.top-subscription-mini-progress {
  height: 7px;
  border-radius: 999px;
  background: #e7ebf1;
  overflow: hidden;
}

.top-subscription-mini-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #1fb86d, #24c66d);
}

.top-subscription-link {
  width: 100%;
  height: 44px;
  border: none;
  border-top: 1px solid #edf2f6;
  background: transparent;
  color: #0d9f90;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.top-notice-dropdown {
  position: relative;
}

.top-notice-trigger {
  position: relative;
  width: 38px;
  height: 38px;
  border-radius: 14px;
}

.top-notice-trigger-inner {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.top-notice-bell {
  font-size: 18px;
  line-height: 1;
}

.top-notice-unread-dot {
  position: absolute;
  top: 5px;
  right: 6px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2ac95a;
  box-shadow: 0 0 0 3px #ffffff;
}

.top-notice-unread-dot.hidden {
  display: none;
}

.top-notice-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%);
  width: 360px;
  border-radius: 18px;
  border: 1px solid #dce5ec;
  background: rgba(255, 255, 255, 0.985);
  box-shadow: 0 20px 40px rgba(35, 55, 85, 0.18);
  overflow: hidden;
  z-index: 24;
}

.top-notice-menu.hidden {
  display: none;
}

.top-notice-menu-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid #edf2f6;
}

.top-notice-menu-title {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #1b2538;
}

.top-notice-menu-icon {
  width: 32px;
  height: 32px;
  border-radius: 12px;
  background: linear-gradient(135deg, #5765ff, #4b5af0);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
}

.top-notice-close {
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 12px;
  background: #f5f7fb;
  color: #8892a8;
  cursor: pointer;
  font-size: 18px;
}

.top-notice-menu-body {
  padding: 10px 0;
}

.top-notice-empty {
  padding: 24px 18px;
  color: #7b8599;
  font-size: 14px;
  text-align: center;
}

.top-notice-row {
  width: calc(100% - 20px);
  margin: 0 10px;
  padding: 14px 12px;
  border: none;
  border-radius: 16px;
  background: transparent;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) 18px;
  gap: 12px;
  align-items: center;
  cursor: pointer;
  text-align: left;
}

.top-notice-row:hover {
  background: #f4f8fc;
}

.top-notice-row.is-unread {
  background: #f8fbff;
}

.top-notice-row-icon {
  width: 28px;
  height: 28px;
  border-radius: 10px;
  background: #f2f5f9;
  color: #8c96ac;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

.top-notice-row.is-unread .top-notice-row-icon {
  color: #4b5af0;
  background: #edf0ff;
}

.top-notice-row-main {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.top-notice-row-main strong {
  color: #20283a;
  font-size: 14px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.top-notice-row-main span {
  color: #7d879a;
  font-size: 13px;
}

.top-notice-row-arrow {
  color: #9ca6b9;
  font-size: 22px;
  line-height: 1;
}

.top-notice-menu-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 18px 14px;
  border-top: 1px solid #edf2f6;
  color: #7c8799;
  font-size: 13px;
}

.top-notice-menu-foot strong {
  color: #182135;
  font-size: 14px;
}

.dashboard-notice-overlay {
  position: fixed;
  inset: 0;
  z-index: 40;
}

.dashboard-notice-overlay.hidden {
  display: none;
}

.dashboard-notice-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(24, 32, 46, 0.46);
  backdrop-filter: blur(3px);
}

.dashboard-notice-dialog {
  position: relative;
  width: min(620px, calc(100vw - 32px));
  margin: 120px auto 0;
  border-radius: 24px;
  border: 1px solid #dbe5ee;
  background: rgba(255, 255, 255, 0.985);
  box-shadow: 0 28px 56px rgba(27, 42, 64, 0.26);
  overflow: hidden;
}

.dashboard-notice-dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 24px 16px;
  border-bottom: 1px solid #edf2f6;
}

.dashboard-notice-dialog-title {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #172033;
}

.dashboard-notice-dialog-icon {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: linear-gradient(135deg, #5765ff, #4b5af0);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.dashboard-notice-dialog-close {
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 12px;
  background: #f4f7fb;
  color: #8b95aa;
  cursor: pointer;
  font-size: 22px;
}

.dashboard-notice-dialog-meta {
  padding: 14px 24px 0;
  color: #8090a4;
  font-size: 13px;
}

.dashboard-notice-dialog-body {
  padding: 18px 24px 26px;
  color: #223046;
  font-size: 15px;
  line-height: 1.75;
  white-space: pre-wrap;
}

.dashboard-metric-grid {
  padding: 30px 30px 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.metric-card,
.dashboard-filter-bar,
.chart-card,
.bottom-card {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid #e4edf2;
  border-radius: 20px;
  box-shadow: 0 2px 3px rgba(30, 52, 75, 0.04), 0 10px 28px rgba(111, 140, 166, 0.08);
}

.metric-card {
  min-height: 100px;
  padding: 20px 18px 18px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.metric-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
}

.mint { background: #dff8ee; color: #06a47a; }
.blue { background: #e2ecff; color: #3774ff; }
.lime { background: #dbf7e2; color: #24af56; }
.purple { background: #f0e3ff; color: #9a42ff; }
.amber { background: #fff1cb; color: #e49310; }
.indigo { background: #e0e3ff; color: #5b58ff; }
.violet { background: #ece5ff; color: #8152ff; }
.rose { background: #ffe4ea; color: #ff5171; }

.metric-body {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.metric-title {
  color: #68758a;
  font-size: 13px;
}

.metric-value {
  color: #1c2435;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.15;
}

.metric-note {
  color: #7e889b;
  font-size: 12px;
}

.metric-inline {
  color: #9aa5b8;
  font-size: 13px;
  font-weight: 600;
}

.green,
.success {
  color: #17a953;
}

.purple-text {
  color: #8e43ff;
}

.dashboard-filter-bar {
  margin: 22px 30px 0;
  min-height: 76px;
  padding: 0 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.filter-left,
.filter-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.filter-label {
  color: #232d3f;
  font-size: 14px;
  font-weight: 700;
}

.select-chip,
.filter-btn,
.mini-chip {
  height: 40px;
  padding: 0 16px;
  border-radius: 14px;
  border: 1px solid #d7e1ea;
  background: #fff;
  color: #3e4c60;
  font-size: 14px;
}

.dashboard-chart-grid {
  margin: 24px 30px 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.chart-card {
  min-height: 262px;
  padding: 18px 18px 14px;
}

.chart-card h3,
.bottom-card-head h3 {
  margin: 0;
  color: #1c2435;
  font-size: 15px;
  font-weight: 800;
}

.chart-empty {
  min-height: 210px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #8b95a8;
  font-size: 13px;
}

.center-only {
  display: grid;
  place-items: center;
}

.chart-empty-text {
  text-align: center;
  margin-bottom: 58px;
}

.chart-table-head {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  text-align: center;
  color: #737f93;
  font-size: 13px;
  font-weight: 700;
}

.chart-donut-layout {
  min-height: 220px;
  display: grid;
  grid-template-columns: 208px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
}

.chart-donut-wrap {
  display: grid;
  place-items: center;
  min-height: 200px;
}

.chart-donut {
  position: relative;
  width: 188px;
  height: 188px;
  border-radius: 50%;
  background:
    conic-gradient(var(--donut-1, #4b82ea) 0deg 220deg, var(--donut-2, #22b983) 220deg 300deg, var(--donut-3, #ffa11a) 300deg 360deg);
  box-shadow: inset 0 0 0 1px rgba(201, 214, 225, 0.42);
}

.chart-donut::after {
  content: "";
  position: absolute;
  inset: 46px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: inset 0 0 0 1px rgba(232, 238, 244, 0.9);
}

.chart-donut-center {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  z-index: 1;
  font-size: 12px;
  color: #7a8698;
  text-align: center;
}

.chart-donut-table {
  min-width: 0;
}

.chart-donut-rows {
  display: grid;
  gap: 12px;
}

.chart-donut-row,
.trend-legend,
.usage-row,
.subscription-row,
.profile-row,
.redeem-row {
  display: grid;
  align-items: center;
}

.chart-donut-row {
  grid-template-columns: minmax(92px, 1.2fr) 72px 88px 96px 96px;
  gap: 12px;
  font-size: 13px;
}

.chart-donut-cell {
  min-width: 0;
  color: #223046;
}

.chart-donut-cell strong {
  color: #18a268;
}

.chart-donut-cell.muted {
  color: #91a0b3;
}

.trend-card-body {
  min-height: 220px;
  display: grid;
  gap: 10px;
}

.trend-legend {
  grid-template-columns: repeat(5, auto);
  gap: 16px;
  justify-content: end;
  color: #5e6d83;
  font-size: 12px;
}

.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 6px;
  vertical-align: middle;
}

.trend-grid {
  position: relative;
  min-height: 178px;
  border: 1px solid #e9eef4;
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(142, 67, 255, 0.08), rgba(142, 67, 255, 0) 48%),
    linear-gradient(#edf2f7 1px, transparent 1px),
    linear-gradient(90deg, #edf2f7 1px, transparent 1px),
    #fff;
  background-size: auto, 100% 32px, 58px 100%, auto;
  overflow: hidden;
}

.trend-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.trend-axis {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 8px;
  display: grid;
  grid-template-columns: repeat(var(--axis-count, 7), 1fr);
  gap: 8px;
  color: #738197;
  font-size: 11px;
}

.trend-empty {
  display: grid;
  place-items: center;
  color: #8b95a8;
  font-size: 13px;
}

.usage-list,
.subscription-list,
.profile-list,
.redeem-list {
  display: grid;
  gap: 12px;
  padding: 18px;
}

.usage-row,
.subscription-row,
.profile-row,
.redeem-row {
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 14px;
  padding: 16px 18px;
  border-radius: 16px;
  background: #fbfcfd;
  border: 1px solid #edf2f6;
}

.usage-row-icon,
.quick-action-icon.secondary {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #dff8f3;
  color: #0e9b89;
  font-size: 20px;
}

.quick-action-icon.secondary {
  background: #dbf7e2;
  color: #23a955;
}

.usage-row-main,
.subscription-main,
.profile-main,
.redeem-main {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.usage-row-title,
.subscription-title,
.profile-title,
.redeem-title {
  color: #1b2538;
  font-size: 15px;
  font-weight: 700;
}

.usage-row-sub,
.subscription-sub,
.profile-sub,
.redeem-sub {
  color: #728096;
  font-size: 13px;
}

.usage-row-meta {
  text-align: right;
  display: grid;
  gap: 4px;
}

.usage-row-meta strong {
  color: #18a55c;
  font-size: 15px;
}

.usage-row-meta span {
  color: #8d9aab;
  font-size: 13px;
}

.dashboard-single-card {
  margin: 24px 30px 28px;
  min-height: 280px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid #e4edf2;
  border-radius: 20px;
  box-shadow: 0 2px 3px rgba(30, 52, 75, 0.04), 0 10px 28px rgba(111, 140, 166, 0.08);
}

.dashboard-table-wrap {
  overflow-x: auto;
}

.dashboard-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 18px;
  min-width: 760px;
}

.dashboard-table th,
.dashboard-table td {
  padding: 14px 10px;
  text-align: left;
  border-bottom: 1px solid #edf2f6;
  color: #314158;
  font-size: 13px;
}

.dashboard-table th {
  color: #6d7a90;
  font-size: 12px;
  font-weight: 700;
}

.dashboard-empty-block {
  min-height: 180px;
  display: grid;
  place-items: center;
  color: #8b95a8;
  font-size: 14px;
}

.single-card-desc {
  margin: 8px 0 0;
  color: #718096;
  font-size: 14px;
}

.usage-hero-grid {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.usage-stat-card,
.usage-breakdown-card {
  border: 1px solid #e8eef5;
  border-radius: 16px;
  background: #fbfcfd;
}

.usage-stat-card {
  padding: 16px 18px;
  display: grid;
  gap: 6px;
}

.usage-stat-card span,
.usage-stat-card small {
  color: #7a8799;
  font-size: 12px;
}

.usage-stat-card strong {
  color: #1b2538;
  font-size: 22px;
  font-weight: 800;
}

.usage-toolbar {
  margin-top: 18px;
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(120px, 160px)) auto auto;
  gap: 12px;
  align-items: center;
}

.usage-search,
.usage-select {
  width: 100%;
  min-height: 42px;
  border: 1px solid #d7e1ea;
  border-radius: 14px;
  background: #fff;
  color: #253347;
  padding: 0 14px;
  font-size: 14px;
}

.usage-breakdown-grid {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.usage-breakdown-card {
  padding: 16px;
}

.usage-breakdown-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.usage-breakdown-head h4 {
  margin: 0;
  color: #1b2538;
  font-size: 15px;
  font-weight: 800;
}

.usage-breakdown-head span {
  color: #7d8a9c;
  font-size: 12px;
}

.usage-breakdown-list {
  display: grid;
  gap: 10px;
}

.usage-breakdown-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid #edf2f6;
}

.usage-breakdown-main,
.usage-breakdown-side {
  display: grid;
  gap: 4px;
}

.usage-breakdown-main strong,
.usage-breakdown-side strong {
  color: #1d273b;
  font-size: 14px;
}

.usage-breakdown-main span,
.usage-breakdown-side span,
.usage-inline-sub {
  color: #7a8799;
  font-size: 12px;
}

.usage-breakdown-side {
  text-align: right;
}

.usage-pagination {
  margin-top: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.usage-pagination span {
  color: #6f7d92;
  font-size: 13px;
}

.usage-pagination-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.usage-error-cell {
  max-width: 260px;
  white-space: normal;
  word-break: break-word;
}

.dashboard-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.dashboard-section-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.dashboard-toolbar {
  margin-top: 18px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.dashboard-toolbar-input {
  width: min(100%, 360px);
  height: 44px;
  padding: 0 14px;
  border: 1px solid #d7e2ec;
  border-radius: 14px;
  background: #fff;
  color: #223046;
  font: inherit;
}

.dashboard-inline-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.dashboard-action-btn {
  height: 34px;
  padding: 0 12px;
  font-size: 13px;
}

.dashboard-action-btn.danger {
  color: #c53030;
  border-color: #f1b7b7;
}

.dashboard-inline-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 64px;
  height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.dashboard-inline-status.is-active {
  background: #def8df;
  color: #20a751;
}

.dashboard-inline-status.is-disabled {
  background: #f1f4f7;
  color: #8895a7;
}

.subscription-shell {
  margin: 24px 30px 28px;
}

.subscription-page-head {
  margin-bottom: 18px;
}

.subscription-page-title {
  margin: 0;
  color: #1b2538;
  font-size: 18px;
  font-weight: 800;
}

.subscription-page-desc {
  margin: 8px 0 0;
  color: #718096;
  font-size: 14px;
}

.subscription-plan-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.subscription-plan-card {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid #d8eee9;
  border-radius: 22px;
  box-shadow: 0 2px 3px rgba(30, 52, 75, 0.04), 0 10px 28px rgba(111, 140, 166, 0.08);
  overflow: hidden;
}

.subscription-plan-top {
  padding: 22px 16px 18px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.subscription-plan-left {
  min-width: 0;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.subscription-plan-dot {
  width: 7px;
  height: 7px;
  margin-top: 12px;
  border-radius: 50%;
  background: #21b26b;
  flex: 0 0 auto;
}

.subscription-plan-copy {
  min-width: 0;
}

.subscription-plan-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.subscription-plan-title-row h3 {
  margin: 0;
  color: #1b2538;
  font-size: 16px;
  font-weight: 800;
}

.subscription-plan-vendor {
  height: 24px;
  padding: 0 8px;
  border-radius: 8px;
  border: 1px solid #96e1b0;
  background: #effcf4;
  color: #1ea85b;
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  white-space: nowrap;
}

.subscription-plan-copy p {
  margin: 6px 0 0;
  color: #748295;
  font-size: 13px;
}

.subscription-plan-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.subscription-plan-status,
.subscription-plan-btn {
  height: 28px;
  padding: 0 12px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.subscription-plan-status {
  background: #effcf4;
  color: #1ea85b;
}

.subscription-plan-status.is-expired {
  background: #f3f5f7;
  color: #a0aabd;
}

.subscription-plan-btn {
  border: none;
  background: linear-gradient(135deg, #17b79a, #12a382);
  color: #fff;
  cursor: pointer;
}

.subscription-plan-body {
  border-top: 1px solid #ecf1f4;
  padding: 16px;
  display: grid;
  gap: 18px;
}

.subscription-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.subscription-label {
  color: #4a5568;
  font-size: 14px;
  font-weight: 700;
}

.subscription-value {
  color: #66758b;
  font-size: 14px;
}

.subscription-value.is-expired {
  color: #ff4d4f;
  font-weight: 700;
}

.subscription-meter {
  display: grid;
  gap: 8px;
}

.subscription-progress {
  height: 8px;
  border-radius: 999px;
  background: #e6ebf1;
  overflow: hidden;
}

.subscription-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #1fb86d, #24c66d);
}

.subscription-reset {
  min-height: 16px;
  color: #7f8a9e;
  font-size: 13px;
}

.redeem-shell {
  margin: 24px 30px 28px;
  max-width: 672px;
}

.redeem-page-head {
  margin-bottom: 18px;
}

.redeem-page-title {
  margin: 0;
  color: #1b2538;
  font-size: 18px;
  font-weight: 800;
}

.redeem-page-desc {
  margin: 8px 0 0;
  color: #718096;
  font-size: 14px;
}

.redeem-balance-card,
.redeem-form-card,
.redeem-info-card,
.redeem-activity-card {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid #e4edf2;
  border-radius: 22px;
  box-shadow: 0 2px 3px rgba(30, 52, 75, 0.04), 0 10px 28px rgba(111, 140, 166, 0.08);
}

.redeem-balance-card {
  margin-bottom: 24px;
  min-height: 240px;
  padding: 32px 24px;
  background: linear-gradient(135deg, #1fb7a5, #17a394);
  color: #fff;
  display: grid;
  place-items: center;
  text-align: center;
}

.redeem-balance-icon {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.16);
  font-size: 28px;
}

.redeem-balance-label {
  margin-top: 18px;
  font-size: 14px;
  font-weight: 700;
}

.redeem-balance-value {
  margin-top: 8px;
  font-size: 54px;
  line-height: 1;
  font-weight: 800;
}

.redeem-balance-meta {
  margin-top: 10px;
  font-size: 14px;
  font-weight: 600;
}

.redeem-form-card,
.redeem-info-card,
.redeem-activity-card {
  padding: 22px 24px;
}

.redeem-form-card,
.redeem-info-card {
  margin-bottom: 24px;
}

.redeem-card-title {
  color: #1b2538;
  font-size: 15px;
  font-weight: 800;
}

.redeem-input-shell {
  margin-top: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  height: 56px;
  padding: 0 16px;
  border: 1px solid #d7e2ec;
  border-radius: 16px;
  background: #fff;
}

.redeem-input-icon {
  color: #98a5b9;
  font-size: 20px;
  flex: 0 0 auto;
}

.redeem-input {
  flex: 1;
  border: none;
  outline: none;
  padding: 0;
  color: #2a3448;
  font: inherit;
  background: transparent;
}

.redeem-help-text {
  margin-top: 8px;
  color: #7f8a9e;
  font-size: 13px;
}

.redeem-submit-btn {
  margin-top: 18px;
  width: 100%;
  height: 46px;
  border: none;
  border-radius: 14px;
  background: linear-gradient(135deg, #7cd3cb, #76cbc4);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}

.redeem-info-card {
  border-color: #8dece0;
  background: rgba(226, 252, 248, 0.78);
}

.redeem-info-head {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #0e766e;
}

.redeem-info-icon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #bff5ec;
  font-weight: 800;
}

.redeem-info-list {
  margin: 14px 0 0 56px;
  padding: 0 0 0 18px;
  color: #15786f;
  font-size: 14px;
  line-height: 1.8;
}

.redeem-activity-list {
  margin-top: 18px;
}

.redeem-activity-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 16px;
  border-radius: 16px;
  background: #fbfcfd;
  border: 1px solid #edf2f6;
}

.redeem-activity-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #f0e7ff;
  color: #8a43ff;
  font-size: 20px;
}

.redeem-activity-main {
  min-width: 0;
}

.redeem-activity-title {
  color: #1b2538;
  font-size: 15px;
  font-weight: 700;
}

.redeem-activity-sub {
  margin-top: 4px;
  color: #7f8a9e;
  font-size: 13px;
}

.redeem-activity-meta {
  text-align: right;
  display: grid;
  gap: 4px;
}

.redeem-activity-meta strong {
  color: #8a43ff;
  font-size: 14px;
}

.redeem-activity-meta span {
  color: #9aa5b8;
  font-size: 12px;
}

.profile-shell {
  margin: 24px 30px 28px;
  max-width: 948px;
}

.profile-page-head {
  margin-bottom: 18px;
}

.profile-page-title {
  margin: 0;
  color: #1b2538;
  font-size: 18px;
  font-weight: 800;
}

.profile-page-desc {
  margin: 8px 0 0;
  color: #718096;
  font-size: 14px;
}

.profile-hero-card,
.profile-section-card {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid #e4edf2;
  border-radius: 22px;
  box-shadow: 0 2px 3px rgba(30, 52, 75, 0.04), 0 10px 28px rgba(111, 140, 166, 0.08);
}

.profile-hero-card {
  padding: 22px 32px 24px;
  margin-bottom: 24px;
}

.profile-hero-main {
  display: flex;
  gap: 24px;
  align-items: center;
}

.profile-hero-avatar,
.profile-avatar-large {
  width: 80px;
  height: 80px;
  border-radius: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1fb7a5, #17a394);
  color: #fff;
  font-size: 42px;
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(20, 166, 145, 0.2);
}

.profile-avatar-large {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  font-size: 32px;
  box-shadow: none;
}

.profile-hero-copy {
  min-width: 0;
}

.profile-hero-top {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.profile-hero-top h3 {
  margin: 0;
  color: #1b2538;
  font-size: 20px;
  font-weight: 800;
}

.profile-hero-copy p {
  margin: 8px 0 0;
  color: #5f6f84;
  font-size: 14px;
}

.profile-chip {
  height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #f1f4f7;
  color: #5a6679;
  font-size: 13px;
  font-weight: 700;
}

.profile-chip.success {
  background: #dff9ef;
  color: #18a55c;
}

.profile-chip.muted {
  background: #f1f4f7;
  color: #8895a7;
}

.profile-stat-grid {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.profile-stat-card {
  min-height: 70px;
  padding: 14px 18px;
  border-radius: 18px;
  background: #fbfcfd;
  border: 1px solid #eef2f6;
  display: grid;
  gap: 8px;
}

.profile-stat-card span {
  color: #7a8698;
  font-size: 14px;
}

.profile-stat-card strong {
  color: #1b2538;
  font-size: 18px;
  font-weight: 800;
}

.profile-section-card {
  margin-bottom: 24px;
  overflow: hidden;
}

.profile-section-head {
  padding: 22px 24px 18px;
  border-bottom: 1px solid #edf2f6;
}

.profile-section-head h3 {
  margin: 0;
  color: #1b2538;
  font-size: 16px;
  font-weight: 800;
}

.profile-section-head p {
  margin: 8px 0 0;
  color: #718096;
  font-size: 14px;
}

.profile-edit-grid {
  padding: 22px 24px 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.profile-avatar-panel,
.profile-form-panel {
  min-width: 0;
  min-height: 220px;
  padding: 20px 22px;
  border-radius: 22px;
  border: 1px solid #edf2f6;
  background: #fbfcfd;
}

.profile-avatar-title,
.profile-form-title {
  margin-top: 14px;
  color: #1b2538;
  font-size: 15px;
  font-weight: 800;
}

.profile-avatar-desc {
  margin-top: 8px;
  color: #718096;
  font-size: 14px;
  line-height: 1.6;
}

.profile-inline-actions,
.profile-form-actions,
.profile-password-actions {
  margin-top: 18px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.profile-field {
  display: grid;
  gap: 10px;
  margin-top: 16px;
  color: #334155;
  font-size: 14px;
  font-weight: 600;
}

.profile-field input {
  width: 100%;
  height: 44px;
  padding: 0 14px;
  border: 1px solid #d7e2ec;
  border-radius: 14px;
  background: #fff;
  color: #223046;
  font: inherit;
}

.profile-field small {
  color: #7f8a9e;
  font-size: 13px;
  font-weight: 400;
}

.profile-primary-btn,
.profile-ghost-btn {
  height: 40px;
  padding: 0 16px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.profile-primary-btn {
  border: none;
  background: linear-gradient(135deg, #1fb7a5, #17a394);
  color: #fff;
}

.profile-ghost-btn {
  border: 1px solid #d7e2ec;
  background: #fff;
  color: #4a5568;
}

.profile-binding-list {
  padding: 0 24px 22px;
  display: grid;
  gap: 16px;
}

.profile-binding-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid #edf2f6;
  background: #fff;
}

.profile-binding-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 700;
}

.profile-binding-icon.mint { background: #dff8f3; color: #12a392; }
.profile-binding-icon.amber { background: #fff0da; color: #ff8d22; }
.profile-binding-icon.blue { background: #dff0ff; color: #1b88ff; }
.profile-binding-icon.green { background: #def8df; color: #20a751; }

.profile-binding-main {
  min-width: 0;
}

.profile-binding-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.profile-binding-title-row strong {
  color: #1b2538;
  font-size: 16px;
}

.profile-binding-primary {
  margin-top: 8px;
  color: #4d5c71;
  font-size: 14px;
}

.profile-binding-desc {
  margin-top: 8px;
  color: #7f8a9e;
  font-size: 13px;
}

.profile-password-form {
  padding: 22px 24px 24px;
}

.dashboard-bottom-grid {
  margin: 24px 30px 28px;
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(320px, 0.9fr);
  gap: 20px;
}

.dashboard-page,
.chart-card,
.bottom-card,
.dashboard-single-card {
  min-width: 0;
}

.dashboard-main,
.dashboard-page,
.dashboard-chart-grid,
.dashboard-bottom-grid,
.dashboard-filter-bar,
.dashboard-topbar,
.dashboard-metric-grid {
  width: 100%;
}

.dashboard-page {
  display: none;
  overflow-x: clip;
}

.dashboard-page.is-active {
  display: block;
}

.bottom-card {
  min-height: 244px;
  overflow: hidden;
}

.bottom-card-head {
  height: 60px;
  padding: 0 24px;
  border-bottom: 1px solid #edf2f6;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mini-chip {
  height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
}

.bottom-card-empty {
  min-height: 184px;
}

.action-card {
  min-height: 244px;
}

.quick-action-item {
  margin: 14px 18px 0;
  min-height: 78px;
  border-radius: 16px;
  background: #f8fafb;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 18px;
}

.quick-action-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: #ccfaf2;
  color: #0b9d8d;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.quick-action-text {
  display: grid;
  gap: 4px;
}

.quick-action-text strong {
  font-size: 15px;
  color: #1c2435;
}

.quick-action-text span,
.quick-action-arrow {
  color: #7d889a;
  font-size: 13px;
}

.quick-action-arrow {
  margin-left: auto;
  font-size: 28px;
}

[data-theme="dark"] .dashboard-body {
  background: #091321;
}

[data-theme="dark"] .dashboard-sidebar {
  background: linear-gradient(180deg, #131c30 0%, #11192b 100%);
  border-right-color: rgba(81, 101, 139, 0.22);
  box-shadow: inset -1px 0 0 rgba(255, 255, 255, 0.02);
}

[data-theme="dark"] .dashboard-brand,
[data-theme="dark"] .dashboard-sidebar-bottom {
  border-color: rgba(81, 101, 139, 0.2);
}

[data-theme="dark"] .dashboard-brand-text,
[data-theme="dark"] .dashboard-nav-item,
[data-theme="dark"] .sidebar-ghost-btn,
[data-theme="dark"] .dashboard-heading h1,
[data-theme="dark"] .chart-card h3,
[data-theme="dark"] .bottom-card-head h3,
[data-theme="dark"] .subscription-page-title,
[data-theme="dark"] .redeem-page-title,
[data-theme="dark"] .profile-page-title,
[data-theme="dark"] .profile-hero-top h3,
[data-theme="dark"] .profile-avatar-title,
[data-theme="dark"] .profile-form-title,
[data-theme="dark"] .profile-section-head h3,
[data-theme="dark"] .profile-binding-title-row strong,
[data-theme="dark"] .redeem-card-title,
[data-theme="dark"] .subscription-plan-title-row h3,
[data-theme="dark"] .dashboard-notice-dialog-title,
[data-theme="dark"] .top-notice-menu-title,
[data-theme="dark"] .top-subscription-menu-head strong {
  color: #eef4ff;
}

[data-theme="dark"] .dashboard-nav-item {
  color: #9dadca;
}

[data-theme="dark"] .dashboard-nav-item .nav-icon,
[data-theme="dark"] .sidebar-ghost-btn,
[data-theme="dark"] .top-icon-btn,
[data-theme="dark"] .top-doc-btn,
[data-theme="dark"] .top-lang-btn,
[data-theme="dark"] .top-user-meta span,
[data-theme="dark"] .user-caret,
[data-theme="dark"] .metric-title,
[data-theme="dark"] .metric-note,
[data-theme="dark"] .metric-inline,
[data-theme="dark"] .chart-table-head,
[data-theme="dark"] .trend-legend,
[data-theme="dark"] .trend-axis,
[data-theme="dark"] .usage-row-sub,
[data-theme="dark"] .subscription-sub,
[data-theme="dark"] .profile-sub,
[data-theme="dark"] .redeem-sub,
[data-theme="dark"] .subscription-page-desc,
[data-theme="dark"] .redeem-page-desc,
[data-theme="dark"] .profile-page-desc,
[data-theme="dark"] .profile-hero-copy p,
[data-theme="dark"] .profile-avatar-desc,
[data-theme="dark"] .profile-section-head p,
[data-theme="dark"] .profile-binding-desc,
[data-theme="dark"] .profile-binding-primary,
[data-theme="dark"] .profile-stat-card span,
[data-theme="dark"] .profile-field small,
[data-theme="dark"] .single-card-desc,
[data-theme="dark"] .dashboard-empty-block,
[data-theme="dark"] .chart-empty,
[data-theme="dark"] .trend-empty,
[data-theme="dark"] .top-notice-empty,
[data-theme="dark"] .top-notice-row-main span,
[data-theme="dark"] .top-notice-row-arrow,
[data-theme="dark"] .top-notice-menu-foot,
[data-theme="dark"] .dashboard-notice-dialog-meta,
[data-theme="dark"] .top-subscription-row-head span,
[data-theme="dark"] .top-subscription-mini-line em,
[data-theme="dark"] .subscription-value,
[data-theme="dark"] .subscription-reset,
[data-theme="dark"] .redeem-help-text,
[data-theme="dark"] .redeem-activity-sub,
[data-theme="dark"] .redeem-activity-meta span {
  color: #8fa2c4;
}

[data-theme="dark"] .dashboard-nav-item:hover,
[data-theme="dark"] .sidebar-ghost-btn:hover {
  background: rgba(35, 54, 84, 0.75);
  color: #dff8ff;
}

[data-theme="dark"] .dashboard-nav-item.active {
  background: linear-gradient(135deg, rgba(17, 100, 109, 0.36), rgba(26, 52, 78, 0.95));
  color: #79f0df;
  box-shadow: inset 0 0 0 1px rgba(79, 203, 191, 0.12);
}

[data-theme="dark"] .dashboard-nav-item.active .nav-icon,
[data-theme="dark"] .dashboard-nav-item:hover .nav-icon {
  color: #79f0df;
}

[data-theme="dark"] .sidebar-ghost-btn {
  border-radius: 14px;
}

[data-theme="dark"] .dashboard-shell.is-collapsed .dashboard-brand {
  box-shadow: inset 0 -1px 0 rgba(81, 101, 139, 0.2);
}

[data-theme="dark"] .dashboard-main {
  background:
    linear-gradient(rgba(93, 116, 153, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(93, 116, 153, 0.12) 1px, transparent 1px),
    radial-gradient(circle at 44% 0%, rgba(25, 160, 176, 0.18), transparent 24%),
    radial-gradient(circle at 100% 0%, rgba(47, 115, 196, 0.16), transparent 28%),
    #08111d;
  background-size: 32px 32px, 32px 32px, auto, auto, auto;
}

[data-theme="dark"] .dashboard-topbar {
  background: rgba(8, 18, 31, 0.88);
  border-bottom-color: rgba(79, 99, 135, 0.22);
  backdrop-filter: blur(16px);
}

[data-theme="dark"] .dashboard-heading p {
  color: #7f92b3;
}

[data-theme="dark"] .top-balance-pill {
  background: rgba(21, 65, 67, 0.72);
  color: #6ef0d2;
  border: 1px solid rgba(58, 169, 162, 0.22);
}

[data-theme="dark"] .top-user {
  border-color: rgba(78, 98, 132, 0.34);
  background: rgba(20, 31, 50, 0.9);
  box-shadow: 0 8px 20px rgba(3, 8, 18, 0.28);
}

[data-theme="dark"] .top-user-meta strong,
[data-theme="dark"] .metric-value,
[data-theme="dark"] .chart-donut-cell,
[data-theme="dark"] .usage-row-title,
[data-theme="dark"] .subscription-title,
[data-theme="dark"] .profile-title,
[data-theme="dark"] .redeem-title,
[data-theme="dark"] .profile-stat-card strong,
[data-theme="dark"] .redeem-activity-title,
[data-theme="dark"] .top-notice-row-main strong,
[data-theme="dark"] .top-notice-menu-foot strong,
[data-theme="dark"] .top-subscription-row-head strong,
[data-theme="dark"] .top-subscription-mini-line span,
[data-theme="dark"] .dashboard-notice-dialog-body,
[data-theme="dark"] .dashboard-table td,
[data-theme="dark"] .profile-field,
[data-theme="dark"] .subscription-label {
  color: #dfe8fb;
}

[data-theme="dark"] .metric-card,
[data-theme="dark"] .dashboard-filter-bar,
[data-theme="dark"] .chart-card,
[data-theme="dark"] .bottom-card,
[data-theme="dark"] .dashboard-single-card,
[data-theme="dark"] .subscription-plan-card,
[data-theme="dark"] .redeem-form-card,
[data-theme="dark"] .redeem-activity-card,
[data-theme="dark"] .profile-hero-card,
[data-theme="dark"] .profile-section-card,
[data-theme="dark"] .dashboard-notice-dialog,
[data-theme="dark"] .top-dropdown-menu,
[data-theme="dark"] .top-subscription-menu,
[data-theme="dark"] .top-notice-menu {
  background: rgba(19, 31, 49, 0.92);
  border-color: rgba(73, 92, 126, 0.34);
  box-shadow: 0 18px 40px rgba(2, 7, 18, 0.34);
}

[data-theme="dark"] .metric-card,
[data-theme="dark"] .dashboard-filter-bar,
[data-theme="dark"] .chart-card,
[data-theme="dark"] .bottom-card,
[data-theme="dark"] .dashboard-single-card,
[data-theme="dark"] .subscription-plan-card,
[data-theme="dark"] .redeem-form-card,
[data-theme="dark"] .redeem-activity-card,
[data-theme="dark"] .profile-hero-card,
[data-theme="dark"] .profile-section-card {
  backdrop-filter: blur(14px);
}

[data-theme="dark"] .select-chip,
[data-theme="dark"] .filter-btn,
[data-theme="dark"] .mini-chip,
[data-theme="dark"] .profile-ghost-btn {
  background: rgba(30, 43, 64, 0.96);
  border-color: rgba(80, 98, 131, 0.36);
  color: #d3def2;
}

[data-theme="dark"] .metric-icon.mint,
[data-theme="dark"] .usage-row-icon,
[data-theme="dark"] .quick-action-icon.secondary,
[data-theme="dark"] .profile-binding-icon.mint {
  background: rgba(17, 124, 103, 0.24);
  color: #45e3be;
}

[data-theme="dark"] .metric-icon.blue,
[data-theme="dark"] .profile-binding-icon.blue {
  background: rgba(53, 97, 198, 0.24);
  color: #71a6ff;
}

[data-theme="dark"] .metric-icon.lime {
  background: rgba(24, 121, 71, 0.24);
  color: #65e18e;
}

[data-theme="dark"] .metric-icon.purple,
[data-theme="dark"] .profile-binding-icon.amber,
[data-theme="dark"] .redeem-activity-icon {
  background: rgba(118, 62, 195, 0.24);
  color: #b58cff;
}

[data-theme="dark"] .metric-icon.amber {
  background: rgba(171, 112, 27, 0.24);
  color: #ffcb66;
}

[data-theme="dark"] .metric-icon.indigo,
[data-theme="dark"] .metric-icon.violet,
[data-theme="dark"] .metric-icon.rose,
[data-theme="dark"] .profile-binding-icon.green,
[data-theme="dark"] .quick-action-icon {
  background: rgba(44, 72, 128, 0.24);
  color: #8fb2ff;
}

[data-theme="dark"] .trend-grid {
  border-color: rgba(81, 100, 134, 0.3);
  background:
    linear-gradient(180deg, rgba(90, 72, 194, 0.12), rgba(90, 72, 194, 0) 48%),
    linear-gradient(rgba(72, 90, 124, 0.42) 1px, transparent 1px),
    linear-gradient(90deg, rgba(72, 90, 124, 0.42) 1px, transparent 1px),
    #0f1b2d;
  background-size: auto, 100% 32px, 58px 100%, auto;
}

[data-theme="dark"] .chart-donut {
  box-shadow: inset 0 0 0 1px rgba(88, 112, 153, 0.3);
}

[data-theme="dark"] .chart-donut::after {
  background: rgba(19, 31, 49, 0.98);
  box-shadow: inset 0 0 0 1px rgba(73, 92, 126, 0.34);
}

[data-theme="dark"] .chart-donut-center,
[data-theme="dark"] .chart-donut-cell.muted {
  color: #8da0c0;
}

[data-theme="dark"] .usage-row,
[data-theme="dark"] .subscription-row,
[data-theme="dark"] .profile-row,
[data-theme="dark"] .redeem-row,
[data-theme="dark"] .profile-stat-card,
[data-theme="dark"] .profile-avatar-panel,
[data-theme="dark"] .profile-form-panel,
[data-theme="dark"] .profile-binding-row,
[data-theme="dark"] .quick-action-item,
[data-theme="dark"] .redeem-activity-row {
  background: rgba(25, 38, 58, 0.9);
  border-color: rgba(73, 92, 126, 0.28);
}

[data-theme="dark"] .dashboard-table th,
[data-theme="dark"] .dashboard-table td,
[data-theme="dark"] .bottom-card-head,
[data-theme="dark"] .profile-section-head,
[data-theme="dark"] .subscription-plan-body,
[data-theme="dark"] .top-dropdown-menu,
[data-theme="dark"] .top-notice-menu-head,
[data-theme="dark"] .top-notice-menu-foot,
[data-theme="dark"] .top-subscription-menu-head,
[data-theme="dark"] .top-subscription-link,
[data-theme="dark"] .dashboard-notice-dialog-head {
  border-color: rgba(73, 92, 126, 0.26);
}

[data-theme="dark"] .dashboard-table th {
  color: #8fa2c4;
}

[data-theme="dark"] .top-dropdown-item,
[data-theme="dark"] .top-subscription-link {
  color: #dce7fb;
}

[data-theme="dark"] .top-dropdown-item:hover,
[data-theme="dark"] .top-notice-row:hover {
  background: rgba(30, 46, 70, 0.82);
  color: #7de7d7;
}

[data-theme="dark"] .dashboard-toolbar-input {
  background: rgba(25, 38, 58, 0.9);
  border-color: rgba(73, 92, 126, 0.28);
  color: #dfe8fb;
}

[data-theme="dark"] .dashboard-inline-status.is-active {
  background: rgba(24, 121, 71, 0.24);
  color: #65e18e;
}

[data-theme="dark"] .dashboard-inline-status.is-disabled {
  background: rgba(51, 65, 85, 0.64);
  color: #9fb0c8;
}

[data-theme="dark"] .dashboard-action-btn.danger {
  color: #ff9b9b;
  border-color: rgba(164, 74, 74, 0.45);
}

[data-theme="dark"] .top-dropdown-item.danger:hover {
  background: rgba(112, 37, 59, 0.28);
  color: #ff8ea8;
}

[data-theme="dark"] .top-notice-row.is-unread {
  background: rgba(31, 46, 74, 0.88);
}

[data-theme="dark"] .top-notice-row-icon {
  background: rgba(32, 45, 68, 0.92);
  color: #8fa2c4;
}

[data-theme="dark"] .top-notice-row.is-unread .top-notice-row-icon {
  background: rgba(64, 77, 157, 0.28);
  color: #89a4ff;
}

[data-theme="dark"] .top-notice-close,
[data-theme="dark"] .dashboard-notice-dialog-close {
  background: rgba(32, 45, 68, 0.92);
  color: #9cb0d2;
}

[data-theme="dark"] .top-notice-unread-dot {
  box-shadow: 0 0 0 3px #131f31;
}

[data-theme="dark"] .top-subscription-pill {
  border-color: rgba(109, 92, 180, 0.42);
  background: linear-gradient(135deg, rgba(52, 35, 83, 0.9), rgba(32, 25, 55, 0.96));
  color: #bda8ff;
  box-shadow: 0 10px 22px rgba(9, 7, 20, 0.34);
}

[data-theme="dark"] .top-subscription-count {
  color: #e1d6ff;
}

[data-theme="dark"] .top-subscription-mini-progress,
[data-theme="dark"] .subscription-progress {
  background: rgba(52, 65, 93, 0.9);
}

[data-theme="dark"] .subscription-plan-vendor,
[data-theme="dark"] .subscription-plan-status {
  border-color: rgba(36, 170, 104, 0.22);
  background: rgba(24, 91, 57, 0.26);
  color: #78e29f;
}

[data-theme="dark"] .subscription-plan-status.is-expired,
[data-theme="dark"] .subscription-value.is-expired {
  background: rgba(87, 33, 42, 0.26);
  color: #ff98a2;
}

[data-theme="dark"] .redeem-balance-card {
  background: linear-gradient(135deg, #123d56, #0d5e67);
  box-shadow: 0 18px 42px rgba(3, 10, 22, 0.36);
}

[data-theme="dark"] .redeem-input-shell,
[data-theme="dark"] .profile-field input {
  background: rgba(16, 27, 44, 0.96);
  border-color: rgba(80, 98, 131, 0.36);
  color: #e4ecfb;
}

[data-theme="dark"] .redeem-input::placeholder,
[data-theme="dark"] .profile-field input::placeholder {
  color: #7185a8;
}

[data-theme="dark"] .redeem-info-card {
  border-color: rgba(39, 164, 152, 0.2);
  background: rgba(18, 62, 61, 0.72);
}

[data-theme="dark"] .redeem-info-head,
[data-theme="dark"] .redeem-info-list {
  color: #8ce8db;
}

[data-theme="dark"] .redeem-info-icon {
  background: rgba(56, 182, 165, 0.22);
}

[data-theme="dark"] .profile-chip {
  background: rgba(31, 44, 66, 0.92);
  color: #a7b6cf;
}

[data-theme="dark"] .profile-chip.success {
  background: rgba(24, 91, 57, 0.26);
  color: #78e29f;
}

[data-theme="dark"] .profile-chip.muted {
  background: rgba(31, 44, 66, 0.92);
  color: #8fa2c4;
}

@media (max-width: 1280px) {
  .dashboard-metric-grid,
  .dashboard-chart-grid,
  .dashboard-bottom-grid {
    grid-template-columns: 1fr 1fr;
  }

  .dashboard-top-actions {
    gap: 12px;
  }

  .top-user-meta {
    display: none;
  }
}

@media (max-width: 1080px) {
  .app {
    grid-template-columns: 1fr;
  }

  .sidebar {
    display: none;
  }

  .topbar {
    left: 0;
  }

  .dashboard-shell {
    grid-template-columns: 1fr;
    height: auto;
    overflow: visible;
  }

  .dashboard-sidebar {
    display: none;
  }

  .dashboard-body,
  .dashboard-main {
    overflow: visible;
    height: auto;
    min-height: 0;
  }

  .dashboard-metric-grid,
  .dashboard-chart-grid,
  .dashboard-bottom-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-topbar,
  .dashboard-filter-bar {
    height: auto;
    min-height: 0;
    padding-top: 16px;
    padding-bottom: 16px;
    flex-direction: column;
    align-items: flex-start;
  }

  .dashboard-top-actions,
  .filter-left,
  .filter-right {
    width: 100%;
    flex-wrap: wrap;
  }
}

@media (max-width: 820px) {
  .auth-view.login-split {
    width: min(100%, 560px);
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .login-split .auth-brand {
    align-items: center;
    text-align: center;
  }

  .auth-brand-panel {
    display: none;
  }

  .auth-page-rework .auth-brand-panel {
    display: block;
  }

  .auth-card {
    width: min(100%, 520px);
  }

  .dashboard-metric-grid,
  .dashboard-chart-grid,
  .dashboard-bottom-grid {
    margin-left: 16px;
    margin-right: 16px;
    padding-left: 0;
    padding-right: 0;
  }

  .dashboard-filter-bar {
    margin-left: 16px;
    margin-right: 16px;
    padding-left: 14px;
    padding-right: 14px;
  }

  .dashboard-topbar {
    padding-left: 16px;
    padding-right: 16px;
  }

  .chart-table-head {
    grid-template-columns: repeat(5, minmax(72px, 1fr));
    column-gap: 12px;
    overflow-x: auto;
  }

  .usage-hero-grid,
  .usage-breakdown-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .usage-toolbar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .auth-view {
    min-height: 100vh;
    padding: 18px 12px 24px;
  }

  .auth-brand h1 {
    font-size: 30px;
  }

  .auth-logo {
    width: 52px;
    height: 52px;
  }

  .auth-card {
    padding: 24px 18px 22px;
    border-radius: 24px;
  }

  .auth-card h2 {
    font-size: 26px;
  }

  .input-shell {
    padding: 0 12px;
  }

  .input-toggle {
    padding: 0 10px;
  }

  .dashboard-metric-grid,
  .dashboard-chart-grid,
  .dashboard-bottom-grid,
  .dashboard-filter-bar {
    margin-left: 12px;
    margin-right: 12px;
  }

  .dashboard-metric-grid {
    padding-top: 16px;
    gap: 12px;
  }

  .metric-card,
  .chart-card,
  .bottom-card {
    border-radius: 16px;
  }

  .metric-card {
    min-height: 88px;
    padding: 16px 14px;
  }

  .dashboard-topbar {
    padding-left: 12px;
    padding-right: 12px;
  }

  .dashboard-heading h1 {
    font-size: 16px;
  }

  .dashboard-heading p {
    font-size: 11px;
  }

  .top-balance-pill,
  .top-doc-btn,
  .top-lang-btn,
  .top-icon-btn {
    font-size: 12px;
  }

  .bottom-card-head {
    padding: 0 16px;
  }

  .quick-action-item {
    margin: 12px;
    padding: 14px;
    min-height: 0;
  }

  .usage-hero-grid,
  .usage-breakdown-grid,
  .usage-toolbar {
    grid-template-columns: 1fr;
  }

  .usage-pagination {
    flex-direction: column;
    align-items: stretch;
  }

  .usage-pagination-actions {
    justify-content: space-between;
  }

  .usage-breakdown-row {
    grid-template-columns: 1fr;
  }

  .usage-breakdown-side {
    text-align: left;
  }
}
/* Subscription model entitlements */
.subscription-model-access {
  display: grid;
  gap: 6px;
  margin-top: 12px;
}

.subscription-model-access > span {
  color: #62748a;
  font-size: 12px;
  font-weight: 700;
}

.subscription-model-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.subscription-model-price-wrap {
  width: 100%;
  overflow-x: auto;
}

.subscription-model-price-table {
  width: 100%;
  min-width: 480px;
  border-collapse: collapse;
  background: #f8fbfa;
  border: 1px solid #d7ebe4;
  border-radius: 8px;
  overflow: hidden;
}

.subscription-model-price-table th,
.subscription-model-price-table td {
  padding: 8px 10px;
  border-bottom: 1px solid #e3f0eb;
  text-align: left;
  vertical-align: top;
  font-size: 12px;
}

.subscription-model-price-table th {
  background: #eef7f3;
  color: #3f5b67;
  font-weight: 700;
  white-space: nowrap;
}

.subscription-model-price-table td:not(:first-child),
.subscription-model-price-table th:not(:first-child) {
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.subscription-model-price-table tbody tr:last-child td {
  border-bottom: 0;
}

.subscription-model-price-table td strong {
  display: block;
  color: #163c45;
  font-size: 12px;
  font-weight: 700;
}

.subscription-model-price-table td small {
  display: block;
  margin-top: 2px;
  color: #708196;
  font-size: 11px;
  font-weight: 500;
}

.subscription-model-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 8px;
  border: 1px solid #b9e9dd;
  border-radius: 6px;
  background: #f0fbf8;
  color: #163c45;
  font-size: 12px;
  font-weight: 700;
}

.subscription-model-chip small,
.subscription-model-access > em {
  color: #708196;
  font-size: 11px;
  font-style: normal;
  font-weight: 500;
}
