@font-face { font-family: "Roboto Condensed"; src: url("../fonts/Roboto-Condensed-Regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Roboto Condensed"; src: url("../fonts/Roboto-Condensed-Bold.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
/* Night Owl 2026 — unified production interface */
:root {
  color-scheme: dark;
  --bg: #0b0d0b;
  --bg-raised: #101310;
  --surface: #151815;
  --surface-2: #1a1e1a;
  --surface-3: #20251f;
  --surface-hover: #242a23;
  --border: #30362f;
  --border-strong: #454d43;
  --text: #f1efe8;
  --text-soft: #d2d0c8;
  --muted: #989d94;
  --muted-2: #737a71;
  --accent: #d65d40;
  --accent-hover: #e56d50;
  --accent-soft: #3a211b;
  --success: #9ab879;
  --warning: #d6ad71;
  --danger: #e48770;
  --ring: #f28b70;
  --radius-xs: 5px;
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.22);
  --shadow-md: 0 16px 40px rgba(0,0,0,.22);
  --content: 1180px;
  --reading: 760px;
  --header-height: 68px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-height) + 24px); }
body {
  min-width: 320px;
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: "";
  position: fixed;
  z-index: -2;
  inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.012) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.012) 1px, transparent 1px);
  background-size: 64px 64px;
  pointer-events: none;
}
::selection { background: rgba(214,93,64,.35); color: #fff; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button, select { cursor: pointer; }
img { display: block; max-width: 100%; }
main { min-height: 55vh; }
.container { width: min(var(--content), calc(100% - 48px)); margin-inline: auto; }
.narrow { width: min(var(--reading), calc(100% - 48px)); }
.sr-only { 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: fixed; z-index: 1000; top: 10px; left: 12px; padding: 9px 14px; background: var(--text); color: var(--bg); border-radius: var(--radius-sm); transform: translateY(-150%); transition: transform .15s ease; }
.skip-link:focus { transform: none; }
.site-atmosphere { display: none; }

/* Typography */
h1, h2, h3, h4, p { overflow-wrap: break-word; }
h1, h2, h3, h4, .brand b, .price, .detail-price {
  font-family: "Roboto Condensed", system-ui, "Noto Sans SC", sans-serif;
  text-wrap: balance;
}
h1, h2, h3, h4 { color: var(--text); }
p { text-wrap: pretty; }
.eyebrow, .section-marker, .hero-status {
  color: #e77b60;
  font: 700 11px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .12em;
  text-transform: uppercase;
}

/* Header */
.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  height: var(--header-height);
  background: rgba(11,13,11,.92);
  border-bottom: 1px solid rgba(69,77,67,.72);
  box-shadow: none;
  backdrop-filter: blur(14px) saturate(120%);
}
.header-inner { display: flex; height: 100%; align-items: center; gap: 28px; }
.brand { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 11px; font-weight: 700; }
.brand-mark { position: relative; display: grid; width: 40px; height: 40px; place-items: center; }
.brand-mark::after { content: ""; position: absolute; inset: 4px; border: 1px solid #485046; border-radius: 5px; transform: rotate(45deg); }
.brand-mark img { position: relative; z-index: 1; width: 34px; height: 34px; object-fit: contain; }
.brand > span:last-child { display: flex; flex-direction: column; line-height: 1; }
.brand b { font-size: 18px; letter-spacing: .01em; }
.brand small { margin-top: 5px; color: var(--muted-2); font: 700 8px/1 ui-monospace, monospace; letter-spacing: .16em; }
.main-nav { display: flex; min-width: 0; flex: 1; align-items: center; justify-content: flex-end; gap: 2px; }
.main-nav > a, .main-nav > a.button {
  display: inline-flex !important;
  width: auto;
  min-width: 0;
  height: 38px;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  padding: 7px 10px !important;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  color: var(--muted);
  font-size: 13px !important;
  font-weight: 600;
  white-space: nowrap;
}
.main-nav > a:not(.button):hover { background: var(--surface-2); border-color: var(--border); color: var(--text); }
.main-nav > a.active { background: var(--surface-3); border-color: var(--border-strong); color: var(--text); }
.main-nav > a.active::after { display: none; }
.main-nav > a.button { margin-left: 4px; background: var(--accent); border-color: var(--accent); color: #fff; }
.main-nav .account-nav { width: auto; max-width: 150px; gap: 7px; margin-left: 5px; background: var(--surface); border-color: var(--border); }
.account-nav img, .account-nav > span { flex: 0 0 25px; width: 25px; height: 25px; border-radius: 50%; object-fit: cover; }
.account-nav > span { display: grid; place-items: center; background: var(--surface-3); color: #eeb2a3; font-size: 12px; }
.account-nav b { min-width: 0; overflow: hidden; font-family: inherit; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.nav-toggle { display: none; align-items: center; gap: 8px; min-height: 40px; padding: 7px 10px; background: transparent; color: var(--text); border: 1px solid var(--border); border-radius: var(--radius-sm); }
.nav-toggle svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }

/* Controls */
.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 9px 17px;
  background: var(--accent);
  color: #fff;
  border: 1px solid var(--accent);
  border-radius: var(--radius-sm);
  box-shadow: none;
  font-weight: 700;
  line-height: 1.2;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease, transform .15s ease;
}
.button:hover { background: var(--accent-hover); border-color: var(--accent-hover); box-shadow: none; transform: translateY(-1px); }
.button:active { transform: none; }
.button-secondary, .premium-quiet { background: var(--surface-2); border-color: var(--border-strong); color: var(--text); }
.button-secondary:hover, .premium-quiet:hover { background: var(--surface-hover); border-color: #596257; }
.button-small { min-height: 38px; padding: 7px 13px; }
.button-disabled { background: var(--surface-3); border-color: var(--border); color: var(--muted); cursor: not-allowed; }
:where(a, button, input, select, textarea, summary):focus-visible { outline: 2px solid var(--ring); outline-offset: 3px; }
input, select, textarea {
  background: var(--bg-raised) !important;
  color: var(--text) !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--radius-sm) !important;
}
input:hover, select:hover, textarea:hover { border-color: var(--border-strong) !important; }
input:focus, select:focus, textarea:focus { border-color: #98604f !important; }
input::placeholder, textarea::placeholder { color: var(--muted-2); }

/* Shared page structure */
.section, .premium-section { padding: 88px 0; }
.page-hero, .product-detail-hero {
  position: relative;
  overflow: hidden;
  padding: 62px 0 54px;
  background: var(--bg-raised);
  border-bottom: 1px solid var(--border);
}
.page-hero::before, .product-detail-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(90deg, #000, transparent 76%);
  pointer-events: none;
}
.page-hero::after { content: ""; position: absolute; right: 8%; top: -190px; width: 410px; height: 410px; border: 1px solid rgba(214,93,64,.12); border-radius: 50%; box-shadow: 0 0 0 62px rgba(255,255,255,.012), 0 0 0 124px rgba(255,255,255,.007); pointer-events: none; }
.page-hero .container, .product-detail-hero .container { position: relative; }
.page-hero h1, .product-detail-hero h1 { max-width: 900px; margin: 12px 0 10px; font-size: clamp(38px, 5vw, 58px); line-height: 1.06; letter-spacing: -.025em; }
.page-hero p, .product-detail-hero p { max-width: 760px; margin: 0; color: var(--muted); font-size: 17px; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 7px; color: var(--muted-2); font-size: 13px; }
.breadcrumbs a:hover { color: var(--text); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 28px; margin-bottom: 28px; }
.section-heading h2 { margin: 0 0 4px; font-size: 34px; line-height: 1.15; }
.section-heading p { margin: 0; color: var(--muted); }

/* Homepage */
.premium-home { overflow: hidden; background: var(--bg); }
.premium-hero { position: relative; min-height: 650px; overflow: hidden; background: #090b09 url("../img/background-optimized.webp") center 40% / cover no-repeat; isolation: isolate; }
.premium-hero::before { content: ""; position: absolute; z-index: -2; inset: 0; background: linear-gradient(90deg, rgba(8,10,8,.98) 0%, rgba(8,10,8,.91) 51%, rgba(8,10,8,.7) 100%); }
.premium-hero::after { content: ""; position: absolute; z-index: -1; inset: 0; background: radial-gradient(circle at 72% 44%, rgba(214,93,64,.11), transparent 30%), linear-gradient(180deg, transparent 70%, var(--bg)); }
.premium-noise, .premium-particles, .premium-beacon { display: none; }
.premium-hero-layout { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(360px, .82fr); gap: clamp(48px, 7vw, 90px); align-items: center; min-height: 650px; padding-block: 76px 88px; }
.hero-status { display: flex; align-items: center; gap: 9px; margin: 0 0 20px; color: #a2a69d; }
.hero-status span { width: 7px; height: 7px; background: var(--success); border-radius: 50%; box-shadow: 0 0 0 4px rgba(154,184,121,.1); }
.premium-hero-copy h1 { max-width: 720px; margin: 0; color: #f6f3eb; font-size: clamp(46px, 5.15vw, 68px); line-height: 1.06; letter-spacing: -.032em; text-wrap: balance; }
.premium-hero-copy h1 em { color: #e56b4e; font-style: normal; }
.hero-lead { max-width: 650px; margin: 23px 0 0; color: #b8bbb2; font-size: 17px; line-height: 1.78; }
.premium-actions { display: flex; gap: 10px; margin-top: 31px; }
.premium-primary { background: var(--accent); border-color: var(--accent); }
.hero-proof { display: grid; grid-template-columns: repeat(3, 1fr); max-width: 580px; margin-top: 38px; border-top: 1px solid rgba(255,255,255,.11); }
.hero-proof div { min-width: 0; padding: 17px 20px 0 0; }
.hero-proof div + div { padding-left: 20px; border-left: 1px solid rgba(255,255,255,.1); }
.hero-proof strong, .hero-proof span { display: block; }
.hero-proof strong { font: 700 25px/1.2 "Roboto Condensed", sans-serif; }
.hero-proof span { margin-top: 2px; color: #858b82; font-size: 11px; }
.server-console { position: relative; overflow: hidden; background: #101310; border: 1px solid #3c443a; border-radius: var(--radius); box-shadow: 0 26px 68px rgba(0,0,0,.38); }
.server-console::after { content: ""; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(255,255,255,.025), transparent 42%); pointer-events: none; }
.console-bar { display: flex; align-items: center; padding: 12px 15px; background: #191d19; border-bottom: 1px solid var(--border); font: 10px ui-monospace, monospace; }
.console-bar > span { display: flex; gap: 5px; }
.console-bar i { display: block; width: 7px; height: 7px; background: #50564f; border-radius: 50%; }
.console-bar i:first-child { background: #b85d46; }
.console-bar b { margin-left: 15px; color: #7d837b; font-weight: 400; }
.console-bar small { margin-left: auto; color: var(--success); }
.console-map { position: relative; display: grid; height: 285px; overflow: hidden; place-items: center; background-image: linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px); background-size: 32px 32px; }
.map-ring { position: absolute; border: 1px solid #384037; border-radius: 50%; }
.ring-a { width: 205px; height: 205px; }
.ring-b { width: 265px; height: 265px; border-style: dashed; opacity: .58; animation: slow-spin 28s linear infinite; }
.map-sweep { position: absolute; width: 205px; height: 205px; background: conic-gradient(transparent 0 76%, rgba(214,93,64,.2) 92%, transparent); border-radius: 50%; animation: slow-spin 9s linear infinite; }
.map-core { position: relative; z-index: 2; display: grid; width: 132px; height: 132px; place-items: center; background: #151815; border: 1px solid #59453e; border-radius: 50%; }
.map-core img { width: 96px; height: 96px; object-fit: contain; }
.map-point { position: absolute; width: 6px; height: 6px; background: #d76b50; border-radius: 50%; box-shadow: 0 0 0 5px rgba(215,107,80,.1); }
.p1 { left: 24%; top: 34%; } .p2 { right: 22%; top: 61%; } .p3 { left: 39%; bottom: 14%; }
.console-events { border-top: 1px solid var(--border); }
.console-events p { display: grid; grid-template-columns: 30px 1fr auto; gap: 10px; margin: 0; padding: 9px 15px; color: #8d938a; font: 11px ui-monospace, monospace; }
.console-events p + p { border-top: 1px solid #272c27; }
.console-events time { color: #596159; } .console-events b { color: var(--success); font-weight: 400; }
.hero-bottom-line { position: absolute; right: 0; bottom: 0; left: 0; height: 1px; background: var(--border); }
.hero-bottom-line span { display: none; }
.resource-dock { background: var(--surface); border-bottom: 1px solid var(--border); }
.resource-dock-grid { display: grid; grid-template-columns: repeat(5, 1fr); }
.resource-dock a { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 19px 16px; transition: background-color .15s ease; }
.resource-dock a + a { border-left: 1px solid var(--border); }
.resource-dock a:hover { background: var(--surface-hover); }
.dock-number { color: #60675f; font: 11px ui-monospace, monospace; }
.resource-dock strong, .resource-dock small { display: block; }
.resource-dock strong { font-size: 14px; line-height: 1.25; }
.resource-dock small { margin-top: 2px; color: var(--muted-2); font-size: 11px; }
.resource-dock a > b { color: #ca6b54; font-size: 16px; }
.premium-intro-grid, .workflow-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(54px, 8vw, 100px); align-items: center; }
.premium-section-copy h2, .workflow-copy h2 { margin: 0 0 20px; font-size: clamp(34px, 3.8vw, 48px); line-height: 1.13; letter-spacing: -.02em; }
.premium-section-copy > p:not(.section-marker) { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.85; }
.premium-text-link { display: inline-flex; gap: 9px; margin-top: 26px; color: #e47b61; font-weight: 700; }
.premium-principles { border-top: 1px solid var(--border); }
.premium-principles article { display: grid; grid-template-columns: 44px 1fr; gap: 18px; padding: 23px 3px; border-bottom: 1px solid var(--border); }
.premium-principles article > b { color: #626960; font: 12px ui-monospace, monospace; }
.premium-principles h3 { margin: 0 0 5px; font-size: 20px; }
.premium-principles p { margin: 0; color: var(--muted); }
.premium-showcase { background: var(--bg-raised); border-block: 1px solid var(--border); }
.premium-heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 30px; }
.premium-heading h2 { margin: 0; font-size: 40px; }
.premium-heading > a { color: #e27a60; }
.editorial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.editorial-card { overflow: hidden; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); transition: border-color .15s ease, transform .15s ease; }
.editorial-card:hover { border-color: #566055; transform: translateY(-2px); }
.editorial-image { position: relative; display: grid; height: 228px; place-items: center; padding: 14px; background: #0e110e; }
.editorial-image img { width: 100%; height: 100%; object-fit: contain; }
.editorial-image > span { position: absolute; top: 12px; left: 13px; color: var(--muted-2); font: 11px ui-monospace, monospace; }
.editorial-copy { padding: 19px; }
.editorial-copy small { color: var(--muted-2); }
.editorial-copy h3 { margin: 5px 0 2px; font-size: 22px; line-height: 1.25; }
.editorial-copy > p { margin: 0; color: #a97568; font-size: 13px; }
.editorial-copy footer { display: flex; align-items: center; justify-content: space-between; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--border); }
.editorial-copy footer b { color: #eb846b; font-size: 19px; } .editorial-copy footer span { color: var(--muted-2); font-size: 12px; }
.workflow-graphic { position: relative; display: grid; min-height: 420px; overflow: hidden; place-items: center; background: var(--bg-raised); border: 1px solid var(--border); border-radius: var(--radius); }
.workflow-graphic::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px); background-size: 28px 28px; }
.workflow-graphic > span { position: relative; color: #2b302a; font-size: 64px; font-weight: 700; line-height: .88; text-align: center; letter-spacing: .06em; }
.wireframe-cube { position: absolute; width: 215px; height: 215px; border: 1px solid #384038; transform: rotate(45deg); }
.wireframe-cube i { position: absolute; background: #333a33; }
.wireframe-cube i:nth-child(1), .wireframe-cube i:nth-child(2) { top: 0; bottom: 0; left: 50%; width: 1px; }
.wireframe-cube i:nth-child(2) { transform: rotate(90deg); }
.wireframe-cube i:nth-child(3) { inset: 20%; background: transparent; border: 1px solid #333a33; }
.workflow-copy ol { margin: 28px 0 0; padding: 0; list-style: none; }
.workflow-copy li { display: grid; grid-template-columns: 44px 1fr; gap: 16px; padding: 16px 0; border-top: 1px solid var(--border); }
.workflow-copy li > span { color: #d26a51; font: 12px ui-monospace, monospace; }
.workflow-copy strong { font-size: 17px; } .workflow-copy li p { margin: 2px 0 0; color: var(--muted); }
.premium-cta { position: relative; overflow: hidden; padding: 68px 0; background: var(--surface); border-top: 1px solid var(--border); }
.premium-cta-grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.02) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.02) 1px, transparent 1px); background-size: 48px 48px; }
.premium-cta-inner { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 34px; }
.premium-cta-inner p { margin: 0; color: var(--muted); } .premium-cta-inner h2 { margin: 2px 0 0; font-size: 38px; }
.premium-cta-inner > div:last-child { display: flex; gap: 10px; }

/* Catalog */
.catalog { background: var(--bg); }
.catalog-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 20px; }
.category-nav { display: flex; flex-wrap: wrap; gap: 5px; padding: 4px; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; }
.category-nav a { min-height: 38px; padding: 7px 13px; color: var(--muted); border: 1px solid transparent; border-radius: 7px; font-size: 14px; }
.category-nav a:hover { background: var(--surface-2); color: var(--text); }
.category-nav a.active { background: var(--surface-3); border-color: var(--border-strong); color: var(--text); }
.search-field { width: min(380px, 100%); }
.search-field input { width: 100%; height: 44px; padding: 8px 13px; }
.library-search { display: flex; align-items: center; gap: 9px; margin-bottom: 18px; padding: 14px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.library-search .search-field { flex: 1; width: auto; }
.sort-field select { height: 44px; padding: 8px 35px 8px 12px; }
.catalog-summary { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 18px; }
.result-summary { margin-bottom: 18px; color: var(--muted); }
.catalog-summary .result-summary { margin: 0; }
.result-summary strong { color: var(--text); }
.catalog-summary > span { color: var(--muted-2); font-size: 13px; }
.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.product-card { position: relative; overflow: hidden; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: none; transition: border-color .15s ease, transform .15s ease; }
.product-card::before { display: none; }
.product-card:hover { border-color: #556055; transform: translateY(-2px); }
.product-card[hidden] { display: none; }
.product-visual { position: relative; display: flex; height: 145px; align-items: center; justify-content: space-between; overflow: hidden; padding: 22px; background: var(--surface-2); border-bottom: 1px solid var(--border); }
.product-visual::after { content: ""; position: absolute; right: -24px; bottom: -48px; width: 130px; height: 130px; border: 1px solid rgba(255,255,255,.06); border-radius: 50%; }
.product-labels { z-index: 1; align-self: flex-start; display: flex; gap: 6px; }
.product-visual span { padding: 4px 8px; background: rgba(11,13,11,.75); border: 1px solid var(--border-strong); border-radius: var(--radius-xs); font-size: 12px; }
.product-visual svg { width: 66px; height: 66px; fill: none; stroke: #879084; stroke-width: 2; }
.product-content { padding: 18px; }
.product-title-row { display: flex; align-items: start; justify-content: space-between; gap: 13px; }
.product-title-row h3 { margin: 0; font-size: 20px; line-height: 1.28; }
.plugin-name { min-width: 0; }
.plugin-name h3 { overflow-wrap: anywhere; }
.plugin-name > span { display: block; margin-top: 4px; color: #c98270; font-size: 13px; line-height: 1.3; }
.price { flex: 0 0 auto; color: #ef846b; font-size: 18px; white-space: nowrap; }
.product-content > p { display: -webkit-box; min-height: 72px; overflow: hidden; margin: 11px 0 15px; color: var(--muted); font-size: 14px; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.tags { display: flex; flex-wrap: wrap; gap: 5px; }
.tags span { padding: 3px 7px; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-xs); color: #c6c9c1; font-size: 12px; }
.product-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 5px 10px; margin-top: 16px; padding-top: 13px; border-top: 1px solid var(--border); color: var(--muted-2); font-size: 12px; }
.detail-button, .free-plugin-action { display: flex; min-height: 40px; align-items: center; justify-content: center; margin-top: 14px; padding: 8px 13px; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-sm); color: #e78168; font-weight: 700; }
.detail-button:hover, .free-plugin-action:hover { background: var(--surface-hover); border-color: var(--border-strong); }
.imported-cover { position: relative; display: grid; min-height: 220px; overflow: hidden; place-items: center; padding: 13px; background: #0e110e; border-bottom: 1px solid var(--border); }
.imported-cover img { width: 100%; height: 200px; object-fit: contain; }
.imported-cover > span { color: var(--muted-2); font: 13px ui-monospace, monospace; letter-spacing: .12em; }
.imported-cover b { position: absolute; top: 11px; left: 11px; padding: 4px 7px; background: rgba(11,13,11,.9); border: 1px solid #644e46; border-radius: var(--radius-xs); color: #e59681; font-size: 11px; }
.free-plugin-list { overflow: hidden; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.free-plugin-row { display: grid; grid-template-columns: minmax(180px, 1.05fr) minmax(240px, 1.7fr) minmax(170px, .95fr) minmax(180px, 1fr) 78px; gap: 15px; align-items: center; min-height: 82px; padding: 12px 15px; }
.free-plugin-row + .free-plugin-row { border-top: 1px solid var(--border); }
.free-plugin-row:hover { background: var(--surface-2); }
.free-plugin-title h2 { margin: 0; font-size: 17px; line-height: 1.25; }
.free-plugin-title h2 a:hover { color: #e77e64; }
.free-plugin-title > span { display: block; overflow: hidden; margin-top: 2px; color: var(--muted-2); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.free-plugin-summary { display: -webkit-box; overflow: hidden; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.5; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.free-plugin-meta { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 4px 9px; min-width: 0; color: var(--muted-2); font-size: 11px; }
.free-plugin-meta span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.free-plugin-action { min-height: 36px; margin: 0; padding: 7px; font-size: 12px; }
.pagination { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 32px; }
.pagination a { padding: 8px 13px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); color: #e17c63; }
.pagination a:hover { background: var(--surface-2); border-color: var(--border-strong); }
.pagination span { color: var(--muted); }
.empty-state { padding: 38px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); text-align: center; color: var(--muted); }

/* Product details and long-form content */
.product-detail-hero { padding-block: 52px 62px; }
.detail-grid { display: grid; grid-template-columns: minmax(0,1fr) 330px; gap: clamp(42px, 6vw, 74px); align-items: start; margin-top: 36px; }
.detail-grid > div > .tags { margin-top: 20px; }
.attribution-line { margin-top: 18px !important; color: var(--muted) !important; font-size: 13px !important; }
.attribution-line a { color: #e57d64; }
.detail-en-title, .detail-cn-title { margin: -2px 0 14px !important; color: #c58271 !important; font-size: 18px !important; font-weight: 600; }
.purchase-card, .contact-card, .ip-checker, .profile-panel, .account-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: none;
}
.purchase-card { position: sticky; top: calc(var(--header-height) + 22px); padding: 24px; }
.detail-price { display: block; margin-bottom: 17px; color: #ef856c; font-size: 32px; }
.purchase-card dl { margin: 0 0 20px; }
.purchase-card dl > div { display: flex; justify-content: space-between; gap: 18px; padding: 10px 0; border-top: 1px solid var(--border); }
.purchase-card dt { color: var(--muted); } .purchase-card dd { margin: 0; text-align: right; }
.purchase-card .button { width: 100%; }
.detail-content { display: grid; grid-template-columns: minmax(0,1fr) 270px; gap: clamp(38px, 6vw, 70px); }
.detail-content article { min-width: 0; }
.detail-content article h2 { margin: 0 0 11px; font-size: 26px; line-height: 1.2; scroll-margin-top: 100px; }
.detail-content article h2:not(:first-child) { margin-top: 36px; }
.detail-content article p, .detail-content article li { color: var(--muted); }
.detail-content article li + li { margin-top: 5px; }
.detail-content aside { position: sticky; top: calc(var(--header-height) + 22px); height: max-content; padding: 19px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.detail-content aside h3 { margin: 0 0 8px; }
.detail-content aside a { display: block; padding: 10px 0; color: #e57d64; border-top: 1px solid var(--border); }
.cf-product-cover { margin: 0 0 30px; padding: 16px; background: var(--bg-raised); border: 1px solid var(--border); border-radius: var(--radius); text-align: center; }
.cf-product-cover img { width: 100%; max-height: 580px; object-fit: contain; }
.cf-product-cover figcaption { margin-top: 9px; color: var(--muted-2); font-size: 12px; }
.cf-gallery { display: grid; grid-template-columns: repeat(2,1fr); gap: 9px; margin-bottom: 28px; }
.cf-gallery a { overflow: hidden; background: var(--bg-raised); border: 1px solid var(--border); border-radius: var(--radius-sm); }
.cf-gallery img { width: 100%; height: 220px; object-fit: cover; transition: opacity .15s ease; }
.cf-gallery a:hover img { opacity: .86; }
.cf-richtext { color: var(--muted); }
.cf-richtext h2, .cf-richtext h3, .cf-richtext h4 { margin: 28px 0 9px; color: var(--text); }
.cf-richtext p { color: var(--muted); }
.cf-richtext img { height: auto; }
.cf-richtext pre, .config-example { max-height: 540px; overflow: auto; padding: 16px; background: var(--bg-raised); border: 1px solid var(--border); border-radius: var(--radius-sm); color: #c8cec7; font: 12px/1.65 ui-monospace, monospace; white-space: pre-wrap; }
.cf-richtext table { display: block; max-width: 100%; overflow: auto; border-collapse: collapse; }
.cf-richtext th, .cf-richtext td { padding: 8px 10px; border: 1px solid var(--border); }
.documentation-list { overflow: hidden; margin: 0 0 14px; background: var(--bg-raised); border: 1px solid var(--border); border-radius: var(--radius-sm); }
.documentation-list > div { display: grid; grid-template-columns: minmax(150px,.55fr) 1.45fr; gap: 18px; padding: 12px 15px; }
.documentation-list > div + div { border-top: 1px solid var(--border); }
.documentation-list code { overflow-wrap: anywhere; color: #e2856d; }
.documentation-list p { margin: 0 !important; }
.doc-hint { padding: 11px 13px; background: var(--surface-2); border-left: 3px solid #6d7968; color: var(--muted) !important; }
.official-description { margin: 20px 0; padding: 16px; background: var(--bg-raised); border-left: 3px solid #586157; }
.purchase-declaration { margin-top: 38px; padding: 22px; background: #241916; border: 1px solid #72463a; border-radius: var(--radius); }

/* Tools, informational pages and forms */
.tool-category-nav { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 18px; }
.tool-category-nav button { display: flex; min-height: 74px; align-items: center; gap: 13px; padding: 14px 16px; background: var(--surface); color: var(--text); border: 1px solid var(--border); border-radius: var(--radius); text-align: left; transition: background-color .15s ease, border-color .15s ease; }
.tool-category-nav button:hover { background: var(--surface-2); border-color: var(--border-strong); transform: none; box-shadow: none; }
.tool-category-nav button.active { background: var(--surface-2); border-color: #8a594b; box-shadow: inset 3px 0 var(--accent); }
.tool-category-nav button > span { display: grid; width: 34px; height: 34px; place-items: center; background: var(--bg-raised); border: 1px solid var(--border); border-radius: 7px; color: #ed836a; font-weight: 700; }
.tool-category-nav button div { display: flex; flex-direction: column; gap: 2px; }
.tool-category-nav small { color: var(--muted); }
.tool-category-panel[hidden] { display: none; }
.ip-checker { position: relative; overflow: hidden; padding: 30px; }
.ip-checker::before { content: ""; position: absolute; top: 0; right: 0; left: 0; height: 2px; background: var(--accent); }
.ip-checker h2 { margin: 0 0 7px; font-size: 30px; }
.tool-intro { margin: 0 0 25px; color: var(--muted); }
.ip-check-form label { display: block; margin-bottom: 7px; font-weight: 700; }
.ip-input-row { display: grid; grid-template-columns: 1fr auto; gap: 9px; }
.ip-input-row input { width: 100%; height: 46px; padding: 8px 13px; }
.field-hint { margin: 7px 0 0; color: var(--muted-2); font-size: 12px; }
.framework-meta { display: grid; grid-template-columns: repeat(3,1fr); gap: 9px; margin: 18px 0; }
.framework-meta span { display: flex; flex-direction: column; gap: 3px; padding: 12px 13px; background: var(--bg-raised); border: 1px solid var(--border); border-radius: var(--radius-sm); color: var(--muted); font-size: 12px; }
.framework-meta b { color: var(--text); font-size: 14px; }
.framework-download-actions.single { grid-template-columns: minmax(0,500px); justify-content: center; }
.framework-button.windows { background: #315778; border-color: #416c91; }
.framework-button.windows:hover { background: #3978ad; border-color: #65a2d5; box-shadow: none; }
.service-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.service-grid article { padding: 22px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.service-grid h3 { margin: 0 0 7px; font-size: 20px; } .service-grid p { margin: 0; color: var(--muted); }
.purchase-flow { display: grid; grid-template-columns: repeat(4,1fr); overflow: hidden; margin: 36px 0 0; padding: 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); list-style: none; }
.purchase-flow li { display: flex; gap: 11px; padding: 18px; }
.purchase-flow li + li { border-left: 1px solid var(--border); }
.purchase-flow li > span { flex: 0 0 27px; height: 27px; display: grid; place-items: center; background: var(--surface-3); border-radius: 6px; color: #e77d64; font-weight: 700; }
.purchase-flow strong { display: block; } .purchase-flow p { margin: 3px 0 0; color: var(--muted); font-size: 13px; }
.faq-section details { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.faq-section details + details { margin-top: 10px; }
.faq-section summary { min-height: 58px; padding: 16px 18px; font-size: 17px; font-weight: 700; cursor: pointer; }
.faq-section details p { margin: 0; padding: 0 18px 18px; color: var(--muted); }
.compatibility-layout { display: grid; grid-template-columns: .85fr 1.15fr; gap: 50px; align-items: start; }
.compatibility-list { overflow: hidden; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.compatibility-list article { display: grid; grid-template-columns: 145px 1fr auto; gap: 18px; align-items: center; padding: 17px 19px; }
.compatibility-list article + article { border-top: 1px solid var(--border); }
.compatibility-list span { color: var(--muted); }
.contact-card { padding: 25px; text-align: center; }
.contact-card h2 { margin: 4px 0 9px; font-size: 30px; }
.contact-card p { max-width: 620px; margin: 0 auto 22px; color: var(--muted); }
.contact-section { padding: 50px 0; background: var(--surface); border-top: 1px solid var(--border); }
.contact-inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.contact-inner h2 { margin: 0 0 4px; font-size: 29px; } .contact-inner p { max-width: 700px; margin: 0; color: var(--muted); }

/* Authentication and account */
.auth-section { min-height: calc(100vh - var(--header-height)); display: grid; place-items: center; padding: 58px 20px; background: var(--bg); }
.auth-shell { display: grid; grid-template-columns: .9fr 1.1fr; width: min(940px,100%); overflow: hidden; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
.auth-copy { position: relative; padding: 48px 40px; background: url("../img/background-optimized.webp") center/cover; }
.auth-copy::before { content: ""; position: absolute; inset: 0; background: rgba(9,11,9,.88); }
.auth-copy > * { position: relative; }
.auth-copy > span { color: #df775e; font: 11px ui-monospace,monospace; letter-spacing: .12em; }
.auth-copy h1 { margin: 12px 0 14px; font-size: 42px; line-height: 1.06; }
.auth-copy p, .auth-copy li { color: #b0b4ac; }
.auth-card { padding: 38px; }
.auth-card h2 { margin: 0; font-size: 29px; }
.auth-card > p { margin: 4px 0 22px; color: var(--muted); }
.auth-card > p a { color: #e47c63; }
.auth-card form { display: flex; flex-direction: column; }
.auth-card label { margin: 13px 0 6px; font-weight: 700; }
.auth-card input { height: 45px; padding: 8px 11px; }
.auth-card form .button { margin-top: 22px; }
.security-warning { margin: 18px 0 0 !important; padding-top: 15px; border-top: 1px solid var(--border); color: #c89183 !important; font-size: 12px; }
.account-heading { display: flex; align-items: center; gap: 22px; }
.profile-avatar { display: grid; overflow: hidden; place-items: center; background: var(--surface-3); border: 1px solid var(--border-strong); border-radius: 50%; color: #e68b73; font-weight: 700; }
.profile-avatar.large { flex: 0 0 88px; width: 88px; height: 88px; font-size: 35px; }
.profile-avatar img { width: 100%; height: 100%; object-fit: cover; }
.profile-layout { display: grid; grid-template-columns: 200px minmax(0,1fr); gap: 20px; align-items: start; }
.profile-message, .profile-layout > .form-errors { grid-column: 1/-1; }
.profile-tabs { position: sticky; top: calc(var(--header-height) + 22px); display: flex; flex-direction: column; padding: 8px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.profile-tabs button { width: 100%; padding: 10px 11px; background: transparent; color: var(--muted); border: 0; border-left: 2px solid transparent; text-align: left; }
.profile-tabs button:hover, .profile-tabs button.active { background: var(--surface-2); color: var(--text); }
.profile-tabs button.active { border-left-color: var(--accent); }
.profile-panel { grid-column: 2; padding: 24px; }
.profile-panel[hidden] { display: none; }
.profile-panel > header { margin-bottom: 20px; } .profile-panel h2 { margin: 0; } .profile-panel header p { margin: 3px 0 0; color: var(--muted); }
.wallet-card { display: flex; align-items: center; justify-content: space-between; gap: 22px; margin-bottom: 20px; padding: 22px 24px; background: var(--surface-2); border: 1px solid var(--border-strong); border-radius: var(--radius); box-shadow: none; }
.wallet-card strong { display: block; margin: 2px 0; color: #ef866d; font: 700 31px/1.1 "Roboto Condensed",sans-serif; }
.purchase-library, .wallet-history { display: grid; gap: 9px; }
.purchase-library article { display: grid; grid-template-columns: 1fr auto auto; gap: 20px; align-items: center; padding: 15px; background: var(--bg-raised); border: 1px solid var(--border); border-radius: var(--radius-sm); }
.wallet-history article { padding: 15px 16px; background: var(--bg-raised); border: 1px solid var(--border); border-radius: var(--radius-sm); }
.profile-form { display: flex; max-width: 620px; flex-direction: column; gap: 13px; }
.profile-form label { display: flex; flex-direction: column; gap: 5px; font-weight: 700; }
.profile-form input { height: 45px; padding: 8px 11px; }
.avatar-options { display: grid; grid-template-columns: repeat(4,1fr); gap: 9px; }
.avatar-options label { padding: 7px; background: var(--bg-raised); border: 1px solid var(--border); border-radius: var(--radius-sm); }
.avatar-options label:has(input:checked) { background: var(--surface-3); border-color: #955c4c; }
.recharge-dialog { background: rgba(5,7,5,.82); backdrop-filter: blur(4px); }
.recharge-dialog > div { padding: 30px; background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }

/* Admin */
.admin-main { padding: 30px 0 68px; background: var(--bg); }
.admin-shell { display: grid; grid-template-columns: 210px minmax(0,1fr); gap: 24px; align-items: start; }
.admin-sidebar { position: sticky; top: calc(var(--header-height) + 22px); padding: 18px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.admin-sidebar h2 { margin: 0; font-size: 21px; } .admin-sidebar > p { margin: 3px 0 16px; color: var(--muted); }
.admin-sidebar nav { display: flex; flex-direction: column; }
.admin-sidebar nav a { padding: 9px 11px; border-left: 2px solid transparent; color: var(--muted); }
.admin-sidebar nav a:hover, .admin-sidebar nav a.active { background: var(--surface-2); border-left-color: var(--accent); color: var(--text); }
.admin-content { min-width: 0; }
.admin-content > header { margin-bottom: 20px; } .admin-content h1 { margin: 0; font-size: 34px; }
.admin-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; }
.admin-stats article { padding: 20px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.admin-stats strong { color: #e27a61; font-size: 30px; }
.admin-editor { margin-bottom: 18px; padding: 20px; background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--radius); }
.admin-table-wrap { overflow: auto; border: 1px solid var(--border); border-radius: var(--radius); }
.admin-table { width: 100%; border-collapse: collapse; background: var(--surface); }
.admin-table th, .admin-table td { padding: 12px 13px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: middle; }
.admin-table th { background: var(--surface-2); color: var(--text-soft); font-size: 12px; }
.admin-table tr:hover td { background: rgba(255,255,255,.012); }
.import-steps { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; margin-bottom: 18px; }
.import-steps article { display: flex; gap: 11px; padding: 15px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); }

/* Footer */
.site-footer { padding: 50px 0 0; background: #090b09; color: var(--muted-2); border-top: 1px solid var(--border); font-size: 13px; }
.footer-main { display: grid; grid-template-columns: 1fr auto; gap: 70px; padding-bottom: 40px; }
.footer-brand p { max-width: 360px; margin: 18px 0 0; color: var(--muted-2); }
.footer-links { display: grid; grid-template-columns: repeat(2,145px); gap: 32px; }
.footer-links div { display: flex; flex-direction: column; gap: 7px; }
.footer-links strong { margin-bottom: 4px; color: var(--text-soft); }
.footer-links a:hover { color: #e17a61; }
.footer-inner { display: flex; justify-content: space-between; gap: 20px; padding-block: 18px 22px; border-top: 1px solid #242924; }
.mobile-bottom-nav { display: none; }

/* Motion and performance */
.reveal-ready .reveal { opacity: 0; transform: translateY(12px); transition: opacity .45s ease, transform .45s ease; }
.reveal-ready .reveal.is-visible { opacity: 1; transform: none; }
@keyframes slow-spin { to { transform: rotate(360deg); } }
@supports (content-visibility: auto) {
  .premium-intro, .premium-showcase, .premium-workflow, .catalog .product-grid, .catalog .free-plugin-list { content-visibility: auto; contain-intrinsic-size: 1px 700px; }
}

@media (max-width: 1100px) {
  .header-inner { gap: 16px; }
  .main-nav > a, .main-nav > a.button { padding-inline: 7px !important; font-size: 12px !important; }
  .free-plugin-row { grid-template-columns: minmax(170px,1fr) minmax(230px,1.6fr) minmax(170px,1fr) 78px; }
  .free-plugin-tags { display: none; }
}

@media (max-width: 960px) {
  :root { --header-height: 64px; }
  .nav-toggle { display: inline-flex; margin-left: auto; }
  .main-nav { position: fixed; z-index: 110; top: var(--header-height); right: 0; left: 0; display: none; max-height: calc(100dvh - var(--header-height)); overflow: auto; flex-direction: column; align-items: stretch; gap: 2px; padding: 12px 20px 18px; background: #0d100d; border-bottom: 1px solid var(--border); box-shadow: 0 18px 36px rgba(0,0,0,.32); }
  .main-nav.open { display: flex; }
  .main-nav > a, .main-nav > a.button, .main-nav .account-nav { width: 100%; max-width: none; min-height: 44px; justify-content: flex-start; padding-inline: 12px !important; font-size: 14px !important; }
  .main-nav > a.button, .main-nav .account-nav { margin-left: 0; }
  body.nav-open { overflow: hidden; }
  .premium-hero-layout { grid-template-columns: 1fr; gap: 42px; }
  .premium-hero { min-height: auto; }
  .server-console { max-width: 640px; }
  .resource-dock-grid { grid-template-columns: repeat(5,minmax(150px,1fr)); overflow-x: auto; scrollbar-width: thin; }
  .premium-intro-grid, .workflow-grid { grid-template-columns: 1fr; gap: 45px; }
  .workflow-graphic { min-height: 330px; }
  .product-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .detail-grid { grid-template-columns: minmax(0,1fr) 290px; gap: 34px; }
  .detail-content { grid-template-columns: minmax(0,1fr) 235px; gap: 32px; }
  .compatibility-layout { grid-template-columns: 1fr; gap: 28px; }
  .purchase-flow { grid-template-columns: repeat(2,1fr); }
  .purchase-flow li:nth-child(3) { border-top: 1px solid var(--border); border-left: 0; }
  .purchase-flow li:nth-child(4) { border-top: 1px solid var(--border); }
  .footer-main { grid-template-columns: 1fr; gap: 34px; }
}

@media (max-width: 720px) {
  body { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
  body::before { display: none; }
  .container, .narrow { width: min(100% - 28px, var(--content)); }
  .brand-mark { width: 36px; height: 36px; }
  .brand-mark img { width: 31px; height: 31px; }
  .brand b { font-size: 17px; } .brand small { display: none; }
  .main-nav { padding-inline: 14px; }
  .section, .premium-section { padding: 62px 0; }
  .page-hero { padding: 42px 0 38px; }
  .page-hero::after { opacity: .45; }
  .page-hero h1, .product-detail-hero h1 { font-size: clamp(34px, 10vw, 44px); }
  .page-hero p, .product-detail-hero p { font-size: 15px; }
  .premium-hero-layout { padding-block: 54px 64px; }
  .premium-hero-copy h1 { font-size: clamp(38px, 11.8vw, 51px); line-height: 1.08; letter-spacing: -.025em; }
  .hero-lead { font-size: 15px; }
  .premium-actions { flex-direction: column; }
  .premium-actions .button { width: 100%; }
  .server-console { display: none; }
  .hero-proof div { padding-right: 8px; }
  .hero-proof div + div { padding-left: 10px; }
  .hero-proof strong { font-size: 21px; }
  .resource-dock .container { width: 100%; }
  .resource-dock-grid { grid-template-columns: repeat(5,150px); }
  .premium-section-copy h2, .workflow-copy h2 { font-size: clamp(32px, 9vw, 39px); }
  .premium-heading { align-items: flex-start; }
  .premium-heading h2 { font-size: 35px; }
  .editorial-grid { grid-template-columns: 1fr; }
  .editorial-image { height: 240px; }
  .workflow-graphic { min-height: 270px; }
  .workflow-graphic > span { font-size: 50px; }
  .wireframe-cube { width: 175px; height: 175px; }
  .premium-cta-inner { align-items: flex-start; flex-direction: column; }
  .premium-cta-inner h2 { font-size: 31px; }
  .premium-cta-inner > div:last-child { width: 100%; flex-direction: column; }
  .premium-cta-inner .button { width: 100%; }
  .catalog-toolbar { align-items: stretch; flex-direction: column; }
  .category-nav { flex-wrap: nowrap; overflow-x: auto; margin-inline: -14px; padding-inline: 14px; background: transparent; border-inline: 0; border-radius: 0; scrollbar-width: none; }
  .category-nav::-webkit-scrollbar { display: none; }
  .category-nav a { flex: 0 0 auto; min-height: 42px; padding-inline: 15px; background: var(--surface); border-color: var(--border); }
  .search-field { width: 100%; }
  .library-search { align-items: stretch; flex-direction: column; padding: 12px; }
  .sort-field, .sort-field select, .library-search .button { width: 100%; }
  .catalog-summary { align-items: flex-start; flex-direction: column; gap: 3px; }
  .product-grid { grid-template-columns: 1fr; }
  .product-content > p { min-height: auto; }
  .free-plugin-row { grid-template-columns: minmax(0,1fr) auto; gap: 8px 12px; min-height: 0; padding: 13px; }
  .free-plugin-title { grid-column: 1; }
  .free-plugin-summary { grid-column: 1/-1; grid-row: 2; }
  .free-plugin-meta { grid-column: 1/-1; grid-row: 3; grid-template-columns: repeat(4,max-content); gap: 5px 11px; overflow: hidden; }
  .free-plugin-action { grid-column: 2; grid-row: 1; }
  .detail-grid, .detail-content { grid-template-columns: 1fr; gap: 26px; }
  .product-detail-hero { padding: 38px 0 44px; }
  .detail-grid { margin-top: 26px; }
  .purchase-card, .detail-content aside { position: static; }
  .cf-gallery { grid-template-columns: 1fr; }
  .cf-gallery img { height: auto; }
  .documentation-list > div { grid-template-columns: 1fr; gap: 4px; }
  .tool-category-nav, .framework-meta, .service-grid { grid-template-columns: 1fr; }
  .ip-checker { padding: 21px; }
  .ip-input-row { grid-template-columns: 1fr; }
  .ip-input-row .button { width: 100%; }
  .purchase-flow { grid-template-columns: 1fr; }
  .purchase-flow li + li, .purchase-flow li:nth-child(3), .purchase-flow li:nth-child(4) { border-top: 1px solid var(--border); border-left: 0; }
  .compatibility-list article { grid-template-columns: 1fr auto; gap: 3px 11px; padding: 15px; }
  .compatibility-list article span { grid-column: 1/-1; }
  .contact-inner, .footer-inner { align-items: flex-start; flex-direction: column; }
  .contact-inner .button { width: 100%; }
  .auth-section { padding: 26px 14px; }
  .auth-shell { grid-template-columns: 1fr; }
  .auth-copy { display: none; }
  .auth-card { padding: 25px 21px; }
  .profile-layout, .admin-shell { grid-template-columns: 1fr; }
  .profile-tabs, .admin-sidebar { position: static; }
  .profile-tabs { display: grid; grid-template-columns: repeat(2,1fr); }
  .profile-tabs button { border-bottom: 2px solid transparent; border-left: 0; }
  .profile-tabs button.active { border-bottom-color: var(--accent); }
  .profile-panel { grid-column: 1; }
  .purchase-library article { grid-template-columns: 1fr; gap: 8px; }
  .wallet-card { align-items: stretch; flex-direction: column; }
  .wallet-card .button { width: 100%; }
  .admin-sidebar nav { display: grid; grid-template-columns: repeat(2,1fr); }
  .admin-stats { grid-template-columns: repeat(2,1fr); }
  .import-steps { grid-template-columns: 1fr; }
  .footer-links { grid-template-columns: repeat(2,1fr); width: 100%; }
  .mobile-bottom-nav { position: fixed; z-index: 90; right: 0; bottom: 0; left: 0; display: grid; height: calc(64px + env(safe-area-inset-bottom)); grid-template-columns: repeat(4,1fr); padding-bottom: env(safe-area-inset-bottom); background: rgba(11,13,11,.96); border-top: 1px solid var(--border); backdrop-filter: blur(12px); }
  .mobile-bottom-nav a { display: flex; min-width: 0; align-items: center; justify-content: center; flex-direction: column; gap: 2px; color: var(--muted); font-size: 11px; }
  .mobile-bottom-nav a.active { color: #e98168; }
  .mobile-bottom-nav a:active { background: var(--surface-2); }
  .mobile-bottom-nav svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
}

@media (max-width: 420px) {
  .premium-hero-copy h1 { font-size: 39px; }
  .hero-proof { grid-template-columns: 1fr; }
  .hero-proof div { display: flex; align-items: baseline; gap: 8px; padding: 10px 0 0 !important; border-left: 0 !important; }
  .premium-heading { flex-direction: column; gap: 10px; }
  .free-plugin-meta { grid-template-columns: repeat(2,max-content); }
  .avatar-options { grid-template-columns: repeat(2,1fr); }
  .admin-stats { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal-ready .reveal { opacity: 1; transform: none; }
}

/* Secondary component states */
.admin-notice, .form-errors { margin-bottom: 16px; padding: 12px 14px; border: 1px solid; border-radius: var(--radius-sm); }
.admin-notice.success { background: #192519; border-color: #496a47; color: #b7d9aa; }
.admin-notice.error, .form-errors, .purchase-error { background: #2d1c18; border-color: #79463a; color: #ef9b86; }
.admin-search { display: flex; gap: 9px; margin-bottom: 16px; }
.admin-search input { flex: 1; height: 44px; padding: 8px 11px; }
.admin-editor > label:not(.check-label) { display: flex; flex-direction: column; gap: 5px; margin-bottom: 13px; font-weight: 700; }
.admin-editor input[type=text], .admin-editor input:not([type]), .admin-editor textarea { width: 100%; padding: 9px 11px; }
.admin-editor textarea { resize: vertical; }
.check-label { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; }
.import-form { display: flex; align-items: end; gap: 12px; }
.import-form label { flex: 1; margin: 0 !important; }
.review-form { display: grid; grid-template-columns: 145px minmax(180px,1fr) auto; gap: 7px; }
.review-form input, .review-form select { min-width: 0; padding: 7px; }
.grant-row td { padding-top: 5px !important; background: var(--bg-raised); }
.grant-form { display: flex; align-items: center; justify-content: flex-end; gap: 9px; }
.license-legend { display: flex; flex-wrap: wrap; gap: 6px; margin: 16px 0 9px; }
.license-legend span { padding: 3px 7px; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-xs); color: var(--muted); font-size: 11px; }
.source-meta { display: flex; justify-content: space-between; gap: 9px; margin-top: 8px; color: var(--muted-2); font-size: 11px; }
.featured-label { background: #723426 !important; border-color: #a34d39 !important; color: #fff; }
.balance-summary { display: flex; align-items: center; justify-content: space-between; margin: 0 0 11px; padding: 11px 13px; background: var(--bg-raised); border: 1px solid var(--border); border-radius: var(--radius-sm); }
.balance-summary span { color: var(--muted); font-size: 12px; }
.balance-summary strong { color: var(--text); }
.balance-purchase-form .button { width: 100%; }
.recharge-link { display: block; margin-top: 11px; color: #e78067; text-align: center; }
.login-required-note { margin: 9px 0 0 !important; color: var(--muted-2) !important; font-size: 12px !important; text-align: center; }
.dialog-close { position: absolute; top: 10px; right: 12px; width: 40px; height: 40px; padding: 0; background: transparent; color: var(--text-soft); border: 0; border-radius: var(--radius-sm); font-size: 27px; }
.recharge-dialog > div { position: relative; }
.profile-empty { padding: 28px; background: var(--bg-raised); border: 1px dashed var(--border-strong); border-radius: var(--radius-sm); text-align: center; }
.profile-empty p { color: var(--muted); }
.download-history { margin: 0 0 18px; padding: 0; list-style: none; }
.download-history li { display: flex; justify-content: space-between; gap: 14px; padding: 9px 0; border-bottom: 1px solid var(--border); }
.download-history span { color: var(--muted); }
.avatar-picker { margin: 3px 0; padding: 0; border: 0; }
.avatar-picker legend { margin-bottom: 9px; font-weight: 700; }
.avatar-options input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.avatar-options img { width: 72px; height: 72px; border: 2px solid transparent; border-radius: var(--radius-sm); object-fit: cover; }
.avatar-options label { position: relative; display: flex; align-items: center; flex-direction: column; gap: 5px; color: var(--muted); font-size: 11px; cursor: pointer; }
.avatar-options input:checked + img { border-color: var(--accent); }
.logout-form { margin-top: 25px; padding-top: 18px; border-top: 1px solid var(--border); }
.input-help { margin-top: 5px; color: var(--muted-2); font-size: 11px; }
.ip-result { display: flex; flex-direction: column; gap: 3px; margin-top: 21px; padding: 16px 18px; border: 1px solid; border-radius: var(--radius-sm); }
.ip-result strong { font-size: 18px; }
.ip-result span { color: var(--text-soft); }
.ip-result.loading { background: var(--surface-2); border-color: var(--border-strong); }
.ip-result.clear { background: #192519; border-color: #496a47; }
.ip-result.clear strong { color: #b7d9aa; }
.ip-result.banned, .ip-result.error { background: #2d1c18; border-color: #79463a; }
.ip-result.banned strong, .ip-result.error strong { color: #ef9b86; }
.official-source { display: flex; justify-content: space-between; gap: 18px; margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--border); color: var(--muted); font-size: 13px; }
.official-source a { color: #e47c63; }
.tool-notice { margin-top: 14px; padding: 16px 18px; background: var(--bg-raised); border: 1px solid var(--border); border-radius: var(--radius-sm); }
.tool-notice p { margin: 3px 0 0; color: var(--muted); }
.detail-tag-list { display: flex; flex-wrap: wrap; gap: 7px; margin: 0 0 25px; }
.detail-tag-list span { padding: 4px 8px; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-xs); color: var(--text-soft); }
.license-notice { margin-top: 25px; padding: 16px; background: var(--bg-raised); border: 1px solid var(--border); border-radius: var(--radius-sm); }
.cf-videos { display: grid; grid-template-columns: repeat(2,1fr); gap: 10px; }
.cf-videos iframe { width: 100%; aspect-ratio: 16/9; border: 0; border-radius: var(--radius-sm); }
@media (max-width:720px) {
  .admin-search, .import-form, .grant-form { align-items: stretch; flex-direction: column; }
  .review-form { grid-template-columns: 1fr; }
  .cf-videos { grid-template-columns: 1fr; }
  .official-source { align-items: flex-start; flex-direction: column; gap: 3px; }
}
@media (max-width:720px) {
  .premium-hero { background-image: url("../img/background-mobile.webp"); }
}
/* Final mobile legibility pass */
@media (max-width:720px) {
  .site-header, .mobile-bottom-nav { background: #0b0d0b; }
  .resource-dock-grid { grid-template-columns: repeat(5,168px); }
  .resource-dock small { color: #8d938a; white-space: nowrap; }
  .resource-dock strong { font-size: 15px; }
  .hero-proof span, .console-events p, .footer-brand p, .footer-links a { color: #8f958c; }
  .mobile-bottom-nav { box-shadow: 0 -8px 24px rgba(0,0,0,.3); }
}

/* Admin user and entitlement management */
.admin-user-list { display: grid; gap: 12px; }
.admin-user-card { overflow: hidden; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.admin-user-card > header { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 16px 18px; border-bottom: 1px solid var(--border); }
.admin-user-card > header div { min-width: 0; }
.admin-user-card > header strong, .admin-user-card > header small { display: block; }
.admin-user-card > header strong { font-size: 18px; }
.admin-user-card > header small { overflow-wrap: anywhere; color: var(--muted); }
.admin-user-card > header > span { flex: none; color: #e27a61; font-weight: 700; }
.admin-user-settings, .balance-admin-form { display: grid; grid-template-columns: minmax(120px,.7fr) minmax(120px,.7fr) minmax(170px,1fr) auto; gap: 12px; align-items: end; padding: 15px 18px; }
.balance-admin-form { grid-template-columns: minmax(180px,.7fr) minmax(220px,1fr) auto; padding-top: 0; }
.admin-user-settings label, .balance-admin-form label { display: grid; gap: 5px; color: var(--text-soft); font-size: 12px; font-weight: 700; }
.admin-user-settings select, .balance-admin-form input { width: 100%; }
.admin-user-dates { display: grid; gap: 4px; padding-bottom: 7px; color: var(--muted); }
.admin-empty { padding: 28px; color: var(--muted); text-align: center; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.grant-manager-form { display: grid; grid-template-columns: minmax(180px,.7fr) minmax(260px,1.3fr) minmax(200px,1fr) auto; gap: 14px; align-items: end; }
.grant-manager-form > label { margin: 0 !important; }
.grant-manager-form select, .grant-manager-form input { width: 100%; }
.admin-section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin: 28px 0 12px; }
.admin-section-heading h2, .admin-section-heading p { margin: 0; }
.admin-section-heading p, .admin-section-heading > span { color: var(--muted); }
.admin-section-heading > span { flex: none; font-size: 13px; }
.admin-table td form { margin: 0; }
@media (max-width:1100px) {
  .admin-user-settings { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .balance-admin-form, .grant-manager-form { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width:720px) {
  .admin-user-card > header, .admin-section-heading { align-items: flex-start; flex-direction: column; }
  .admin-user-settings, .balance-admin-form, .grant-manager-form { grid-template-columns: 1fr; }
  .admin-user-settings .button, .balance-admin-form .button, .grant-manager-form .button { width: 100%; }
}
.admin-table td strong, .admin-table td small { display: block; }
.admin-table td small { margin-top: 3px; color: var(--muted); overflow-wrap: anywhere; }

/* Account resource library and admin record views */
.purchase-resource strong, .purchase-resource span, .purchase-meta b, .purchase-meta small { display: block; }
.purchase-resource strong { overflow-wrap: anywhere; }
.purchase-resource span, .purchase-meta small { margin-top: 3px; color: var(--muted); font-size: 12px; }
.purchase-meta { min-width: 88px; text-align: right; }
.purchase-actions { display: flex; gap: 8px; align-items: center; justify-content: flex-end; }
.purchase-actions form { margin: 0; }
.download-history li > div { min-width: 0; }
.download-history strong, .download-history small { display: block; overflow-wrap: anywhere; }
.download-history small { margin-top: 3px; color: var(--muted); }
.admin-user-summary { display: flex; gap: 16px; align-items: center; }
.admin-user-summary span { color: #e27a61; font-weight: 700; }
.admin-user-summary a { font-size: 13px; }
.admin-filter-bar select { min-width: 130px; }
@media (max-width:720px) {
  .purchase-meta { text-align: left; }
  .purchase-actions { justify-content: stretch; flex-wrap: wrap; }
  .purchase-actions .button { width: 100%; }
  .admin-user-summary { align-items: flex-start; flex-direction: column; gap: 4px; }
  .admin-filter-bar select { width: 100%; }
  .download-history li { align-items: flex-start; flex-direction: column; }
}

/* Container query support for responsive cards */
@supports (container-type: inline-size) {
  .product-card {
    container-type: inline-size;
    container-name: card;
  }
  
  @container card (max-width: 300px) {
    .product-content p {
      -webkit-line-clamp: 2;
    }
  }
}

/* Improved focus styles for accessibility */
*:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 2px;
}

/* Smooth scroll behavior */
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

/* Print styles */
@media print {
  .site-header, .mobile-bottom-nav, .premium-particles, .premium-beacon {
    display: none !important;
  }
  
  body {
    background: white !important;
    color: black !important;
  }
  
  a {
    color: #333 !important;
    text-decoration: underline !important;
  }
}

/* ==================== Announcement Banner ==================== */
.announcement-banner {
  background: var(--accent-soft);
  border-bottom: 1px solid var(--border-strong);
  padding: 8px 0;
  font-size: 13px;
  color: var(--text-soft);
  position: relative;
  z-index: 99;
}
.announcement-banner[data-level="warning"] {
  background: #3a2a1b;
  border-color: #6b4e30;
}
.announcement-banner[data-level="error"] {
  background: #3a1a1a;
  border-color: #6b2a2a;
}
.announcement-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.announcement-link {
  color: var(--ring);
  text-decoration: underline;
}
.announcement-link:hover {
  color: var(--accent-hover);
}
.announcement-text {
  flex: 1;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.announcement-dismiss {
  background: none;
  border: none;
  color: var(--muted-2);
  font-size: 18px;
  cursor: pointer;
  padding: 4px 8px;
  line-height: 1;
}
.announcement-dismiss:hover {
  color: var(--text);
}

/* ==================== Global Search Bar ==================== */
.global-search-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  margin-right: 16px;
  max-width: 320px;
  flex: 1;
}
.global-search-bar input[type="search"] {
  flex: 1;
  min-width: 0;
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  background: var(--surface-2);
  color: var(--text);
  font-size: 13px;
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.global-search-bar input[type="search"]:focus {
  border-color: var(--ring);
  box-shadow: 0 0 0 2px rgba(242,139,112,.15);
}
.global-search-bar button {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  padding: 6px 8px;
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color .2s ease, border-color .2s ease;
}
.global-search-bar button:hover {
  color: var(--ring);
  border-color: var(--border-strong);
}

/* ==================== Floating Customer Service Button ==================== */
.cs-fab {
  position: fixed;
  bottom: 80px;
  right: 20px;
  z-index: 200;
}
#cs-fab-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: none;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(214,93,64,.4);
  transition: transform .2s ease, box-shadow .2s ease;
  position: relative;
}
#cs-fab-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 24px rgba(214,93,64,.5);
}
.cs-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 18px;
  height: 18px;
  background: #e48770;
  color: #fff;
  border-radius: 50%;
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--bg);
}
.cs-dropdown {
  position: absolute;
  bottom: 62px;
  right: 0;
  width: 240px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
}
.cs-dropdown[aria-expanded="true"] {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.cs-card {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow-md);
}
.cs-card h4 {
  margin: 0 0 8px;
  font-size: 14px;
  color: var(--text);
}
.cs-card p {
  margin: 4px 0;
  font-size: 13px;
  color: var(--text-soft);
}
.cs-copy-btn {
  margin-top: 8px;
  width: 100%;
  padding: 8px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius-xs);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background .2s ease;
}
.cs-copy-btn:hover {
  background: var(--accent-hover);
}
.cs-hint {
  font-size: 11px !important;
  color: var(--muted-2) !important;
  margin-top: 6px !important;
}

/* Mobile responsive */
@media (max-width: 960px) {
  .global-search-bar {
    display: none;
  }
  .cs-fab {
    bottom: 70px;
    right: 16px;
  }
}


