@import url("https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=Instrument+Serif:ital@0;1&family=Inter:wght@400;500;600;700&family=Noto+Sans+SC:wght@400;500;600;700&display=swap");

:root {
  --bg: #f4f6f2;
  --bg-elevated: #ffffff;
  --ink: #0f1613;
  --ink-soft: #3d4a44;
  --muted: #6b776f;
  --line: #e2e8e0;
  --line-strong: #cfd8cf;
  --accent: #b8f045;
  --accent-deep: #9ad628;
  --accent-ink: #1a2a12;
  --hero: #0a100e;
  --hero-line: rgba(255, 255, 255, 0.08);
  --danger: #c44b3a;
  --shadow-sm: 0 1px 2px rgba(15, 22, 19, 0.04);
  --shadow-md: 0 12px 40px rgba(15, 22, 19, 0.08);
  --shadow-lg: 0 24px 80px rgba(15, 22, 19, 0.12);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --font-sans: "Inter", "Noto Sans SC", system-ui, sans-serif;
  --font-display: "Instrument Serif", "Noto Sans SC", serif;
  --font-mono: "DM Mono", ui-monospace, monospace;
  --container: min(1200px, calc(100% - 48px));
  --header-h: 72px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
body.nav-open { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 12px; top: -100px; z-index: 9999;
  background: var(--accent); color: var(--accent-ink); padding: 10px 14px;
  border-radius: var(--radius-sm); font-weight: 600;
}
.skip-link:focus { top: 12px; }

/* —— Header —— */
.topbar {
  position: sticky; top: 0; z-index: 100;
  height: var(--header-h);
  background: rgba(244, 246, 242, 0.72);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.topbar.is-scrolled {
  background: rgba(255, 255, 255, 0.88);
  border-color: var(--line);
  box-shadow: var(--shadow-sm);
}
.nav-wrap {
  max-width: 1240px; height: 100%; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.brand { display: flex; align-items: center; gap: 12px; line-height: 1.1; }
.brand-mark {
  width: 38px; height: 38px; border-radius: 12px;
  background: linear-gradient(145deg, var(--accent), #d4ff7a);
  display: grid; place-items: center;
  font-weight: 800; font-size: 18px; color: var(--accent-ink);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.35);
}
.brand-text { font-size: 20px; font-weight: 700; letter-spacing: -0.04em; }
.brand-light { font-weight: 500; color: var(--muted); }
.brand small {
  display: block; margin-top: 4px;
  font: 9px var(--font-mono); letter-spacing: 0.14em; color: #8a968d;
}
.nav-links { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink-soft); }
.nav-links a.nav-top-link { padding: 8px 10px; transition: color 0.2s; }
.nav-links a.nav-top-link:hover { color: var(--ink); }
.nav-actions { display: flex; align-items: center; gap: 12px; flex-wrap: nowrap; }

.nav-dropdown { position: relative; }
.nav-dropdown-trigger {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 10px; border: 0; border-radius: var(--radius-sm);
  background: transparent; color: var(--ink-soft); font-size: 14px; font-weight: 500;
  cursor: pointer; transition: color 0.2s, background 0.2s;
}
.nav-dropdown-trigger:hover,
.nav-dropdown.is-open .nav-dropdown-trigger { color: var(--ink); background: rgba(12, 18, 16, 0.04); }
.nav-chevron { opacity: 0.65; transition: transform 0.2s var(--ease); }
.nav-dropdown.is-open .nav-chevron { transform: rotate(180deg); }

.nav-dropdown-panel {
  position: absolute; top: calc(100% + 8px); left: 0; z-index: 120;
  min-width: 220px; max-width: 280px;
  padding: 10px; border-radius: 14px;
  background: var(--bg-elevated); border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), visibility 0.2s;
}
.nav-dropdown-panel-right { left: auto; right: 0; min-width: 240px; }
.nav-dropdown.is-open .nav-dropdown-panel {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.nav-dropdown-label {
  margin: 6px 10px 4px; font: 10px var(--font-mono); letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--muted);
}
.nav-dropdown-panel a,
.nav-dropdown-logout-btn {
  display: block; width: 100%; text-align: left;
  padding: 10px 12px; border-radius: 10px; font-size: 14px; color: var(--ink-soft);
  border: 0; background: none; cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.nav-dropdown-panel a:hover,
.nav-dropdown-logout-btn:hover { background: var(--bg); color: var(--ink); }
.nav-dropdown-divider { height: 1px; margin: 8px 6px; background: var(--line); }

.nav-dropdown-account .nav-account-trigger {
  max-width: 240px; padding: 6px 10px 6px 6px;
  border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,0.5);
}
.nav-user-avatar {
  width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center; flex-shrink: 0;
  font-size: 12px; font-weight: 700; color: var(--accent-ink);
  background: linear-gradient(145deg, var(--accent), #d4ff7a);
}
.nav-user-label {
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-size: 13px; color: var(--ink);
}

.mobile-nav-group {
  border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--bg);
  overflow: hidden;
}
.mobile-nav-group summary {
  list-style: none; cursor: pointer; padding: 12px 14px; font-weight: 600;
}
.mobile-nav-group summary::-webkit-details-marker { display: none; }
.mobile-nav-sub { display: flex; flex-direction: column; gap: 2px; padding: 0 8px 10px; }
.mobile-nav-sub a { padding: 10px 12px; border-radius: var(--radius-sm); font-weight: 500; font-size: 14px; }
.mobile-nav-sub-label {
  margin: 8px 12px 4px; font: 10px var(--font-mono); letter-spacing: 0.1em; color: var(--muted);
}
.mobile-logout-form { padding: 4px 12px 8px; }
.mobile-logout-form .text-button { padding: 8px 0; color: var(--danger); }
.nav-user {
  font-size: 13px;
  color: var(--ink);
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.mobile-drawer .nav-user {
  display: block;
  max-width: none;
  margin: 8px 0 4px;
  padding: 0;
  background: none;
  border: 0;
  color: var(--muted);
  font-size: 14px;
}
.nav-muted, .text-button {
  font-size: 14px; color: var(--muted); background: none; border: 0; cursor: pointer;
}
.text-button.danger { color: var(--danger); }
.nav-muted:hover, .text-button:hover { color: var(--ink); }
.inline-form { display: inline; margin: 0; }

.nav-toggle {
  display: none; width: 40px; height: 40px; padding: 0; border: 1px solid var(--line);
  border-radius: 10px; background: var(--bg-elevated); cursor: pointer;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.nav-toggle-bar {
  display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 1px;
}
.mobile-drawer {
  border-top: 1px solid var(--line); background: var(--bg-elevated);
  padding: 16px 24px 24px;
}
.mobile-drawer nav { display: flex; flex-direction: column; gap: 4px; }
.mobile-drawer a {
  padding: 12px 14px; border-radius: var(--radius-sm); font-weight: 500;
}
.mobile-drawer a:hover { background: var(--bg); }

/* —— Buttons —— */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 20px; border-radius: 999px; border: 1px solid transparent;
  font-size: 13px; font-weight: 600; cursor: pointer;
  transition: transform 0.2s var(--ease), box-shadow 0.2s, background 0.2s, border-color 0.2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-small { padding: 10px 16px; font-size: 12px; }
.btn-primary {
  background: var(--ink); color: #fff;
  box-shadow: 0 8px 24px rgba(15, 22, 19, 0.18);
}
.btn-primary:hover { background: #1a2820; }
.btn-secondary {
  background: var(--bg-elevated); color: var(--ink); border-color: var(--line-strong);
}
.btn-secondary:hover { border-color: var(--muted); }
.btn-light {
  background: var(--accent); color: var(--accent-ink);
  box-shadow: 0 8px 28px rgba(184, 240, 69, 0.35);
}
.btn-light:hover { background: var(--accent-deep); }
.btn-ghost {
  background: transparent; color: rgba(255,255,255,0.85); border-color: rgba(255,255,255,0.25);
}
.btn-ghost:hover { background: rgba(255,255,255,0.06); color: #fff; }
.btn-danger {
  background: transparent; color: var(--danger); border-color: rgba(196, 75, 58, 0.35);
}
.btn-danger:hover { background: rgba(196, 75, 58, 0.06); }
.btn-block { width: 100%; }

/* —— Hero —— */
.hero {
  position: relative; overflow: hidden;
  background: var(--hero); color: #eef2eb;
  min-height: clamp(520px, 72vh, 680px);
}
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--hero-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--hero-line) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 70% at 30% 40%, black, transparent);
}
.hero-aurora {
  position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.45;
}
.hero-aurora-a {
  width: 420px; height: 420px; background: #3d5a40; top: -80px; left: -60px;
}
.hero-aurora-b {
  width: 360px; height: 360px; background: #b8f045; bottom: -120px; right: 15%; opacity: 0.12;
}
.hero-noise {
  position: absolute; inset: 0; opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.hero-inner {
  position: relative; z-index: 1;
  max-width: 1240px; margin: 0 auto; padding: 56px 24px 64px;
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 40px; align-items: center;
}
.hero-eyebrow {
  font: 11px var(--font-mono); letter-spacing: 0.12em; color: #a8b8a8;
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
}
.eyebrow-cn { font-family: var(--font-sans); letter-spacing: 0; color: #8a9a90; }
.eyebrow-divider { opacity: 0.4; }
.live-dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 0 4px rgba(184, 240, 69, 0.15);
}
.hero h1 {
  font-family: var(--font-display); font-weight: 400; font-size: clamp(2.75rem, 5.5vw, 4.25rem);
  line-height: 1.08; letter-spacing: -0.02em; margin: 20px 0 16px;
}
.hero h1 em { font-style: italic; color: var(--accent); }
.hero-lead {
  max-width: 32em; margin: 0 0 28px; font-size: 15px; line-height: 1.75; color: #a8b4aa;
}
.search-bar {
  display: flex; align-items: center; gap: 8px;
  max-width: 520px; padding: 6px 6px 6px 16px;
  background: rgba(255,255,255,0.96); border-radius: 999px;
  box-shadow: var(--shadow-lg); color: var(--ink);
}
.search-icon { color: var(--muted); display: flex; }
.search-bar input {
  flex: 1; min-width: 0; border: 0; outline: none; background: transparent;
  font-size: 14px; color: var(--ink);
}
.search-submit {
  border: 0; cursor: pointer; border-radius: 999px;
  padding: 12px 22px; font-weight: 600; font-size: 13px;
  background: var(--accent); color: var(--accent-ink);
  transition: background 0.2s;
}
.search-submit:hover { background: var(--accent-deep); }
.hero-chips {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 18px;
  font-size: 12px; color: #8a9890;
}
.chips-label { margin-right: 4px; }
.hero-chips a {
  padding: 6px 12px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.14); color: #c5cfc8;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.hero-chips a:hover {
  border-color: rgba(184, 240, 69, 0.5); color: var(--accent); background: rgba(184, 240, 69, 0.06);
}

.hero-spotlight { min-width: 0; }
.spotlight-badge {
  display: inline-block; margin-bottom: 12px; padding: 6px 12px;
  font: 10px var(--font-mono); letter-spacing: 0.14em;
  border: 1px solid rgba(184, 240, 69, 0.35); border-radius: 999px; color: var(--accent);
}
.spotlight-card {
  display: block; border-radius: var(--radius-lg); overflow: hidden;
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.1);
  backdrop-filter: blur(12px);
  transition: transform 0.35s var(--ease), border-color 0.35s, box-shadow 0.35s;
}
.spotlight-card:hover {
  transform: translateY(-4px);
  border-color: rgba(184, 240, 69, 0.35);
  box-shadow: 0 32px 64px rgba(0,0,0,0.35);
}
.spotlight-visual { height: 200px; overflow: hidden; }
.spotlight-visual img { width: 100%; height: 100%; object-fit: cover; }
.spotlight-cover { height: 100%; min-height: 200px; }
.spotlight-body { padding: 22px 24px 26px; }
.spotlight-kicker { font: 11px var(--font-mono); color: #8a9890; letter-spacing: 0.06em; }
.spotlight-body h2 {
  font-family: var(--font-display); font-size: 1.65rem; font-weight: 400;
  margin: 10px 0 8px; letter-spacing: -0.02em;
}
.spotlight-body p { margin: 0; font-size: 13px; line-height: 1.7; color: #a8b4aa; }
.spotlight-cta {
  display: inline-block; margin-top: 16px; font-size: 13px; font-weight: 600; color: var(--accent);
}
.spotlight-meta {
  display: block; margin-top: 10px;
  font: 11px var(--font-mono); color: #8a9890; letter-spacing: 0.04em;
}
.spotlight-platform { pointer-events: auto; }
.spotlight-platform .spotlight-body h2 { font-size: 1.45rem; }
.platform-highlights {
  list-style: none; margin: 18px 0 22px; padding: 0;
  display: flex; flex-direction: column; gap: 10px;
}
.platform-highlights li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 12px; line-height: 1.65; color: #b0bdb4;
}
.platform-highlights li span {
  flex-shrink: 0; font: 10px var(--font-mono); color: var(--accent);
  letter-spacing: 0.08em; margin-top: 2px;
}
.spotlight-actions {
  display: flex; flex-wrap: wrap; gap: 10px;
}
.spotlight-actions .btn-ghost { padding: 10px 16px; font-size: 12px; }

/* —— Stats —— */
.stats-band {
  background: var(--bg-elevated); border-bottom: 1px solid var(--line);
}
.stats-inner {
  max-width: 1240px; margin: 0 auto; padding: 28px 24px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 24px 40px;
}
.stat-item {
  display: flex; align-items: baseline; gap: 14px; padding-right: 40px;
  border-right: 1px solid var(--line);
}
.stat-item:last-of-type { border-right: 0; }
.stat-item strong {
  font-family: var(--font-display); font-size: 2.25rem; font-weight: 400;
  letter-spacing: -0.03em; line-height: 1;
}
.stat-item span { font-size: 12px; color: var(--muted); line-height: 1.5; }
.stat-item em {
  display: block; font: 9px var(--font-mono); font-style: normal;
  letter-spacing: 0.12em; color: #a0aaa3; margin-top: 2px;
}
.stat-trust {
  margin-left: auto; display: flex; align-items: center; gap: 14px;
  max-width: 280px;
}
.trust-icon {
  width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0;
  display: grid; place-items: center; font-size: 14px;
  background: #eef6e4; color: #4a6b38; border: 1px solid #dce8d0;
}
.stat-trust b { display: block; font-size: 13px; }
.stat-trust small { font-size: 11px; color: var(--muted); line-height: 1.5; }

/* —— Sections —— */
.section {
  max-width: 1240px; margin: 0 auto; padding: 72px 24px;
}
.section-header {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 24px; margin-bottom: 32px;
}
.section-header.compact { margin-bottom: 20px; }
.section-kicker, .panel-kicker {
  margin: 0 0 8px; font: 10px var(--font-mono); letter-spacing: 0.16em; color: var(--muted);
}
.section-kicker.light { color: rgba(255,255,255,0.55); }
.section-header h1, .section-header h2, .form-heading h1 {
  margin: 0 0 8px; font-family: var(--font-display); font-weight: 400;
  font-size: clamp(1.75rem, 3vw, 2.35rem); letter-spacing: -0.02em;
}
.section-desc { margin: 0; font-size: 14px; color: var(--muted); max-width: 36em; }
.text-link { font-size: 13px; font-weight: 600; white-space: nowrap; color: var(--ink-soft); }
.text-link:hover { color: var(--ink); }

.category-bento {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;
}
.category-card {
  display: flex; align-items: center; gap: 16px; padding: 20px 20px;
  background: var(--bg-elevated); border: 1px solid var(--line);
  border-radius: var(--radius-md); min-height: 96px;
  transition: transform 0.25s var(--ease), border-color 0.25s, box-shadow 0.25s;
}
.category-card:hover, .category-card.is-active {
  transform: translateY(-2px);
  border-color: rgba(184, 240, 69, 0.65);
  box-shadow: var(--shadow-md);
}
.category-icon {
  width: 48px; height: 48px; flex-shrink: 0; border-radius: 12px;
  display: grid; place-items: center; font-size: 22px;
}
.symbol-ai { background: #f0ebff; color: #6b4fae; }
.symbol-web { background: #e8f5ec; color: #2d6b45; }
.symbol-dev { background: #e8eef9; color: #3d5a8a; }
.symbol-design { background: #fff0e5; color: #b86a2a; }
.symbol-data { background: #e3f4f2; color: #2a7a72; }
.symbol-other { background: #f8e8f0; color: #9e4a72; }
.category-copy b { display: block; font-size: 14px; font-weight: 600; }
.category-copy small { display: block; margin-top: 4px; font-size: 12px; color: var(--muted); }
.category-arrow { margin-left: auto; color: #b0bab2; font-size: 18px; }

.featured-scroll {
  display: flex; gap: 12px; overflow-x: auto; padding-bottom: 8px;
  scrollbar-width: thin;
}
.featured-mini {
  flex: 0 0 min(280px, 80vw); padding: 18px 20px;
  background: var(--bg-elevated); border: 1px solid var(--line); border-radius: var(--radius-md);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.featured-mini:hover { border-color: var(--line-strong); box-shadow: var(--shadow-sm); }
.featured-mini-tag { font: 10px var(--font-mono); color: var(--muted); letter-spacing: 0.08em; }
.featured-mini strong { display: block; margin: 8px 0 6px; font-size: 16px; }
.featured-mini span:last-child { font-size: 12px; color: var(--muted); }

#gallery { scroll-margin-top: calc(var(--header-h) + 16px); }
#categories { scroll-margin-top: calc(var(--header-h) + 16px); }
.gallery-header { align-items: flex-start; }
.toolbar-form {
  display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--muted);
}
.toolbar-form select {
  border: 1px solid var(--line); border-radius: 999px; padding: 10px 16px;
  background: var(--bg-elevated); color: var(--ink); outline: none; cursor: pointer;
}
.toolbar-form select:focus { border-color: var(--accent-deep); box-shadow: 0 0 0 3px rgba(184, 240, 69, 0.2); }

.active-filters {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 24px;
}
.filter-tag, .filter-clear {
  font-size: 12px; padding: 6px 12px; border-radius: 999px;
}
.filter-tag { background: #eef6e4; border: 1px solid #dce8d0; color: #3d5234; }
.filter-clear { color: var(--muted); font-weight: 500; }
.filter-clear:hover { color: var(--ink); }

/* —— Work cards —— */
.works-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px;
}

/* —— Gallery: authoritative / professional product grid —— */
.gallery-section {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px 28px 36px;
  box-shadow: var(--shadow-sm);
}
.gallery-section .section-header { margin-bottom: 20px; }
.gallery-section .toolbar-form {
  padding: 8px 14px; border-radius: var(--radius-sm);
  background: var(--bg); border: 1px solid var(--line);
}
.gallery-section .toolbar-form select { border: 0; background: transparent; padding: 6px 8px; }

.product-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
.product-card {
  position: relative;
  display: flex;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: box-shadow 0.3s var(--ease), border-color 0.3s, transform 0.3s var(--ease);
}
.product-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: transparent;
  transition: background 0.3s var(--ease);
  z-index: 3;
}
.product-card:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.product-card:hover::before { background: var(--accent); }
.product-card.is-featured {
  border-color: color-mix(in srgb, var(--accent-deep) 45%, var(--line));
}
.product-card.is-featured::before { background: var(--accent); }
.product-card-link {
  display: flex;
  flex-direction: column;
  width: 100%;
  color: inherit;
}
.product-media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.product-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.product-card:hover .product-img { transform: scale(1.04); }
.product-img-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-img-placeholder .cover-glyph { font-size: 3.25rem; opacity: 0.6; }
.product-cat {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 2;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 1;
  padding: 7px 10px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(6px);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  border-radius: 0 0 var(--radius-sm) 0;
}
.product-badge {
  position: absolute;
  z-index: 2;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1;
  padding: 5px 9px;
  border-radius: 999px;
}
.product-badge-hot {
  top: 10px;
  right: 10px;
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: 0 1px 4px rgba(15, 22, 19, 0.18);
}
.product-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 14px 16px 15px;
}
.product-title {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -0.01em;
  color: var(--ink);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: calc(1.4em * 2);
  transition: color 0.2s var(--ease);
}
.product-card:hover .product-title { color: var(--accent-ink); }
.product-summary {
  margin: 6px 0 0;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: calc(1.5em * 2);
}
.product-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}
.product-spec {
  font: 10.5px/1 var(--font-mono);
  letter-spacing: 0.02em;
  color: var(--ink-soft);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 4px 6px;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.product-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.product-price {
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.product-price-free {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent-ink);
  background: var(--accent);
  border-radius: 3px;
  padding: 3px 8px;
}
.product-author {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  color: var(--ink-soft);
  font-size: 12px;
}
.product-author-badge {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--hero);
  color: var(--accent);
  font-size: 10px;
  font-weight: 700;
}
.product-author-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.product-metrics {
  display: flex;
  gap: 14px;
  margin-top: 8px;
  font-size: 11.5px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.product-metrics b {
  font-weight: 600;
  color: var(--ink-soft);
}
.work-card {
  background: var(--bg-elevated); border: 1px solid var(--line);
  border-radius: var(--radius-md); overflow: hidden;
  transition: transform 0.3s var(--ease), box-shadow 0.3s, border-color 0.3s;
}
.work-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--line-strong);
}
.work-cover {
  display: block; height: 196px; position: relative; overflow: hidden;
  background: #e8ece8;
}
.work-cover img { width: 100%; height: 100%; object-fit: cover; }
.cover-art {
  height: 100%; position: relative; display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.cover-glow {
  position: absolute; width: 140%; height: 140%; top: -20%; left: -20%;
  background: radial-gradient(circle at 40% 30%, rgba(255,255,255,0.35), transparent 55%);
}
.cover-glyph { font-size: 4.5rem; opacity: 0.85; z-index: 1; }
.cover-word {
  position: absolute; bottom: 18px; left: 18px; right: 18px;
  font-size: 15px; font-weight: 700; z-index: 1; letter-spacing: -0.02em;
}
.cover-index {
  position: absolute; top: 14px; left: 16px;
  font: 9px var(--font-mono); letter-spacing: 0.12em; opacity: 0.75; z-index: 1;
}
.art-ai { background: linear-gradient(145deg, #ddd4f5, #c4b8e8); color: #4a3d72; }
.art-web { background: linear-gradient(145deg, #d4eadb, #b8dcc4); color: #27563d; }
.art-dev { background: linear-gradient(145deg, #d8e2f2, #bccde8); color: #2f4b70; }
.art-design { background: linear-gradient(145deg, #f2e0cc, #e8c9a8); color: #81512d; }
.art-data { background: linear-gradient(145deg, #cce8e4, #a8d8d0); color: #285d58; }
.art-other { background: linear-gradient(145deg, #f0dce8, #e0c0d0); color: #78435f; }

.featured-label {
  position: absolute; top: 12px; right: 12px; z-index: 2;
  padding: 5px 10px; border-radius: 999px; font-size: 10px; font-weight: 700;
  background: var(--accent); color: var(--accent-ink);
}
.work-body { padding: 18px 18px 16px; }
.work-meta {
  display: flex; justify-content: space-between; align-items: center; gap: 8px;
}
.category-pill {
  font-size: 11px; font-weight: 600; color: var(--ink-soft);
  background: var(--bg); padding: 4px 10px; border-radius: 999px;
}
.version { font: 11px var(--font-mono); color: var(--muted); }
.work-title {
  display: block; margin-top: 10px; font-size: 17px; font-weight: 700;
  letter-spacing: -0.02em; line-height: 1.35;
}
.work-title:hover { color: #1a4d2e; }
.work-summary {
  margin: 8px 0 12px; font-size: 13px; line-height: 1.65; color: var(--muted);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.tech-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tech-tags span {
  font-size: 11px; padding: 4px 8px; border-radius: 6px;
  background: var(--bg); border: 1px solid var(--line); color: var(--ink-soft);
}
.work-bottom {
  margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
}
.author { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); }
.avatar {
  width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center; font-size: 11px; font-weight: 700;
  background: #e8f0e0; color: #3d5234;
}
.work-metrics {
  display: flex; gap: 10px; font: 11px var(--font-mono); color: var(--muted);
}

.work-card-manage { display: flex; flex-direction: column; }
.work-card-manage .work-card { flex: 1; }
.manage-bar {
  display: flex; align-items: center; gap: 16px; padding: 10px 16px 14px;
  font-size: 13px; font-weight: 500;
}
.manage-bar a { color: var(--ink-soft); }
.manage-bar a:hover { color: var(--ink); }

.empty-state {
  grid-column: 1 / -1; text-align: center; padding: 64px 24px;
  background: var(--bg-elevated); border: 1px dashed var(--line-strong); border-radius: var(--radius-md);
}
.empty-icon { font-size: 2rem; color: var(--muted); margin-bottom: 12px; }
.empty-state h3 { margin: 0 0 8px; font-family: var(--font-display); font-size: 1.5rem; font-weight: 400; }
.empty-state p { margin: 0 0 20px; color: var(--muted); font-size: 14px; }

.pagination {
  display: flex; align-items: center; justify-content: center; gap: 16px;
  margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line);
}
.page-btn {
  padding: 10px 18px; border-radius: 999px; font-size: 13px; font-weight: 600;
  border: 1px solid var(--line); background: var(--bg-elevated);
}
.page-btn:hover:not(.is-disabled) { border-color: var(--ink); }
.page-btn.is-disabled { opacity: 0.4; pointer-events: none; }
.page-status { font-size: 13px; color: var(--muted); }

/* —— CTA —— */
.cta-panel { padding: 0 24px 80px; }
.cta-panel-inner {
  max-width: 1240px; margin: 0 auto; padding: 56px 56px;
  border-radius: var(--radius-lg); background: var(--hero); color: #e8ece4;
  display: flex; align-items: center; justify-content: space-between; gap: 40px;
  position: relative; overflow: hidden;
}
.cta-panel-inner::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(184,240,69,0.12), transparent 45%);
}
.cta-panel-copy { position: relative; max-width: 480px; }
.cta-panel-copy h2 {
  font-family: var(--font-display); font-size: clamp(1.85rem, 3vw, 2.5rem);
  font-weight: 400; line-height: 1.15; margin: 0 0 12px;
}
.cta-panel-copy p { margin: 0 0 24px; font-size: 14px; line-height: 1.75; color: #a8b4aa; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.cta-panel-art {
  position: relative; width: 160px; height: 160px; flex-shrink: 0;
  display: grid; place-items: center;
}
.cta-orbit {
  position: absolute; inset: 0; border: 1px solid rgba(184,240,69,0.35); border-radius: 50%;
  animation: spin 24s linear infinite;
}
.cta-monogram {
  font-family: var(--font-display); font-size: 2.5rem; color: var(--accent);
}
@keyframes spin { to { transform: rotate(360deg); } }

/* —— Footer —— */
.footer {
  background: var(--bg-elevated); border-top: 1px solid var(--line);
  padding: 48px 24px 28px;
}
.footer-grid {
  max-width: 1240px; margin: 0 auto 32px;
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px;
}
.footer-tagline { margin: 12px 0 0; font-size: 13px; color: var(--muted); max-width: 28em; }
.footer-label {
  display: block; margin-bottom: 12px; font: 10px var(--font-mono);
  letter-spacing: 0.14em; color: var(--muted);
}
.footer-links-col { display: flex; flex-direction: column; gap: 8px; font-size: 14px; color: var(--ink-soft); }
.footer-links-col a:hover { color: var(--ink); }
.footer-bottom {
  max-width: 1240px; margin: 0 auto; padding-top: 24px; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px;
  font-size: 11px; color: #9aa39c;
}
.copyright { font-family: var(--font-mono); letter-spacing: 0.04em; }

/* —— Messages —— */
.messages { max-width: 1240px; margin: 16px auto 0; padding: 0 24px; }
.message {
  padding: 14px 18px; border-radius: var(--radius-sm); font-size: 14px;
  border: 1px solid #dce8d0; background: #f2f9ea; color: #3d5234;
}

/* —— Detail —— */
.detail-wrap {
  max-width: 1240px; margin: 0 auto; padding: 32px 24px 80px;
}
.breadcrumb {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  font-size: 13px; color: var(--muted); margin-bottom: 24px;
}
.breadcrumb a:hover { color: var(--ink); }
.detail-layout {
  display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 48px; align-items: start;
}
.detail-cover {
  border-radius: var(--radius-lg); overflow: hidden; height: 360px;
  border: 1px solid var(--line); background: #e8ece8;
}
.detail-cover img { width: 100%; height: 100%; object-fit: cover; }
.detail-cover-art { height: 100%; min-height: 360px; }
.detail-head { margin-top: 28px; }
.detail-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.featured-pill {
  font-size: 11px; font-weight: 600; padding: 4px 10px; border-radius: 999px;
  background: #eef6e4; color: #4a6b38;
}
.detail-main h1 {
  font-family: var(--font-display); font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 400; letter-spacing: -0.02em; margin: 0 0 12px; line-height: 1.12;
}
.detail-summary { font-size: 16px; line-height: 1.75; color: var(--ink-soft); margin: 0 0 20px; }
.detail-stats {
  display: flex; flex-wrap: wrap; gap: 20px 28px; font-size: 13px; color: var(--muted);
}
.detail-stats strong { color: var(--ink); font-weight: 600; }
.detail-content h2, .related-section h2 {
  font-size: 1.1rem; font-weight: 700; margin: 32px 0 14px; letter-spacing: -0.01em;
}
.prose { font-size: 15px; line-height: 1.85; color: var(--ink-soft); }
.detail-tags { margin-bottom: 8px; }

.related-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px;
}
.related-card {
  padding: 16px 18px; border-radius: var(--radius-sm);
  border: 1px solid var(--line); background: var(--bg-elevated);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.related-card:hover { border-color: var(--line-strong); box-shadow: var(--shadow-sm); }
.related-title { display: block; font-weight: 600; font-size: 14px; margin-bottom: 4px; }
.related-meta { font-size: 12px; color: var(--muted); }

.panel {
  background: var(--bg-elevated); border: 1px solid var(--line);
  border-radius: var(--radius-md); padding: 24px; margin-bottom: 16px;
}
.panel h3 { margin: 0 0 8px; font-size: 1.15rem; font-weight: 700; }
.panel-note { margin: 0 0 16px; font-size: 13px; line-height: 1.65; color: var(--muted); }
.meta-list { margin: 16px 0 0; padding: 16px 0 0; border-top: 1px solid var(--line); }
.meta-list div {
  display: flex; justify-content: space-between; gap: 12px; padding: 8px 0;
  font-size: 13px;
}
.meta-list dt { color: var(--muted); }
.meta-list dd { margin: 0; font-weight: 600; text-align: right; overflow-wrap: anywhere; }
.security-note {
  margin: 16px 0 0; padding: 12px; border-radius: var(--radius-sm);
  background: var(--bg); font-size: 11px; line-height: 1.65; color: var(--muted);
}
.author-large { display: flex; align-items: center; gap: 12px; margin-top: 12px; }
.avatar-large { width: 44px; height: 44px; font-size: 16px; }
.author-large b { display: block; font-size: 14px; }
.author-large small { font-size: 12px; color: var(--muted); }
.author-date { margin: 12px 0 0; font-size: 12px; color: var(--muted); }
.delete-form { margin-top: 10px; }

/* —— Forms & auth —— */
.form-page { max-width: 720px; margin: 0 auto; padding: 40px 24px 80px; }
.form-heading { margin: 24px 0 28px; }
.form-heading p { color: var(--muted); font-size: 14px; }
.upload-form {
  background: var(--bg-elevated); border: 1px solid var(--line);
  border-radius: var(--radius-md); padding: 28px;
}
.field-row { margin-bottom: 20px; }
.field-row label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 8px; }
.field-row .req { color: var(--danger); }
.field-row input, .field-row textarea, .field-row select {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line);
  border-radius: var(--radius-sm); background: var(--bg); color: var(--ink); outline: none;
}
.field-row input:focus, .field-row textarea:focus, .field-row select:focus {
  border-color: var(--accent-deep); box-shadow: 0 0 0 3px rgba(184, 240, 69, 0.18);
}
.field-row small { display: block; margin-top: 6px; font-size: 12px; color: var(--muted); }
.field-error, .form-errors { font-size: 13px; color: var(--danger); margin-top: 6px; }
.upload-notice {
  padding: 16px; margin: 24px 0; border-radius: var(--radius-sm);
  background: #f2f7eb; border: 1px solid #e0ead4;
}
.upload-notice b { font-size: 13px; }
.upload-notice p { margin: 6px 0 0; font-size: 12px; line-height: 1.7; color: var(--muted); }
.form-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.submit-btn { min-width: 140px; border: 0; }

/* —— 上传进度 —— */
.upload-progress {
  margin: 20px 0 4px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg);
}
.upload-progress[hidden] { display: none; }
.upload-progress-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}
.upload-progress-pct {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent-ink);
  font-variant-numeric: tabular-nums;
}
.upload-progress-track {
  height: 8px;
  border-radius: 999px;
  background: var(--line);
  overflow: hidden;
}
.upload-progress-bar {
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent-deep), var(--accent));
  transition: width 0.2s var(--ease);
}
.upload-progress-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 10px;
  font: 11.5px var(--font-mono);
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.upload-progress-meta [data-eta] { color: var(--ink-soft); }
.submit-btn:disabled { opacity: 0.6; cursor: not-allowed; }

.auth-page {
  min-height: calc(100vh - var(--header-h) - 120px);
  display: grid; place-items: center; padding: 48px 24px;
  background: radial-gradient(ellipse 80% 50% at 50% 0%, #eef4e6, transparent);
}
.auth-card-wide { width: min(480px, 100%); }
.auth-tabs {
  display: flex; gap: 6px; margin: 20px 0 8px; flex-wrap: wrap;
}
.auth-tab {
  padding: 8px 14px; border-radius: 999px; font-size: 12px; font-weight: 600;
  border: 1px solid var(--line); color: var(--muted); background: var(--bg);
}
.auth-tab.is-active {
  background: var(--ink); color: #fff; border-color: var(--ink);
}
.field-with-action {
  display: flex; gap: 8px; align-items: stretch;
}
.field-with-action input { flex: 1; min-width: 0; }
.btn-code {
  flex-shrink: 0; padding: 10px 12px; font-size: 11px; white-space: nowrap;
}
.auth-card {
  width: min(420px, 100%); padding: 36px;
  background: var(--bg-elevated); border: 1px solid var(--line);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-md);
}
.auth-mark { margin-bottom: 20px; }
.auth-card h1 {
  font-family: var(--font-display); font-size: 1.75rem; font-weight: 400; margin: 8px 0;
}
.auth-card > p { font-size: 14px; color: var(--muted); margin: 0 0 8px; }
.auth-card .upload-form { padding: 20px 0 0; border: 0; background: transparent; }
.auth-foot { text-align: center; margin-top: 20px !important; font-size: 14px; color: var(--muted); }
.auth-foot a { font-weight: 600; color: #2d5a38; }

.studio-section h1 {
  font-family: var(--font-display); font-size: 2.25rem; font-weight: 400; margin: 0 0 8px;
}

/* —— Trust & maturity (home) —— */
.trust-pillars {
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--line);
}
.trust-pillars-inner {
  max-width: 1240px; margin: 0 auto; padding: 32px 24px;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px;
}
.trust-pillar {
  padding: 20px 18px; border-radius: var(--radius-md);
  border: 1px solid var(--line); background: var(--bg);
}
.trust-pillar-icon {
  display: inline-flex; width: 36px; height: 36px; border-radius: 10px;
  align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700; color: var(--accent-ink);
  background: #eef6e4; border: 1px solid #dce8d0; margin-bottom: 12px;
}
.trust-pillar h3 { margin: 0 0 8px; font-size: 14px; font-weight: 700; }
.trust-pillar p { margin: 0; font-size: 12px; line-height: 1.65; color: var(--muted); }
.trust-pillar a { color: #2d5a38; font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }

.how-section { padding-top: 56px; padding-bottom: 56px; }
.steps-row {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px;
  counter-reset: step;
}
.step-card {
  position: relative; padding: 22px 20px 20px;
  border-radius: var(--radius-md); border: 1px solid var(--line);
  background: var(--bg-elevated);
}
.step-num {
  font: 11px var(--font-mono); letter-spacing: 0.12em; color: var(--accent-ink);
  background: #eef6e4; border-radius: 999px; padding: 4px 10px;
}
.step-card h3 { margin: 14px 0 8px; font-size: 15px; }
.step-card p { margin: 0; font-size: 13px; line-height: 1.65; color: var(--muted); }

.faq-section { padding-top: 48px; }
.faq-list { display: flex; flex-direction: column; gap: 10px; max-width: 820px; }
.faq-item {
  border: 1px solid var(--line); border-radius: var(--radius-md);
  background: var(--bg-elevated); padding: 0 18px;
}
.faq-item summary {
  cursor: pointer; font-weight: 600; font-size: 14px;
  padding: 16px 0; list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; float: right; color: var(--muted); font-weight: 400;
}
.faq-item[open] summary::after { content: "−"; }
.faq-item p {
  margin: 0 0 16px; padding-top: 0; font-size: 13px; line-height: 1.75;
  color: var(--muted); border-top: 1px solid var(--line); padding-top: 14px;
}

.about-section { padding-top: 40px; padding-bottom: 48px; }
.about-panel {
  display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 28px;
  padding: 36px 32px; border-radius: var(--radius-lg);
  border: 1px solid var(--line); background: var(--bg-elevated);
  box-shadow: var(--shadow-sm);
}
.about-copy h2 {
  font-family: var(--font-display); font-weight: 400; font-size: clamp(1.5rem, 2.5vw, 2rem);
  margin: 0 0 12px; letter-spacing: -0.02em;
}
.about-copy > p { margin: 0 0 16px; font-size: 14px; line-height: 1.75; color: var(--muted); max-width: 40em; }
.about-points {
  margin: 0 0 20px; padding-left: 18px; color: var(--ink-soft); font-size: 13px; line-height: 1.8;
}
.about-links { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.about-aside { display: flex; align-items: center; justify-content: center; }
.about-stat-card {
  width: 100%; max-width: 280px; padding: 28px 24px; border-radius: var(--radius-md);
  background: var(--hero); color: #e8ece4; border: 1px solid rgba(255,255,255,0.08);
}
.about-stat-card span { font: 10px var(--font-mono); letter-spacing: 0.14em; color: #8a9890; }
.about-stat-card strong { display: block; margin: 10px 0 8px; font-family: var(--font-display); font-size: 1.75rem; font-weight: 400; }
.about-stat-card small { font-size: 12px; color: #a8b4aa; line-height: 1.6; }

.legal-page {
  max-width: 720px; margin: 0 auto; padding: 48px 24px 80px;
}
.legal-header h1 {
  font-family: var(--font-display); font-weight: 400; font-size: 2rem; margin: 8px 0;
}
.legal-updated { font-size: 13px; color: var(--muted); margin: 0 0 24px; }
.legal-body h2 { font-size: 16px; margin: 28px 0 10px; }
.legal-body p, .legal-body li { font-size: 14px; line-height: 1.75; color: var(--ink-soft); }
.legal-body ul { padding-left: 20px; }
.legal-back { margin-top: 32px; }

.footer-contact { margin: 12px 0 0; font-size: 13px; color: var(--muted); }
.footer-contact a { font-weight: 600; color: #2d5a38; }

#how-it-works, #faq, #about { scroll-margin-top: calc(var(--header-h) + 16px); }

.purchase-notice {
  margin: 24px 0 0; padding: 20px 22px;
  border-radius: var(--radius-md); border: 1px solid #e0ead4;
  background: #f8fbf4;
}
.purchase-notice-title { margin: 0 0 12px; font-size: 15px; font-weight: 700; }
.purchase-notice-list {
  margin: 0; padding-left: 18px; font-size: 13px; line-height: 1.75; color: var(--ink-soft);
}
.purchase-notice-list li { margin-bottom: 6px; }
.purchase-notice-help { margin: 14px 0 0; font-size: 12px; color: var(--muted); }
.purchase-notice-help a { font-weight: 600; color: #2d5a38; }
.support-link-btn { margin-top: 12px; }

html.has-chat-open,
html.has-chat-open body {
  overflow: hidden;
  overscroll-behavior: none;
}

.chat-backdrop {
  position: fixed; inset: 0; z-index: 91;
  background: rgba(10, 16, 14, 0.35);
  backdrop-filter: blur(2px);
  transition: opacity 0.25s var(--ease);
  touch-action: none;
}
.chat-backdrop[hidden] { display: none !important; }

.support-fab {
  position: fixed; right: 20px; bottom: 24px; z-index: 93;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 18px 12px 14px; border-radius: 999px; border: 0; cursor: pointer;
  background: linear-gradient(145deg, #141f1a, #0a100e);
  color: #fff; font-size: 13px; font-weight: 600;
  box-shadow: 0 14px 36px rgba(15, 22, 19, 0.28), 0 0 0 1px rgba(184, 240, 69, 0.15);
  transition: transform 0.22s var(--ease), box-shadow 0.22s;
}
.support-fab:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 44px rgba(15, 22, 19, 0.32), 0 0 0 1px rgba(184, 240, 69, 0.35);
}
.support-fab-icon {
  width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center;
  background: linear-gradient(145deg, var(--accent), #d4ff7a);
  color: var(--accent-ink);
}
.support-fab-label { letter-spacing: 0.02em; }

.chat-widget {
  position: fixed; right: 20px; bottom: 88px; z-index: 92;
  width: min(400px, calc(100vw - 32px));
  max-height: min(560px, calc(100vh - 100px));
  border-radius: 20px; overflow: hidden;
  overscroll-behavior: contain;
  touch-action: pan-y;
  background: #fafbf9;
  border: 1px solid rgba(15, 22, 19, 0.08);
  box-shadow:
    0 24px 64px rgba(15, 22, 19, 0.18),
    0 0 0 1px rgba(255, 255, 255, 0.6) inset;
  transform-origin: right bottom;
}
.chat-widget[hidden] { display: none !important; }
.chat-widget.is-open {
  display: flex; flex-direction: column;
  animation: chat-pop-in 0.28s var(--ease);
}
@keyframes chat-pop-in {
  from { opacity: 0; transform: translateY(12px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.chat-widget-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 16px 16px 14px;
  background: linear-gradient(135deg, #0f1814 0%, #1a2a22 55%, #243528 100%);
  color: #eef2eb;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.chat-head-brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.chat-head-avatar {
  width: 42px; height: 42px; flex-shrink: 0; border-radius: 14px;
  display: grid; place-items: center; font-weight: 800; font-size: 16px;
  background: linear-gradient(145deg, var(--accent), #9ad628);
  color: var(--accent-ink);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}
.chat-head-text strong { display: block; font-size: 15px; font-weight: 600; letter-spacing: -0.02em; }
.chat-head-status {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 4px; font-size: 11px; color: #a8b8ae;
}
.chat-online-dot {
  width: 7px; height: 7px; border-radius: 50%; background: #5ee06a;
  box-shadow: 0 0 0 3px rgba(94, 224, 106, 0.25);
  animation: chat-pulse 2s ease-in-out infinite;
}
@keyframes chat-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.65; }
}
.chat-widget-close {
  border: 0; background: rgba(255, 255, 255, 0.08); color: #fff;
  width: 36px; height: 36px; border-radius: 10px; cursor: pointer;
  display: grid; place-items: center;
  transition: background 0.2s;
}
.chat-widget-close:hover { background: rgba(255, 255, 255, 0.16); }

.chat-widget-messages-wrap {
  flex: 1; min-height: 0; overflow: hidden;
  overscroll-behavior: contain;
  background:
    radial-gradient(circle at 0% 0%, rgba(184, 240, 69, 0.06), transparent 45%),
    linear-gradient(180deg, #f2f5f0, #fafbf9);
}
.chat-widget-messages {
  height: 100%; overflow-y: auto; padding: 16px 14px 12px;
  min-height: 260px; max-height: 340px;
  scroll-behavior: smooth;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}
.chat-widget-messages::-webkit-scrollbar { width: 6px; }
.chat-widget-messages::-webkit-scrollbar-thumb {
  background: rgba(15, 22, 19, 0.15); border-radius: 999px;
}

.chat-empty {
  text-align: center; padding: 36px 16px 24px; color: var(--muted);
}
.chat-empty-icon {
  display: inline-grid; place-items: center; width: 48px; height: 48px;
  border-radius: 16px; background: #fff; border: 1px solid var(--line);
  font-size: 20px; margin-bottom: 12px;
}
.chat-empty p { margin: 0 0 6px; font-size: 14px; font-weight: 600; color: var(--ink-soft); }
.chat-empty small { font-size: 12px; line-height: 1.5; }

.chat-msg { margin-bottom: 14px; }
.chat-msg-row { display: flex; align-items: flex-end; gap: 8px; max-width: 100%; }
.chat-msg-user .chat-msg-row { justify-content: flex-end; }
.chat-bubble-col { display: flex; flex-direction: column; gap: 4px; max-width: calc(100% - 44px); }
.chat-msg-user .chat-bubble-col { align-items: flex-end; }
.chat-msg-staff .chat-bubble-col { align-items: flex-start; }

.chat-avatar {
  width: 32px; height: 32px; flex-shrink: 0; border-radius: 50%;
  display: grid; place-items: center; font-size: 11px; font-weight: 700;
}
.chat-avatar-staff {
  background: linear-gradient(145deg, #eef6e4, #dce8d0); color: #3d5234;
  border: 1px solid #cfe0c4;
}
.chat-avatar-user {
  background: var(--ink); color: #fff;
}

.chat-msg-label { font-size: 10px; font-weight: 600; color: var(--muted); letter-spacing: 0.04em; }
.chat-msg-body {
  padding: 10px 14px; border-radius: 16px; font-size: 13px; line-height: 1.55;
  white-space: pre-wrap; word-break: break-word;
  box-shadow: 0 1px 2px rgba(15, 22, 19, 0.04);
}
.chat-msg-user .chat-msg-body {
  background: linear-gradient(145deg, #1a2820, #0f1613);
  color: #fff; border-bottom-right-radius: 4px;
}
.chat-msg-staff .chat-msg-body {
  background: #fff; color: var(--ink);
  border: 1px solid rgba(207, 216, 207, 0.9);
  border-bottom-left-radius: 4px;
}
.chat-msg-time { font-size: 10px; color: #9aa89e; padding: 0 2px; }
.chat-msg-system { text-align: center; margin: 8px 0 12px; }
.chat-system-pill {
  display: inline-block; max-width: 92%; padding: 8px 12px;
  font-size: 11px; line-height: 1.55; color: var(--muted);
  background: rgba(255, 255, 255, 0.85); border: 1px dashed var(--line);
  border-radius: 999px;
}

.chat-widget-foot {
  padding: 12px 14px 14px;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
}
.chat-email-wrap { margin-bottom: 10px; }
.chat-email-wrap label { display: block; font-size: 11px; color: var(--muted); margin-bottom: 4px; }
.chat-email-wrap input {
  width: 100%; padding: 9px 12px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: #fff;
}
.chat-widget-form { display: flex; align-items: flex-end; gap: 8px; }
.chat-input-shell {
  flex: 1; min-width: 0; padding: 4px 4px 4px 14px;
  border: 1px solid var(--line); border-radius: 999px; background: #fff;
  box-shadow: inset 0 1px 2px rgba(15, 22, 19, 0.03);
}
.chat-input-shell:focus-within {
  border-color: rgba(184, 240, 69, 0.65);
  box-shadow: 0 0 0 3px rgba(184, 240, 69, 0.15);
}
.chat-widget-form input,
.chat-input-shell input,
.chat-console-composer input {
  width: 100%; border: 0; outline: none; background: transparent;
  padding: 8px 0; font-size: 13px; box-shadow: none;
  -webkit-appearance: none; appearance: none;
}
.chat-console-composer input:focus { outline: none; box-shadow: none; }
.chat-send-btn {
  width: 44px; height: 44px; flex-shrink: 0; border: 0; border-radius: 50%;
  cursor: pointer; display: grid; place-items: center;
  background: linear-gradient(145deg, var(--accent), #9ad628);
  color: var(--accent-ink);
  box-shadow: 0 6px 18px rgba(184, 240, 69, 0.35);
  transition: transform 0.15s var(--ease), box-shadow 0.15s;
}
.chat-send-btn:hover { transform: scale(1.04); box-shadow: 0 8px 22px rgba(184, 240, 69, 0.45); }
.chat-send-btn:active { transform: scale(0.98); }
.chat-widget-meta {
  margin: 10px 0 0; font-size: 11px; color: var(--muted); text-align: center;
}
.chat-widget-meta span { margin: 0 6px; opacity: 0.5; }
.chat-widget-meta a { font-weight: 600; color: #2d5a38; }

.page-chat-console .support-fab,
.page-chat-console .chat-widget,
.page-chat-console .chat-backdrop { display: none !important; }

.chat-console-page {
  max-width: 1180px; margin: 0 auto; padding: 28px 24px 72px;
}
.chat-console-hero {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between;
  gap: 20px; margin-bottom: 24px;
  padding: 28px 28px 24px; border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #0f1814 0%, #1a2a22 50%, #243528 100%);
  color: #eef2eb; border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 20px 50px rgba(15, 22, 19, 0.12);
}
.chat-console-hero h1 {
  font-family: var(--font-display); font-weight: 400; font-size: clamp(1.75rem, 3vw, 2.35rem);
  margin: 6px 0 10px; letter-spacing: -0.02em;
}
.chat-console-hero .section-kicker { color: rgba(184, 240, 69, 0.75); }
.chat-console-hero .section-desc { color: #a8b4aa; max-width: 36em; margin: 0; }
.chat-console-hero .section-desc a { color: var(--accent); font-weight: 600; }
.chat-console-hero-badges { display: flex; flex-wrap: wrap; gap: 10px; }
.console-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: 999px; font-size: 12px; font-weight: 600;
  background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.1);
}
.console-badge.muted { font-weight: 500; color: #9aa89e; }
.console-badge strong { font-size: 14px; color: var(--accent); }

.chat-console-shell {
  display: grid; grid-template-columns: minmax(280px, 340px) 1fr; gap: 0;
  min-height: 560px; border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-md);
  background: var(--bg-elevated);
}
.chat-console-inbox {
  display: flex; flex-direction: column; min-height: 0;
  background: #f6f8f5; border-right: 1px solid var(--line);
}
.chat-console-main {
  display: flex; flex-direction: column; min-height: 0; background: #fafbf9;
}
.chat-console-panel-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 18px 12px; border-bottom: 1px solid var(--line);
}
.chat-console-panel-head h2 { margin: 0; font-size: 14px; font-weight: 700; }
.panel-head-hint {
  font: 10px var(--font-mono); letter-spacing: 0.12em; color: var(--muted);
  padding: 4px 8px; border-radius: 6px; background: #fff; border: 1px solid var(--line);
}
.staff-inbox-list {
  flex: 1; overflow-y: auto; padding: 10px 12px 14px;
  display: flex; flex-direction: column; gap: 8px;
}
.staff-inbox-empty {
  padding: 32px 20px; text-align: center; color: var(--muted); font-size: 13px;
}
.staff-inbox-empty span { font-size: 24px; opacity: 0.35; }
.staff-inbox-empty p { margin: 10px 0 6px; font-weight: 600; color: var(--ink-soft); }
.staff-inbox-empty small { font-size: 12px; line-height: 1.5; }
.staff-inbox-item {
  text-align: left; width: 100%; padding: 12px 12px 10px;
  border: 1px solid transparent; border-radius: var(--radius-md);
  background: #fff; cursor: pointer;
  box-shadow: 0 1px 2px rgba(15, 22, 19, 0.04);
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.staff-inbox-item:hover {
  border-color: var(--line-strong); box-shadow: var(--shadow-sm);
}
.staff-inbox-item.is-active {
  border-color: rgba(184, 240, 69, 0.65);
  background: linear-gradient(180deg, #f8fcef, #fff);
  box-shadow: 0 4px 16px rgba(184, 240, 69, 0.12);
}
.staff-inbox-top { display: flex; gap: 10px; align-items: flex-start; }
.staff-inbox-avatar {
  width: 36px; height: 36px; flex-shrink: 0; border-radius: 12px;
  display: grid; place-items: center; font-size: 13px; font-weight: 700;
  background: linear-gradient(145deg, #eef6e4, #dce8d0); color: #3d5234;
}
.staff-inbox-meta { flex: 1; min-width: 0; }
.staff-inbox-label {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  font-weight: 600; font-size: 13px; color: var(--ink);
}
.staff-unread {
  font-style: normal; font-size: 10px; min-width: 18px; text-align: center;
  background: #e24b3a; color: #fff; padding: 2px 6px; border-radius: 999px;
}
.staff-inbox-preview {
  display: block; margin-top: 4px; font-size: 12px; color: var(--muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.staff-inbox-time {
  display: block; margin-top: 8px; font: 10px var(--font-mono); color: #9aa89e;
}

.chat-console-thread-head {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 16px 20px; border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.85); backdrop-filter: blur(8px);
}
.chat-console-thread-info { display: flex; align-items: center; gap: 12px; min-width: 0; }
.chat-head-avatar-sm {
  width: 40px; height: 40px; border-radius: 12px; font-size: 15px;
  display: grid; place-items: center; font-weight: 800;
  background: linear-gradient(145deg, var(--accent), #9ad628); color: var(--accent-ink);
}
.chat-console-thread-info h2 {
  margin: 0; font-size: 16px; font-weight: 700; letter-spacing: -0.02em;
}
.chat-console-thread-info p {
  margin: 4px 0 0; font-size: 12px; color: var(--muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 420px;
}
.chat-console-messages {
  flex: 1; min-height: 320px; max-height: 460px; overflow-y: auto;
  padding: 18px 16px;
  background:
    radial-gradient(circle at 100% 0%, rgba(184, 240, 69, 0.05), transparent 40%),
    linear-gradient(180deg, #f2f5f0, #fafbf9);
}
.chat-console-messages .chat-bubble-col { max-width: min(520px, 88%); }
.chat-console-messages .chat-msg-label-role {
  display: block; font-size: 11px; font-weight: 600; letter-spacing: 0.06em;
  margin-bottom: 2px;
}
.chat-console-messages .chat-msg-staff .chat-msg-label-role { color: #3d5234; }
.chat-console-messages .chat-msg-user .chat-msg-label-role { color: #6b756c; }
.staff-msg-empty {
  text-align: center; padding: 48px 24px; color: var(--muted);
}
.staff-msg-empty-icon { font-size: 32px; opacity: 0.5; margin-bottom: 12px; }
.staff-msg-empty p { margin: 0 0 6px; font-weight: 600; color: var(--ink-soft); }
.staff-msg-empty small { font-size: 12px; }

.chat-console-composer {
  display: flex; align-items: flex-end; gap: 10px;
  padding: 14px 16px 16px; border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.92);
}
.chat-input-shell-wide { flex: 1; padding: 6px 14px; }
.chat-input-shell-wide input { padding: 10px 0; font-size: 14px; }
.chat-open-hint { margin-top: 12px; }

.support-page { max-width: 960px; margin: 0 auto; padding: 40px 24px 80px; }
.support-page-narrow { max-width: 720px; }
.support-page-header { margin-bottom: 28px; }
.support-page-header h1 {
  font-family: var(--font-display); font-weight: 400; font-size: clamp(1.75rem, 3vw, 2.25rem); margin: 8px 0;
}
.support-layout { display: grid; grid-template-columns: 280px 1fr; gap: 20px; align-items: start; }
.support-aside h2 { font-size: 15px; margin: 0 0 12px; }
.support-tips { margin: 0 0 16px; padding-left: 18px; font-size: 13px; line-height: 1.7; color: var(--muted); }
.support-mail { font-size: 13px; margin: 0 0 16px; }
.support-related { font-size: 13px; margin: 0 0 16px; padding: 10px 12px; background: var(--bg); border-radius: var(--radius-sm); }
.support-form { border: 0; padding: 0; background: transparent; }
.ticket-list { display: flex; flex-direction: column; gap: 8px; }
.ticket-row {
  display: grid; grid-template-columns: 100px 1fr auto auto; gap: 12px; align-items: center;
  padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius-md);
  background: var(--bg-elevated); font-size: 13px;
}
.ticket-row:hover { border-color: var(--line-strong); box-shadow: var(--shadow-sm); }
.ticket-no { font: 11px var(--font-mono); color: var(--muted); }
.ticket-subject { font-weight: 600; }
.ticket-status { font-size: 11px; padding: 4px 10px; border-radius: 999px; background: var(--bg); }
.ticket-status.status-open { background: #fff5e6; color: #9a6b2a; }
.ticket-status.status-replied { background: #eef6e4; color: #3d5234; }
.ticket-status.status-closed { background: #f0f0f0; color: var(--muted); }
.ticket-date { font-size: 12px; color: var(--muted); white-space: nowrap; }
.ticket-thread { margin-bottom: 20px; }
.ticket-message { padding: 16px 0; border-bottom: 1px solid var(--line); }
.ticket-message:last-child { border-bottom: 0; }
.ticket-message b { display: block; margin-bottom: 8px; font-size: 13px; }
.ticket-message p { margin: 0; font-size: 14px; line-height: 1.75; color: var(--ink-soft); }
.staff-message { background: #f8fbf4; margin: 0 -20px; padding: 16px 20px; border-radius: var(--radius-sm); }
.ticket-pending { font-size: 13px; color: var(--muted); }
.breadcrumb-lite { font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.empty-hint { font-size: 14px; color: var(--muted); }

/* —— Responsive —— */
@media (max-width: 1280px) {
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1024px) {
  .trust-pillars-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about-panel { grid-template-columns: 1fr; }
  .hero-inner { grid-template-columns: 1fr; gap: 32px; }
  .hero-spotlight { max-width: 480px; }
  .works-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
  .category-bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .detail-layout { grid-template-columns: 1fr; gap: 32px; }
  .detail-aside { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .detail-aside .panel { margin: 0; }
  .stat-trust { margin-left: 0; width: 100%; max-width: none; }
}
@media (max-width: 768px) {
  .support-layout { grid-template-columns: 1fr; }
  .ticket-row { grid-template-columns: 1fr; gap: 6px; }
  .support-fab .support-fab-label { display: none; }
  .support-fab { padding: 10px; border-radius: 50%; }
  .chat-widget {
    right: 0; bottom: 0; left: 0; width: 100%; max-width: none;
    max-height: min(85vh, 640px); border-radius: 20px 20px 0 0;
  }
  .chat-widget.is-open { animation: chat-slide-up 0.3s var(--ease); }
  @keyframes chat-slide-up {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
  }
  .chat-console-shell { grid-template-columns: 1fr; min-height: auto; }
  .chat-console-inbox { max-height: 280px; border-right: 0; border-bottom: 1px solid var(--line); }
  .chat-console-hero { padding: 22px 20px; }
  .trust-pillars-inner { grid-template-columns: 1fr; }
  .steps-row { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .nav-dropdown-account { display: none; }
  .nav-toggle { display: flex; }
  .nav-actions .nav-muted,
  .nav-actions .btn-primary { display: none; }
  .stat-item { border-right: 0; padding-right: 0; flex: 1 1 40%; }
  .stats-inner { gap: 16px; }
  .section-header { flex-direction: column; align-items: flex-start; }
  .category-bento { grid-template-columns: 1fr; }
  .works-grid { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 10px; }
  .gallery-section { padding: 20px 16px 28px; border-radius: var(--radius-md); }
  .product-body { padding: 11px 12px 12px; }
  .product-title { font-size: 13.5px; min-height: calc(1.4em * 2); }
  .product-summary { display: none; }
  .product-specs { margin-top: 8px; }
  .product-price { font-size: 15px; }
  .product-metrics { font-size: 11px; gap: 10px; }
  .cta-panel-inner { flex-direction: column; padding: 40px 28px; text-align: center; }
  .cta-actions { justify-content: center; }
  .cta-panel-art { display: none; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .detail-aside { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: 1fr; }
}
.price-tag, .paid-tag {
  font-size: 12px; font-weight: 700; font-family: var(--font-mono);
  color: var(--accent-ink); background: #eef6e4; padding: 4px 10px; border-radius: 999px;
}
.price-tag-free { background: var(--accent); color: var(--accent-ink); }
.paid-tag { background: #e8f0ff; color: #2f4a7a; }
.price-highlight {
  font-family: var(--font-display); font-size: 2rem; margin: 4px 0 12px; letter-spacing: -0.02em;
}
.staff-note { font-size: 12px; margin-top: 8px; color: #6b8a52 !important; }

.checkout-page {
  max-width: 920px; margin: 0 auto; padding: 32px 24px 80px;
}
.checkout-layout {
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 24px;
}
.checkout-layout h1 { font-family: var(--font-display); font-weight: 400; font-size: 1.85rem; margin: 0 0 16px; }
.checkout-layout h2 { font-size: 1.15rem; margin: 0 0 12px; }
.checkout-work { margin-bottom: 8px; }
.checkout-work strong { display: block; font-size: 16px; margin-bottom: 4px; }
.checkout-work span { font-size: 13px; color: var(--muted); }
.checkout-amount { font-size: 1.25rem !important; color: var(--accent-ink); }
.checkout-pay-btn { flex-direction: column; gap: 4px; padding: 16px; }
.checkout-pay-btn small { font-size: 11px; font-weight: 500; opacity: 0.75; }
.checkout-back { display: inline-block; margin-top: 16px; }
.pay-qr-wrap {
  text-align: center; padding: 16px; margin: 12px 0;
  background: #fff; border-radius: var(--radius-md); border: 1px solid var(--line);
}
.pay-qr-image { display: inline-block; border-radius: 8px; }
.pay-qr-hint { margin: 12px 0 0; font-size: 13px; font-weight: 600; color: var(--ink-soft); }
.pay-wait { font-size: 13px; color: var(--muted); text-align: center; margin: 8px 0 12px; }
.pay-wait.pay-success { color: #2d6b45; font-weight: 600; }
.qr-refresh-form { margin-bottom: 8px; }
.pay-unavailable {
  padding: 16px; border-radius: var(--radius-sm); background: #fff5f3;
  border: 1px solid #f0d4ce; font-size: 13px; color: #8a4034;
}

.purchase-list { display: flex; flex-direction: column; gap: 12px; }
.purchase-row {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  flex-wrap: wrap; margin-bottom: 0;
}
.purchase-title { font-weight: 700; font-size: 16px; }
.purchase-title:hover { color: #2d5a38; }
.purchase-meta { margin: 6px 0 0; font-size: 12px; color: var(--muted); }
.purchase-actions { display: flex; align-items: center; gap: 10px; }

@media (max-width: 768px) {
  .checkout-layout { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
