:root {
  --bg: #f8fafc;
  --surface: #ffffff;
  --surface-muted: #f1f5f9;
  --text: #0f172a;
  --text-muted: #475569;
  --border: #e2e8f0;
  --accent: #059669;
  --accent-soft: #ecfdf5;
  --accent-border: #a7f3d0;
  --danger: #b91c1c;
  --danger-soft: #fef2f2;
  --radius: 12px;
  --shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Helvetica Neue", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 14px;
}

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

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(248, 250, 252, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 60px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 700;
  font-size: 16px;
  white-space: nowrap;
  flex-shrink: 0;
}

.brand-mark {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid var(--accent-border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 14px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--text-muted);
  font-weight: 500;
  flex-wrap: wrap;
}

.nav a {
  white-space: nowrap;
}

.nav a:hover,
.nav a.active {
  color: var(--accent);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.nav-right .btn,
.nav-right .badge {
  white-space: nowrap;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
}

.badge.vip {
  background: var(--accent-soft);
  color: var(--accent);
  border-color: var(--accent-border);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 16px;
  border-radius: 9px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn:hover {
  background: var(--surface-muted);
}

.btn.primary {
  background: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
}

.btn.primary:hover {
  filter: brightness(0.95);
}

.btn.sm {
  padding: 6px 12px;
  font-size: 12.5px;
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
}

.hero {
  padding: 56px 0 36px;
}

.hero-eyebrow {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid var(--accent-border);
  font-size: 12.5px;
  font-weight: 600;
  margin-bottom: 16px;
}

.hero h1 {
  font-size: 36px;
  line-height: 1.24;
  letter-spacing: -0.02em;
  max-width: 760px;
}

.hero p {
  margin-top: 14px;
  font-size: 16px;
  color: var(--text-muted);
  max-width: 660px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 18px;
}

.section {
  padding: 24px 0 44px;
}

.section-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 16px;
}

.platform-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.platform-tag {
  padding: 5px 11px;
  border-radius: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 12.5px;
  color: var(--text-muted);
  font-weight: 500;
}

/* Workbench styles */
.workbench-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 18px;
}

.control-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

select,
input[type="text"],
input[type="password"],
textarea {
  font: inherit;
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 8px 11px;
  background: #ffffff;
  color: var(--text);
  outline: none;
}

select:focus,
input:focus,
textarea:focus {
  border-color: var(--accent);
}

.segmented {
  display: inline-flex;
  padding: 3px;
  border-radius: 9px;
  background: var(--surface-muted);
  gap: 3px;
}

.seg-btn {
  border: none;
  background: transparent;
  padding: 6px 12px;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
}

.seg-btn.active {
  background: #ffffff;
  color: var(--accent);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
}

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

.wb-split.bilingual-mode {
  grid-template-columns: 1fr;
}

@media (max-width: 780px) {
  .wb-split {
    grid-template-columns: 1fr;
  }
}

.wb-pane {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.wb-pane-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 32px;
  gap: 8px;
}

.wb-pane textarea {
  width: 100%;
  min-height: 260px;
  resize: vertical;
  line-height: 1.65;
}

.bilingual-pairs {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 260px;
}

.pair-row {
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--surface-muted);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.pair-src {
  color: var(--text-muted);
  font-size: 13.5px;
  white-space: pre-wrap;
}

.pair-dst {
  color: var(--text);
  font-size: 14.5px;
  font-weight: 500;
  padding-left: 10px;
  border-left: 2px solid var(--accent);
  white-space: pre-wrap;
}

.notice {
  padding: 10px 14px;
  border-radius: 9px;
  font-size: 13px;
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid var(--accent-border);
  margin-top: 12px;
}

.notice.error {
  background: var(--danger-soft);
  color: var(--danger);
  border-color: #fecaca;
}

.hidden {
  display: none !important;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
}

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

.price-num {
  font-size: 32px;
  line-height: 1.2;
  font-weight: 800;
  color: var(--text);
  margin: 10px 0 4px;
}

.price-num span {
  display: inline-block;
  font-size: 14px;
  line-height: 1.45;
  font-weight: 500;
  color: var(--text-muted);
  vertical-align: middle;
}

.feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin: 14px 0 18px;
  color: var(--text-muted);
}

.feature-list li::before {
  content: '✓ ';
  color: var(--accent);
  font-weight: 700;
}

.progress-track {
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: var(--surface-muted);
  overflow: hidden;
  margin: 8px 0;
}

.progress-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 999px;
}

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

th, td {
  text-align: left;
  padding: 9px 8px;
  border-bottom: 1px solid var(--border);
}

th {
  color: var(--text-muted);
  font-weight: 600;
}

.footer {
  border-top: 1px solid var(--border);
  padding: 26px 0 38px;
  color: var(--text-muted);
  font-size: 13px;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
}
