:root {
  --bg: #f8f7fb;
  --surface: #ffffff;
  --surface-2: #f1f4f8;
  --ink: #111827;
  --ink-soft: #344054;
  --muted: #667085;
  --faint: #98a2b3;
  --line: #d9e0ea;
  --line-strong: #bcc7d5;
  --brand: #ff4f6d;
  --brand-dark: #d93453;
  --teal: #6c63ff;
  --green: #15a36d;
  --amber: #c47a12;
  --danger: #d92d20;
  --dark: #101828;
  --dark-2: #1d2939;
  --shadow: 0 18px 48px rgba(16, 24, 40, 0.12);
}

body.docs-manual {
  min-height: 100vh;
  color: #111827;
  background: #ffffff;
}

body.docs-manual::before {
  display: none;
}

.docs-topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 64px;
  padding: 0 28px;
  background: rgba(255, 255, 255, 0.92);
  border-top: 2px solid rgba(255, 79, 109, 0.22);
  border-bottom: 1px solid #e5e7eb;
  box-shadow: none;
  backdrop-filter: blur(16px);
}

.docs-brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  text-decoration: none;
}

.docs-brand img {
  width: 140px;
  height: auto;
  display: block;
  filter: none;
}

.docs-divider {
  color: #9ca3af;
  font-size: 22px;
  line-height: 1;
}

.docs-section-label {
  color: #6b7280;
  font-size: 17px;
  font-weight: 700;
  text-decoration: none;
}

.docs-top-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}

.docs-top-actions a {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  padding: 0 11px;
  color: #667085;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.docs-top-actions a:hover {
  color: #111827;
  background: #f3f4f6;
}

.docs-top-actions .docs-console-link {
  color: #ffffff;
  background: linear-gradient(135deg, #ff4f6d, #ff6fae 48%, #6c63ff);
  box-shadow: 0 10px 24px rgba(255, 79, 109, 0.16);
}

.docs-frame {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr) 280px;
  min-height: calc(100vh - 64px);
  background: #ffffff;
}

.docs-left {
  position: sticky;
  top: 64px;
  align-self: start;
  height: calc(100vh - 64px);
  overflow-y: auto;
  padding: 26px 24px 42px;
  background: #ffffff;
  border-right: 1px solid #e5e7eb;
}

.docs-left::-webkit-scrollbar,
.docs-right::-webkit-scrollbar {
  width: 8px;
}

.docs-left::-webkit-scrollbar-thumb,
.docs-right::-webkit-scrollbar-thumb {
  background: #c7ced8;
  border-radius: 999px;
}

.docs-nav-group {
  margin: 0 0 24px;
}

.docs-nav-group h2 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 14px;
  color: #111827;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0;
}

.docs-nav-group h2 span {
  width: 8px;
  height: 8px;
  border-right: 2px solid #a2adbd;
  border-bottom: 2px solid #a2adbd;
  transform: rotate(45deg) translateY(-2px);
}

.docs-nav-group ul {
  display: grid;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.docs-nav-group a {
  display: block;
  padding: 7px 0;
  color: #5b6678;
  border-radius: 8px;
  font-size: 16px;
  line-height: 1.45;
  text-decoration: none;
}

.docs-nav-group a:hover,
.docs-nav-group a.is-active {
  color: #2f5fd7;
}

.docs-nav-group a.is-active {
  font-weight: 800;
}

.docs-main {
  min-width: 0;
  padding: 44px 56px 88px;
}

.docs-article {
  position: relative;
  max-width: 860px;
  margin: 0 auto;
  color: #374151;
  font-size: 17px;
  line-height: 1.85;
}

.docs-copy-doc {
  position: absolute;
  top: 0;
  right: 0;
  min-height: 46px;
  padding: 0 20px;
  color: #263244;
  background: #ffffff;
  border: 1px solid #e0e5ee;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 800;
  box-shadow: 0 10px 26px rgba(17, 24, 39, 0.06);
}

.docs-copy-doc:hover {
  color: #d93453;
  border-color: rgba(255, 79, 109, 0.34);
  background: #fff7f9;
}

.docs-eyebrow {
  margin: 0 0 8px;
  color: #6c63ff;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.docs-article h1 {
  max-width: calc(100% - 150px);
  margin: 0 0 14px;
  color: #111827;
  font-size: 42px;
  line-height: 1.18;
  letter-spacing: 0;
}

.docs-lead {
  max-width: 760px;
  margin: 0 0 28px;
  color: #5b6678;
  font-size: 17px;
  line-height: 1.85;
}

.docs-callout,
.docs-article blockquote {
  margin: 22px 0 32px;
  padding: 18px 22px;
  color: #7a3827;
  background: #fff7f4;
  border: 0;
  border-left: 4px solid #ff6b4a;
  border-radius: 0 8px 8px 0;
}

.docs-section {
  padding-top: 28px;
  margin-top: 32px;
  border-top: 1px solid #e5e7eb;
  scroll-margin-top: 88px;
}

.docs-section h2 {
  margin: 0 0 18px;
  color: #111827;
  font-size: 29px;
  line-height: 1.28;
  letter-spacing: 0;
}

.docs-section h3 {
  margin: 24px 0 10px;
  color: #182230;
  font-size: 21px;
  line-height: 1.4;
}

.docs-article p {
  margin: 0 0 16px;
}

.docs-article strong {
  color: #111827;
  font-weight: 800;
}

.docs-article code {
  padding: 2px 6px;
  color: #d93453;
  background: #f7f3f5;
  border-radius: 5px;
  font-size: 0.9em;
}

.docs-article pre {
  margin: 18px 0;
  padding: 18px 20px;
  color: #e5e7eb;
  background:
    linear-gradient(180deg, rgba(255, 111, 174, 0.10), transparent 38%),
    #151122;
  border: 1px solid rgba(255, 111, 174, 0.16);
  border-radius: 8px;
  box-shadow: 0 16px 34px rgba(17, 24, 39, 0.12);
}

.docs-article pre code {
  padding: 0;
  color: inherit;
  background: transparent;
  border-radius: 0;
  font-size: 13px;
  line-height: 1.7;
}

.docs-article ul,
.docs-article ol {
  display: grid;
  gap: 8px;
  margin: 0 0 18px;
  padding-left: 24px;
}

.docs-article li {
  padding-left: 2px;
}

.docs-table-scroll {
  width: 100%;
  max-width: 100%;
  margin: 18px 0 22px;
  overflow-x: auto;
}

.docs-table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  overflow: hidden;
}

.docs-table th,
.docs-table td {
  padding: 13px 15px;
  text-align: left;
  vertical-align: top;
  border-right: 1px solid #e5e7eb;
  border-bottom: 1px solid #e5e7eb;
}

.docs-table th:last-child,
.docs-table td:last-child {
  border-right: 0;
}

.docs-table tr:last-child td {
  border-bottom: 0;
}

.docs-table th {
  color: #344054;
  background: #f9fafb;
  font-size: 14px;
  font-weight: 800;
}

.docs-link-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0 22px;
}

.docs-link-grid a {
  display: grid;
  gap: 6px;
  min-width: 0;
  padding: 16px;
  color: inherit;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  text-decoration: none;
}

.docs-link-grid a:hover {
  border-color: rgba(255, 79, 109, 0.36);
  background: #fff9fb;
}

.docs-link-grid strong {
  color: #111827;
  font-size: 16px;
}

.docs-link-grid span {
  color: #667085;
  font-size: 14px;
  line-height: 1.55;
}

.docs-right {
  position: sticky;
  top: 64px;
  align-self: start;
  height: calc(100vh - 64px);
  overflow-y: auto;
  padding: 28px 24px;
  background: #ffffff;
  border-left: 1px solid #e5e7eb;
}

.docs-right h2 {
  margin: 0 0 18px;
  color: #667085;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.docs-right nav {
  display: grid;
  gap: 12px;
}

.docs-right a {
  color: #7b8494;
  font-size: 15px;
  line-height: 1.45;
  text-decoration: none;
}

.docs-right a:hover {
  color: #2f5fd7;
}

@media (max-width: 1180px) {
  .docs-frame {
    grid-template-columns: 280px minmax(0, 1fr);
  }

  .docs-right {
    display: none;
  }

  .docs-main {
    padding-right: 36px;
  }
}

@media (max-width: 820px) {
  .docs-topbar {
    padding: 0 16px;
  }

  .docs-brand img {
    width: 126px;
  }

  .docs-section-label,
  .docs-divider {
    display: none;
  }

  .docs-top-actions a:not(.docs-console-link) {
    display: none;
  }

  .docs-frame {
    display: block;
  }

  .docs-left {
    position: relative;
    top: auto;
    height: auto;
    max-height: 280px;
    border-right: 0;
    border-bottom: 1px solid #e5e7eb;
  }

  .docs-main {
    padding: 28px 18px 72px;
  }

  .docs-article {
    font-size: 16px;
  }

  .docs-copy-doc {
    position: static;
    margin-bottom: 18px;
  }

  .docs-article h1 {
    max-width: none;
    font-size: 34px;
  }

  .docs-link-grid {
    grid-template-columns: 1fr;
  }

  .docs-table {
    min-width: 620px;
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
}

button,
input,
a {
  font: inherit;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
}

pre {
  margin: 0;
  overflow-x: auto;
  white-space: pre;
}

code {
  font-family: "SF Mono", Menlo, Consolas, monospace;
  font-size: 13px;
  line-height: 1.65;
}

.app-shell {
  min-height: 100vh;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 72px;
  padding: 0 40px;
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid rgba(217, 224, 234, 0.9);
  backdrop-filter: blur(18px);
}

.brand,
.sidebar-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand img {
  width: 148px;
  height: auto;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.nav-link,
.text-button,
.side-link {
  color: var(--muted);
  background: transparent;
  border: 0;
}

.nav-link {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border-radius: 8px;
}

.nav-link:hover,
.nav-link.is-active,
.side-link:hover,
.side-link.is-active {
  color: var(--ink);
  background: var(--surface-2);
}

.primary-nav,
.primary-button,
.secondary-button,
.icon-button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 16px;
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid transparent;
}

.primary-nav,
.primary-button {
  color: #ffffff;
  background: var(--brand);
  border-color: var(--brand);
}

.primary-nav:hover,
.primary-button:hover {
  background: var(--brand-dark);
  border-color: var(--brand-dark);
}

.secondary-button,
.icon-button {
  color: var(--ink);
  background: #ffffff;
  border-color: var(--line);
}

.secondary-button:hover,
.icon-button:hover {
  border-color: var(--line-strong);
  background: var(--surface-2);
}

.text-button {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  padding: 0;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.text-button:hover {
  color: var(--ink);
}

.text-link {
  text-decoration: none;
}

.compact-button {
  min-height: 38px;
}

.route-view {
  display: none;
}

.route-view.is-active {
  display: block;
}

.home-page {
  padding-bottom: 64px;
}

.hero-section {
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(460px, 1.06fr);
  gap: 34px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 58px 32px 36px;
  align-items: center;
}

.hero-copy,
.auth-copy {
  min-width: 0;
}

.hero-copy h1,
.auth-copy h1,
.dashboard-header h1 {
  margin: 0;
  color: var(--ink);
  letter-spacing: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.hero-copy h1 {
  max-width: 660px;
  font-size: 52px;
  line-height: 1.08;
}

.auth-copy h1 {
  font-size: 40px;
  line-height: 1.14;
}

.dashboard-header h1 {
  font-size: 32px;
  line-height: 1.18;
}

.lead,
.auth-copy p:not(.eyebrow),
.model-card p,
.pricing-card p,
figcaption,
.security-grid p,
.status-grid p {
  color: var(--muted);
  line-height: 1.7;
  overflow-wrap: anywhere;
}

.lead {
  max-width: 660px;
  margin: 18px 0 0;
  font-size: 17px;
}

.eyebrow,
.panel-label,
.preview-kicker,
.plan-label {
  margin: 0 0 10px;
  color: var(--teal);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero-actions,
.auth-shortcuts {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 26px;
}

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

.signal-grid div,
.model-card,
.pricing-card,
.work-panel,
.metric-card,
.auth-card,
.info-panel,
.status-grid article,
.security-grid article {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.signal-grid div {
  min-width: 0;
  padding: 14px;
}

.signal-grid dt {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 12px;
}

.signal-grid dd {
  margin: 0;
  overflow: hidden;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-preview {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  background: var(--dark);
  border: 1px solid #2d384a;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.preview-topbar {
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 16px;
  color: #cbd5e1;
  border-bottom: 1px solid #2d384a;
  background: #0b1220;
}

.preview-topbar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ef4444;
}

.preview-topbar span:nth-child(2) {
  background: #f59e0b;
}

.preview-topbar span:nth-child(3) {
  background: #22c55e;
}

.preview-topbar strong {
  margin-left: 8px;
  font-size: 13px;
}

.preview-toolbar,
.preview-metrics,
.preview-table,
figcaption {
  margin: 18px;
}

.preview-toolbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.preview-toolbar h2 {
  margin: 0;
  color: #ffffff;
  font-size: 24px;
  letter-spacing: 0;
}

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

.preview-metrics div {
  min-width: 0;
  padding: 14px;
  background: #172033;
  border: 1px solid #2d384a;
  border-radius: 8px;
}

.preview-metrics span,
.preview-row span,
figcaption {
  color: #98a2b3;
}

.preview-metrics strong {
  display: block;
  margin-top: 8px;
  color: #ffffff;
  font-size: 26px;
  line-height: 1;
}

.preview-table {
  display: grid;
  overflow: hidden;
  border: 1px solid #2d384a;
  border-radius: 8px;
}

.preview-row {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr) minmax(70px, 0.5fr);
  gap: 12px;
  min-height: 44px;
  align-items: center;
  padding: 0 12px;
  border-bottom: 1px solid #2d384a;
}

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

.preview-head {
  background: #111a2b;
}

.preview-head span {
  color: #cbd5e1;
  font-size: 12px;
  font-weight: 800;
}

figcaption {
  font-size: 13px;
}

.content-section {
  max-width: 1180px;
  margin: 0 auto;
  padding: 42px 32px 0;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 18px;
}

.section-head h2 {
  max-width: 720px;
  margin: 0;
  color: var(--ink);
  font-size: 32px;
  line-height: 1.2;
  letter-spacing: 0;
}

.model-grid,
.pricing-grid,
.status-grid,
.security-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.model-card,
.pricing-card,
.status-grid article,
.security-grid article {
  min-width: 0;
  padding: 18px;
}

.model-card span {
  color: var(--teal);
  font-size: 12px;
  font-weight: 800;
}

.model-card h3,
.pricing-card h3,
.panel-head h2,
.quickstart-panel h3 {
  margin: 0;
  color: var(--ink);
  letter-spacing: 0;
}

.model-card h3,
.pricing-card h3 {
  margin-top: 10px;
  font-size: 20px;
}

.model-card p,
.pricing-card p,
.status-grid p,
.security-grid p {
  margin: 10px 0 0;
  font-size: 14px;
}

.steps-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps-list li {
  min-width: 0;
  padding: 18px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  counter-increment: step;
}

.steps-list li::before {
  content: counter(step);
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: #ffffff;
  background: var(--dark);
  border-radius: 50%;
  font-size: 13px;
  font-weight: 800;
}

.steps-list strong,
.steps-list span {
  display: block;
}

.steps-list span {
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

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

.pricing-card {
  display: grid;
  gap: 20px;
  align-content: space-between;
}

.pricing-card > strong {
  color: var(--ink);
  font-size: 24px;
}

.docs-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: 16px;
}

.quickstart-panel {
  min-width: 0;
  background: var(--dark);
  border: 1px solid #2d384a;
  border-radius: 8px;
  overflow: hidden;
}

.quickstart-panel .panel-head {
  padding: 18px 18px 0;
}

.quickstart-panel h3 {
  color: #ffffff;
}

.quickstart-panel pre {
  margin-top: 16px;
  padding: 18px;
  color: #e4e7ec;
  background: #0b1220;
}

.docs-links {
  display: grid;
  gap: 10px;
}

.docs-links a {
  display: grid;
  gap: 6px;
  min-height: 74px;
  align-content: center;
  padding: 0 16px;
  text-decoration: none;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.docs-links a:hover {
  border-color: var(--line-strong);
  background: var(--surface-2);
}

.docs-links span {
  color: var(--muted);
  font-size: 13px;
}

.docs-links strong {
  color: var(--ink);
}

.status-grid article {
  display: grid;
  gap: 10px;
}

.status-grid strong,
.security-grid strong {
  color: var(--ink);
}

.dot {
  width: 9px;
  height: 9px;
  display: inline-block;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--faint);
}

.dot.is-green {
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(21, 163, 109, 0.12);
}

.dot.is-amber {
  background: var(--amber);
  box-shadow: 0 0 0 4px rgba(196, 122, 18, 0.12);
}

.dot.is-red {
  background: #ef4444;
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.12);
}

.status-pill,
.table-status {
  min-height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.status-pill.is-ok,
.table-status.is-ok {
  color: #067647;
  background: #dcfae6;
}

.table-status.is-warn {
  color: #93370d;
  background: #fef0c7;
}

.table-status.is-muted {
  color: var(--muted);
  background: var(--surface-2);
}

.auth-page {
  display: none;
  grid-template-columns: minmax(0, 0.8fr) minmax(360px, 440px) minmax(260px, 0.55fr);
  gap: 22px;
  max-width: 1180px;
  min-height: calc(100vh - 72px);
  margin: 0 auto;
  padding: 54px 32px;
  align-items: center;
}

.auth-page.is-active {
  display: grid;
}

.auth-card,
.info-panel {
  padding: 22px;
  box-shadow: var(--shadow);
}

.auth-copy p:not(.eyebrow) {
  max-width: 480px;
  margin: 16px 0 0;
}

.stepper {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 22px;
}

.step {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 8px;
  color: var(--faint);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 13px;
  white-space: nowrap;
}

.step.is-active {
  color: var(--ink);
  background: #fff1f3;
  border-color: #f9a8b8;
}

.form-stack {
  display: grid;
  gap: 16px;
}

label {
  display: grid;
  gap: 8px;
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 700;
}

input[type="email"],
input[type="password"],
input[type="text"] {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  color: var(--ink);
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  outline: 0;
}

input:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(8, 127, 140, 0.14);
}

.checkbox-line {
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  color: var(--muted);
  font-weight: 500;
  line-height: 1.55;
}

.checkbox-line input {
  margin-top: 3px;
  accent-color: var(--brand);
}

.verify-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.verify-heading h2 {
  margin: 0;
  font-size: 20px;
  letter-spacing: 0;
}

.otp-row {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
}

.otp-row input {
  height: 52px;
  padding: 0;
  text-align: center;
  font-size: 22px;
  font-weight: 800;
}

.auth-side {
  display: grid;
  gap: 14px;
}

.status-line {
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-height: 38px;
  color: var(--muted);
  font-size: 14px;
}

.status-line strong {
  color: var(--ink);
  font-size: 13px;
}

.plain-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  color: var(--muted);
  list-style: none;
}

.plain-list li::before {
  content: "";
  width: 7px;
  height: 7px;
  display: inline-block;
  margin-right: 9px;
  border-radius: 50%;
  background: var(--teal);
}

.is-hidden {
  display: none !important;
}

.dashboard {
  min-height: calc(100vh - 72px);
  background: #eef2f7;
}

.dashboard.is-active {
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
}

.sidebar {
  padding: 22px 16px;
  border-right: 1px solid var(--line);
  background: #ffffff;
}

.sidebar-brand {
  min-height: 42px;
  margin: 0 0 18px;
  padding: 0 10px;
  color: var(--ink);
  font-weight: 800;
}

.sidebar-brand img {
  width: 28px;
  height: 28px;
}

.sidebar nav {
  display: grid;
  gap: 6px;
}

.side-link {
  min-height: 42px;
  padding: 0 12px;
  text-align: left;
  border-radius: 8px;
  font-weight: 700;
}

.dashboard-main {
  min-width: 0;
  padding: 28px;
}

.dashboard-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}

.user-chip {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 42px;
  max-width: 100%;
  padding: 0 12px 0 14px;
  color: var(--muted);
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.user-chip span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 14px;
}

.app-shell.is-console:not([data-route="dashboard"]) .metrics-grid {
  display: none;
}

.app-shell.is-console:not([data-route="dashboard"]) .subscription-progress-panel {
  display: none;
}

.metric-card {
  min-width: 0;
  padding: 18px;
}

.metric-card span,
.metric-card small {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.metric-card strong {
  display: block;
  margin: 10px 0 8px;
  color: var(--ink);
  font-size: 30px;
  line-height: 1;
  letter-spacing: 0;
}

.subscription-progress-panel {
  display: grid;
  gap: 14px;
  margin-bottom: 14px;
  padding: 16px;
  background: #ffffff;
  border: 1px solid rgba(79, 62, 103, 0.10);
  border-radius: 8px;
  box-shadow: var(--soft-shadow);
}

.subscription-progress-panel.is-hidden {
  display: none;
}

.subscription-progress-head,
.subscription-progress-row,
.subscription-progress-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.subscription-progress-head h2 {
  margin: 2px 0 0;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.2;
}

.subscription-progress-head > span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

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

.subscription-progress-row {
  min-width: 0;
}

.subscription-progress-label {
  min-width: 128px;
  color: var(--ink);
  font-weight: 900;
}

.subscription-progress-label small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.subscription-progress-track {
  position: relative;
  flex: 1;
  min-width: 120px;
  height: 12px;
  overflow: hidden;
  background: rgba(79, 62, 103, 0.10);
  border-radius: 999px;
}

.subscription-progress-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--progress, 0%);
  background: linear-gradient(135deg, #ff4f6d, #6c63ff);
  border-radius: inherit;
}

.subscription-progress-meta {
  min-width: 142px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.subscription-progress-meta strong {
  color: var(--ink);
}

.subscription-reset-button {
  min-width: 112px;
  white-space: nowrap;
}

.subscription-reset-button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.subscription-reset-used {
  min-width: 112px;
  color: #3f7d4d;
  font-size: 12px;
  font-weight: 900;
  text-align: right;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
  gap: 14px;
}

.topup-orders-layout {
  grid-template-columns: minmax(0, 1fr);
}

.panel-stack {
  display: grid;
  gap: 14px;
}

.work-panel {
  min-width: 0;
  padding: 18px;
}

.wide-panel {
  grid-column: span 1;
}

.panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.panel-head h2 {
  font-size: 22px;
}

.work-panel pre {
  padding: 16px;
  color: #e4e7ec;
  background: var(--dark);
  border-radius: 8px;
}

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

.service-list div {
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-height: 40px;
  color: var(--muted);
}

.service-list strong {
  color: var(--ink);
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
  max-width: 100%;
}

.topup-orders-table-window {
  max-height: 342px;
  overflow: auto;
  border: 1px solid rgba(79, 62, 103, 0.10);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.30);
}

.topup-orders-table-window table {
  min-width: 980px;
}

.topup-orders-table-window thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: rgba(255, 250, 252, 0.96);
  backdrop-filter: blur(14px);
}

table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
}

th,
td {
  padding: 13px 10px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
  vertical-align: middle;
}

th {
  color: var(--faint);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

td:first-child {
  color: var(--ink);
  font-weight: 700;
}

.table-subtext {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.key-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.create-key-bar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto minmax(220px, 0.9fr);
  align-items: end;
  gap: 12px;
  margin-bottom: 14px;
  padding: 12px;
  background: rgba(255, 247, 240, 0.68);
  border: 1px solid rgba(79, 62, 103, 0.12);
  border-radius: 8px;
}

.create-key-bar .muted-text {
  margin: 0;
  align-self: center;
}

.mini-button {
  min-height: 30px;
  padding: 0 10px;
  color: var(--ink);
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 800;
}

.mini-button:hover {
  background: var(--surface-2);
}

.mini-button:disabled {
  cursor: wait;
  opacity: 0.58;
}

.danger-mini-button {
  color: #b42336;
  border-color: rgba(180, 35, 54, 0.18);
}

.danger-mini-button:hover {
  color: #8f1d2d;
  background: rgba(255, 79, 109, 0.08);
}

.one-time-key {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 14px;
  padding: 14px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.86), rgba(255, 247, 240, 0.78)) padding-box,
    linear-gradient(135deg, rgba(255, 79, 109, 0.30), rgba(108, 99, 255, 0.24)) border-box;
  border: 1px solid transparent;
  border-radius: 8px;
  box-shadow: 0 18px 38px rgba(42, 22, 64, 0.08);
}

.one-time-key strong {
  display: block;
  max-width: min(560px, 70vw);
  margin-top: 4px;
  overflow-wrap: anywhere;
  color: var(--berry-blackberry);
  font-family: "SFMono-Regular", "JetBrains Mono", Consolas, monospace;
  font-size: 13px;
}

.one-time-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.table-empty {
  min-height: 92px;
  display: grid;
  place-items: center;
  gap: 6px;
  padding: 18px;
  text-align: center;
}

.table-empty strong {
  color: var(--berry-blackberry);
  font-size: 16px;
}

.table-empty span {
  color: rgba(53, 43, 76, 0.60);
  font-weight: 600;
}

.usage-chart {
  height: 220px;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  align-items: end;
  gap: 12px;
  padding: 12px 4px 0;
  border-top: 1px solid var(--line);
}

.usage-chart span {
  height: var(--h);
  min-height: 24px;
  border-radius: 8px 8px 0 0;
  background: linear-gradient(180deg, #14b8a6, #087f8c);
}

.billing-summary {
  display: grid;
  gap: 12px;
  margin: 0;
}

.billing-summary div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.billing-summary dt,
.billing-summary dd {
  margin: 0;
}

.billing-summary dt {
  color: var(--muted);
}

.billing-summary dd {
  color: var(--ink);
  font-weight: 800;
}

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

.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 50;
  max-width: min(360px, calc(100vw - 32px));
  padding: 13px 16px;
  color: #ffffff;
  background: var(--dark);
  border-radius: 8px;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 160ms ease, transform 160ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.toast[data-tone="danger"] {
  background: var(--danger);
}

@media (max-width: 1080px) {
  .site-header {
    padding: 0 24px;
  }

  .hero-section,
  .auth-page {
    grid-template-columns: 1fr;
  }

  .product-preview {
    max-width: 720px;
  }

  .auth-side {
    display: none;
  }

  .model-grid,
  .steps-list,
  .status-grid,
  .security-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 860px) {
  .brand img {
    width: 132px;
  }

  .nav-section {
    display: none;
  }

  .hero-copy h1 {
    font-size: 40px;
  }

  .pricing-grid,
  .docs-layout,
  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .dashboard.is-active {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: sticky;
    top: 72px;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 10px;
    overflow-x: auto;
    padding: 10px 16px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .sidebar-brand {
    margin: 0;
    flex: 0 0 auto;
  }

  .sidebar nav {
    display: flex;
    flex: 0 0 auto;
    gap: 6px;
  }

  .side-link {
    white-space: nowrap;
  }
}

@media (max-width: 640px) {
  .site-header {
    min-height: 64px;
    padding: 0 14px;
  }

  .brand img {
    width: 120px;
  }

  .main-nav {
    gap: 4px;
  }

  .nav-link {
    min-height: 36px;
    padding: 0 9px;
    font-size: 14px;
  }

  .primary-nav {
    min-height: 36px;
    padding: 0 10px;
    font-size: 13px;
  }

  .hero-section,
  .content-section,
  .auth-page {
    padding-left: 16px;
    padding-right: 16px;
  }

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

  .hero-copy h1,
  .auth-copy h1 {
    max-width: 100%;
    font-size: 32px;
    line-height: 1.16;
    word-break: normal;
  }

  .dashboard-header h1 {
    font-size: 26px;
  }

  .lead {
    font-size: 16px;
    word-break: normal;
  }

  .hero-actions,
  .auth-shortcuts {
    align-items: stretch;
  }

  .hero-actions > *,
  .auth-shortcuts > * {
    width: 100%;
  }

  .signal-grid,
  .preview-metrics,
  .model-grid,
  .steps-list,
  .status-grid,
  .security-grid,
  .metrics-grid {
    grid-template-columns: 1fr;
  }

  .subscription-progress-head,
  .subscription-progress-row {
    align-items: stretch;
    flex-direction: column;
  }

  .subscription-progress-meta {
    width: 100%;
  }

  .subscription-reset-button,
  .subscription-reset-used {
    width: 100%;
    text-align: center;
  }

  .section-head {
    display: block;
  }

  .section-head h2 {
    font-size: 26px;
  }

  .preview-row {
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr) minmax(62px, 0.5fr);
    gap: 8px;
    font-size: 13px;
  }

  .auth-card,
  .info-panel,
  .work-panel,
  .metric-card {
    padding: 16px;
  }

  .step {
    font-size: 12px;
  }

  .otp-row {
    gap: 6px;
  }

  .otp-row input {
    height: 48px;
    font-size: 20px;
  }

  .dashboard-main {
    padding: 18px 14px 28px;
  }

  .dashboard-header {
    align-items: stretch;
    flex-direction: column;
  }

  .user-chip {
    justify-content: space-between;
  }

  .panel-head {
    flex-direction: column;
    align-items: stretch;
  }

  .create-key-bar {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .one-time-key {
    align-items: stretch;
    flex-direction: column;
  }

  .toast {
    right: 16px;
    bottom: 16px;
  }
}

@media (max-width: 390px) {
  .brand img {
    width: 108px;
  }

  .nav-link {
    padding: 0 7px;
  }

  .primary-nav {
    max-width: 96px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

/* BerryCode public site v3 */
.app-shell[data-route="dashboard"] .site-header {
  display: none;
}

.hero-shell {
  min-height: min(760px, calc(100vh - 150px));
  grid-template-columns: minmax(0, 0.92fr) minmax(420px, 0.78fr);
  padding-top: 42px;
  padding-bottom: 34px;
}

.hero-shell .hero-copy h1 {
  max-width: 760px;
  font-size: 58px;
  line-height: 1.02;
}

.hero-shell .lead {
  max-width: 690px;
  font-size: 18px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.hero-meta span {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  color: var(--ink-soft);
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}

.hero-status-card {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
  color: #e4e7ec;
  background: #101828;
  border: 1px solid #2d384a;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.terminal-strip {
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 16px;
  border-bottom: 1px solid #2d384a;
  background: #0b1220;
}

.terminal-strip span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ef4444;
}

.terminal-strip span:nth-child(2) {
  background: #f59e0b;
}

.terminal-strip span:nth-child(3) {
  background: #22c55e;
}

.terminal-strip strong {
  margin-left: 8px;
  color: #cbd5e1;
  font-size: 13px;
}

.console-preview-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin: 18px;
}

.console-preview-head h2 {
  margin: 0;
  color: #ffffff;
  font-size: 24px;
  line-height: 1.25;
  letter-spacing: 0;
}

.guide-section {
  padding-top: 56px;
}

.experience-grid,
.reason-grid,
.contact-grid {
  display: grid;
  gap: 14px;
}

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

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

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

.experience-grid article,
.reason-grid article,
.contact-grid article,
.pricing-note {
  min-width: 0;
  padding: 20px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.experience-grid span {
  color: var(--teal);
  font-size: 13px;
  font-weight: 900;
}

.experience-grid h3,
.reason-grid h3,
.contact-grid h3 {
  margin: 12px 0 0;
  color: var(--ink);
  font-size: 21px;
  line-height: 1.25;
  letter-spacing: 0;
}

.experience-grid p,
.reason-grid p,
.contact-grid p,
.pricing-note span {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

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

.ecosystem-grid div {
  min-width: 0;
  padding: 16px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.ecosystem-grid strong,
.ecosystem-grid span,
.pricing-note strong,
.pricing-note span {
  display: block;
}

.ecosystem-grid strong {
  color: var(--ink);
}

.ecosystem-grid span {
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
}

.pricing-note {
  display: grid;
  gap: 4px;
  margin-bottom: 14px;
}

.pricing-note strong {
  color: var(--ink);
}

.pricing-table {
  overflow: hidden;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.pricing-row {
  display: grid;
  grid-template-columns:
    minmax(140px, 1fr)
    minmax(76px, 0.55fr)
    minmax(64px, 0.45fr)
    minmax(92px, 0.62fr)
    minmax(96px, 0.65fr)
    minmax(128px, 0.9fr)
    minmax(84px, 0.55fr)
    minmax(84px, 0.58fr);
  gap: 12px;
  align-items: center;
  min-height: 58px;
  padding: 0 18px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

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

.pricing-row span:first-child,
.pricing-head span {
  color: var(--ink);
  font-weight: 800;
}

.pricing-head {
  min-height: 46px;
  background: var(--surface-2);
  color: var(--ink);
  font-size: 13px;
}

.discount-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 7px;
  color: #075985;
  background: linear-gradient(135deg, rgba(125, 211, 252, 0.95), rgba(56, 189, 248, 0.82));
  font-weight: 900;
}

.contact-grid article {
  display: grid;
  align-content: space-between;
  gap: 18px;
}

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

.contact-actions-label {
  grid-column: 1 / -1;
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
}

.contact-button,
.contact-email {
  min-width: 0;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #ffffff;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.contact-button:hover {
  border-color: var(--line-strong);
  background: var(--surface-2);
}

.contact-email {
  grid-column: 1 / -1;
  width: 100%;
  justify-content: center;
  text-align: center;
  overflow-wrap: anywhere;
}

.contact-email-address {
  min-width: 0;
  display: inline-flex;
  flex-wrap: wrap;
}

.brand-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  fill: currentColor;
}

.gmail-icon {
  fill: none;
}

.remember-line {
  margin-top: -4px;
}

.dashboard {
  min-height: 100vh;
  background: #f8fafc;
}

.dashboard.is-active {
  grid-template-columns: 260px minmax(0, 1fr);
}

.sidebar {
  min-height: 100vh;
  position: sticky;
  top: 0;
  align-self: start;
  background: #ffffff;
}

.sidebar-footer {
  display: grid;
  gap: 8px;
  margin-top: 28px;
  padding: 14px 10px 0;
  border-top: 1px solid var(--line);
}

.sidebar-footer a {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.sidebar-footer a:hover {
  color: var(--ink);
}

.side-link.is-active {
  color: #1a2f5a;
  background: #eff6ff;
}

.dashboard-main {
  padding: 30px;
}

.metric-card,
.work-panel {
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
}

.metric-card strong {
  color: #1a2f5a;
}

.app-shell.is-console .site-header {
  display: none;
}

.console-page {
  display: none;
}

.console-page.is-active {
  display: block;
}

.balance-alert {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 18px;
  padding: 18px;
  color: var(--ink);
  background:
    linear-gradient(145deg, rgba(255, 250, 246, 0.92), rgba(255, 241, 246, 0.86)) padding-box,
    linear-gradient(135deg, rgba(255, 79, 109, 0.46), rgba(108, 99, 255, 0.26)) border-box;
  border: 1px solid transparent;
  border-radius: 8px;
  box-shadow: 0 16px 34px rgba(255, 79, 109, 0.10);
}

.balance-alert.is-hidden {
  display: none;
}

.balance-alert h2,
.balance-alert p {
  margin: 0;
}

.balance-alert h2 {
  margin-top: 4px;
  color: var(--berry-blackberry);
  font-size: 20px;
  letter-spacing: 0;
}

.balance-alert p:not(.panel-label) {
  margin-top: 6px;
  color: var(--muted);
  line-height: 1.6;
}

.console-subtitle {
  max-width: 720px;
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.topbar-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
  min-width: 0;
}

.status-chip,
.balance-chip,
.language-chip {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  color: var(--ink-soft);
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.balance-chip {
  color: var(--brand-dark);
  background: #fff1f4;
  border-color: #ffd0da;
}

.balance-chip.is-low {
  color: #b91c1c;
  background: #fff0f3;
  border-color: rgba(255, 79, 109, 0.42);
  box-shadow: 0 10px 28px rgba(255, 79, 109, 0.18);
}

.metric-card.is-low-balance {
  border-color: rgba(255, 79, 109, 0.40);
  box-shadow: 0 18px 44px rgba(255, 79, 109, 0.14);
}

.sidebar-brand img {
  object-fit: cover;
  border-radius: 8px;
}

.side-link {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.side-icon {
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  color: #6c63ff;
  background: #f1f0ff;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 900;
}

.side-link.is-active .side-icon {
  color: #ffffff;
  background: linear-gradient(135deg, #ff4f6d, #6c63ff);
}

.filter-bar,
.usage-summary,
.feedback-tabs,
.quick-actions,
.amount-grid,
.performance-grid {
  display: grid;
  gap: 12px;
}

.filter-bar {
  grid-template-columns: minmax(180px, 1fr) minmax(150px, 0.4fr) auto;
  align-items: end;
  margin-bottom: 16px;
}

.order-filter-bar {
  grid-template-columns: minmax(180px, 1.2fr) repeat(4, minmax(130px, 0.7fr)) auto;
}

.topup-orders-layout > .work-panel:first-child .billing-summary {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.topup-orders-layout > .work-panel:first-child .billing-summary div {
  display: grid;
  gap: 6px;
  align-content: start;
  padding: 14px;
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid rgba(79, 62, 103, 0.10);
  border-radius: 8px;
}

.topup-orders-layout > .work-panel:first-child .billing-summary dt {
  font-size: 12px;
}

.topup-orders-layout > .work-panel:first-child .billing-summary dd {
  overflow-wrap: anywhere;
}

.filter-input {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.filter-input span,
.form-grid span,
.profile-list dt {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

select,
textarea,
.filter-input input,
.form-grid input {
  width: 100%;
  color: var(--ink);
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  outline: none;
}

select {
  min-height: 42px;
  padding: 0 12px;
}

.filter-input input,
.form-grid input {
  min-height: 42px;
  padding: 0 12px;
}

textarea {
  min-height: 118px;
  padding: 12px;
  resize: vertical;
  line-height: 1.6;
}

select:focus,
textarea:focus,
.filter-input input:focus,
.form-grid input:focus {
  border-color: rgba(108, 99, 255, 0.65);
  box-shadow: 0 0 0 3px rgba(108, 99, 255, 0.12);
}

.topup-order-row.is-selected td {
  background: rgba(255, 247, 250, 0.74);
}

.order-detail-panel {
  display: grid;
  gap: 16px;
  margin-top: 16px;
  padding: 18px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(255, 247, 240, 0.76)) padding-box,
    linear-gradient(135deg, rgba(255, 79, 109, 0.22), rgba(108, 99, 255, 0.18)) border-box;
  border: 1px solid transparent;
  border-radius: 8px;
  overflow: hidden;
}

.order-detail-panel h3,
.order-detail-panel p {
  margin: 0;
}

.order-detail-panel h3 {
  margin-top: 4px;
  color: var(--berry-blackberry);
  font-size: 20px;
}

.order-detail-panel p:not(.panel-label) {
  margin-top: 6px;
  color: var(--muted);
  line-height: 1.6;
}

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

.order-detail-grid div {
  min-width: 0;
  padding: 12px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(79, 62, 103, 0.10);
  border-radius: 8px;
}

.order-detail-grid dt,
.order-detail-grid dd {
  margin: 0;
}

.order-detail-grid dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.order-detail-grid dd {
  margin-top: 5px;
  color: var(--ink);
  font-weight: 800;
  overflow-wrap: anywhere;
}

.crypto-payment-panel {
  display: grid;
  gap: 14px;
  padding: 16px;
  background:
    linear-gradient(135deg, rgba(23, 19, 38, 0.93), rgba(54, 37, 88, 0.92)) padding-box,
    linear-gradient(135deg, rgba(255, 79, 109, 0.58), rgba(108, 99, 255, 0.54)) border-box;
  border: 1px solid transparent;
  border-radius: 8px;
  color: #fff;
  overflow: hidden;
}

.crypto-payment-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.crypto-payment-head h4,
.crypto-payment-panel p {
  margin: 0;
}

.crypto-payment-head h4 {
  margin-top: 4px;
  font-size: 18px;
}

.crypto-detail-grid div {
  background: rgba(255, 255, 255, 0.10);
  border-color: rgba(255, 255, 255, 0.16);
}

.crypto-detail-grid dt {
  color: rgba(255, 255, 255, 0.62);
}

.crypto-detail-grid dd {
  color: #fff;
}

.crypto-detail-grid code {
  color: #fff;
  font-size: 12px;
  white-space: normal;
}

.crypto-detail-grid .wide-detail {
  grid-column: span 3;
}

.crypto-payment-panel .muted-text {
  color: rgba(255, 255, 255, 0.68);
}

.crypto-payment-panel .mini-button {
  color: #fff;
  background: rgba(255, 255, 255, 0.10);
  border-color: rgba(255, 255, 255, 0.18);
}

.fiat-checkout-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 34% -8%, rgba(108, 99, 255, 0.18), transparent 34%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(255, 247, 250, 0.94));
  border: 1px solid rgba(79, 62, 103, 0.12);
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(46, 35, 74, 0.10);
}

.fiat-checkout-hero,
.fiat-checkout-summary {
  padding: clamp(24px, 4vw, 42px);
}

.fiat-checkout-hero {
  display: grid;
  align-content: start;
  gap: 22px;
  border-right: 1px solid rgba(79, 62, 103, 0.10);
}

.checkout-badge {
  width: fit-content;
  padding: 7px 15px;
  color: #3b62b7;
  background: rgba(80, 133, 255, 0.08);
  border: 1px solid rgba(80, 133, 255, 0.26);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
}

.fiat-checkout-hero h3 {
  margin: 0;
  font-size: 52px;
  line-height: 1;
  letter-spacing: 0;
}

.fiat-checkout-hero p {
  margin: 0;
  max-width: 560px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
}

.checkout-qr-card {
  display: grid;
  gap: 22px;
  margin-top: 8px;
  padding: clamp(22px, 3vw, 32px);
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid rgba(79, 62, 103, 0.12);
  border-radius: 8px;
}

.checkout-qr-card > p {
  font-size: 16px;
}

.checkout-qr-frame {
  display: grid;
  place-items: center;
  justify-self: center;
  width: min(100%, 330px);
  aspect-ratio: 1;
  padding: 18px;
  color: var(--muted);
  background: #fff;
  border: 1px dashed rgba(79, 62, 103, 0.24);
  border-radius: 8px;
  font-weight: 800;
}

.checkout-qr-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 6px;
}

.checkout-amount-strip {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  padding: 16px 18px;
  background: rgba(255, 255, 255, 0.82);
  border-radius: 8px;
}

.checkout-amount-strip div {
  display: grid;
  gap: 8px;
}

.checkout-amount-strip div:last-child {
  text-align: right;
}

.checkout-amount-strip span {
  color: rgba(79, 62, 103, 0.58);
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
}

.checkout-amount-strip strong {
  color: var(--ink);
  font-size: 24px;
}

.checkout-amount-strip div:last-child strong {
  color: #3866c9;
}

.fiat-checkout-summary {
  display: grid;
  align-content: start;
  gap: 24px;
}

.checkout-summary-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: start;
}

.checkout-summary-head div {
  display: grid;
  gap: 12px;
}

.checkout-summary-head span,
.checkout-summary-list dt {
  color: var(--muted);
  font-size: 16px;
  font-weight: 700;
}

.checkout-summary-head strong {
  color: var(--ink);
  font-size: 42px;
  line-height: 1;
}

.checkout-credit {
  padding: 13px 19px;
  color: #3866c9;
  background: rgba(108, 99, 255, 0.09);
  border-radius: 999px;
  font-size: 20px;
  font-weight: 900;
}

.checkout-summary-list {
  display: grid;
  gap: 18px;
  margin: 0;
}

.checkout-summary-list div {
  display: grid;
  grid-template-columns: minmax(96px, 0.8fr) minmax(0, 1.2fr);
  gap: 18px;
  align-items: baseline;
}

.checkout-summary-list dd {
  margin: 0;
  color: var(--ink);
  font-size: 17px;
  font-weight: 900;
  text-align: right;
}

.checkout-status {
  padding: 18px 20px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 900;
}

.checkout-status.is-waiting {
  color: #0d8d5a;
  background: rgba(50, 214, 147, 0.14);
  border: 1px solid rgba(50, 214, 147, 0.34);
}

.checkout-status.is-paid {
  color: #295ec8;
  background: rgba(108, 99, 255, 0.11);
  border: 1px solid rgba(108, 99, 255, 0.22);
}

.checkout-status.is-closed {
  color: #8d4254;
  background: rgba(255, 79, 109, 0.10);
  border: 1px solid rgba(255, 79, 109, 0.20);
}

.checkout-action,
.checkout-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0 22px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(79, 62, 103, 0.14);
  border-radius: 8px;
  font-size: 16px;
  font-weight: 900;
  text-decoration: none;
}

.checkout-action {
  color: #fff;
  background: linear-gradient(135deg, var(--berry-red), var(--berry-pink), var(--blueberry));
  border: 0;
}

.fiat-payment-panel {
  display: grid;
  gap: 14px;
  padding: 16px;
  color: var(--ink);
  background:
    linear-gradient(135deg, rgba(255, 247, 240, 0.95), rgba(255, 238, 247, 0.90)) padding-box,
    linear-gradient(135deg, rgba(255, 79, 109, 0.35), rgba(108, 99, 255, 0.24)) border-box;
  border: 1px solid transparent;
  border-radius: 8px;
}

.fiat-payment-head,
.fiat-payment-body {
  display: flex;
  gap: 14px;
}

.fiat-payment-head {
  align-items: center;
  justify-content: space-between;
}

.fiat-payment-head h4 {
  margin: 4px 0 0;
  font-size: 18px;
}

.fiat-payment-body {
  align-items: stretch;
}

.fiat-qr-box {
  display: grid;
  place-items: center;
  flex: 0 0 184px;
  min-height: 184px;
  padding: 12px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(79, 62, 103, 0.12);
  border-radius: 8px;
  text-align: center;
  font-weight: 800;
}

.fiat-qr-box img {
  width: 160px;
  height: 160px;
  object-fit: contain;
  border-radius: 8px;
}

.fiat-detail-grid {
  flex: 1;
}

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

.mini-ledger,
.identity-grid {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.mini-ledger div,
.identity-grid div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
  padding: 12px;
  background: rgba(255, 255, 255, 0.70);
  border: 1px solid rgba(79, 62, 103, 0.10);
  border-radius: 8px;
}

.mini-ledger span,
.identity-grid span {
  color: var(--muted);
  font-size: 13px;
}

.mini-ledger strong,
.identity-grid strong {
  color: var(--ink);
  overflow-wrap: anywhere;
}

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

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

.usage-summary div,
.performance-grid div {
  min-width: 0;
  padding: 14px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.usage-summary span,
.performance-grid span,
.invite-row span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.usage-summary strong,
.performance-grid strong,
.invite-row strong {
  display: block;
  margin-top: 8px;
  color: var(--ink);
  font-size: 24px;
  line-height: 1;
}

.invite-row {
  display: grid;
  grid-template-columns: minmax(160px, 0.45fr) minmax(260px, 0.8fr) minmax(0, 1fr);
  gap: 14px;
  align-items: center;
}

.invite-row > div,
.code-card {
  display: block;
  min-width: 0;
  padding: 15px;
  background: #101828;
  border-radius: 8px;
}

.invite-row strong,
.code-card {
  color: #ffffff;
  font-family: "SF Mono", Menlo, Consolas, monospace;
}

.invite-row p,
.muted-text,
.empty-state p,
.notice-panel p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.invite-code-stack {
  display: grid;
  gap: 12px;
}

.invite-code-stack > div {
  display: grid;
  gap: 7px;
}

.invite-code-stack .code-card,
.invite-row .code-card,
#dashboard-invite-link {
  overflow-wrap: anywhere;
}

.auth-inline-note {
  margin: -4px 0 0;
  padding: 10px 12px;
  color: #3f3b73;
  background: rgba(108, 99, 255, 0.08);
  border: 1px solid rgba(108, 99, 255, 0.14);
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.5;
}

.auth-inline-note.is-hidden {
  display: none;
}

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

.model-bars div {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr) 44px;
  gap: 10px;
  align-items: center;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.model-bars i {
  height: 9px;
  display: block;
  overflow: hidden;
  background: var(--surface-2);
  border-radius: 999px;
}

.model-bars i::before {
  content: "";
  width: var(--w);
  height: 100%;
  display: block;
  background: linear-gradient(90deg, #ff4f6d, #ff6fae, #6c63ff);
  border-radius: inherit;
}

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

.quick-actions a {
  display: grid;
  gap: 6px;
  min-width: 0;
  padding: 16px;
  color: var(--ink);
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  text-decoration: none;
}

.quick-actions a:hover {
  border-color: #ff9bad;
  background: #fff7f9;
}

.quick-actions span {
  color: var(--muted);
  font-size: 13px;
}

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

.subscription-toolbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  margin-bottom: 16px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(79, 62, 103, 0.10);
  border-radius: 8px;
  box-shadow: 0 12px 32px rgba(42, 22, 64, 0.06);
}

.subscription-toolbar h2 {
  margin: 2px 0 0;
  font-size: 22px;
}

.payment-method-menu {
  display: flex;
  align-items: end;
  gap: 10px;
  min-width: min(100%, 320px);
}

.payment-method-menu label {
  display: grid;
  gap: 6px;
  min-width: 180px;
}

.payment-method-menu label > span,
.custom-amount-field span,
.invite-code-stack span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.plan-price {
  margin: 0 0 14px;
  color: var(--brand-dark);
  font-size: 30px;
  font-weight: 900;
  line-height: 1;
}

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

.custom-amount-field {
  display: grid;
  grid-column: 1 / -1;
  gap: 7px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(79, 62, 103, 0.10);
  border-radius: 8px;
}

.custom-amount-field input {
  width: 100%;
  min-height: 42px;
  padding: 0 12px;
  color: var(--ink);
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  outline: none;
}

.custom-amount-field input:focus {
  border-color: rgba(108, 99, 255, 0.65);
  box-shadow: 0 0 0 3px rgba(108, 99, 255, 0.12);
}

.amount-option {
  min-height: 42px;
  color: var(--ink);
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 900;
}

.amount-option.is-selected,
.amount-option:hover {
  color: #ffffff;
  background: linear-gradient(135deg, #ff4f6d, #6c63ff);
  border-color: transparent;
}

.amount-option.is-disabled,
.amount-option:disabled {
  cursor: not-allowed;
  color: rgba(79, 62, 103, 0.38);
  background: rgba(245, 245, 247, 0.78);
  border-color: rgba(79, 62, 103, 0.08);
  box-shadow: none;
}

.amount-option.is-disabled:hover,
.amount-option:disabled:hover {
  color: rgba(79, 62, 103, 0.38);
  background: rgba(245, 245, 247, 0.78);
  border-color: rgba(79, 62, 103, 0.08);
}

.topup-rate-note {
  margin: -4px 0 2px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.feedback-tabs {
  grid-template-columns: repeat(5, minmax(0, auto));
  justify-content: start;
  margin-bottom: 16px;
}

.mini-button.is-active {
  color: #ffffff;
  background: var(--ink);
  border-color: var(--ink);
}

#feedback-body td strong {
  display: block;
  margin-bottom: 4px;
}

#feedback-body td small {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
}

.profile-list {
  display: grid;
  gap: 12px;
  margin: 0;
}

.profile-list div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.profile-list dt,
.profile-list dd {
  margin: 0;
}

.profile-list dd {
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--ink);
  font-weight: 800;
}

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

.form-grid label {
  display: grid;
  gap: 7px;
}

.wide-field {
  grid-column: 1 / -1;
}

.empty-state {
  display: grid;
  gap: 8px;
  min-height: 150px;
  align-content: center;
  justify-items: start;
  padding: 18px;
  background: var(--surface-2);
  border: 1px dashed var(--line-strong);
  border-radius: 8px;
}

.empty-state strong {
  color: var(--ink);
}

.notice-panel {
  display: grid;
  gap: 10px;
  background: #fff7f9;
  border-color: #ffd0da;
}

.notice-panel h2 {
  margin: 0;
}

.status-pill.is-muted {
  color: var(--muted);
  background: var(--surface-2);
  border: 1px solid var(--line);
}

.console-page table {
  min-width: 760px;
}

.console-page[data-console-page="keys"] table,
.console-page[data-console-page="usage"] table,
.console-page[data-console-page="feedbacks"] table {
  min-width: 1180px;
}

.doc-page,
.status-page {
  min-height: 100vh;
  color: var(--ink);
  background: var(--bg);
}

.subpage-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 72px;
  padding: 0 40px;
  background: #ffffff;
  border-bottom: 1px solid var(--line);
}

.subpage-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.subpage-main {
  max-width: 1160px;
  margin: 0 auto;
  padding: 54px 32px 72px;
}

.subpage-hero {
  display: grid;
  gap: 16px;
  margin-bottom: 28px;
}

.subpage-hero h1 {
  max-width: 760px;
  margin: 0;
  color: var(--ink);
  font-size: 44px;
  line-height: 1.08;
  letter-spacing: 0;
}

.subpage-hero p {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.75;
}

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

.doc-card,
.doc-panel,
.status-board,
.status-event,
.status-metric {
  min-width: 0;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.doc-card {
  display: grid;
  gap: 10px;
  padding: 20px;
  text-decoration: none;
}

.doc-card:hover {
  border-color: var(--line-strong);
  background: var(--surface-2);
}

.doc-card span {
  color: var(--teal);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.doc-card strong,
.doc-panel h2,
.status-board h2,
.status-event h3 {
  color: var(--ink);
}

.doc-card p,
.doc-panel p,
.doc-panel li,
.status-event p,
.status-board p {
  color: var(--muted);
  line-height: 1.7;
}

.doc-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 18px;
  align-items: start;
}

.doc-panel {
  padding: 22px;
}

.doc-panel + .doc-panel {
  margin-top: 14px;
}

.doc-panel h2 {
  margin: 0 0 12px;
  font-size: 26px;
  letter-spacing: 0;
}

.doc-panel pre {
  margin-top: 14px;
  padding: 16px;
  color: #e4e7ec;
  background: var(--dark);
  border-radius: 8px;
}

.doc-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
}

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

.doc-table th {
  color: var(--muted);
  background: rgba(255, 247, 240, 0.76);
  font-size: 13px;
}

.doc-table tr:last-child td {
  border-bottom: 0;
}

.doc-toc {
  position: sticky;
  top: 88px;
  display: grid;
  gap: 8px;
  padding: 16px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.doc-toc a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.doc-toc a:hover {
  color: var(--ink);
}

.status-summary {
  display: grid;
  grid-template-columns: 1.3fr repeat(4, minmax(0, 0.62fr));
  gap: 14px;
  margin-bottom: 14px;
}

.status-board,
.status-metric,
.status-event {
  padding: 20px;
}

.status-board {
  display: grid;
  gap: 10px;
  align-content: center;
}

.status-board h2 {
  margin: 0;
  font-size: 30px;
}

.status-metric span,
.status-board span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.status-metric strong {
  display: block;
  margin-top: 10px;
  color: var(--ink);
  font-size: 26px;
}

.status-metric strong[data-level="ok"] {
  color: #087f5b;
}

.status-metric strong[data-level="warn"] {
  color: #b45309;
}

.status-metric strong[data-level="down"] {
  color: #b91c1c;
}

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

.status-ops-grid {
  grid-template-columns: 1fr 1fr;
  margin-top: 14px;
}

.status-subscribe-card {
  align-content: start;
}

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

.status-subscribe-form input {
  min-width: 0;
  min-height: 42px;
  padding: 0 12px;
  color: var(--ink);
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  outline: none;
}

.status-event {
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}

.status-event h3,
.status-event p {
  margin: 0;
}

.status-event time {
  color: var(--muted);
  font-size: 13px;
}

.status-footnote {
  margin: 18px 0 0;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
}

@media (max-width: 1080px) {
  .hero-shell,
  .auth-page,
  .dashboard.is-active,
  .doc-layout,
  .status-ops-grid,
  .status-summary {
    grid-template-columns: 1fr;
  }

  .hero-status-card {
    max-width: 720px;
  }

  .reason-grid,
  .experience-grid,
  .ecosystem-grid,
  .contact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sidebar {
    min-height: auto;
    position: static;
  }

  .sidebar nav {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .side-link {
    text-align: center;
  }

  .doc-toc {
    position: static;
  }
}

@media (max-width: 760px) {
  .site-header,
  .subpage-header {
    padding: 12px 18px;
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .main-nav,
  .subpage-nav {
    width: 100%;
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .main-nav .nav-section {
    display: none;
  }

  .primary-nav {
    max-width: none;
  }

  .hero-shell .hero-copy h1,
  .subpage-hero h1 {
    font-size: 32px;
  }

  .fiat-checkout-hero h3 {
    font-size: 36px;
  }

  .checkout-summary-head {
    display: grid;
  }

  .checkout-summary-list div,
  .checkout-amount-strip {
    grid-template-columns: 1fr;
  }

  .checkout-summary-list dd,
  .checkout-amount-strip div:last-child {
    text-align: left;
  }

  .content-section,
  .hero-shell,
  .subpage-main,
  .dashboard-main {
    padding-left: 18px;
    padding-right: 18px;
  }

  .hero-shell {
    width: 100%;
    max-width: 100%;
    gap: 24px;
    overflow: hidden;
  }

  .hero-shell .hero-copy {
    width: 100%;
    max-width: 100%;
  }

  .experience-grid,
  .reason-grid,
  .ecosystem-grid,
  .contact-grid,
  .doc-grid,
  .metrics-grid,
  .sidebar nav {
    grid-template-columns: 1fr;
  }

  .pricing-table {
    overflow-x: auto;
  }

  .pricing-row {
    min-width: 960px;
  }

  .status-event {
    grid-template-columns: 12px minmax(0, 1fr);
  }

  .status-event time {
    grid-column: 2;
  }
}

@media (max-width: 1080px) {
  .topbar-actions {
    justify-content: flex-start;
  }

	  .filter-bar,
	  .plan-grid,
	  .usage-summary,
	  .subscription-toolbar,
	  .payment-method-menu,
	  .topup-orders-layout > .work-panel:first-child .billing-summary,
	  .order-detail-grid,
	  .limit-summary,
	  .invite-row,
	  .quick-actions {
	    grid-template-columns: 1fr;
	  }

	  .subscription-toolbar,
	  .payment-method-menu {
	    display: grid;
	  }

	  .payment-method-menu,
	  .payment-method-menu label {
	    min-width: 0;
	  }

  .crypto-detail-grid .wide-detail {
    grid-column: auto;
  }

  .fiat-checkout-panel {
    grid-template-columns: 1fr;
  }

  .fiat-checkout-hero {
    border-right: 0;
    border-bottom: 1px solid rgba(79, 62, 103, 0.10);
  }

  .fiat-payment-body {
    display: grid;
  }

  .fiat-qr-box {
    width: 100%;
  }
}

@media (max-width: 760px) {
  .dashboard.is-active {
    display: block;
  }

  .sidebar {
    position: sticky;
    top: 0;
    z-index: 15;
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 10px 14px;
    border-bottom: 1px solid var(--line);
  }

  .sidebar nav {
    display: flex;
    gap: 6px;
  }

  .side-link {
    flex: 0 0 auto;
    min-height: 38px;
    padding: 0 10px;
    white-space: nowrap;
  }

  .side-icon {
    width: 22px;
    height: 22px;
  }

  .sidebar-footer {
    display: none;
  }

  .topbar-actions {
    width: 100%;
  }

  .status-chip,
  .balance-chip,
  .language-chip,
  .user-chip {
    min-height: 36px;
  }

  .performance-grid,
  .amount-grid,
  .feedback-tabs,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .hero-status-card .preview-table {
    display: none;
  }

  .hero-status-card .preview-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin: 12px;
  }

  .hero-status-card .preview-metrics div {
    padding: 10px;
  }

  .hero-status-card .preview-metrics span {
    font-size: 12px;
  }

  .hero-status-card .preview-metrics strong {
    font-size: 22px;
  }

  .guide-section {
    padding-top: 18px;
  }

  .console-preview-head {
    min-width: 0;
    flex-wrap: wrap;
    align-items: center;
    margin: 14px 12px;
  }

  .console-preview-head h2 {
    font-size: 20px;
  }
}

@media (max-width: 520px) {
  .hero-shell .hero-copy h1 {
    max-width: 100%;
    font-size: 28px;
    line-height: 1.18;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .hero-shell .hero-copy h1::after {
    display: none;
  }

  .hero-shell .lead {
    font-size: 15px;
    overflow-wrap: anywhere;
  }

  .hero-status-card {
    width: 100%;
    max-width: calc(100vw - 36px);
  }

  .hero-shell::after {
    display: none;
  }

  .hero-status-card .preview-metrics {
    grid-template-columns: 1fr;
  }
}

/* BerryCode sweet-tech visual pass */
:root {
  --bg: #fff7f0;
  --surface: rgba(255, 255, 255, 0.86);
  --surface-2: rgba(255, 246, 250, 0.74);
  --ink: #171326;
  --ink-soft: #352b4c;
  --muted: #6f647f;
  --faint: #a79db5;
  --line: rgba(79, 62, 103, 0.13);
  --line-strong: rgba(255, 79, 109, 0.34);
  --brand: #ff4f6d;
  --brand-dark: #d73556;
  --teal: #6c63ff;
  --green: #17a879;
  --amber: #d18a16;
  --danger: #d92d20;
  --dark: #171326;
  --dark-2: #221a38;
  --berry-strawberry: #ff4f6d;
  --berry-raspberry: #ff6fae;
  --berry-blueberry: #6c63ff;
  --berry-blackberry: #171326;
  --berry-cream: #fff7f0;
  --berry-soft-gray: #f5f5f7;
  --berry-gradient: linear-gradient(135deg, #ff4f6d 0%, #ff6fae 48%, #6c63ff 100%);
  --berry-gradient-dark: linear-gradient(135deg, #171326 0%, #2d1b4e 52%, #6c63ff 100%);
  --card-shadow: 0 18px 48px rgba(42, 22, 64, 0.12);
  --glow-shadow: 0 16px 42px rgba(255, 79, 109, 0.22), 0 4px 18px rgba(108, 99, 255, 0.14);
  --shadow: var(--card-shadow);
  --radius-card: 8px;
  --radius-pill: 999px;
}

body {
  background:
    radial-gradient(circle at 16% -4%, rgba(255, 111, 174, 0.22), transparent 34vw),
    radial-gradient(circle at 88% 8%, rgba(108, 99, 255, 0.18), transparent 28vw),
    linear-gradient(180deg, #fff7f0 0%, #fffafd 46%, #f5f5f7 100%);
  font-family: "Geist", "Satoshi", "HarmonyOS Sans", "PingFang SC", "Microsoft YaHei", Inter, ui-sans-serif, system-ui, sans-serif;
}

code,
pre,
.code-card,
.invite-row strong,
.preview-metrics strong,
.metric-card strong,
.plan-price {
  font-family: "JetBrains Mono", "SF Mono", Menlo, Consolas, monospace;
}

.site-header,
.subpage-header {
  background: rgba(255, 247, 240, 0.78);
  border-bottom-color: rgba(255, 79, 109, 0.16);
  box-shadow: 0 10px 32px rgba(42, 22, 64, 0.06);
}

.brand img {
  filter: drop-shadow(0 10px 24px rgba(255, 79, 109, 0.14));
}

.nav-link {
  border-radius: var(--radius-pill);
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--berry-blackberry);
  background: rgba(255, 111, 174, 0.12);
}

.primary-nav,
.primary-button {
  color: #ffffff;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.34), transparent 48%),
    var(--berry-gradient);
  border-color: rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-pill);
  box-shadow: var(--glow-shadow);
}

.primary-nav:hover,
.primary-button:hover {
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.4), transparent 52%),
    linear-gradient(135deg, #ff385f 0%, #ff5fa5 48%, #5a52f2 100%);
  border-color: rgba(255, 255, 255, 0.24);
  transform: translateY(-1px);
}

.secondary-button,
.icon-button,
.mini-button,
.amount-option {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.72);
  border-color: rgba(79, 62, 103, 0.16);
  border-radius: var(--radius-pill);
  box-shadow: 0 8px 24px rgba(42, 22, 64, 0.06);
}

.secondary-button:hover,
.icon-button:hover,
.mini-button:hover {
  color: var(--berry-blackberry);
  border-color: rgba(255, 79, 109, 0.34);
  background: rgba(255, 247, 250, 0.92);
}

.home-page,
.doc-page,
.status-page {
  position: relative;
  isolation: isolate;
}

.home-page::before,
.doc-page::before,
.status-page::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 12% 22%, rgba(255, 79, 109, 0.10) 0 4px, transparent 5px),
    radial-gradient(circle at 84% 18%, rgba(108, 99, 255, 0.10) 0 3px, transparent 4px),
    linear-gradient(rgba(23, 19, 38, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 19, 38, 0.035) 1px, transparent 1px);
  background-size: 180px 180px, 220px 220px, 42px 42px, 42px 42px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,0.72), transparent 72%);
}

.hero-shell {
  position: relative;
}

.hero-shell::after {
  content: "{ token: berry, route: /v1 }";
  position: absolute;
  right: 38px;
  top: 30px;
  color: rgba(23, 19, 38, 0.28);
  font-family: "JetBrains Mono", "SF Mono", Menlo, Consolas, monospace;
  font-size: 13px;
  letter-spacing: 0;
}

.hero-copy h1,
.subpage-hero h1 {
  color: var(--berry-blackberry);
}

.hero-shell .hero-copy h1 {
  max-width: 820px;
  letter-spacing: 0;
}

.hero-shell .hero-copy h1::after {
  content: "";
  width: 0.72em;
  height: 0.72em;
  display: inline-block;
  margin-left: 0.12em;
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 28%, rgba(255,255,255,0.78), transparent 18%),
    var(--berry-gradient);
  box-shadow: 0 12px 34px rgba(255, 79, 109, 0.28);
  vertical-align: 0.02em;
}

.lead,
.subpage-hero p,
.console-subtitle {
  color: rgba(53, 43, 76, 0.78);
}

.eyebrow,
.panel-label,
.preview-kicker,
.plan-label {
  color: var(--berry-blueberry);
}

.hero-meta span {
  color: var(--ink-soft);
  background: rgba(255, 255, 255, 0.62);
  border-color: rgba(255, 79, 109, 0.18);
  backdrop-filter: blur(18px);
}

.hero-status-card,
.quickstart-panel,
.doc-panel pre,
.work-panel pre,
.invite-row > div,
.code-card {
  background:
    linear-gradient(180deg, rgba(255, 111, 174, 0.10), transparent 34%),
    var(--berry-gradient-dark);
  border-color: rgba(255, 111, 174, 0.18);
}

.hero-status-card {
  border-radius: var(--radius-card);
  box-shadow: 0 28px 70px rgba(23, 19, 38, 0.30);
}

.terminal-strip,
.preview-topbar {
  background: rgba(8, 6, 18, 0.72);
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

.preview-metrics div {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.10);
  backdrop-filter: blur(14px);
}

.preview-table {
  border-color: rgba(255, 255, 255, 0.10);
}

.preview-row {
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

.preview-head {
  background: rgba(255, 255, 255, 0.06);
}

.content-section {
  position: relative;
}

.signal-grid div,
.model-card,
.pricing-card,
.work-panel,
.metric-card,
.auth-card,
.info-panel,
.status-grid article,
.security-grid article,
.experience-grid article,
.reason-grid article,
.contact-grid article,
.pricing-note,
.pricing-table,
.ecosystem-grid div,
.doc-card,
.doc-panel,
.doc-toc,
.status-board,
.status-event,
.status-metric {
  background:
    linear-gradient(rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.78)) padding-box,
    linear-gradient(135deg, rgba(255, 79, 109, 0.22), rgba(255, 111, 174, 0.08), rgba(108, 99, 255, 0.22)) border-box;
  border: 1px solid transparent;
  border-radius: var(--radius-card);
  box-shadow: 0 14px 38px rgba(42, 22, 64, 0.08);
  backdrop-filter: blur(18px);
}

.experience-grid article,
.reason-grid article,
.contact-grid article,
.doc-card,
.quick-actions a {
  position: relative;
  overflow: hidden;
}

.experience-grid article::before,
.reason-grid article::before,
.contact-grid article::before,
.doc-card::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 3px;
  background: var(--berry-gradient);
  opacity: 0.82;
}

.experience-grid span {
  color: var(--berry-strawberry);
}

.ecosystem-grid div {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.76), rgba(255, 247, 240, 0.66)) padding-box,
    linear-gradient(135deg, rgba(255, 79, 109, 0.20), rgba(108, 99, 255, 0.20)) border-box;
}

.tier-grid {
  display: grid;
  gap: 14px;
}

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

.tier-card {
  --tier-accent: var(--berry-strawberry);
  --tier-gradient: linear-gradient(135deg, #ff4f6d, #ff6fae);
  position: relative;
  min-width: 0;
  display: grid;
  gap: 12px;
  align-content: start;
  padding: 18px;
  color: var(--ink);
  background:
    linear-gradient(150deg, rgba(255, 255, 255, 0.92), rgba(255, 247, 240, 0.76)) padding-box,
    var(--tier-gradient) border-box;
  border: 1px solid transparent;
  border-radius: var(--radius-card);
  box-shadow: 0 18px 44px rgba(42, 22, 64, 0.10);
  overflow: hidden;
}

.tier-card::after {
  content: "";
  position: absolute;
  width: 104px;
  height: 104px;
  right: -34px;
  top: -34px;
  border-radius: 50%;
  background: var(--tier-gradient);
  opacity: 0.18;
}

.tier-raspberry {
  --tier-accent: var(--berry-raspberry);
  --tier-gradient: linear-gradient(135deg, #ff6fae, #ff4f6d 52%, #6c63ff);
}

.tier-blueberry {
  --tier-accent: var(--berry-blueberry);
  --tier-gradient: linear-gradient(135deg, #6c63ff, #8a84ff 48%, #ff6fae);
}

.tier-blackberry {
  --tier-accent: #2d1b4e;
  --tier-gradient: linear-gradient(135deg, #171326, #2d1b4e 54%, #6c63ff);
  color: #fff7f0;
  background:
    linear-gradient(150deg, rgba(23, 19, 38, 0.96), rgba(45, 27, 78, 0.90)) padding-box,
    var(--tier-gradient) border-box;
}

.tier-card h2,
.tier-card h3,
.tier-card p,
.tier-card strong,
.tier-card li {
  position: relative;
  z-index: 1;
}

.tier-card h2,
.tier-card h3 {
  margin: 0;
  color: inherit;
  font-size: 20px;
  line-height: 1.25;
}

.tier-card p {
  margin: 0;
  color: rgba(53, 43, 76, 0.74);
  font-size: 14px;
  line-height: 1.65;
}

.tier-card > strong {
  color: var(--tier-accent);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.tier-blackberry p,
.tier-blackberry .plain-list,
.tier-blackberry .plain-list li,
.tier-blackberry > strong {
  color: rgba(255, 247, 240, 0.76);
}

.tier-badge {
  position: relative;
  z-index: 1;
  width: max-content;
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  color: #ffffff;
  background: var(--tier-gradient);
  border-radius: var(--radius-pill);
  box-shadow: 0 10px 24px color-mix(in srgb, var(--tier-accent) 24%, transparent);
  font-size: 12px;
  font-weight: 900;
}

.tier-blackberry .tier-badge {
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.pricing-section .pricing-table {
  margin-top: 14px;
}

.pricing-row {
  background: rgba(255, 255, 255, 0.46);
}

.pricing-head {
  background: rgba(255, 111, 174, 0.08);
}

.pricing-row span:first-child {
  color: var(--berry-blackberry);
}

.auth-page {
  position: relative;
}

.auth-page::before {
  content: "";
  position: absolute;
  inset: 8% 62% auto -12%;
  width: 320px;
  height: 320px;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 111, 174, 0.26), transparent 66%);
}

.auth-card,
.info-panel {
  background:
    linear-gradient(rgba(255, 255, 255, 0.88), rgba(255, 247, 240, 0.78)) padding-box,
    linear-gradient(135deg, rgba(255, 79, 109, 0.28), rgba(108, 99, 255, 0.22)) border-box;
}

.step {
  border-radius: var(--radius-pill);
}

.step.is-active {
  color: var(--berry-blackberry);
  background: rgba(255, 111, 174, 0.16);
  border-color: rgba(255, 79, 109, 0.34);
}

input[type="email"],
input[type="password"],
input[type="text"],
select,
textarea,
.filter-input input,
.form-grid input {
  background: rgba(255, 255, 255, 0.74);
  border-color: rgba(79, 62, 103, 0.16);
  border-radius: var(--radius-card);
}

input:focus,
select:focus,
textarea:focus,
.filter-input input:focus,
.form-grid input:focus {
  border-color: rgba(255, 79, 109, 0.50);
  box-shadow: 0 0 0 4px rgba(255, 111, 174, 0.14);
}

.dashboard {
  min-height: 100vh;
  background:
    radial-gradient(circle at 18% 8%, rgba(255, 79, 109, 0.16), transparent 28vw),
    radial-gradient(circle at 88% 0%, rgba(108, 99, 255, 0.14), transparent 26vw),
    linear-gradient(180deg, #fff7f0 0%, #f8f5fb 100%);
}

.sidebar {
  color: rgba(255, 247, 240, 0.78);
  background:
    radial-gradient(circle at 18% 0%, rgba(255, 111, 174, 0.28), transparent 26%),
    linear-gradient(180deg, #171326 0%, #211735 58%, #171326 100%);
  border-right-color: rgba(255, 255, 255, 0.08);
  box-shadow: 18px 0 44px rgba(42, 22, 64, 0.13);
}

.sidebar-brand {
  color: #fff7f0;
}

.sidebar-brand img {
  border-radius: var(--radius-card);
  box-shadow: 0 12px 28px rgba(255, 79, 109, 0.24);
}

.side-link {
  color: rgba(255, 247, 240, 0.64);
  border: 1px solid transparent;
}

.side-link:hover,
.side-link.is-active {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 111, 174, 0.18);
}

.side-icon {
  color: #fff7f0;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.side-link.is-active .side-icon {
  color: #ffffff;
  background: var(--berry-gradient);
  border-color: transparent;
}

.sidebar-footer {
  border-top-color: rgba(255, 255, 255, 0.10);
}

.sidebar-footer a {
  color: rgba(255, 247, 240, 0.58);
}

.sidebar-footer a:hover {
  color: #ffffff;
}

.dashboard-main {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.32), transparent 22%),
    radial-gradient(circle at 68% 0%, rgba(255, 111, 174, 0.13), transparent 24vw);
}

.metric-card,
.work-panel {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.88), rgba(255, 247, 240, 0.74)) padding-box,
    linear-gradient(135deg, rgba(255, 79, 109, 0.18), rgba(108, 99, 255, 0.18)) border-box;
  border-color: transparent;
}

.metric-card strong {
  color: var(--berry-blackberry);
}

.metric-card:nth-child(1) strong,
.balance-chip {
  color: var(--berry-strawberry);
}

.metric-card:nth-child(2) strong {
  color: var(--berry-blueberry);
}

.metric-card:nth-child(3) strong {
  color: var(--berry-raspberry);
}

.status-chip,
.balance-chip,
.language-chip,
.user-chip {
  background: rgba(255, 255, 255, 0.68);
  border-color: rgba(79, 62, 103, 0.14);
  border-radius: var(--radius-pill);
}

.usage-chart span {
  background: linear-gradient(180deg, #ff6fae, #ff4f6d 54%, #6c63ff);
  box-shadow: 0 10px 24px rgba(255, 79, 109, 0.16);
}

.usage-summary div,
.performance-grid div,
.quick-actions a,
.empty-state {
  background: rgba(255, 247, 240, 0.68);
  border-color: rgba(79, 62, 103, 0.12);
}

.quick-actions a:hover {
  background: rgba(255, 239, 246, 0.92);
  border-color: rgba(255, 79, 109, 0.32);
  transform: translateY(-1px);
}

.model-bars i {
  background: rgba(23, 19, 38, 0.08);
}

th {
  color: rgba(111, 100, 127, 0.82);
}

td {
  color: rgba(53, 43, 76, 0.76);
}

tbody tr:hover {
  background: rgba(255, 111, 174, 0.055);
}

.table-status.is-ok {
  color: #0d7657;
  background: rgba(23, 168, 121, 0.13);
}

.table-status.is-warn {
  color: #8a5411;
  background: rgba(209, 138, 22, 0.16);
}

.table-status.is-muted,
.status-pill.is-muted {
  color: rgba(53, 43, 76, 0.72);
  background: rgba(23, 19, 38, 0.06);
  border-color: rgba(23, 19, 38, 0.08);
}

.status-pill.is-ok {
  color: #0d7657;
  background: rgba(23, 168, 121, 0.13);
}

.one-time-key {
  background:
    linear-gradient(135deg, rgba(255, 111, 174, 0.12), rgba(255, 247, 240, 0.72)) padding-box,
    linear-gradient(135deg, rgba(255, 79, 109, 0.30), rgba(108, 99, 255, 0.22)) border-box;
  border-color: transparent;
}

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

.console-tier-grid {
  margin-bottom: 0;
}

.console-tier-grid .tier-card {
  min-height: 310px;
  align-content: start;
}

.console-tier-grid .tier-card.is-selected {
  box-shadow: var(--glow-shadow);
  transform: translateY(-2px);
}

.console-tier-grid .primary-button,
.console-tier-grid .secondary-button {
  align-self: end;
  margin-top: auto;
}

.recharge-panel {
  display: grid;
  gap: 14px;
}

.recharge-summary {
  padding: 14px;
  background: rgba(255, 247, 240, 0.72);
  border: 1px solid rgba(255, 111, 174, 0.18);
  border-radius: 8px;
}

.plan-price {
  color: var(--tier-accent, var(--brand-dark));
  font-size: 26px;
}

.tier-blackberry .plan-price {
  color: #ffccd9;
}

.amount-option.is-selected,
.amount-option:hover {
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.32), transparent 52%),
    var(--berry-gradient);
  box-shadow: var(--glow-shadow);
}

.amount-option.is-disabled,
.amount-option:disabled,
.amount-option.is-disabled:hover,
.amount-option:disabled:hover {
  color: rgba(79, 62, 103, 0.38);
  background: rgba(245, 245, 247, 0.78);
  border-color: rgba(79, 62, 103, 0.08);
  box-shadow: none;
}

.notice-panel {
  background:
    linear-gradient(135deg, rgba(255, 239, 246, 0.88), rgba(255, 247, 240, 0.82)) padding-box,
    linear-gradient(135deg, rgba(255, 79, 109, 0.26), rgba(108, 99, 255, 0.16)) border-box;
}

.doc-card:hover {
  background:
    linear-gradient(rgba(255, 249, 252, 0.92), rgba(255, 247, 240, 0.84)) padding-box,
    var(--berry-gradient) border-box;
  transform: translateY(-1px);
}

.status-board h2 {
  display: flex;
  align-items: center;
  gap: 10px;
}

.toast {
  background: var(--berry-gradient-dark);
  border: 1px solid rgba(255, 111, 174, 0.20);
  border-radius: var(--radius-card);
}

@media (max-width: 1180px) {
  .landing-tier-grid,
  .console-tier-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .hero-shell::after {
    display: none;
  }

  .landing-tier-grid,
  .console-tier-grid {
    grid-template-columns: 1fr;
  }

  .balance-alert {
    align-items: stretch;
    flex-direction: column;
  }

  .balance-alert .compact-button {
    width: 100%;
  }

  .status-subscribe-form {
    grid-template-columns: 1fr;
  }

  .sidebar {
    background:
      radial-gradient(circle at 0% 0%, rgba(255, 111, 174, 0.24), transparent 28%),
      linear-gradient(90deg, #171326, #211735);
  }

  .tier-card {
    min-height: auto;
  }

  .status-board h2 {
    align-items: flex-start;
  }
}

/* Auth pages: centered BerryCode account flow */
.app-shell[data-route="login"] .site-header,
.app-shell[data-route="register"] .site-header,
.app-shell[data-route="reset-password"] .site-header {
  display: none;
}

.app-shell[data-route="login"],
.app-shell[data-route="register"],
.app-shell[data-route="reset-password"] {
  min-height: 100vh;
  background:
    radial-gradient(circle at 12% 14%, rgba(255, 79, 109, 0.16), transparent 28vw),
    radial-gradient(circle at 88% 12%, rgba(108, 99, 255, 0.18), transparent 30vw),
    linear-gradient(180deg, rgba(255, 247, 240, 0.96), rgba(248, 250, 255, 0.96));
}

.auth-page {
  max-width: none;
  min-height: 100vh;
  padding: 48px 24px 34px;
  align-content: start;
  justify-items: center;
  gap: 22px;
  overflow: hidden;
}

.auth-page.is-active {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}

.auth-page::before {
  inset: 0;
  width: auto;
  height: auto;
  border-radius: 0;
  background:
    linear-gradient(rgba(23, 19, 38, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 19, 38, 0.035) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.92), rgba(0, 0, 0, 0.56) 72%, transparent 100%);
}

.auth-page::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 8%, rgba(255, 255, 255, 0.92), transparent 22%),
    radial-gradient(circle at 50% 48%, rgba(255, 111, 174, 0.10), transparent 34%);
}

.auth-copy {
  width: min(680px, 100%);
  display: grid;
  justify-items: center;
  gap: 10px;
  text-align: center;
}

.auth-copy::before {
  content: "";
  width: 88px;
  height: 88px;
  display: block;
  margin-bottom: 8px;
  background: url("/logo/berrycode-avatar.png") center / cover no-repeat;
  border-radius: 24px;
  box-shadow: 0 18px 44px rgba(255, 79, 109, 0.22), 0 10px 28px rgba(108, 99, 255, 0.16);
}

.auth-copy .eyebrow {
  margin: 0;
}

.auth-copy h1 {
  margin: 0;
  font-size: clamp(42px, 6vw, 64px);
  line-height: 1;
  color: transparent;
  background: var(--berry-gradient);
  -webkit-background-clip: text;
  background-clip: text;
}

.auth-copy p:not(.eyebrow) {
  max-width: 620px;
  margin: 0;
  color: rgba(53, 43, 76, 0.72);
  font-size: 18px;
  line-height: 1.55;
}

.auth-proof-grid,
.auth-console-card,
.auth-copy .auth-shortcuts,
.auth-side {
  display: none;
}

.auth-card {
  width: min(704px, 100%);
  padding: 52px 54px;
  border-radius: 8px;
  box-shadow: 0 28px 80px rgba(42, 22, 64, 0.12);
}

.auth-card-head {
  display: grid;
  gap: 10px;
  margin-bottom: 28px;
  text-align: center;
}

.auth-card-head h2 {
  margin: 0;
  color: var(--berry-blackberry);
  font-size: 34px;
  line-height: 1.15;
}

.auth-card-head p {
  margin: 0;
  color: rgba(53, 43, 76, 0.66);
  font-size: 17px;
}

.auth-card .stepper {
  max-width: 460px;
  margin: 0 auto 28px;
  padding: 4px;
  gap: 4px;
  background: rgba(23, 19, 38, 0.045);
  border: 1px solid rgba(79, 62, 103, 0.08);
  border-radius: var(--radius-pill);
}

.auth-card .step {
  min-height: 34px;
  border: 0;
  background: transparent;
  color: rgba(53, 43, 76, 0.48);
  font-size: 12px;
}

.auth-card .step.is-active {
  color: var(--berry-blackberry);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 8px 18px rgba(42, 22, 64, 0.08);
}

.auth-card .form-stack {
  gap: 20px;
}

.auth-card label {
  color: var(--berry-blackberry);
  font-size: 16px;
  font-weight: 800;
}

.auth-card input[type="email"],
.auth-card input[type="password"],
.auth-card input[type="text"] {
  min-height: 64px;
  padding: 0 22px;
  background: rgba(255, 255, 255, 0.78);
  border-color: rgba(79, 62, 103, 0.14);
  border-radius: 8px;
  color: var(--berry-blackberry);
  font-size: 18px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

.auth-card input::placeholder {
  color: rgba(111, 100, 127, 0.48);
}

.auth-card input:focus {
  border-color: rgba(255, 79, 109, 0.60);
  box-shadow: 0 0 0 4px rgba(255, 111, 174, 0.14), 0 10px 28px rgba(108, 99, 255, 0.10);
}

.auth-card .checkbox-line {
  grid-template-columns: 20px minmax(0, 1fr);
  align-items: center;
  color: rgba(53, 43, 76, 0.70);
  font-size: 14px;
  font-weight: 600;
}

.auth-card .primary-button {
  min-height: 64px;
  width: 100%;
  margin-top: 2px;
  border-radius: 8px;
  font-size: 18px;
}

.auth-card .text-button {
  justify-self: center;
}

.auth-field-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.auth-card .auth-forgot-inline {
  min-height: auto;
  padding: 0;
  color: var(--berry-blueberry);
  font-size: 15px;
  font-weight: 800;
}

.auth-card .auth-forgot-inline:hover {
  color: var(--berry-strawberry);
}

.auth-forgot-link {
  min-height: 42px;
  justify-self: center;
  padding: 0 16px;
  margin-top: -4px;
  color: var(--berry-blueberry);
  background: rgba(108, 99, 255, 0.08);
  border: 1px solid rgba(108, 99, 255, 0.16);
  border-radius: 8px;
}

.auth-forgot-link:hover {
  color: var(--berry-strawberry);
  background: rgba(255, 111, 174, 0.10);
  border-color: rgba(255, 111, 174, 0.20);
}

.auth-switch {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: rgba(53, 43, 76, 0.62);
  font-size: 18px;
}

.auth-switch .text-button {
  min-height: auto;
  color: var(--berry-blueberry);
  font-size: 18px;
}

.auth-switch .text-button:hover {
  color: var(--berry-strawberry);
}

.auth-card .verify-heading {
  align-items: center;
  margin-bottom: 2px;
}

.auth-card .verify-heading h2 {
  color: var(--berry-blackberry);
  font-size: 26px;
}

.auth-card .otp-row input {
  min-height: 60px;
  font-size: 24px;
}

.auth-card[data-auth-step="2"] {
  width: min(760px, 100%);
  padding: 58px 64px;
}

.auth-card[data-auth-step="2"] .auth-card-head,
.auth-card[data-auth-step="2"] > .stepper {
  display: none;
}

.auth-card[data-auth-step="2"] + .auth-switch {
  display: none;
}

.auth-verify-heading {
  display: grid;
  justify-items: center;
  gap: 14px;
  text-align: center;
}

.auth-verify-heading h2 {
  margin: 0;
  font-size: 38px;
}

.auth-verify-heading p {
  margin: 0;
  color: rgba(53, 43, 76, 0.66);
  font-size: 19px;
  line-height: 1.55;
}

.auth-verify-heading strong {
  color: var(--berry-blackberry);
  font-weight: 800;
}

.auth-code-label {
  gap: 12px;
  margin-top: 18px;
  text-align: center;
}

.auth-code-label > span {
  color: var(--berry-blackberry);
  font-size: 20px;
  font-weight: 900;
}

.auth-card[data-auth-step="2"] .otp-row {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0;
  min-height: 86px;
  align-items: center;
  padding: 0 36px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(79, 62, 103, 0.14);
  border-radius: 8px;
}

.auth-card[data-auth-step="2"] .otp-row:focus-within {
  border-color: rgba(255, 79, 109, 0.60);
  box-shadow: 0 0 0 4px rgba(255, 111, 174, 0.14), 0 10px 28px rgba(108, 99, 255, 0.10);
}

.auth-card[data-auth-step="2"] .otp-row input {
  min-height: 72px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  color: rgba(23, 19, 38, 0.74);
  font-family: "JetBrains Mono", "SF Mono", Menlo, Consolas, monospace;
  font-size: 34px;
  font-weight: 800;
  text-align: center;
}

.auth-card[data-auth-step="2"] .otp-row input:focus {
  box-shadow: none;
}

.auth-code-helper {
  margin: -4px 0 6px;
  color: rgba(53, 43, 76, 0.58);
  font-size: 16px;
  line-height: 1.5;
  text-align: center;
}

.auth-success-note {
  min-height: 76px;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 28px;
  color: #118744;
  background: rgba(35, 197, 111, 0.09);
  border: 1px solid rgba(35, 197, 111, 0.28);
  border-radius: 8px;
  font-size: 18px;
  font-weight: 700;
}

.auth-success-note .dot {
  width: 22px;
  height: 22px;
}

.auth-resend-button {
  color: rgba(53, 43, 76, 0.56);
  font-size: 17px;
}

.auth-resend-button:disabled {
  cursor: not-allowed;
  color: rgba(53, 43, 76, 0.34);
}

.auth-resend-status {
  min-height: 20px;
  margin: -4px 0 0;
  color: rgba(53, 43, 76, 0.48);
  font-size: 14px;
  line-height: 1.4;
  text-align: center;
}

.auth-back-link {
  justify-self: start !important;
  margin-top: 18px;
  color: rgba(53, 43, 76, 0.62);
  font-size: 17px;
}

@media (max-width: 760px) {
  .auth-page {
    min-height: 100vh;
    padding: 34px 18px 28px;
    gap: 18px;
  }

  .auth-copy::before {
    width: 72px;
    height: 72px;
    border-radius: 20px;
  }

  .auth-copy h1 {
    font-size: 42px;
  }

  .auth-copy p:not(.eyebrow) {
    font-size: 15px;
  }

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

  .auth-card[data-auth-step="2"] {
    padding: 30px 18px;
  }

  .auth-card-head h2 {
    font-size: 28px;
  }

  .auth-card-head p,
  .auth-switch,
  .auth-switch .text-button {
    font-size: 15px;
  }

  .auth-card input[type="email"],
  .auth-card input[type="password"],
  .auth-card input[type="text"],
  .auth-card .primary-button {
    min-height: 54px;
    font-size: 16px;
  }

  .auth-card .step {
    font-size: 11px;
  }

  .auth-verify-heading h2 {
    font-size: 30px;
  }

  .auth-verify-heading p,
  .auth-success-note,
  .auth-code-helper,
  .auth-resend-button,
  .auth-back-link {
    font-size: 15px;
  }

  .auth-card[data-auth-step="2"] .otp-row {
    min-height: 66px;
    padding: 0 12px;
  }

  .auth-card[data-auth-step="2"] .otp-row input {
    min-height: 56px;
    font-size: 24px;
  }
}

@media (max-width: 820px) {
  .docs-article,
  .docs-section,
  .docs-callout,
  .docs-article blockquote,
  .docs-article pre {
    max-width: 100%;
  }

  .docs-article h1,
  .docs-section h2,
  .docs-lead,
  .docs-callout,
  .docs-article p,
  .docs-article li {
    overflow-wrap: anywhere;
    word-break: normal;
  }

  .docs-article h1 {
    font-size: 28px;
    line-height: 1.22;
  }

  .docs-section h2 {
    font-size: 27px;
  }

  .docs-lead {
    font-size: 16px;
  }

  .docs-callout,
  .docs-article blockquote {
    padding: 16px 18px;
  }

  .docs-article pre {
    overflow-x: auto;
  }
}

.turnstile-root {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 1200;
  display: flex;
  width: min(300px, calc(100vw - 32px));
  min-height: 65px;
  justify-content: center;
  align-items: center;
  transform: translateX(-50%);
  pointer-events: auto;
}

.turnstile-root iframe {
  max-width: 100%;
}

@keyframes berryPulse {
  from { opacity: 0.45; }
  to   { opacity: 1; }
}
