:root {
  --bg: #0f1419;
  --bg2: #1a222c;
  --card: #222b36;
  --text: #eef2f6;
  --muted: #9aa7b5;
  --accent: #2dd4a8;
  --accent2: #1aa37f;
  --line: #2e3a48;
  --warn: #f0b429;
  --radius: 14px;
  --font: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.wrap {
  width: min(100% - 2rem, 720px);
  margin-inline: auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-weight: 700;
  letter-spacing: .02em;
}
.brand-mark {
  width: 28px; height: 28px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--accent), #3b82f6);
}

/* ===== Mobile conversion ===== */
.m-hero {
  padding: 1.25rem 0 0.5rem;
}
.m-kicker {
  color: var(--accent);
  font-size: .8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin: 0 0 .5rem;
}
.m-hero h1 {
  font-size: clamp(1.45rem, 5.5vw, 1.9rem);
  line-height: 1.2;
  margin: 0 0 .75rem;
}
.m-hero p {
  color: var(--muted);
  margin: 0 0 1.25rem;
  font-size: .98rem;
}

.m-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  width: 100%;
  padding: 1rem 1.1rem;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(180deg, #25d366, #1ebe57);
  color: #063;
  color: #062816;
  font-weight: 700;
  font-size: 1.02rem;
  box-shadow: 0 10px 24px rgba(37, 211, 102, .28);
}
.m-cta:active { transform: scale(.98); }
.m-cta svg { width: 22px; height: 22px; fill: currentColor; }

.m-sticky {
  position: sticky;
  bottom: 0;
  padding: .75rem 0 calc(.75rem + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, transparent, rgba(15,20,25,.92) 30%, var(--bg));
  z-index: 20;
}

.m-points {
  list-style: none;
  padding: 0;
  margin: 1.25rem 0;
  display: grid;
  gap: .65rem;
}
.m-points li {
  background: var(--bg2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: .85rem 1rem;
  font-size: .95rem;
  display: flex;
  gap: .65rem;
  align-items: flex-start;
}
.m-points li::before {
  content: "";
  width: .55rem; height: .55rem;
  margin-top: .45rem;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

.m-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .65rem;
  margin: 1rem 0 1.5rem;
}
.m-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: .85rem;
}
.m-card h3 {
  margin: 0 0 .25rem;
  font-size: .95rem;
}
.m-card p {
  margin: 0;
  color: var(--muted);
  font-size: .8rem;
}
.m-badge {
  display: inline-block;
  margin-top: .45rem;
  font-size: .72rem;
  color: var(--accent);
  background: rgba(45,212,168,.12);
  padding: .15rem .45rem;
  border-radius: 999px;
}

.m-trust {
  color: var(--muted);
  font-size: .8rem;
  text-align: center;
  margin: .5rem 0 1.5rem;
}

.m-footer {
  color: var(--muted);
  font-size: .75rem;
  text-align: center;
  padding: 1rem 0 2rem;
  border-top: 1px solid var(--line);
}

/* ===== PC inquiry (generic ecommerce storefront) ===== */
.pc-body {
  background: #f5f7fa;
  color: #1c2430;
}
.pc-top {
  background: #fff;
  border-bottom: 1px solid #e3e8ee;
  padding: .85rem 0;
  position: sticky;
  top: 0;
  z-index: 10;
}
.pc-bar {
  width: min(100% - 2rem, 1100px);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.pc-top .brand { color: #0f1720; }
.pc-nav { display: flex; gap: 1.1rem; font-size: .9rem; color: #4b5b6c; }
.pc-nav a:hover { color: #0f766e; }
.pc-banner {
  background: linear-gradient(120deg, #ecfdf5 0%, #eef6ff 55%, #f8fafc 100%);
  border-bottom: 1px solid #e3e8ee;
}
.pc-banner-inner {
  width: min(100% - 2rem, 1100px);
  margin: 0 auto;
  padding: 2rem 0 1.75rem;
}
.pc-eyebrow {
  margin: 0 0 .4rem;
  color: #0f766e;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.pc-banner h1 {
  margin: 0 0 .55rem;
  font-size: clamp(1.5rem, 2.4vw, 2rem);
}
.pc-banner p {
  margin: 0;
  max-width: 42rem;
  color: #5b6b7c;
}
.pc-main {
  width: min(100% - 2rem, 1100px);
  margin: 1.5rem auto 2.5rem;
  display: grid;
  grid-template-columns: 1.45fr .85fr;
  gap: 1.25rem;
  align-items: start;
}
.pc-section-head h2 {
  margin: 0 0 .25rem;
  font-size: 1.2rem;
}
.pc-section-head p {
  margin: 0 0 1rem;
  color: #6b7c8d;
  font-size: .92rem;
}
.pc-catalog {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .85rem;
}
.pc-product {
  background: #fff;
  border: 1px solid #e3e8ee;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.pc-product-img {
  height: 110px;
  background:
    radial-gradient(circle at 30% 40%, rgba(15,118,110,.22), transparent 45%),
    linear-gradient(135deg, #dbeafe, #d1fae5 55%, #f1f5f9);
}
.pc-product-body { padding: .9rem 1rem 1rem; }
.pc-product h3 {
  margin: 0 0 .35rem;
  font-size: 1rem;
}
.pc-product-desc {
  margin: 0 0 .55rem;
  color: #6b7c8d;
  font-size: .84rem;
  min-height: 2.4em;
}
.pc-product-meta {
  display: flex;
  justify-content: space-between;
  gap: .5rem;
  color: #8090a0;
  font-size: .78rem;
  margin-bottom: .55rem;
}
.pc-stock { color: #0f766e; font-weight: 600; }
.pc-product-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
}
.pc-price { font-size: 1.05rem; color: #0f172a; }
.pc-mini-btn {
  border: 1px solid #cfe0dc;
  background: #f0fdfa;
  color: #0f766e;
  border-radius: 999px;
  padding: .35rem .75rem;
  font-size: .8rem;
  font-weight: 600;
}
.pc-panel {
  background: #fff;
  border: 1px solid #e3e8ee;
  border-radius: 12px;
  padding: 1.25rem;
}
.pc-panel .lead {
  color: #5b6b7c;
  margin: 0 0 1rem;
}
.pc-bullets {
  margin: 0;
  padding-left: 1.1rem;
  color: #5b6b7c;
  font-size: .9rem;
}
.pc-bullets li { margin: .35rem 0; }
.pc-form label {
  display: block;
  font-size: .85rem;
  font-weight: 600;
  margin: .7rem 0 .3rem;
}
.pc-form input, .pc-form textarea, .pc-form select {
  width: 100%;
  border: 1px solid #d5dde6;
  border-radius: 8px;
  padding: .65rem .75rem;
  font: inherit;
  background: #fff;
}
.pc-form textarea { min-height: 110px; resize: vertical; }
.pc-form button {
  margin-top: 1rem;
  width: 100%;
  border: 0;
  border-radius: 8px;
  padding: .8rem 1rem;
  background: #0f766e;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}
.pc-note {
  margin-top: .75rem;
  color: #6b7c8d;
  font-size: .8rem;
}
.pc-foot-bar {
  border-top: 1px solid #e3e8ee;
  background: #fff;
  color: #8a97a6;
  font-size: .8rem;
  padding: 1rem 0 1.4rem;
}
@media (max-width: 900px) {
  .pc-main { grid-template-columns: 1fr; }
  .pc-catalog { grid-template-columns: 1fr; }
  .pc-nav { display: none; }
}

/* ===== Admin ===== */
.admin-body {
  background: #f4f6f8;
  color: #152033;
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  margin: 0;
  min-height: 100vh;
}
.admin-wrap {
  width: min(100% - 2rem, 980px);
  margin: 1.5rem auto 3rem;
}
.admin-wrap-wide {
  width: min(100% - 2rem, 1120px);
  margin: 2rem auto 4rem;
}
.admin-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  margin-bottom: 1.35rem;
}
.admin-top h1 {
  margin: 0;
  font-size: 1.45rem;
  letter-spacing: -.02em;
}
.admin-tabs {
  display: inline-flex;
  align-items: center;
  gap: .2rem;
  padding: .22rem;
  background: #e8edf3;
  border-radius: 12px;
}
.admin-tab {
  display: inline-flex;
  align-items: center;
  padding: .55rem 1rem;
  border-radius: 10px;
  color: #64748b;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: -.01em;
}
.admin-tab:hover { color: #334155; background: rgba(255,255,255,.55); }
.admin-tab.is-active {
  background: #fff;
  color: #0f172a;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .08);
}
.admin-sub {
  margin: .55rem 0 0;
  color: #6b7a90;
  font-size: .88rem;
}
.admin-card {
  background: #fff;
  border: 1px solid #e4e9ef;
  border-radius: 14px;
  padding: 1.25rem;
  margin-bottom: 1rem;
}
.admin-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}
.admin-nav h1 { margin: 0; font-size: 1.25rem; }
.admin-actions { display: flex; gap: .55rem; flex-wrap: wrap; align-items: center; }

.lp-empty {
  background: #fff;
  border: 1px dashed #d5dde8;
  border-radius: 16px;
  padding: 3rem 1.5rem;
  text-align: center;
  color: #6b7a90;
}
.lp-empty p { margin: 0 0 1rem; font-size: 1rem; }
.lp-list { display: grid; gap: 1rem; }

.lp-card {
  background: #fff;
  border: 1px solid #e4e9ef;
  border-radius: 16px;
  padding: 1.25rem 1.35rem 1.1rem;
  box-shadow: 0 1px 2px rgba(16, 24, 40, .04);
}
.lp-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.1rem;
}
.lp-title-line {
  display: flex;
  align-items: center;
  gap: .5rem;
  flex-wrap: wrap;
}
.lp-name {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -.01em;
}
.lp-path {
  display: flex;
  align-items: center;
  gap: .65rem;
  flex-wrap: wrap;
  margin-top: .4rem;
  color: #6b7a90;
  font-size: .82rem;
}
.lp-path code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .8rem;
  background: #f3f5f8;
  border-radius: 6px;
  padding: .15rem .45rem;
  color: #334155;
}
.tpl-tag {
  color: #475569;
}
.tpl-preview-link {
  color: #0f766e;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid #99f6e4;
  background: #f0fdfa;
  border-radius: 999px;
  padding: .12rem .55rem;
  font-size: .75rem;
}
.tpl-preview-link:hover {
  background: #ccfbf1;
  text-decoration: none;
}

.tpl-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
.tpl-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.1rem;
  background: #fff;
  border: 1px solid #e4e9ef;
  border-radius: 16px;
  padding: 1.25rem 1.35rem;
  box-shadow: 0 1px 2px rgba(16, 24, 40, .04);
  min-height: 180px;
}
.tpl-card-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
}
.tpl-card-id {
  margin: .45rem 0 0;
}
.tpl-card-id code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .78rem;
  background: #f3f5f8;
  border-radius: 6px;
  padding: .12rem .45rem;
  color: #475569;
}
.tpl-card-desc {
  margin: .65rem 0 0;
  color: #6b7a90;
  font-size: .88rem;
  line-height: 1.5;
}
.tpl-card-actions {
  display: flex;
  gap: .55rem;
  flex-wrap: wrap;
}
@media (max-width: 720px) {
  .tpl-gallery { grid-template-columns: 1fr; }
}

.tpl-library {
  display: none;
}
.tpl-library-label {
  font-size: .78rem;
  font-weight: 700;
  color: #64748b;
  letter-spacing: .04em;
  text-transform: uppercase;
  flex: 0 0 auto;
}
.tpl-library-list {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
}
.tpl-chip {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .45rem .7rem .45rem .75rem;
  border-radius: 999px;
  border: 1px solid #d7dee8;
  background: #f8fafc;
  color: #152033;
  text-decoration: none;
  font-size: .86rem;
  font-weight: 600;
}
.tpl-chip:hover {
  border-color: #0f766e;
  background: #f0fdfa;
}
.tpl-chip-action {
  font-size: .72rem;
  font-weight: 700;
  color: #0f766e;
  background: #fff;
  border: 1px solid #99f6e4;
  border-radius: 999px;
  padding: .12rem .5rem;
}
.tpl-pick {
  display: flex;
  gap: .6rem;
  align-items: stretch;
}
.tpl-pick select { flex: 1; }
.tpl-pick .btn {
  flex: 0 0 auto;
  white-space: nowrap;
}
.lp-links {
  display: flex;
  gap: .15rem .85rem;
  flex-wrap: wrap;
  justify-content: flex-end;
  padding-top: .15rem;
}
.linkish {
  appearance: none;
  border: 0;
  background: none;
  padding: 0;
  color: #0f766e;
  font: inherit;
  font-size: .86rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
}
.linkish:hover { color: #0b5f59; text-decoration: underline; }

.pill {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 .55rem;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 650;
  background: #eef2f6;
  color: #64748b;
}
.pill-on { background: #e8f8f1; color: #047857; }
.pill-go { background: #e8f1ff; color: #1d4ed8; }

.lp-fields {
  display: grid;
  grid-template-columns: 1.25fr 1fr 1fr .75fr 1.1fr;
  gap: .85rem 1rem;
  padding: 1rem 1.05rem;
  background: #f8fafc;
  border: 1px solid #edf1f5;
  border-radius: 12px;
}
.lf {
  display: flex;
  flex-direction: column;
  gap: .35rem;
  min-width: 0;
}
.lf > span {
  font-size: .75rem;
  font-weight: 650;
  color: #64748b;
  letter-spacing: .02em;
}
.lf input,
.lf textarea,
.lf select {
  width: 100%;
  border: 1px solid #d7dee8;
  border-radius: 9px;
  padding: .62rem .7rem;
  font: inherit;
  font-size: .92rem;
  color: #152033;
  background: #fff;
  transition: border-color .15s, box-shadow .15s;
}
.lf input:focus,
.lf textarea:focus,
.lf select:focus {
  outline: none;
  border-color: #0f766e;
  box-shadow: 0 0 0 3px rgba(15, 118, 110, .12);
}
.lf textarea {
  min-height: 68px;
  resize: vertical;
  line-height: 1.45;
}
.lf-wide { grid-column: 1 / -1; }
.lf-toggle .toggle {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  min-height: 40px;
  font-size: .9rem;
  font-weight: 500;
  color: #334155;
}
.lf-toggle input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: #0f766e;
}
.lp-card-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .75rem;
  margin-top: 1rem;
}

@media (max-width: 900px) {
  .lp-fields { grid-template-columns: 1fr 1fr; }
  .lp-card-top { flex-direction: column; }
  .lp-links { justify-content: flex-start; }
}
@media (max-width: 560px) {
  .lp-fields { grid-template-columns: 1fr; }
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  border: 1px solid #cbd5e1;
  background: #fff;
  color: #1a2330;
  border-radius: 9px;
  padding: .55rem .9rem;
  font: inherit;
  font-size: .9rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
}
.btn-primary { background: #0f766e; border-color: #0f766e; color: #fff; }
.btn-primary:hover { background: #0d6a63; }
.btn-ghost { background: transparent; border-color: transparent; color: #64748b; }
.btn-ghost:hover { background: #eef2f6; color: #334155; }
.btn-danger { background: #fff; border-color: #f1b4b4; color: #b42318; }
.btn-danger-quiet {
  background: transparent;
  border-color: transparent;
  color: #b42318;
  font-weight: 600;
}
.btn-danger-quiet:hover { background: #fef2f2; }
.btn:hover { filter: brightness(.98); }
.table {
  width: 100%;
  border-collapse: collapse;
  font-size: .9rem;
}
.table th, .table td {
  text-align: left;
  padding: .7rem .4rem;
  border-bottom: 1px solid #eef2f6;
  vertical-align: top;
}
.table th { color: #64748b; font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; }
.muted { color: #64748b; font-size: .85rem; }
.badge {
  display: inline-block;
  padding: .1rem .45rem;
  border-radius: 999px;
  font-size: .75rem;
  background: #ecfdf5;
  color: #047857;
}
.badge-off { background: #f1f5f9; color: #64748b; }
.form-grid label { display: block; font-weight: 600; font-size: .85rem; margin: .7rem 0 .3rem; }
.form-grid input, .form-grid textarea, .form-grid select {
  width: 100%;
  border: 1px solid #d0d7e2;
  border-radius: 8px;
  padding: .6rem .7rem;
  font: inherit;
}
.form-grid textarea { min-height: 90px; }
.flash {
  padding: .75rem 1rem;
  border-radius: 10px;
  margin-bottom: 1rem;
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}
.flash-err {
  background: #fef2f2;
  color: #991b1b;
  border-color: #fecaca;
}
.login-box {
  width: min(100% - 2rem, 380px);
  margin: 12vh auto;
}
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .86rem; word-break: break-all; }

.redirect-row {
  display: flex;
  align-items: center;
  gap: .5rem;
  flex-wrap: wrap;
  margin-top: .35rem;
}
.btn-xs {
  padding: .25rem .5rem;
  font-size: .75rem;
  border-radius: 6px;
}
