:root {
  --bg: #f4f7fa;
  --surface: #ffffff;
  --ink: #0b2545;
  --ink-soft: #173b5c;
  --muted: #5f7184;
  --line: #dce5ee;
  --line-strong: #c6d4e2;
  --accent: #0f766e;
  --accent-strong: #0b5e58;
  --accent-soft: #e6f5f2;
  --blue-soft: #eaf3fa;
  --warn: #b45309;
  --warn-soft: #fff4e0;
  --danger: #b42318;
  --shadow: 0 18px 48px rgba(11, 37, 69, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "IBM Plex Sans", "Noto Sans SC", "Microsoft YaHei", Arial, sans-serif;
  letter-spacing: 0;
}

button,
input {
  font: inherit;
}

button {
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: var(--surface);
  color: var(--ink);
  padding: 10px 14px;
  cursor: pointer;
}

button:hover:not(:disabled) {
  border-color: var(--accent);
  color: var(--accent-strong);
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

button.primary,
a.primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 132px;
  padding: 11px 18px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: #fff;
  font-weight: 600;
}

button.primary:hover,
a.primary:hover {
  background: var(--accent-strong);
  border-color: var(--accent-strong);
  color: #fff;
}

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

:focus-visible {
  outline: 3px solid rgba(15, 118, 110, 0.35);
  outline-offset: 2px;
}

.container {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.header-inner {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
}

.brand-symbol {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 32px;
  border-radius: 6px;
  background: var(--ink);
  color: #fff;
  font-family: "IBM Plex Mono", Consolas, monospace;
  font-size: 12px;
  font-weight: 500;
}

.brand-name {
  font-size: 16px;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
}

.header-nav a:hover {
  color: var(--accent-strong);
}

.language-select {
  height: 34px;
  padding: 0 8px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  font-size: 13px;
}

.language-select:focus {
  border-color: var(--accent);
  outline: 3px solid rgba(15, 118, 110, 0.18);
}

.flag-icon {
  flex: 0 0 auto;
  width: 20px;
  height: 14px;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(11, 37, 69, 0.12);
  overflow: hidden;
}

.language-menu {
  position: relative;
}

.language-trigger {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 6px 9px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  font-size: 13px;
  cursor: pointer;
  list-style: none;
}

.language-trigger::-webkit-details-marker {
  display: none;
}

.language-trigger span {
  max-width: 90px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.language-menu[open] .language-trigger {
  border-color: var(--accent);
}

.language-menu-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 50;
  display: grid;
  gap: 4px;
  min-width: 188px;
  padding: 8px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.language-option {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 10px;
  border-radius: 6px;
  color: var(--ink);
  font-size: 13px;
}

.language-option:hover,
.language-option.active {
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.convert-pdf-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 96px;
  min-height: 38px;
  padding: 8px 16px;
  border: 1px solid var(--ink);
  border-radius: 6px;
  background: var(--ink);
  color: #fff;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 8px 18px rgba(11, 37, 69, 0.14);
}

.convert-pdf-button:hover {
  background: var(--accent-strong);
  border-color: var(--accent-strong);
  color: #fff;
}

.tool-section {
  background:
    linear-gradient(180deg, #fbfdff 0%, #f1f6fb 100%);
  border-bottom: 1px solid var(--line);
}

.tool-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 460px;
  gap: 56px;
  align-items: center;
  padding-top: 72px;
  padding-bottom: 72px;
}

.tool-copy {
  max-width: 620px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-family: "IBM Plex Mono", Consolas, monospace;
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
}

h1 {
  margin: 0 0 20px;
  font-size: 48px;
  line-height: 1.06;
  font-weight: 700;
  color: var(--ink);
}

h1 span {
  color: var(--accent-strong);
}

.lede {
  max-width: 560px;
  margin: 0 0 28px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
}

.proof-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
}

.proof-row div {
  padding: 16px 18px 16px 0;
}

.proof-row div + div {
  padding-left: 18px;
  border-left: 1px solid var(--line);
}

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

.proof-row strong {
  margin-bottom: 4px;
  font-size: 14px;
}

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

.mini-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.note-dot {
  flex: 0 0 8px;
  width: 8px;
  height: 8px;
  margin-top: 5px;
  border-radius: 50%;
  background: var(--accent);
}

.converter {
  padding: 24px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.converter-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.converter-kicker {
  display: block;
  margin-bottom: 3px;
  color: var(--muted);
  font-family: "IBM Plex Mono", Consolas, monospace;
  font-size: 12px;
}

.converter-head h2 {
  margin: 0;
  font-size: 22px;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #f7fafc;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.status-badge[data-state="processing"] {
  border-color: #b8d9ed;
  background: var(--blue-soft);
  color: #155e8a;
}

.status-badge[data-state="done"] {
  border-color: #b7d9cf;
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.status-badge[data-state="ocr"] {
  border-color: #e8cda1;
  background: var(--warn-soft);
  color: var(--warn);
}

.status-badge[data-state="error"] {
  border-color: #edbdb8;
  background: #fff0ee;
  color: var(--danger);
}

.dropzone {
  min-height: 260px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 28px;
  border: 1.5px dashed #9fb5c9;
  border-radius: 8px;
  background: #fbfdff;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease;
}

.dropzone.dragging,
.dropzone:focus-visible {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.dropzone-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 52px;
  margin-bottom: 18px;
  border: 1px solid #c6d4e2;
  border-radius: 8px;
  background: #fff;
  color: var(--accent-strong);
  font-family: "IBM Plex Mono", Consolas, monospace;
  font-weight: 500;
  box-shadow: 0 6px 14px rgba(11, 37, 69, 0.06);
}

.dropzone-title {
  margin-bottom: 6px;
  font-size: 17px;
  font-weight: 700;
}

.dropzone p {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 14px;
}

.converter-meta {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 12px;
}

.progress-track {
  height: 5px;
  margin-top: 20px;
  overflow: hidden;
  border-radius: 999px;
  background: #e7edf3;
}

.progress-track span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
  transition: width 0.25s ease;
}

.status-message {
  min-height: 22px;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.results-section {
  padding: 56px 0;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.results-toolbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 22px;
}

.results-toolbar h2,
.section-heading h2 {
  margin: 0;
  font-size: 30px;
  line-height: 1.2;
}

.result-meta {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.export-toolbar {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}

.scope-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  cursor: pointer;
}

.scope-toggle input {
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
}

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

.format-button {
  min-width: 72px;
  padding: 9px 14px;
  font-family: "IBM Plex Mono", Consolas, monospace;
  font-weight: 500;
}

.format-button.active {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.format-actions .format-button:hover:not(:disabled) {
  color: #f59e0b;
  border-color: #f59e0b;
}

.file-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.file-tabs button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 280px;
  padding: 8px 12px;
  border-radius: 6px;
}

.file-tabs button span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-tabs button small {
  color: var(--muted);
  font-family: "IBM Plex Mono", Consolas, monospace;
  font-size: 11px;
}

.file-tabs button.active {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-weight: 600;
}

.table-shell {
  max-height: 520px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

th,
td {
  min-width: 110px;
  max-width: 360px;
  padding: 11px 13px;
  border-right: 1px solid #edf2f7;
  border-bottom: 1px solid #e6edf4;
  text-align: left;
  vertical-align: top;
  overflow-wrap: anywhere;
}

th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #eef4f9;
  color: var(--ink-soft);
  font-weight: 600;
}

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

.notice-band {
  margin: 0 auto;
  width: min(1180px, calc(100% - 48px));
  padding: 16px 18px;
  border: 1px solid #e8cda1;
  border-radius: 8px;
  background: var(--warn-soft);
  color: #6b4c00;
  font-size: 14px;
  line-height: 1.7;
}

.notice-band.error {
  border-color: #edbdb8;
  background: #fff0ee;
  color: var(--danger);
}

.steps-section,
.formats-section,
.faq-section {
  padding: 72px 0;
}

.steps-section {
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.section-heading {
  margin-bottom: 36px;
}

.section-heading.split {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
}

.section-heading.split > p {
  max-width: 460px;
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}

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

.step-item {
  padding: 22px 22px 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdff;
}

.step-index {
  display: inline-flex;
  margin-bottom: 16px;
  color: var(--accent);
  font-family: "IBM Plex Mono", Consolas, monospace;
  font-size: 13px;
}

.step-item h3,
.format-item h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.step-item p,
.format-item p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.formats-section {
  border-bottom: 1px solid var(--line);
  background: #f1f6fb;
}

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

.format-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
}

.format-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  border-radius: 6px;
  background: var(--ink);
  color: #fff;
  font-family: "IBM Plex Mono", Consolas, monospace;
  font-size: 12px;
}

.faq-section {
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.faq-list {
  border-top: 1px solid var(--line);
}

.faq-list details {
  border-bottom: 1px solid var(--line);
}

.faq-list summary {
  padding: 18px 4px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  list-style-position: inside;
}

.faq-list summary:hover {
  color: var(--accent-strong);
}

.faq-list details p {
  max-width: 760px;
  margin: -6px 4px 20px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.site-footer {
  padding: 28px 0;
  background: var(--ink);
  color: #dce5ee;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  font-size: 13px;
}

@media (max-width: 900px) {
  .tool-grid {
    grid-template-columns: 1fr;
    gap: 36px;
    padding-top: 48px;
    padding-bottom: 48px;
  }

  .tool-copy {
    max-width: none;
  }

  h1 {
    font-size: 38px;
  }

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

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

  .results-toolbar {
    flex-direction: column;
  }

  .export-toolbar {
    align-items: flex-start;
  }
}

@media (max-width: 620px) {
  .container {
    width: min(100% - 24px, 1180px);
  }

  .brand-name {
    display: none;
  }

  .header-nav {
    gap: 10px;
    font-size: 13px;
  }

  .language-select {
    width: 96px;
  }

  h1 {
    font-size: 32px;
  }

  .proof-row {
    grid-template-columns: 1fr;
  }

  .proof-row div,
  .proof-row div + div {
    padding: 12px 0;
    border-left: 0;
    border-bottom: 1px solid var(--line);
  }

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

  .converter {
    padding: 16px;
  }

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

  .section-heading.split {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .format-actions {
    flex-wrap: wrap;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

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

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

.quota-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  padding: 10px 12px;
  border: 1px solid #cfe5df;
  border-radius: 6px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-size: 13px;
}

.quota-note a {
  font-weight: 600;
}

.flash-stack {
  width: min(720px, calc(100% - 32px));
  margin: 18px auto 0;
}

.flash {
  margin-bottom: 8px;
  padding: 12px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: var(--surface);
  color: var(--ink);
  font-size: 14px;
  line-height: 1.6;
}

.flash-success {
  border-color: #b7d9cf;
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.flash-error {
  border-color: #edbdb8;
  background: #fff0ee;
  color: var(--danger);
}

.page-section {
  padding: 64px 0 80px;
  min-height: calc(100vh - 64px);
  background:
    linear-gradient(180deg, #fbfdff 0%, #f1f6fb 100%);
}

.page-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 32px;
}

.page-heading h1 {
  margin-bottom: 8px;
  font-size: 40px;
}

.page-heading p {
  margin: 0;
  color: var(--muted);
}

.text-link {
  color: var(--accent-strong);
  font-weight: 600;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 190px;
  min-height: 52px;
  padding: 14px 26px;
  border: 1px solid #d97706;
  border-radius: 8px;
  background: #f59e0b;
  color: #0b2545;
  font-size: 16px;
  font-weight: 700;
  box-shadow: 0 12px 26px rgba(217, 119, 6, 0.28);
}

.cta-button:hover {
  background: #fbbf24;
  border-color: #b45309;
  color: #0b2545;
  transform: translateY(-1px);
  box-shadow: 0 16px 32px rgba(217, 119, 6, 0.34);
}

.text-button {
  border: 0;
  background: transparent;
  color: var(--accent-strong);
  padding: 0;
  font-weight: 600;
}

.inline-form {
  display: inline;
}

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

.auth-section {
  min-height: calc(100vh - 64px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 0;
  background:
    linear-gradient(180deg, #fbfdff 0%, #f1f6fb 100%);
}

.auth-card {
  width: min(440px, calc(100% - 32px));
  padding: 28px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.auth-card h1 {
  margin-bottom: 10px;
  font-size: 34px;
}

.auth-lede {
  margin: 0 0 24px;
  color: var(--muted);
  line-height: 1.6;
}

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

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

.form-field span {
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 600;
}

.form-field input {
  width: 100%;
  height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
}

.form-field textarea {
  width: 100%;
  min-height: 160px;
  padding: 12px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  line-height: 1.6;
  resize: vertical;
}

.form-field textarea:focus {
  border-color: var(--accent);
  outline: 3px solid rgba(15, 118, 110, 0.18);
}

.form-field input:focus {
  border-color: var(--accent);
  outline: 3px solid rgba(15, 118, 110, 0.18);
}

.auth-switch {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 14px;
}

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

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

.stat-item {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.stat-item span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 13px;
}

.stat-item strong {
  font-size: 28px;
  color: var(--ink);
}

.data-panel {
  margin-top: 24px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

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

.data-panel-head h2 {
  margin: 0;
  font-size: 20px;
}

.data-panel-head span {
  color: var(--muted);
  font-size: 13px;
}

.admin-table {
  width: 100%;
}

.empty-state {
  padding: 28px;
  border: 1px dashed var(--line-strong);
  border-radius: 8px;
  background: #fbfdff;
  color: var(--muted);
  text-align: center;
  line-height: 1.6;
}

.guide-list {
  display: grid;
  gap: 16px;
}

.guide-item {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.guide-item h2 {
  margin: 10px 0 10px;
  font-size: 22px;
}

.guide-item p {
  max-width: 860px;
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.75;
}

.guide-item pre {
  overflow-x: auto;
  margin: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #0b2545;
  color: #dcebf4;
  font-family: "IBM Plex Mono", Consolas, monospace;
  font-size: 12px;
  line-height: 1.7;
}

.experience-composer,
.experience-posts {
  margin-top: 28px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.experience-posts {
  display: grid;
  gap: 16px;
}

.experience-post {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdff;
}

.experience-post-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.experience-post h3 {
  margin: 0 0 6px;
  font-size: 18px;
}

.experience-post-head span {
  color: var(--muted);
  font-size: 12px;
}

.experience-post-content {
  margin: 14px 0 0;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.75;
  white-space: pre-wrap;
}

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

.pricing-section {
  padding: 72px 0 84px;
  background:
    linear-gradient(180deg, #fbfdff 0%, #f1f6fb 100%);
}

.pricing-heading {
  max-width: none;
  margin-bottom: 40px;
}

.pricing-heading h1 {
  margin-bottom: 14px;
}

.pricing-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}

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

.pricing-card {
  display: flex;
  flex-direction: column;
  min-height: 320px;
  padding: 22px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 12px 30px rgba(11, 37, 69, 0.06);
}

.pricing-card.selected {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.14), var(--shadow);
}

.pricing-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 22px;
}

.pricing-card-head span {
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

.pricing-card-head strong {
  color: var(--ink);
  font-family: "IBM Plex Mono", Consolas, monospace;
  font-size: 18px;
  text-align: right;
}

.plan-features {
  display: grid;
  gap: 12px;
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
}

.plan-features li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.plan-features strong {
  color: var(--ink);
  font-family: "IBM Plex Mono", Consolas, monospace;
  font-size: 13px;
  text-align: right;
}

.pricing-card form,
.pricing-card a {
  margin-top: auto;
}

.pricing-card form button,
.pricing-action {
  width: 100%;
}

.pricing-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.current-plan-label {
  margin: auto 0 0;
  padding: 11px 14px;
  border: 1px solid #b7d9cf;
  border-radius: 6px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  text-align: center;
  font-weight: 600;
}

.admin-table select {
  max-width: 130px;
  padding: 6px 8px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
}

.admin-composer {
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.admin-post-table {
  margin-top: 16px;
}

@media (max-width: 900px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

@media (max-width: 620px) {
  .page-section {
    padding: 40px 0;
  }

  .page-heading {
    flex-direction: column;
  }

  .page-heading h1 {
    font-size: 32px;
  }

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

  .data-panel {
    padding: 14px;
  }

  .quota-note {
    flex-direction: column;
    align-items: flex-start;
  }

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