:root {
  --bg: #fafafa;
  --surface: #ffffff;
  --surface-soft: #f5f5f3;
  --surface-blue: #f4f7ff;
  --ink: #1e1e1e;
  --ink-soft: #4a4a4a;
  --muted: #6a6a6a;
  --muted-2: #8c8c8c;
  --line: #ececec;
  --line-strong: #d9d9d9;
  --accent: #1e40af;
  --accent-soft: #f0f4ff;
  --green: #2b8a3e;
  --green-soft: #eff8f1;
  --orange: #9a6218;
  --orange-soft: #fcf6ea;
  --red: #a32b2b;
  --red-soft: #fcf0f0;
  --radius-xl: 32px;
  --radius-lg: 28px;
  --radius: 20px;
  --radius-sm: 14px;
  --radius-xs: 10px;
  --pill: 999px;
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.025);
  --shadow-hover: 0 12px 34px rgba(0, 0, 0, 0.06);
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Helvetica, Arial, sans-serif;
  --mono: "SFMono-Regular", "Cascadia Code", "Roboto Mono", Consolas, monospace;
  --max: 1320px;
}

[data-template="compact"] {
  --radius-xl: 24px;
  --radius-lg: 22px;
}

[data-template="night"] {
  --bg: #111312;
  --surface: #181a18;
  --surface-soft: #202320;
  --surface-blue: #18201f;
  --ink: #ededE7;
  --ink-soft: #c7c7c0;
  --muted: #9a9a93;
  --muted-2: #77776f;
  --line: #2b2e2b;
  --line-strong: #454945;
  --accent: #86a7ff;
  --accent-soft: #1b2436;
  --green: #8ad5a1;
  --green-soft: #14271a;
  --orange: #e0b56c;
  --orange-soft: #2a2418;
  --red: #ee9f9f;
  --red-soft: #2d1a1a;
  --shadow: none;
  --shadow-hover: none;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  background: none;
  border: none;
  cursor: pointer;
}

img,
svg {
  vertical-align: middle;
}

ul,
ol {
  list-style: none;
}

::selection {
  background: var(--ink);
  color: var(--surface);
}

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

.icon {
  display: inline-block;
  flex: 0 0 auto;
}

.mono {
  font-family: var(--mono);
}

.muted {
  color: var(--muted);
}

.small {
  font-size: 13px;
}

/* ============ Buttons ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 40px;
  padding: 9px 18px;
  border: 1px solid transparent;
  border-radius: var(--pill);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.25;
  white-space: nowrap;
  transition: background 0.16s ease, color 0.16s ease, border-color 0.16s ease, transform 0.12s ease;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--surface);
}

.btn-primary:hover {
  background: #333;
  border-color: #333;
}

[data-template="night"] .btn-primary:hover {
  background: #d6d6cf;
  border-color: #d6d6cf;
}

.btn-outline {
  background: var(--surface);
  border-color: var(--line-strong);
  color: var(--ink);
}

.btn-outline:hover {
  background: #f7f7f5;
  border-color: #b8b8b8;
}

.btn-ghost {
  background: transparent;
  color: var(--muted);
}

.btn-ghost:hover {
  background: var(--surface-soft);
  color: var(--ink);
}

.btn-large {
  min-height: 48px;
  padding: 12px 26px;
  font-size: 15px;
}

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

.btn-block {
  width: 100%;
}

.btn-icon {
  width: 40px;
  height: 40px;
  padding: 0;
  border-color: var(--line-strong);
  background: var(--surface);
}

.btn[disabled],
.btn:disabled {
  opacity: 0.45;
  pointer-events: none;
}

/* ============ Header ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.navbar {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  flex: 0 0 auto;
}

.logo-mark {
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  color: var(--ink);
}

.logo-name {
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.4px;
  line-height: 1;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-right: auto;
}

.nav-links a {
  position: relative;
  padding: 6px 0;
  font-size: 14.5px;
  color: var(--ink-soft);
  transition: color 0.15s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 0;
  height: 1.5px;
  background: var(--ink);
  transition: right 0.2s ease;
}

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

.nav-links a:hover::after,
.nav-links a.active::after {
  right: 0;
}

.auth-buttons {
  display: flex;
  align-items: center;
  gap: 9px;
}

.auth-buttons .btn {
  min-height: 38px;
  padding: 8px 17px;
  font-size: 13.5px;
}

.user-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 4px 13px 4px 5px;
  border: 1px solid var(--line);
  border-radius: var(--pill);
  background: var(--surface);
  font-size: 13px;
  transition: border-color 0.15s ease;
}

.user-chip:hover {
  border-color: var(--line-strong);
}

.avatar {
  width: 28px;
  height: 28px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--surface-soft);
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 600;
}

.avatar.large {
  width: 42px;
  height: 42px;
  font-size: 14px;
}

.mobile-toggle {
  display: none;
}

.mobile-menu {
  display: none;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.mobile-menu.open {
  display: block;
}

.mobile-menu a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}

.mobile-menu-actions {
  display: flex;
  gap: 9px;
  padding: 16px 0 20px;
}

.mobile-menu-actions .btn {
  flex: 1;
}

/* ============ Notice ============ */
.notice-bar {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.notice-inner {
  min-height: 45px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  font-size: 13px;
  color: var(--muted);
}

.notice-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.notice-left > span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.notice-tag {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  padding: 2px 10px;
  border-radius: var(--pill);
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2px;
}

.notice-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex: 0 0 auto;
  font-size: 12.5px;
  color: var(--muted);
}

.notice-link:hover {
  color: var(--ink);
}

/* ============ Hero ============ */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 74px 0 30px;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  padding: 5px 14px;
  border: 1px solid var(--line);
  border-radius: var(--pill);
  background: var(--surface);
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.2px;
}

.hero h1 {
  max-width: 820px;
  margin: 24px 0 18px;
  font-size: clamp(42px, 5vw, 58px);
  font-weight: 650;
  line-height: 1.12;
  letter-spacing: -2px;
  color: var(--ink);
}

.hero h1 span {
  color: var(--ink);
}

[data-template="compact"] .hero {
  padding-top: 52px;
}

[data-template="compact"] .hero h1 {
  font-size: clamp(38px, 4.2vw, 49px);
}

.hero > p {
  max-width: 610px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.75;
}

.hero-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.hero-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px 22px;
  flex-wrap: wrap;
  margin-top: 20px;
  color: var(--muted-2);
  font-size: 12.5px;
}

.hero-note span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.hero-note .icon {
  color: var(--green);
}

/* ============ Model showcase ============ */
.model-showcase {
  max-width: 1100px;
  margin: 36px auto 64px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.model-card {
  display: flex;
  flex-direction: column;
  padding: 24px 26px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.model-card:hover {
  border-color: #d8d8d8;
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.model-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  margin-bottom: 20px;
  border-radius: 50%;
  background: var(--surface-soft);
  color: var(--ink-soft);
}

.model-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.model-heading h3 {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.3px;
}

.free-tag {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  padding: 3px 9px;
  border-radius: var(--pill);
  background: var(--green-soft);
  color: var(--green);
  font-size: 11px;
  font-weight: 500;
}

.model-card > p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
  min-height: 44px;
  flex: 1;
}

.model-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--muted-2);
  font-size: 12px;
}

.model-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 13px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 500;
}

/* ============ Sections ============ */
.section {
  padding: 64px 0;
}

.features-section {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.features-section .section-heading {
  max-width: 720px;
  margin: 0 0 30px;
  text-align: left;
}

.section-heading {
  max-width: 700px;
  margin: 0 auto 36px;
  text-align: center;
}

.section-heading.with-link {
  max-width: none;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  text-align: left;
}

.section-kicker {
  display: inline-block;
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.4px;
}

.section-heading h2 {
  margin: 8px 0 8px;
  font-size: 30px;
  font-weight: 650;
  letter-spacing: -0.8px;
  line-height: 1.25;
}

.section-heading p {
  color: var(--muted);
  font-size: 14.5px;
}

.link-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding-bottom: 3px;
  border-bottom: 1px solid var(--line-strong);
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
}

.link-more:hover {
  color: var(--ink);
  border-color: var(--ink);
}

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

.feature-card {
  padding: 26px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover {
  border-color: #d8d8d8;
  box-shadow: var(--shadow-hover);
}

.feature-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  border-radius: 50%;
  background: var(--surface-soft);
  color: var(--ink-soft);
}

.feature-card h3 {
  margin-bottom: 7px;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.2px;
}

.feature-card p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

/* ============ Server cards ============ */
.server-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.server-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 26px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.server-card:hover {
  border-color: #d8d8d8;
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.server-card.popular {
  border: 2px solid var(--ink);
}

.popular-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  padding: 3px 14px;
  border-radius: var(--pill);
  background: var(--ink);
  color: var(--surface);
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}

.server-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.server-region {
  color: var(--muted-2);
  font-size: 11.5px;
}

.server-card h3 {
  font-size: 20px;
  font-weight: 650;
  letter-spacing: -0.4px;
  line-height: 1.3;
}

.server-card h3 a:hover {
  color: var(--accent);
}

.server-sub {
  min-height: 42px;
  margin-top: 5px;
  color: var(--muted-2);
  font-size: 12.5px;
  line-height: 1.65;
}

.price {
  margin: 16px 0 14px;
  font-size: 34px;
  font-weight: 700;
  letter-spacing: -1.4px;
  line-height: 1;
}

.price .unit {
  color: var(--muted-2);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0;
}

.server-specs {
  flex: 1;
  margin-bottom: 18px;
}

.server-specs li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 7px 0;
  border-bottom: 1px solid var(--surface-soft);
  font-size: 12.5px;
  color: var(--muted);
}

.server-specs li:last-child {
  border-bottom: none;
}

.server-specs li span:last-child {
  color: var(--ink-soft);
  font-weight: 500;
  text-align: right;
}

.server-card > .btn {
  width: 100%;
  margin-top: auto;
}

.catalog-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.stock-text {
  color: var(--muted-2);
  font-size: 11.5px;
}

.stock-text.low {
  color: var(--orange);
}

/* ============ Page hero / catalog ============ */
.page-hero {
  padding: 58px 0 34px;
  text-align: center;
}

.page-hero.compact {
  padding: 38px 0 26px;
  text-align: left;
}

.page-hero h1 {
  margin: 10px 0 8px;
  font-size: clamp(34px, 4vw, 48px);
  font-weight: 650;
  letter-spacing: -1.5px;
  line-height: 1.15;
}

.page-hero p {
  max-width: 660px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}

.page-hero.compact p {
  margin-left: 0;
}

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  margin: 28px 0 14px;
  color: var(--muted-2);
  font-size: 12px;
}

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

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

.catalog-search-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.search-box {
  flex: 1;
  max-width: 560px;
  display: flex;
  align-items: center;
  gap: 9px;
  height: 42px;
  padding: 0 6px 0 14px;
  border: 1px solid var(--line);
  border-radius: var(--pill);
  background: var(--bg);
}

.search-box > .icon {
  color: var(--muted-2);
}

.search-box input {
  flex: 1;
  min-width: 0;
  height: 40px;
  border: none;
  background: transparent;
  outline: none;
  font-size: 13px;
}

.search-box input::placeholder {
  color: var(--muted-2);
}

.search-box .btn {
  min-height: 32px;
  padding: 5px 14px;
  font-size: 12px;
}

.kind-switch {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px;
  border-radius: var(--pill);
  background: var(--surface-soft);
}

.kind-switch a {
  padding: 6px 12px;
  border-radius: var(--pill);
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}

.kind-switch a.active {
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.filter-pills {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 16px;
  padding-top: 15px;
  border-top: 1px solid var(--line);
}

.filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: var(--pill);
  background: var(--surface);
  color: var(--muted);
  font-size: 12px;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.filter-pill span {
  color: var(--muted-2);
  font-size: 10.5px;
}

.filter-pill:hover {
  border-color: var(--line-strong);
  color: var(--ink);
}

.filter-pill.active {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--surface);
}

.filter-pill.active span {
  color: rgba(255, 255, 255, 0.65);
}

.filter-pill.sub {
  font-size: 11.5px;
}

.catalog-result-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 2px 14px;
  color: var(--muted-2);
  font-size: 12px;
}

.catalog-result-head strong {
  color: var(--ink);
  font-weight: 600;
}

.catalog-grid {
  margin-bottom: 66px;
}

.catalog-card {
  min-height: 100%;
}

/* ============ Product detail ============ */
.product-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  padding: 8px 0 28px;
  border-bottom: 1px solid var(--line);
}

.product-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 11px;
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border: 1px solid var(--line);
  border-radius: var(--pill);
  background: var(--surface);
  color: var(--muted);
  font-size: 11px;
  white-space: nowrap;
}

.tag-blue {
  background: var(--accent-soft);
  border-color: transparent;
  color: var(--accent);
}

.product-header h1 {
  font-size: clamp(32px, 4vw, 44px);
  font-weight: 650;
  letter-spacing: -1.5px;
  line-height: 1.15;
}

.product-header > div:first-child > p {
  max-width: 650px;
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
}

.product-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-top: 17px;
  color: var(--muted-2);
  font-size: 12px;
}

.product-meta span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.product-header-price {
  flex: 0 0 auto;
  text-align: right;
  padding-bottom: 4px;
}

.product-header-price > span {
  display: block;
  color: var(--muted-2);
  font-size: 11px;
}

.product-header-price strong {
  display: block;
  margin: 2px 0;
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -1.6px;
  line-height: 1.1;
}

.product-header-price small {
  color: var(--muted-2);
  font-size: 11px;
}

.order-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(320px, 0.95fr);
  gap: 22px;
  padding: 24px 0 66px;
}

.order-main {
  min-width: 0;
}

.order-card {
  padding: 25px 26px;
  margin-bottom: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.order-card:last-child {
  margin-bottom: 0;
}

.card-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 15px;
}

.card-heading h2 {
  font-size: 19px;
  font-weight: 650;
  letter-spacing: -0.35px;
}

.card-heading > span {
  color: var(--muted-2);
  font-size: 11.5px;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--muted);
  font-size: 12px;
}

.card-link:hover {
  color: var(--ink);
}

.card-sub {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
  margin-bottom: 13px;
}

.card-copy p {
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.8;
}

.card-copy p + p {
  margin-top: 10px;
}

.spec-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 28px;
}

.spec-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 9px 0;
  border-bottom: 1px solid var(--surface-soft);
  font-size: 13px;
}

.spec-list li span {
  color: var(--muted-2);
}

.spec-list li strong {
  color: var(--ink-soft);
  font-weight: 500;
  text-align: right;
}

.config-option-list {
  display: grid;
  gap: 8px;
}

.config-option {
  position: relative;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.config-option:hover {
  border-color: var(--line-strong);
  background: #fcfcfb;
}

.config-option input {
  position: absolute;
  opacity: 0;
}

.config-check {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  color: var(--surface);
  background: var(--surface);
}

.config-check .icon {
  opacity: 0;
}

.config-option input:checked + .config-check {
  border-color: var(--ink);
  background: var(--ink);
}

.config-option input:checked + .config-check .icon {
  opacity: 1;
}

.config-option input:checked ~ .config-option-copy strong {
  color: var(--ink);
}

.config-option-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}

.config-option-copy strong {
  font-size: 13px;
  font-weight: 500;
}

.config-option-copy small {
  color: var(--muted-2);
  font-size: 11px;
}

.config-price {
  flex: 0 0 auto;
  color: var(--ink-soft);
  font-size: 12px;
}

.delivery-notes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 18px;
  padding-top: 17px;
  border-top: 1px solid var(--line);
}

.delivery-notes > div {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: var(--muted-2);
}

.delivery-notes strong {
  display: block;
  color: var(--ink-soft);
  font-size: 11.5px;
  font-weight: 500;
}

.delivery-notes small {
  display: block;
  margin-top: 2px;
  color: var(--muted-2);
  font-size: 10.5px;
}

.related-list {
  display: flex;
  flex-direction: column;
}

.related-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}

.related-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.related-item:first-child {
  padding-top: 0;
}

.related-item strong {
  display: block;
  font-size: 13.5px;
  font-weight: 550;
}

.related-item span {
  display: block;
  margin-top: 2px;
  color: var(--muted-2);
  font-size: 11px;
}

.related-price {
  color: var(--ink);
  font-size: 16px;
  font-weight: 600;
  white-space: nowrap;
}

.related-price small {
  margin-left: 3px;
  color: var(--muted-2);
  font-size: 10.5px;
  font-weight: 400;
}

.related-item:hover strong {
  color: var(--accent);
}

.order-aside {
  min-width: 0;
}

.summary-card {
  position: sticky;
  top: 92px;
  margin-bottom: 0;
  padding: 25px;
}

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

.summary-head h2 {
  font-size: 18px;
  font-weight: 650;
  letter-spacing: -0.3px;
}

.summary-head > div > span {
  display: block;
  margin-top: 2px;
  color: var(--muted-2);
  font-size: 10.5px;
}

.buy-price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin: 16px 0 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.buy-price strong {
  font-size: 34px;
  font-weight: 700;
  letter-spacing: -1.5px;
  line-height: 1;
}

.buy-price span {
  color: var(--muted-2);
  font-size: 11px;
}

.config-section {
  margin-bottom: 18px;
}

.config-label {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 12px;
}

.option-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
}

.option-item {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  text-align: left;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.option-item:hover {
  border-color: var(--line-strong);
}

.option-item.active {
  border-color: var(--ink);
  background: var(--surface-soft);
}

.option-item strong {
  display: block;
  font-size: 12px;
  font-weight: 550;
}

.option-item .opt-desc {
  display: block;
  margin-top: 2px;
  color: var(--muted-2);
  font-size: 10.5px;
}

.qty-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.qty-control {
  display: inline-flex;
  align-items: center;
  height: 36px;
  border: 1px solid var(--line-strong);
  border-radius: var(--pill);
  overflow: hidden;
}

.qty-control button {
  width: 36px;
  height: 34px;
  color: var(--muted);
  font-size: 16px;
}

.qty-control button:hover {
  background: var(--surface-soft);
  color: var(--ink);
}

.qty-control span {
  width: 36px;
  text-align: center;
  font-size: 13px;
  font-weight: 500;
}

.coupon-row {
  display: flex;
  gap: 6px;
}

.coupon-row input {
  flex: 1;
  min-width: 0;
  height: 36px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--pill);
  background: var(--bg);
  outline: none;
  font-size: 12px;
  text-transform: uppercase;
}

.coupon-row input:focus {
  border-color: var(--ink);
  background: var(--surface);
}

.coupon-row .btn {
  flex: 0 0 auto;
  min-height: 36px;
}

.coupon-hint {
  margin-top: 7px;
  color: var(--muted-2);
  font-size: 10.5px;
  line-height: 1.5;
}

.coupon-hint.error {
  color: var(--red);
}

.coupon-hint.success {
  color: var(--green);
}

.summary-lines {
  padding-top: 4px;
}

.summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 5px 0;
  color: var(--muted);
  font-size: 12px;
}

.summary-row span:last-child {
  color: var(--ink-soft);
  text-align: right;
}

.summary-row.discount span:last-child {
  color: var(--green);
}

.summary-total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 15px;
  margin-top: 9px;
  padding-top: 13px;
  border-top: 1px solid var(--line);
}

.summary-total span {
  color: var(--muted);
  font-size: 12px;
}

.summary-total strong {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -1.2px;
}

.buy-button {
  width: 100%;
  margin-top: 14px;
}

.summary-note {
  margin-top: 10px;
  color: var(--muted-2);
  font-size: 10px;
  line-height: 1.6;
  text-align: center;
}

.product-cta-mobile {
  display: none;
}

/* ============ Checkout ============ */
.checkout-grid {
  padding-top: 16px;
}

.buyer-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  padding: 15px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.buyer-info span {
  display: block;
  color: var(--muted-2);
  font-size: 10.5px;
}

.buyer-info strong {
  display: block;
  margin-top: 3px;
  font-size: 13px;
  font-weight: 500;
}

.pay-method-list {
  display: grid;
  gap: 8px;
}

.pay-method {
  position: relative;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.pay-method:hover {
  border-color: var(--line-strong);
}

.pay-method.active {
  border-color: var(--ink);
  background: var(--surface-soft);
}

.pay-method input {
  position: absolute;
  opacity: 0;
}

.pm-radio {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border: 2px solid var(--line-strong);
  border-radius: 50%;
}

.pay-method.active .pm-radio {
  border-color: var(--ink);
}

.pay-method.active .pm-radio::after {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ink);
}

.pm-copy {
  flex: 1;
}

.pm-copy strong {
  display: block;
  font-size: 13px;
  font-weight: 550;
}

.pm-copy small {
  display: block;
  margin-top: 2px;
  color: var(--muted-2);
  font-size: 10.5px;
}

.pm-icon {
  color: var(--muted-2);
}

.inline-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 14px;
  padding: 11px 13px;
  border-radius: var(--radius-sm);
  background: var(--orange-soft);
  color: var(--orange);
  font-size: 11px;
  line-height: 1.65;
}

.checkout-product {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--line);
}

.checkout-product h3 {
  font-size: 16px;
  font-weight: 600;
}

.checkout-product p {
  margin-top: 3px;
  color: var(--muted-2);
  font-size: 11px;
}

.checkout-product > strong {
  font-size: 18px;
  font-weight: 650;
  white-space: nowrap;
}

.checkout-product + .summary-lines {
  padding-top: 12px;
}

/* ============ Success / empty ============ */
.success-card {
  max-width: 650px;
  margin: 62px auto;
  padding: 44px 40px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  text-align: center;
}

.success-icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: var(--green-soft);
  color: var(--green);
}

.success-card h1 {
  margin: 8px 0 7px;
  font-size: 31px;
  font-weight: 650;
  letter-spacing: -1px;
}

.success-card > p {
  color: var(--muted);
  font-size: 13px;
}

.success-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  margin: 26px 0;
  padding: 1px;
  border-radius: var(--radius-sm);
  background: var(--line);
  overflow: hidden;
  text-align: left;
}

.success-info > div {
  padding: 13px 15px;
  background: var(--surface);
}

.success-info span {
  display: block;
  color: var(--muted-2);
  font-size: 10px;
}

.success-info strong {
  display: block;
  margin-top: 3px;
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 500;
}

.text-green {
  color: var(--green);
}

.success-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 56px 24px;
  color: var(--muted-2);
  text-align: center;
}

.empty-state.large {
  min-height: 48vh;
  justify-content: center;
}

.empty-state .icon {
  margin-bottom: 12px;
  color: var(--muted-2);
}

.empty-state h3 {
  margin-bottom: 5px;
  color: var(--ink);
  font-size: 17px;
  font-weight: 600;
}

.empty-state p {
  margin-bottom: 16px;
  font-size: 12.5px;
}

/* ============ Forms ============ */
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field > label {
  color: var(--ink-soft);
  font-size: 12.5px;
  font-weight: 500;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  outline: none;
  font-size: 13.5px;
  transition: border-color 0.15s ease;
}

.field textarea {
  min-height: 100px;
  resize: vertical;
  line-height: 1.65;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--ink);
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--muted-2);
}

.field .help,
.field .hint {
  color: var(--muted-2);
  font-size: 10.5px;
  line-height: 1.5;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.form-error {
  padding: 10px 12px;
  border-radius: var(--radius-xs);
  background: var(--red-soft);
  color: var(--red);
  font-size: 12px;
  line-height: 1.55;
}

/* ============ Auth ============ */
.auth-page {
  min-height: calc(100vh - 190px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 56px 0 70px;
}

.auth-box {
  width: 100%;
  max-width: 450px;
  padding: 42px 40px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 36px;
  box-shadow: 0 8px 34px rgba(0, 0, 0, 0.035);
}

.register-box {
  max-width: 520px;
}

.auth-logo {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  margin-bottom: 20px;
  border-radius: 16px;
  background: var(--surface-soft);
  color: var(--ink);
}

.auth-box h1 {
  margin: 7px 0 7px;
  font-size: 29px;
  font-weight: 650;
  letter-spacing: -0.9px;
}

.auth-sub {
  margin-bottom: 27px;
  color: var(--muted);
  font-size: 13.5px;
}

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

.auth-form .btn {
  margin-top: 4px;
}

.auth-switch {
  margin-top: 20px;
  color: var(--muted);
  font-size: 12.5px;
  text-align: center;
}

.auth-switch a {
  color: var(--ink);
  font-weight: 500;
  border-bottom: 1px solid var(--line-strong);
}

.auth-switch a:hover {
  border-color: var(--ink);
}

.demo-account {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-top: 24px;
  padding: 13px 14px;
  border-radius: var(--radius-sm);
  background: var(--surface-soft);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9.5px;
  line-height: 1.65;
}

.demo-account strong {
  margin-bottom: 2px;
  color: var(--ink-soft);
  font-family: var(--font);
  font-size: 10.5px;
  font-weight: 600;
}

.auth-tip {
  margin-top: 18px;
  color: var(--muted-2);
  font-size: 10px;
  line-height: 1.65;
  text-align: center;
}

/* ============ Account ============ */
.account-page {
  padding: 40px 24px 70px;
}

.account-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.account-head h1 {
  margin: 7px 0 5px;
  font-size: 34px;
  font-weight: 650;
  letter-spacing: -1.2px;
}

.account-head p {
  color: var(--muted);
  font-size: 12.5px;
}

.account-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin: 20px 0;
}

.account-stat {
  padding: 18px 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.account-stat span {
  display: block;
  color: var(--muted-2);
  font-size: 11.5px;
}

.account-stat strong {
  display: inline-block;
  margin-top: 4px;
  font-size: 26px;
  font-weight: 650;
  letter-spacing: -1px;
  line-height: 1.1;
}

.account-stat small {
  margin-left: 4px;
  color: var(--muted-2);
  font-size: 10px;
}

.account-layout {
  display: grid;
  grid-template-columns: 225px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.account-sidebar {
  padding: 18px 12px 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  position: sticky;
  top: 92px;
}

.account-side-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 8px 15px;
  border-bottom: 1px solid var(--line);
}

.account-side-head strong {
  display: block;
  font-size: 13px;
  font-weight: 600;
}

.account-side-head small {
  display: block;
  max-width: 135px;
  overflow: hidden;
  color: var(--muted-2);
  font-size: 9.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-top: 9px;
}

.account-nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 11px;
  border-radius: var(--radius-xs);
  color: var(--muted);
  font-size: 12.5px;
}

.account-nav a:hover {
  background: var(--surface-soft);
  color: var(--ink);
}

.account-nav a.active {
  background: var(--ink);
  color: var(--surface);
}

.account-content {
  min-width: 0;
}

.account-content-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 13px;
}

.account-content-head h2 {
  font-size: 21px;
  font-weight: 650;
  letter-spacing: -0.4px;
}

.account-content-head span {
  color: var(--muted-2);
  font-size: 11.5px;
}

.service-card {
  padding: 20px 22px;
  margin-bottom: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.service-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.service-card-head h3 {
  font-size: 16px;
  font-weight: 600;
}

.service-card-head p {
  margin-top: 3px;
  color: var(--muted-2);
  font-family: var(--mono);
  font-size: 9.5px;
}

.service-specs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px 22px;
  margin-top: 13px;
  color: var(--muted-2);
  font-size: 11.5px;
}

.service-specs strong {
  margin-left: 4px;
  color: var(--ink-soft);
  font-weight: 500;
}

.service-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.service-control-buttons {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.agent-state {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted-2);
  font-size: 10px;
}

.agent-state i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--line-strong);
}

.agent-state.online i {
  background: var(--green);
}

.task-mini-list {
  margin-top: 10px;
  border-top: 1px solid var(--line);
}

.task-mini {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 0;
  border-bottom: 1px solid var(--line);
  font-size: 10.5px;
  color: var(--muted);
}

.task-mini:last-child {
  border-bottom: none;
}

.task-mini > span:nth-child(2) {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.task-mini small {
  color: var(--muted-2);
  font-family: var(--mono);
  font-size: 8.5px;
}

.task-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  border-radius: var(--pill);
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 9px;
  white-space: nowrap;
}

.task-badge.success {
  background: var(--green-soft);
  color: var(--green);
}

.task-badge.running,
.task-badge.queued {
  background: var(--accent-soft);
  color: var(--accent);
}

.task-badge.failed,
.task-badge.cancelled {
  background: var(--red-soft);
  color: var(--red);
}

.task-confirm {
  text-align: center;
  padding: 4px 0;
}

.task-confirm-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  margin: 0 auto 12px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
}

.task-confirm p {
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.task-confirm .inline-note {
  text-align: left;
}

.task-history {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.task-history-item {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
}

.task-history-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
}

.task-history-head strong {
  flex: 1;
  font-weight: 550;
}

.task-history-head small {
  color: var(--muted-2);
  font-family: var(--mono);
  font-size: 8.5px;
}

.task-history pre {
  margin-top: 8px;
  padding: 9px 10px;
  border-radius: 9px;
  background: #f7f7f5;
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: 10px;
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-word;
}

.task-history pre.task-output {
  background: #f5f8f5;
}

.task-error {
  margin-top: 8px;
  padding: 8px 10px;
  border-radius: 9px;
  background: var(--red-soft);
  color: var(--red);
  font-size: 10px;
}

.service-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  color: var(--muted-2);
  font-size: 10.5px;
}

.service-card-foot > div {
  display: flex;
  align-items: center;
  gap: 16px;
}

.service-card-foot a:hover {
  color: var(--ink);
}

.switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted-2);
  font-size: 10px;
  cursor: pointer;
}

.switch input {
  display: none;
}

.switch .track {
  position: relative;
  width: 27px;
  height: 16px;
  border-radius: var(--pill);
  background: var(--line-strong);
  transition: background 0.15s ease;
}

.switch .track::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.15s ease;
}

.switch input:checked + .track {
  background: var(--ink);
}

.switch input:checked + .track::after {
  transform: translateX(11px);
}

.table-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

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

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
  white-space: nowrap;
}

.data-table th {
  padding: 12px 15px;
  border-bottom: 1px solid var(--line);
  background: #fcfcfb;
  color: var(--muted-2);
  font-size: 10.5px;
  font-weight: 500;
  text-align: left;
}

.data-table td {
  padding: 13px 15px;
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
  vertical-align: middle;
}

.data-table tbody tr:last-child td {
  border-bottom: none;
}

.data-table tbody tr:hover {
  background: #fcfcfb;
}

.data-table td strong {
  display: block;
  color: var(--ink);
  font-weight: 550;
}

.data-table td small {
  display: block;
  margin-top: 1px;
  color: var(--muted-2);
  font-size: 10px;
}

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

.table-actions a,
.table-actions button,
.table-link {
  color: var(--accent);
  font-size: 11.5px;
}

.table-actions a:hover,
.table-actions button:hover,
.table-link:hover {
  text-decoration: underline;
}

.profile-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.profile-card {
  margin-bottom: 0;
}

.profile-card .field {
  margin-bottom: 11px;
}

.logout-link {
  margin-top: 14px;
  padding-left: 0;
  justify-content: flex-start;
}

/* ============ Status / policy ============ */
.status-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin: 12px 0 24px;
}

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

.status-card span {
  display: block;
  color: var(--muted-2);
  font-size: 11.5px;
}

.status-card strong {
  display: inline-block;
  margin-top: 5px;
  font-size: 28px;
  font-weight: 650;
  letter-spacing: -1px;
}

.status-card small {
  margin-left: 4px;
  color: var(--muted-2);
  font-size: 10px;
}

.status-grid + .table-card .card-heading {
  padding: 20px 22px 14px;
  margin-bottom: 0;
}

.policy-card {
  max-width: 800px;
  margin: 0 auto 70px;
  padding: 34px 38px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.policy-card h2 {
  margin: 24px 0 7px;
  font-size: 17px;
  font-weight: 600;
}

.policy-card h2:first-child {
  margin-top: 0;
}

.policy-card p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.85;
}

.promo-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  margin: 0 0 64px;
  padding: 28px 32px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.promo-copy h2 {
  margin: 8px 0 5px;
  font-size: 21px;
  font-weight: 650;
  letter-spacing: -0.4px;
}

.promo-copy p {
  color: var(--muted);
  font-size: 12.5px;
}

/* ============ Toast / modal ============ */
#toast-region {
  position: fixed;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3000;
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 17px;
  border-radius: var(--pill);
  background: var(--ink);
  color: var(--surface);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  font-size: 12.5px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

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

.toast-success {
  background: var(--green);
}

.toast-error {
  background: var(--red);
}

.modal-root {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 20, 20, 0.42);
  animation: fade-in 0.18s ease;
}

.modal-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 600px;
  max-height: calc(100vh - 44px);
  overflow: auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.16);
  animation: modal-in 0.2s ease;
}

.modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 24px 15px;
  border-bottom: 1px solid var(--line);
}

.modal-head h2 {
  font-size: 19px;
  font-weight: 650;
  letter-spacing: -0.3px;
}

.modal-head p {
  margin-top: 3px;
  color: var(--muted-2);
  font-size: 11px;
}

.modal-close {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--muted);
}

.modal-close:hover {
  background: var(--surface-soft);
  color: var(--ink);
}

.modal-body {
  padding: 22px 24px;
}

.modal-foot {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 14px 24px 20px;
}

.detail-list {
  display: flex;
  flex-direction: column;
}

.detail-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  font-size: 12.5px;
}

.detail-row:last-child {
  border-bottom: none;
}

.detail-row span:first-child {
  color: var(--muted-2);
}

.detail-row strong {
  font-weight: 500;
  text-align: right;
}

.detail-row.total {
  margin-top: 4px;
  padding-top: 13px;
  border-top: 1px solid var(--line-strong);
}

.detail-row.total strong {
  font-size: 22px;
  font-weight: 650;
}

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes modal-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ============ Footer ============ */
.footer {
  margin-top: 10px;
  padding: 32px 0 24px;
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}

.footer-brand .logo-name {
  font-size: 17px;
}

.footer-brand p {
  margin-top: 6px;
  color: var(--muted-2);
  font-size: 10.5px;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 24px;
  color: var(--muted);
  font-size: 12px;
}

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

.footer-copy {
  color: var(--muted-2);
  font-size: 10.5px;
}

.footer-note {
  margin-top: 20px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--muted-2);
  font-size: 10px;
}

/* ============ Error ============ */
.error-page {
  min-height: 58vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 70px 20px;
}

.error-code {
  color: var(--line-strong);
  font-size: 74px;
  font-weight: 700;
  letter-spacing: -4px;
  line-height: 1;
}

.error-page h1 {
  margin: 12px 0 6px;
  font-size: 26px;
  font-weight: 650;
  letter-spacing: -0.7px;
}

.error-page p {
  margin-bottom: 20px;
  color: var(--muted);
  font-size: 13px;
}

/* ============ Shared labels ============ */
.eyebrow {
  display: inline-block;
  color: var(--muted-2);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.admin-brand .brand-text {
  display: flex;
  flex-direction: column;
}

.admin-brand .brand-mark {
  width: 28px;
  height: 28px;
  color: var(--ink);
}

.admin-brand .brand-name {
  color: var(--ink);
  font-size: 17px;
  font-weight: 650;
  letter-spacing: -0.4px;
  line-height: 1.1;
}

.admin-login-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 26px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.admin-login-brand .logo-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--surface-soft);
  color: var(--ink);
}

.admin-login-brand strong {
  display: block;
  font-size: 16px;
  font-weight: 650;
  letter-spacing: -0.3px;
}

.admin-login-brand span {
  display: block;
  margin-top: 2px;
  color: var(--muted-2);
  font-size: 9px;
}

/* ============ Admin shell ============ */
.admin-body {
  background: #f7f7f5;
  color: var(--ink);
}

.admin-shell {
  display: grid;
  grid-template-columns: 232px minmax(0, 1fr);
  min-height: 100vh;
}

.admin-sidebar {
  position: sticky;
  top: 0;
  z-index: 30;
  height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  background: #fff;
  border-right: 1px solid #ececec;
}

.admin-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 20px 18px;
  border-bottom: 1px solid #f0f0ed;
}

.admin-brand .logo-mark {
  width: 28px;
  height: 28px;
}

.admin-brand .logo-name {
  font-size: 17px;
}

.admin-brand .brand-sub {
  display: block;
  margin-top: 3px;
  color: #a0a0a0;
  font-size: 8px;
  letter-spacing: 0.08em;
}

.admin-side-group {
  padding: 13px 10px 2px;
}

.admin-side-label {
  padding: 0 10px 6px;
  color: #a3a3a0;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.08em;
}

.admin-nav-link {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 1px 0;
  padding: 8px 10px;
  border-radius: 9px;
  color: #6b6b68;
  font-size: 12.5px;
  transition: background 0.14s ease, color 0.14s ease;
}

.admin-nav-link:hover {
  background: #f7f7f5;
  color: var(--ink);
}

.admin-nav-link.active {
  background: #f2f2ef;
  color: var(--ink);
  font-weight: 550;
}

.admin-nav-link.active::before {
  content: none;
}

.admin-nav-badge {
  margin-left: auto;
  padding: 1px 6px;
  border-radius: var(--pill);
  background: #ecece8;
  color: #8a8a85;
  font-size: 9px;
}

.admin-side-foot {
  margin-top: auto;
  padding: 15px 18px;
  border-top: 1px solid #f0f0ed;
  color: #a3a3a0;
  font-size: 8.5px;
  line-height: 1.85;
}

.admin-main {
  min-width: 0;
}

.admin-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 60px;
  padding: 0 26px;
  border-bottom: 1px solid #ececec;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
}

.admin-topbar-left {
  display: flex;
  align-items: center;
  gap: 13px;
}

.admin-breadcrumb {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #a0a09b;
  font-size: 10px;
}

.admin-breadcrumb strong {
  color: #5a5a56;
  font-weight: 500;
}

.admin-topbar-right {
  display: flex;
  align-items: center;
  gap: 6px;
}

.icon-btn {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 1px solid #ececec;
  border-radius: 50%;
  background: #fff;
  color: #7b7b76;
}

.icon-btn:hover {
  border-color: #d5d5d0;
  color: var(--ink);
}

.admin-user {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-left: 5px;
  padding-left: 11px;
  border-left: 1px solid #ececec;
  font-size: 11px;
  color: #5b5b57;
}

.admin-user .avatar {
  width: 27px;
  height: 27px;
  font-size: 10px;
}

.admin-content {
  max-width: 1480px;
  padding: 28px 28px 60px;
}

.admin-page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid #ececec;
  margin-bottom: 22px;
}

.admin-page-head .eyebrow {
  display: none;
}

.admin-page-head h1 {
  margin-top: 5px;
  font-size: 27px;
  font-weight: 650;
  letter-spacing: -0.9px;
  line-height: 1.15;
}

.admin-page-head p {
  margin-top: 4px;
  color: #8a8a84;
  font-size: 11.5px;
}

.admin-page-actions {
  display: flex;
  align-items: center;
  gap: 7px;
  flex: 0 0 auto;
}

.admin-body .btn {
  min-height: 35px;
  padding: 7px 14px;
  border-radius: var(--pill);
  font-size: 12px;
}

.admin-body .btn-primary {
  background: var(--ink);
  border-color: var(--ink);
}

.admin-body .btn-primary:hover {
  background: #333;
  border-color: #333;
}

.admin-body .btn-outline {
  background: #fff;
  border-color: #deded9;
}

.admin-body .btn-outline:hover {
  border-color: #bdbdb7;
  background: #fff;
}

.admin-body .btn-ghost {
  color: #8a8a84;
}

.admin-body .btn-sm {
  min-height: 29px;
  padding: 4px 10px;
  font-size: 10.5px;
}

.admin-body .btn-danger {
  border-color: #ecd4d4;
  color: var(--red);
  background: #fff;
}

.admin-body .btn-danger:hover {
  background: var(--red-soft);
}

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

.metric {
  min-width: 0;
  padding: 17px 18px;
  border: 1px solid #ececec;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.02);
}

.metric-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: #898983;
  font-size: 10.5px;
}

.metric-label .icon {
  color: #b0b0aa;
}

.metric-value {
  margin: 7px 0 3px;
  font-size: 26px;
  font-weight: 650;
  letter-spacing: -1px;
  line-height: 1.1;
}

.metric-value small {
  margin-left: 3px;
  color: #96968f;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0;
}

.metric-foot {
  color: #a0a09a;
  font-size: 8.5px;
}

.metric-foot .up {
  color: var(--green);
}

.admin-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 0.9fr);
  gap: 14px;
  margin-bottom: 18px;
}

.admin-grid-equal {
  grid-template-columns: 1fr 1fr;
}

.panel {
  min-width: 0;
  background: #fff;
  border: 1px solid #ececec;
  border-radius: 16px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.02);
  overflow: hidden;
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 13px 16px;
  border-bottom: 1px solid #f0f0ed;
}

.panel-head h2 {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: -0.1px;
}

.panel-head > span {
  color: #a0a09a;
  font-size: 8.5px;
}

.panel-body {
  padding: 15px;
}

.panel-body.no-pad {
  padding: 0;
}

.panel-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 10px 16px;
  border-top: 1px solid #f0f0ed;
  color: #a0a09a;
  font-size: 8.5px;
}

.chart {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 170px;
  padding: 14px 2px 0;
}

.chart-col {
  flex: 1;
  min-width: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}

.chart-bar {
  width: 100%;
  max-width: 34px;
  min-height: 2px;
  border-radius: 5px 5px 2px 2px;
  background: #252522;
  transition: background 0.15s ease;
}

.chart-col:hover .chart-bar {
  background: var(--accent);
}

.chart-label {
  color: #a0a09a;
  font-size: 8px;
  white-space: nowrap;
}

.chart-value {
  color: #85857e;
  font-size: 8px;
  white-space: nowrap;
}

.quick-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: #f0f0ed;
  border: 1px solid #f0f0ed;
  border-radius: 12px;
  overflow: hidden;
}

.quick-action {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 13px;
  background: #fff;
  color: #5c5c57;
  font-size: 11px;
  transition: background 0.14s ease;
}

.quick-action:hover {
  background: #fafaf8;
}

.quick-action .icon {
  margin-top: 1px;
  color: #8c8c86;
}

.quick-action strong {
  display: block;
  color: var(--ink);
  font-size: 11px;
  font-weight: 550;
}

.quick-action span {
  display: block;
  margin-top: 2px;
  color: #999993;
  font-size: 9px;
}

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

.admin-body .data-table {
  font-size: 11.5px;
}

.admin-body .data-table th {
  padding: 9px 14px;
  border-bottom: 1px solid #ececec;
  background: #fcfcfb;
  color: #96968f;
  font-size: 8px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.admin-body .data-table td {
  padding: 10px 14px;
  border-bottom: 1px solid #f2f2ef;
  color: #555550;
}

.admin-body .data-table tbody tr:last-child td {
  border-bottom: none;
}

.admin-body .data-table tbody tr:hover {
  background: #fcfcfb;
}

.admin-body .data-table .num {
  font-family: var(--mono);
  font-size: 10px;
}

.admin-body .data-table .strong {
  color: var(--ink);
  font-weight: 550;
}

.admin-body .data-table .sub {
  display: block;
  margin-top: 2px;
  color: #a0a09a;
  font-family: var(--mono);
  font-size: 8px;
}

.admin-body .data-table .actions {
  display: flex;
  align-items: center;
  gap: 9px;
}

.admin-body .data-table .actions button,
.admin-body .data-table .actions a {
  color: #74746e;
  font-size: 10px;
  border-bottom: 1px solid transparent;
}

.admin-body .data-table .actions button:hover,
.admin-body .data-table .actions a:hover {
  color: var(--ink);
  border-color: #bdbdb6;
}

.admin-body .data-table .actions .danger:hover {
  color: var(--red);
  border-color: #d9b4b4;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: var(--pill);
  background: #f5f5f2;
  color: #6f6f69;
  font-size: 9.5px;
  white-space: nowrap;
}

.status-pill::before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
}

.status-pill.success {
  background: var(--green-soft);
  color: var(--green);
}

.status-pill.warning {
  background: var(--orange-soft);
  color: var(--orange);
}

.status-pill.danger {
  background: var(--red-soft);
  color: var(--red);
}

.admin-filters {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 0 0 13px;
}

.admin-filter-group {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.admin-filter-btn {
  padding: 5px 11px;
  border: 1px solid transparent;
  border-radius: var(--pill);
  color: #7c7c76;
  font-size: 10px;
}

.admin-filter-btn:hover {
  color: var(--ink);
}

.admin-filter-btn.active {
  border-color: #deded8;
  background: #fff;
  color: var(--ink);
}

.admin-search {
  position: relative;
  width: 230px;
  max-width: 100%;
}

.admin-search input {
  width: 100%;
  height: 32px;
  padding: 0 30px 0 12px;
  border: 1px solid #e0e0da;
  border-radius: var(--pill);
  background: #fff;
  outline: none;
  font-size: 10px;
}

.admin-search input:focus {
  border-color: #a8a8a0;
}

.admin-search .icon {
  position: absolute;
  top: 9px;
  right: 11px;
  color: #a0a09a;
}

.admin-body .input,
.admin-body .field input,
.admin-body .field select,
.admin-body .field textarea {
  min-height: 35px;
  padding: 7px 11px;
  border: 1px solid #deded8;
  border-radius: 10px;
  background: #fff;
  font-size: 11px;
}

.admin-body .field textarea {
  min-height: 86px;
}

.admin-body .field input:focus,
.admin-body .field select:focus,
.admin-body .field textarea:focus {
  border-color: #999992;
}

.admin-body .field > label,
.admin-body .field-label {
  color: #74746e;
  font-size: 10px;
}

.admin-body .field .help {
  color: #a0a09a;
  font-size: 9px;
}

.admin-body .field-grid,
.admin-body .form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 11px;
}

.admin-body .field-grid .full,
.admin-body .form-grid .full {
  grid-column: 1 / -1;
}

.admin-body .form-section {
  padding: 16px 0 2px;
  border-top: 1px solid #f0f0ed;
  margin-top: 4px;
}

.admin-body .form-section:first-child {
  padding-top: 0;
  border-top: none;
}

.admin-body .form-section-title {
  margin-bottom: 10px;
  color: #96968f;
  font-size: 8.5px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.admin-body .divider {
  height: 1px;
  margin: 16px 0;
  background: #f0f0ed;
}

.admin-body .inline-check {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #555550;
  font-size: 10.5px;
  cursor: pointer;
}

.admin-body .inline-check input {
  width: 13px;
  height: 13px;
  accent-color: #1e1e1e;
}

.admin-body .switch {
  color: #74746e;
  font-size: 10px;
}

.admin-body .switch .track {
  background: #d9d9d3;
}

.admin-body .switch input:checked + .track {
  background: var(--ink);
}

.admin-tabs {
  display: flex;
  gap: 2px;
  margin-bottom: 18px;
  padding: 3px;
  border: 1px solid #e8e8e2;
  border-radius: var(--pill);
  background: #f1f1ee;
  width: fit-content;
  max-width: 100%;
  overflow-x: auto;
}

.admin-tab {
  padding: 6px 14px;
  border-radius: var(--pill);
  color: #7d7d76;
  font-size: 10.5px;
  white-space: nowrap;
}

.admin-tab:hover {
  color: var(--ink);
}

.admin-tab.active {
  background: #fff;
  color: var(--ink);
  font-weight: 550;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.notice-box {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 11px;
  background: var(--orange-soft);
  color: var(--orange);
  font-size: 10px;
  line-height: 1.65;
}

.notice-box + .notice-box {
  margin-top: 8px;
}

.notice-box.info {
  background: var(--accent-soft);
  color: var(--accent);
}

.notice-box .icon {
  margin-top: 1px;
  flex: 0 0 auto;
}

.settings-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.settings-card {
  background: #fff;
  border: 1px solid #ececec;
  border-radius: 16px;
  overflow: hidden;
}

.settings-card.full {
  grid-column: 1 / -1;
}

.settings-card .panel-head {
  padding: 12px 15px;
}

.settings-card .panel-body {
  padding: 15px;
}

.provider-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3px;
  margin-bottom: 13px;
  padding: 3px;
  border-radius: var(--pill);
  background: #f1f1ee;
}

.provider-tabs button {
  padding: 6px 4px;
  border-radius: var(--pill);
  color: #767670;
  font-size: 9px;
}

.provider-tabs button.active {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.connector-card {
  margin-bottom: 10px;
  background: #fff;
  border: 1px solid #ececec;
  border-radius: 16px;
  overflow: hidden;
}

.connector-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 15px 17px;
  border-bottom: 1px solid #f0f0ed;
}

.connector-head h3 {
  font-size: 12.5px;
  font-weight: 600;
}

.connector-head p {
  margin-top: 3px;
  color: #92928c;
  font-size: 9.5px;
}

.connector-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 9px 22px;
  padding: 12px 17px;
  border-bottom: 1px solid #f0f0ed;
  color: #999993;
  font-size: 9px;
}

.connector-meta strong {
  display: block;
  margin-top: 2px;
  color: #4e4e49;
  font-size: 9.5px;
  font-weight: 500;
}

.connector-actions {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 10px 17px;
  background: #fcfcfb;
}

.connector-actions .tag {
  margin-right: auto;
}

.template-list {
  display: grid;
}

.template-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 15px 17px;
  border-bottom: 1px solid #f0f0ed;
}

.template-row:last-child {
  border-bottom: none;
}

.template-row:hover {
  background: #fcfcfb;
}

.template-row-main {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-width: 0;
}

.template-swatch {
  width: 42px;
  height: 34px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border: 1px solid #e0e0da;
  border-radius: 9px;
  background: #fafaf8;
  color: #8f8f88;
  font-size: 7px;
}

.template-row h3 {
  font-size: 11.5px;
  font-weight: 600;
}

.template-row p {
  max-width: 340px;
  margin-top: 2px;
  overflow: hidden;
  color: #92928c;
  font-size: 9.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.template-row-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
}

.template-preview {
  padding: 20px;
  border: 1px solid #e4e4de;
  border-radius: 16px;
  background: #fbfbf9;
  color: var(--ink);
  font-size: 11px;
  line-height: 1.6;
}

.template-preview h4 {
  margin: 8px 0 6px;
  font-size: 24px;
  font-weight: 650;
  letter-spacing: -0.8px;
  line-height: 1.2;
}

.order-detail-grid {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 12px;
}

.detail-panel {
  background: #fff;
  border: 1px solid #ececec;
  border-radius: 13px;
  overflow: hidden;
}

.detail-panel-head {
  padding: 10px 13px;
  border-bottom: 1px solid #f0f0ed;
  color: #96968f;
  font-size: 8.5px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.detail-panel-body {
  padding: 12px 13px;
}

.detail-kv {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 15px;
  padding: 6px 0;
  border-bottom: 1px solid #f4f4f1;
  font-size: 10px;
}

.detail-kv:last-child {
  border-bottom: none;
}

.detail-kv span {
  color: #92928c;
}

.detail-kv strong {
  font-weight: 500;
  text-align: right;
}

.detail-kv.total {
  margin-top: 5px;
  padding-top: 10px;
  border-top: 1px solid #deded8;
  font-size: 11px;
}

.detail-kv.total strong {
  font-size: 18px;
  font-weight: 650;
}

.timeline {
  display: flex;
  flex-direction: column;
}

.timeline-row {
  display: flex;
  gap: 9px;
  padding: 7px 0;
  font-size: 9.5px;
}

.timeline-dot {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  margin-top: 3px;
  border: 1px solid #a0a099;
  border-radius: 50%;
}

.timeline-row.done .timeline-dot {
  border-color: var(--green);
  background: var(--green);
}

.timeline-row strong {
  display: block;
  font-size: 10px;
  font-weight: 500;
}

.timeline-row span {
  color: #9d9d96;
  font-size: 8.5px;
}

.admin-body .drawer-root {
  position: fixed;
  inset: 0;
  z-index: 2200;
  display: flex;
  justify-content: flex-end;
}

.admin-body .drawer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(24, 24, 24, 0.3);
  animation: fade-in 0.18s ease;
}

.admin-body .drawer {
  position: relative;
  z-index: 1;
  width: 580px;
  max-width: calc(100vw - 20px);
  height: 100%;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-left: 1px solid #e4e4de;
  border-radius: 22px 0 0 22px;
  box-shadow: -18px 0 50px rgba(0, 0, 0, 0.1);
  animation: drawer-in 0.2s ease;
}

.drawer-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 20px;
  border-bottom: 1px solid #f0f0ed;
}

.drawer-head h2 {
  font-size: 16px;
  font-weight: 650;
  letter-spacing: -0.3px;
}

.drawer-head p {
  margin-top: 2px;
  color: #999993;
  font-size: 9.5px;
}

.drawer-close {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #7d7d76;
}

.drawer-close:hover {
  background: #f5f5f2;
  color: var(--ink);
}

.drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 18px 20px;
}

.drawer-foot {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  padding: 12px 20px;
  border-top: 1px solid #f0f0ed;
  background: #fcfcfb;
  border-radius: 0 0 0 22px;
}

.drawer-foot .left {
  margin-right: auto;
  color: #999993;
  font-size: 9px;
}

@keyframes drawer-in {
  from { opacity: 0; transform: translateX(18px); }
  to { opacity: 1; transform: translateX(0); }
}

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

.repeater-row {
  display: grid;
  grid-template-columns: 1fr 1fr 90px 28px;
  gap: 6px;
  align-items: center;
}

.repeater-row.cycle-row {
  grid-template-columns: 105px 72px 1fr 28px;
}

.repeater-row input,
.repeater-row select {
  width: 100%;
  min-height: 32px;
  padding: 5px 8px;
  border: 1px solid #deded8;
  border-radius: 8px;
  background: #fff;
  outline: none;
  font-size: 10px;
}

.repeater-row input:focus,
.repeater-row select:focus {
  border-color: #999992;
}

.repeater-remove {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 1px solid #ececec;
  border-radius: 50%;
  color: #a0a09a;
}

.repeater-remove:hover {
  border-color: #e0c4c4;
  color: var(--red);
}

.repeater-add {
  align-self: flex-start;
  margin-top: 3px;
  color: #64645e;
  font-size: 10px;
  border-bottom: 1px solid #c9c9c2;
}

.repeater-add:hover {
  color: var(--ink);
  border-color: var(--ink);
}

.admin-body .modal-card {
  border-radius: 22px;
}

.admin-body .modal-head h2 {
  font-size: 15px;
}

.admin-body .modal-body {
  padding: 18px;
}

.admin-body .modal-foot {
  padding: 12px 20px 18px;
}

.admin-login-shell {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  background: #fafafa;
}

.admin-login-aside {
  display: none;
}

.admin-login-form-side {
  width: 100%;
  max-width: 430px;
}

.admin-login-form {
  width: 100%;
  padding: 38px 36px;
  border: 1px solid #ececec;
  border-radius: 32px;
  background: #fff;
  box-shadow: 0 8px 34px rgba(0, 0, 0, 0.035);
}

.admin-login-form .eyebrow {
  color: var(--accent);
  font-size: 10px;
}

.admin-login-form h2 {
  margin: 8px 0 5px;
  font-size: 27px;
  font-weight: 650;
  letter-spacing: -0.9px;
}

.admin-login-form .sub {
  margin-bottom: 24px;
  color: #8c8c86;
  font-size: 11.5px;
}

.admin-login-form .field {
  margin-bottom: 12px;
}

.admin-login-form .btn {
  width: 100%;
  min-height: 43px;
  margin-top: 5px;
}

.admin-login-form .demo {
  margin-top: 20px;
  padding: 11px 12px;
  border-radius: 11px;
  background: #f7f7f5;
  color: #7d7d76;
  font-size: 9px;
  line-height: 1.75;
}

.mobile-admin-toggle {
  display: none;
}

.admin-sidebar-backdrop {
  display: none;
}

/* ============ Admin misc ============ */
.admin-body .empty {
  padding: 32px 18px;
  border: none;
  color: #a0a09a;
  font-size: 10.5px;
  text-align: center;
}

.admin-body .empty .icon {
  margin-bottom: 8px;
  color: #bdbdb7;
}

.admin-body .empty h3 {
  margin-bottom: 3px;
  color: #555550;
  font-size: 12px;
  font-weight: 550;
}

.admin-body .empty p {
  font-size: 10px;
}

.admin-body .tag {
  padding: 2px 8px;
  font-size: 9px;
}

.admin-body .status-pill {
  font-size: 8.5px;
}

.admin-body .notice-box {
  font-size: 9.5px;
}

.admin-body .admin-tab {
  font-size: 10px;
}

.admin-body .link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #74746e;
  font-size: 9px;
  border-bottom: 1px solid #d5d5cf;
  padding-bottom: 2px;
}

.admin-body .link-arrow:hover {
  color: var(--ink);
  border-color: var(--ink);
}

/* ============ Responsive ============ */
@media (max-width: 1120px) {
  .container {
    padding: 0 20px;
  }
  .nav-links {
    gap: 20px;
  }
  .nav-links a {
    font-size: 13.5px;
  }
  .model-showcase,
  .feature-grid,
  .server-grid {
    gap: 15px;
  }
  .feature-grid {
    grid-template-columns: 1fr 1fr;
  }
  .order-grid {
    grid-template-columns: minmax(0, 1.6fr) minmax(300px, 0.95fr);
  }
  .admin-content {
    padding: 24px 20px 50px;
  }
  .metrics {
    grid-template-columns: 1fr 1fr;
  }
  .admin-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 920px) {
  .nav-links {
    display: none;
  }
  .mobile-toggle {
    display: inline-flex;
  }
  .auth-buttons > .btn-outline {
    display: none;
  }
  .navbar {
    min-height: 64px;
  }
  .model-showcase,
  .server-grid {
    grid-template-columns: 1fr;
  }
  .model-showcase {
    max-width: 620px;
  }
  .model-card > p,
  .server-sub {
    min-height: 0;
  }
  .section-heading.with-link {
    display: block;
  }
  .section-heading.with-link .link-more {
    margin-top: 12px;
  }
  .product-header {
    display: block;
  }
  .product-header-price {
    margin-top: 18px;
    text-align: left;
  }
  .product-header-price strong {
    font-size: 30px;
  }
  .order-grid,
  .checkout-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .order-aside {
    margin-top: 0;
  }
  .summary-card {
    position: static;
  }
  .account-layout {
    grid-template-columns: 1fr;
  }
  .account-sidebar {
    position: static;
  }
  .account-nav {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 5px;
    padding-top: 10px;
  }
  .account-nav a {
    flex: 0 0 auto;
    border-radius: var(--pill);
  }
  .account-nav a .icon {
    display: none;
  }
  .account-side-head {
    padding-bottom: 9px;
  }
  .account-stat-grid {
    grid-template-columns: 1fr 1fr;
  }
  .profile-grid {
    grid-template-columns: 1fr;
  }
  .delivery-notes {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .admin-shell {
    grid-template-columns: 1fr;
  }
  .admin-sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    width: 232px;
    transform: translateX(-100%);
    transition: transform 0.2s ease;
  }
  .admin-shell.nav-open .admin-sidebar {
    transform: translateX(0);
  }
  .admin-sidebar-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 25;
    background: rgba(24, 24, 24, 0.28);
  }
  .admin-shell.nav-open .admin-sidebar-backdrop {
    display: block;
  }
  .mobile-admin-toggle {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border: 1px solid #ececec;
    border-radius: 50%;
  }
  .settings-grid {
    grid-template-columns: 1fr;
  }
  .settings-card.full {
    grid-column: auto;
  }
  .admin-body .field-grid,
  .admin-body .form-grid {
    grid-template-columns: 1fr;
  }
  .admin-body .field-grid .full,
  .admin-body .form-grid .full {
    grid-column: auto;
  }
  .order-detail-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .container {
    padding: 0 16px;
  }
  .logo-name {
    font-size: 19px;
  }
  .nav-links {
    display: none;
  }
  .auth-buttons {
    gap: 6px;
  }
  .auth-buttons > .btn-primary {
    display: none;
  }
  .user-chip-name {
    display: none;
  }
  .hero {
    padding: 48px 0 20px;
  }
  .hero h1 {
    font-size: 39px;
    letter-spacing: -1.4px;
    line-height: 1.18;
  }
  .hero > p {
    font-size: 14.5px;
  }
  .hero-cta .btn {
    flex: 1;
    min-width: 0;
  }
  .hero-note {
    gap: 7px 15px;
    font-size: 11px;
  }
  .model-showcase {
    margin: 26px auto 44px;
  }
  .section {
    padding: 44px 0;
  }
  .section-heading h2 {
    font-size: 25px;
  }
  .feature-grid {
    grid-template-columns: 1fr;
  }
  .server-card,
  .model-card {
    padding: 22px;
  }
  .price {
    font-size: 30px;
  }
  .page-hero {
    padding: 38px 0 24px;
  }
  .page-hero h1 {
    font-size: 32px;
  }
  .page-hero p {
    font-size: 13px;
  }
  .catalog-filter-card {
    padding: 14px;
  }
  .catalog-search-row {
    display: block;
  }
  .search-box {
    max-width: none;
  }
  .kind-switch {
    margin-top: 10px;
    max-width: 100%;
    overflow-x: auto;
  }
  .filter-pills {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 2px;
  }
  .filter-pill {
    flex: 0 0 auto;
  }
  .product-header h1 {
    font-size: 32px;
  }
  .order-card {
    padding: 20px;
    border-radius: 18px;
  }
  .spec-list {
    grid-template-columns: 1fr;
  }
  .summary-card {
    padding: 20px;
  }
  .product-page {
    padding-bottom: 78px;
  }
  .product-cta-mobile {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 80;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--line);
    background: var(--surface);
  }
  .product-cta-mobile span {
    display: block;
    color: var(--muted-2);
    font-size: 10px;
  }
  .product-cta-mobile strong {
    font-size: 21px;
    font-weight: 650;
    letter-spacing: -0.8px;
  }
  .product-cta-mobile .btn {
    flex: 0 0 45%;
  }
  .buyer-info {
    grid-template-columns: 1fr;
  }
  .success-card {
    margin: 30px auto;
    padding: 32px 20px;
  }
  .success-card h1 {
    font-size: 27px;
  }
  .success-info {
    grid-template-columns: 1fr;
  }
  .success-actions .btn {
    flex: 1;
  }
  .auth-box {
    padding: 30px 22px;
    border-radius: 28px;
  }
  .register-box {
    max-width: 100%;
  }
  .auth-box h1 {
    font-size: 26px;
  }
  .auth-form .field-row {
    grid-template-columns: 1fr;
  }
  .account-page {
    padding: 28px 16px 60px;
  }
  .account-head {
    display: block;
  }
  .account-head h1 {
    font-size: 28px;
  }
  .account-head .btn {
    margin-top: 14px;
  }
  .account-stat-grid {
    gap: 9px;
  }
  .account-stat {
    padding: 14px;
  }
  .account-stat strong {
    font-size: 22px;
  }
  .account-layout {
    gap: 14px;
  }
  .service-card {
    padding: 17px;
  }
  .service-card-head {
    display: block;
  }
  .service-card-head .status-pill {
    margin-top: 7px;
  }
  .service-card-foot {
    display: block;
  }
  .service-card-foot > div {
    margin-top: 9px;
    justify-content: space-between;
  }
  .data-table th,
  .data-table td {
    padding: 10px 12px;
  }
  .status-grid {
    grid-template-columns: 1fr 1fr;
    gap: 9px;
  }
  .promo-card {
    display: block;
    margin-bottom: 44px;
    padding: 22px;
  }
  .promo-card .btn {
    margin-top: 16px;
  }
  .footer {
    padding: 26px 0 20px;
  }
  .footer-inner {
    display: block;
  }
  .footer-links {
    flex-wrap: wrap;
    gap: 10px 18px;
    margin: 16px 0;
  }
  .footer-copy {
    margin-top: 10px;
  }
  .policy-card {
    padding: 24px 20px;
  }
  .admin-content {
    padding: 18px 14px 45px;
  }
  .admin-topbar {
    height: 52px;
    padding: 0 14px;
  }
  .admin-page-head {
    display: block;
  }
  .admin-page-actions {
    margin-top: 12px;
  }
  .admin-page-head h1 {
    font-size: 23px;
  }
  .metrics {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .metric {
    padding: 13px;
  }
  .metric-value {
    font-size: 21px;
  }
  .admin-user {
    margin-left: 0;
    padding-left: 7px;
  }
  .admin-user span:not(.avatar) {
    display: none;
  }
  .admin-grid-equal {
    grid-template-columns: 1fr;
  }
  .quick-actions {
    grid-template-columns: 1fr;
  }
  .chart {
    height: 140px;
  }
  .chart-value {
    display: none;
  }
  .admin-tabs {
    width: 100%;
  }
  .admin-body .drawer {
    width: 100%;
    max-width: 100%;
    border-radius: 0;
  }
  .drawer-foot {
    border-radius: 0;
  }
  .repeater-row,
  .repeater-row.cycle-row {
    grid-template-columns: 1fr 1fr;
  }
  .repeater-row .repeater-remove {
    justify-self: end;
  }
  .admin-login-form {
    padding: 30px 22px;
    border-radius: 26px;
  }
  .admin-login-form h2 {
    font-size: 24px;
  }
}

@media (max-width: 420px) {
  .hero h1 {
    font-size: 34px;
  }
  .model-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }
  .account-stat-grid {
    grid-template-columns: 1fr;
  }
  .status-grid {
    grid-template-columns: 1fr;
  }
}


/* ============================================================
   官网 / official landing
   ============================================================ */
.official-body {
  background: #f5f5f0;
  color: #1e1e1e;
  font-family: var(--font);
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
}

.official-body .off-page {
  width: 100%;
  display: flex;
  justify-content: center;
}

.off-site {
  width: 100%;
  max-width: 1300px;
  margin: 20px 0;
  background: #fff;
  border-left: 2px solid #1e1e1e;
  border-right: 2px solid #1e1e1e;
}

.off-navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  padding: 18px 32px;
  border-bottom: 3px solid #1e1e1e;
  background: #fff;
}

.off-logo {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.off-logo-symbol {
  padding-right: 12px;
  border-right: 3px solid #1e1e1e;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.5px;
  line-height: 1;
}

.off-logo-text {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.3px;
}

.off-logo-text span {
  margin-left: 6px;
  color: #4a4a4a;
  font-size: 16px;
  font-weight: 400;
}

.off-nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 15px;
  font-weight: 500;
}

.off-nav-links a {
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
  color: #1e1e1e;
}

.off-nav-links a:hover {
  border-bottom-color: #1e1e1e;
}

.off-cf-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 16px;
  border: 2px solid #1e1e1e;
  background: #1e1e1e;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
}

.off-cf-badge:hover {
  background: #333;
}

.off-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  padding: 60px 32px;
  border-bottom: 3px solid #1e1e1e;
}

.off-highlight {
  display: inline-block;
  margin-bottom: 18px;
  padding: 4px 10px;
  background: #1e1e1e;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.45px;
}

.off-hero-left h1 {
  margin-bottom: 20px;
  max-width: 540px;
  font-size: 46px;
  font-weight: 800;
  letter-spacing: -1.2px;
  line-height: 1.08;
}

.off-subhead {
  max-width: 500px;
  margin-bottom: 28px;
  padding-left: 18px;
  border-left: 4px solid #1e1e1e;
  color: #2e2e2e;
  font-size: 15px;
  line-height: 1.75;
}

.off-subhead code {
  padding: 1px 5px;
  border: 1px solid #1e1e1e;
  background: #f0f0ec;
  font-family: var(--mono);
  font-size: 12px;
}

.off-hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.off-primary-btn,
.off-secondary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 26px;
  border: 2px solid #1e1e1e;
  font-size: 14px;
  font-weight: 700;
}

.off-primary-btn {
  background: #1e1e1e;
  color: #fff;
}

.off-primary-btn:hover {
  background: #fff;
  color: #1e1e1e;
}

.off-secondary-btn {
  background: transparent;
  color: #1e1e1e;
}

.off-secondary-btn:hover {
  background: #1e1e1e;
  color: #fff;
}

.off-hero-right {
  padding: 20px;
  border: 3px solid #1e1e1e;
  background: #f0f0ec;
  box-shadow: 6px 6px 0 0 #1e1e1e;
}

.off-terminal-head {
  display: flex;
  gap: 9px;
  margin-bottom: 16px;
  padding-bottom: 11px;
  border-bottom: 2px solid #1e1e1e;
}

.off-terminal-head span {
  width: 11px;
  height: 11px;
  background: #1e1e1e;
  opacity: 0.35;
}

.off-terminal-head span:first-child {
  opacity: 1;
}

.off-terminal-line {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
  font-family: var(--mono);
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.55;
  word-break: break-all;
}

.off-terminal-line b {
  font-weight: 800;
}

.off-terminal-ok {
  margin-top: 15px;
  padding-top: 14px;
  border-top: 2px solid #1e1e1e;
}

.off-cursor {
  display: inline-block;
  width: 8px;
  height: 14px;
  margin-left: 4px;
  vertical-align: middle;
  background: #1e1e1e;
  animation: off-blink 1s step-end infinite;
}

@keyframes off-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.off-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 13px;
  margin-top: 17px;
  padding-top: 16px;
  border-top: 2px solid #1e1e1e;
}

.off-stats-grid > div {
  padding-left: 11px;
  border-left: 3px solid #1e1e1e;
}

.off-stats-grid span {
  display: block;
  color: #3a3a3a;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.off-stats-grid strong {
  display: block;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.2;
}

.off-features,
.off-deploy,
.off-opensource {
  padding: 52px 32px;
  border-bottom: 3px solid #1e1e1e;
}

.off-deploy {
  background: #fafaf5;
}

.off-section-title {
  display: inline-block;
  margin-bottom: 32px;
  padding-bottom: 8px;
  border-bottom: 4px solid #1e1e1e;
  font-size: 25px;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.off-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.off-feature {
  padding: 22px;
  border: 2px solid #1e1e1e;
  background: #fff;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.off-feature:hover {
  transform: translate(-2px, -2px);
  box-shadow: 4px 4px 0 0 #1e1e1e;
}

.off-feature-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 15px;
  border-bottom: 2px solid #1e1e1e;
  color: #1e1e1e;
}

.off-feature h3 {
  margin-bottom: 9px;
  font-size: 18px;
  font-weight: 700;
}

.off-feature p {
  color: #2e2e2e;
  font-size: 13.5px;
  line-height: 1.7;
}

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

.off-step {
  padding: 22px;
  border: 2px solid #1e1e1e;
  background: #fff;
}

.off-step-num {
  display: inline-block;
  margin-bottom: 14px;
  padding-bottom: 7px;
  border-bottom: 3px solid #1e1e1e;
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1;
}

.off-step h4 {
  margin-bottom: 9px;
  font-size: 17px;
  font-weight: 700;
}

.off-step p {
  margin-bottom: 10px;
  color: #2e2e2e;
  font-size: 13px;
  line-height: 1.7;
}

.off-step code {
  display: block;
  margin-top: 6px;
  padding: 5px 7px;
  border: 1px solid #1e1e1e;
  background: #f0f0ec;
  font-family: var(--mono);
  font-size: 11px;
  word-break: break-all;
}

.off-wrangler {
  margin-top: 28px;
  padding: 22px;
  border: 2px solid #000;
  background: #1e1e1e;
  color: #d8d8d8;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.85;
}

.off-wrangler i {
  color: #9a9a9a;
  font-style: normal;
}

.off-wrangler b {
  color: #fff;
  font-weight: 600;
}

.off-wrangler span {
  color: #c0c0c0;
}

.off-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 3px solid #1e1e1e;
  background: #fff;
}

.off-metrics > div {
  padding: 30px 20px;
  border-right: 2px solid #1e1e1e;
  text-align: center;
}

.off-metrics > div:last-child {
  border-right: none;
}

.off-metrics strong {
  display: block;
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1.1;
}

.off-metrics strong small {
  font-size: 15px;
  font-weight: 600;
}

.off-metrics span {
  display: block;
  margin-top: 5px;
  color: #3a3a3a;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.off-opensource {
  display: flex;
  align-items: flex-start;
  gap: 36px;
}

.off-open-text {
  flex: 1;
}

.off-open-text h2 {
  margin-bottom: 14px;
  font-size: 33px;
  font-weight: 800;
  letter-spacing: -0.7px;
  line-height: 1.15;
}

.off-open-text > p {
  max-width: 530px;
  margin-bottom: 18px;
  color: #2e2e2e;
  font-size: 14px;
  line-height: 1.8;
}

.off-tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.off-tech-stack span {
  padding: 5px 10px;
  border: 2px solid #1e1e1e;
  background: #fff;
  font-size: 12px;
  font-weight: 600;
}

.off-open-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 22px;
  font-size: 13px;
  font-weight: 600;
}

.off-open-links a {
  border-bottom: 1px solid #1e1e1e;
}

.off-code {
  flex: 1;
  min-width: 300px;
  padding: 22px;
  border: 2px solid #000;
  background: #1e1e1e;
  color: #d8d8d8;
  box-shadow: 6px 6px 0 0 rgba(0, 0, 0, 0.08);
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.8;
}

.off-code i {
  color: #9a9a9a;
  font-style: normal;
}

.off-code b {
  color: #fff;
  font-weight: 600;
}

.off-code-note {
  margin-top: 12px;
  color: #9a9a9a;
}

.off-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  padding: 22px 32px;
  background: #fff;
  font-size: 12px;
  color: #3a3a3a;
}

.off-footer-left,
.off-footer-right {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.off-footer a {
  color: #1e1e1e;
  font-weight: 500;
}

.off-footer a:hover {
  border-bottom: 1px solid #1e1e1e;
}

@media (max-width: 980px) {
  .off-hero {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .off-feature-grid {
    grid-template-columns: 1fr 1fr;
  }
  .off-deploy-steps {
    grid-template-columns: 1fr;
  }
  .off-opensource {
    flex-direction: column;
  }
  .off-metrics {
    grid-template-columns: 1fr 1fr;
  }
  .off-metrics > div:nth-child(2) {
    border-right: none;
  }
  .off-metrics > div:nth-child(3),
  .off-metrics > div:nth-child(4) {
    border-top: 2px solid #1e1e1e;
  }
}

@media (max-width: 680px) {
  .off-site {
    margin: 0;
    border-left: none;
    border-right: none;
  }
  .off-navbar {
    padding: 15px 18px;
    gap: 13px;
  }
  .off-logo-symbol {
    font-size: 24px;
  }
  .off-logo-text {
    font-size: 17px;
  }
  .off-logo-text span {
    display: none;
  }
  .off-nav-links {
    order: 3;
    width: 100%;
    gap: 15px;
    overflow-x: auto;
    font-size: 12.5px;
    white-space: nowrap;
  }
  .off-cf-badge {
    padding: 6px 10px;
    font-size: 10px;
  }
  .off-hero {
    padding: 38px 18px;
  }
  .off-hero-left h1 {
    font-size: 36px;
  }
  .off-subhead {
    font-size: 13.5px;
  }
  .off-hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }
  .off-hero-right {
    padding: 15px;
    box-shadow: 4px 4px 0 0 #1e1e1e;
  }
  .off-features,
  .off-deploy,
  .off-opensource {
    padding: 36px 18px;
  }
  .off-feature-grid {
    grid-template-columns: 1fr;
  }
  .off-metrics {
    grid-template-columns: 1fr 1fr;
  }
  .off-metrics > div {
    padding: 22px 10px;
  }
  .off-metrics strong {
    font-size: 28px;
  }
  .off-opensource {
    gap: 24px;
  }
  .off-open-text h2 {
    font-size: 28px;
  }
  .off-code {
    min-width: 0;
    padding: 16px;
    font-size: 10.5px;
  }
  .off-footer {
    padding: 20px 18px;
    display: block;
  }
  .off-footer-right {
    margin-top: 12px;
  }
}


.off-disclaimer {
  padding: 10px 32px;
  border-bottom: 2px solid #1e1e1e;
  background: #1e1e1e;
  color: #f0f0ec;
  font-size: 11.5px;
  line-height: 1.6;
  text-align: center;
}

.off-hero-note {
  margin-top: 18px;
  color: #5a5a55;
  font-size: 11px;
}

.off-pricing {
  padding: 52px 32px;
  border-bottom: 3px solid #1e1e1e;
  background: #fff;
}

.off-price-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.off-price-card {
  display: flex;
  flex-direction: column;
  padding: 24px;
  border: 2px solid #1e1e1e;
  background: #fff;
}

.off-price-card.featured {
  border-width: 4px;
}

.off-price-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 2px solid #1e1e1e;
}

.off-price-head h3 {
  font-size: 19px;
  font-weight: 800;
}

.off-price-head span {
  padding: 2px 8px;
  background: #1e1e1e;
  color: #fff;
  font-size: 10px;
  font-weight: 600;
}

.off-price-value {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1.1;
}

.off-price-value small {
  color: #6a6a65;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0;
}

.off-price-card > p {
  min-height: 42px;
  margin: 10px 0 14px;
  color: #4a4a45;
  font-size: 12px;
  line-height: 1.65;
}

.off-price-card ul {
  flex: 1;
  margin-bottom: 20px;
}

.off-price-card li {
  padding: 6px 0;
  border-bottom: 1px solid #ecece8;
  color: #3a3a35;
  font-size: 12px;
}

.off-price-card li::before {
  content: "—";
  margin-right: 7px;
  color: #9a9a95;
}

.off-price-btn {
  display: block;
  padding: 10px 12px;
  border: 2px solid #1e1e1e;
  background: #fff;
  color: #1e1e1e;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
}

.off-price-btn:hover {
  background: #1e1e1e;
  color: #fff;
}

.off-price-btn.dark {
  background: #1e1e1e;
  color: #fff;
}

.off-price-btn.dark:hover {
  background: #fff;
  color: #1e1e1e;
}

.off-pricing-note {
  margin-top: 16px;
  color: #7a7a74;
  font-size: 10.5px;
  line-height: 1.7;
}

.off-demo {
  padding: 52px 32px;
  border-bottom: 3px solid #1e1e1e;
  background: #fafaf5;
}

.off-demo-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 26px;
}

.off-demo-head h2 {
  margin-bottom: 7px;
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.7px;
}

.off-demo-head p {
  max-width: 640px;
  color: #4a4a45;
  font-size: 13px;
  line-height: 1.7;
}

.off-demo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.off-demo-card {
  display: flex;
  flex-direction: column;
  padding: 22px;
  border: 2px solid #1e1e1e;
  background: #fff;
}

.off-demo-card:hover {
  box-shadow: 5px 5px 0 0 #1e1e1e;
}

.off-demo-card > span {
  align-self: flex-start;
  margin-bottom: 14px;
  padding: 2px 8px;
  background: #1e1e1e;
  color: #fff;
  font-size: 10px;
  font-weight: 600;
}

.off-demo-card > strong {
  margin-bottom: 8px;
  font-size: 17px;
  font-weight: 700;
}

.off-demo-card > p {
  flex: 1;
  margin-bottom: 18px;
  color: #4a4a45;
  font-size: 12.5px;
  line-height: 1.7;
}

.off-demo-card > div {
  font-size: 12px;
  font-weight: 700;
}

.off-demo-accounts {
  margin-top: 16px;
  padding: 11px 13px;
  border: 1px solid #d8d8d0;
  background: #fff;
  color: #5a5a55;
  font-family: var(--mono);
  font-size: 10px;
  line-height: 1.7;
}

.off-demo-accounts span {
  margin: 0 8px;
  color: #aaa;
}

@media (max-width: 980px) {
  .off-price-grid {
    grid-template-columns: 1fr;
  }
  .off-demo-grid {
    grid-template-columns: 1fr;
  }
  .off-demo-head {
    display: block;
  }
  .off-demo-head .off-secondary-btn {
    margin-top: 14px;
  }
}

@media (max-width: 680px) {
  .off-disclaimer {
    padding: 9px 18px;
    font-size: 10px;
    text-align: left;
  }
  .off-pricing,
  .off-demo {
    padding: 36px 18px;
  }
  .off-demo-head h2 {
    font-size: 26px;
  }
  .off-demo-accounts {
    line-height: 1.9;
  }
  .off-demo-accounts span {
    display: block;
    height: 0;
    opacity: 0;
  }
}


.off-contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  padding: 52px 32px;
  border-bottom: 3px solid #1e1e1e;
}

.off-contact-copy h1 {
  margin-bottom: 16px;
  font-size: 42px;
  font-weight: 800;
  letter-spacing: -1.2px;
  line-height: 1.1;
}

.off-contact-copy > p {
  max-width: 520px;
  margin-bottom: 24px;
  color: #3a3a35;
  font-size: 14px;
  line-height: 1.8;
}

.off-contact-points {
  display: flex;
  flex-direction: column;
  gap: 1px;
  border-top: 2px solid #1e1e1e;
}

.off-contact-points > div {
  padding: 13px 0;
  border-bottom: 1px solid #e2e2dc;
}

.off-contact-points strong {
  display: block;
  margin-bottom: 3px;
  font-size: 12px;
  font-weight: 700;
}

.off-contact-points span {
  display: block;
  color: #5a5a55;
  font-size: 12px;
  line-height: 1.65;
}

.off-contact-form {
  padding: 24px;
  border: 2px solid #1e1e1e;
  background: #fff;
  box-shadow: 6px 6px 0 0 #1e1e1e;
}

.off-form-title {
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid #1e1e1e;
  font-size: 18px;
  font-weight: 800;
}

.off-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 11px;
}

.off-field label {
  color: #3a3a35;
  font-size: 11px;
  font-weight: 600;
}

.off-field label i {
  color: #a32b2b;
  font-style: normal;
}

.off-field input,
.off-field select,
.off-field textarea {
  width: 100%;
  min-height: 38px;
  padding: 8px 10px;
  border: 1px solid #c9c9c1;
  border-radius: 0;
  background: #fff;
  outline: none;
  font-size: 12px;
}

.off-field textarea {
  min-height: 94px;
  resize: vertical;
}

.off-field input:focus,
.off-field select:focus,
.off-field textarea:focus {
  border-color: #1e1e1e;
}

.off-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.off-form-submit {
  width: 100%;
  border: 2px solid #1e1e1e;
  cursor: pointer;
}

.off-form-submit:disabled {
  opacity: 0.5;
}

.off-form-note {
  margin-top: 10px;
  color: #8a8a84;
  font-size: 9.5px;
  line-height: 1.6;
}

.off-lead-success {
  padding: 18px 0;
  text-align: center;
}

.off-lead-success strong {
  display: block;
  margin-bottom: 6px;
  font-size: 22px;
  font-weight: 800;
}

.off-lead-success p {
  margin-bottom: 18px;
  color: #4a4a45;
  font-size: 12.5px;
  line-height: 1.7;
}

@media (max-width: 980px) {
  .off-contact {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

@media (max-width: 680px) {
  .off-contact {
    padding: 36px 18px;
  }
  .off-contact-copy h1 {
    font-size: 33px;
  }
  .off-contact-form {
    padding: 18px;
    box-shadow: 4px 4px 0 0 #1e1e1e;
  }
}


.demo-strip {
  border-bottom: 1px solid #ececec;
  background: #1e1e1e;
  color: #f5f5f0;
}

.demo-strip .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 31px;
  font-size: 10.5px;
  letter-spacing: 0.02em;
}

.demo-strip a {
  color: #d7d7d0;
}

.demo-strip a:hover {
  color: #fff;
}
