:root {
  color-scheme: light;
  --ink: #101821;
  --muted: #5d6f80;
  --line: #cddbe6;
  --paper: #ffffff;
  --soft: #f2f7fa;
  --blue: #0d83c5;
  --green: #8bd63d;
  --gold: #a97711;
  --red: #b42318;
  --dark: #07111a;
  --cyan: #66d8ff;
  --shadow: 0 20px 60px rgba(5, 20, 32, .18);
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: #f3f7fa;
}
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 74px;
  padding: 8px 16px;
  overflow: visible;
  background: linear-gradient(90deg, rgba(4, 11, 18, .99), rgba(8, 28, 44, .98) 52%, rgba(4, 11, 18, .99));
  border-bottom: 1px solid rgba(102,216,255,.22);
  box-shadow: 0 14px 38px rgba(0,0,0,.22);
  backdrop-filter: blur(18px);
}
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,0));
}
.brand {
  flex: 0 0 205px;
  display: flex;
  align-items: center;
  color: #fff;
}
img.brand-logo {
  display: block;
  width: 200px !important;
  max-width: 200px;
  height: 48px !important;
  object-fit: contain;
  object-position: left center;
  border: 0;
  box-shadow: none;
  background: transparent !important;
  flex: 0 0 auto;
}
.brand strong, .brand em { display: block; line-height: 1.05; }
.brand em { color: rgba(190,230,250,.82); font-style: normal; font-size: 13px; }
.nav { flex: 1 1 auto; min-width: 0; display: flex; justify-content: flex-start; gap: 8px; overflow: visible; scrollbar-width: none; padding-left: 0; }
.menu-toggle {
  display: none;
  align-items: center;
  gap: 5px;
  min-height: 38px;
  border: 1px solid rgba(169,219,242,.28);
  border-radius: 7px;
  background: rgba(255,255,255,.08);
  color: #f4faff;
  padding: 0 10px;
  font-weight: 800;
}
.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 99px;
}
.menu-toggle b { font-size: 13px; }
.nav a, .icon-link, .button, .upload-form button, .inline-controls button, .bulk-bar button, .admin-filter button {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  border: 1px solid var(--line);
  background: #fff;
  padding: 0 14px;
  color: var(--ink);
  white-space: nowrap;
}
.site-header .nav a, .site-header .icon-link {
  min-height: 36px;
  border-color: rgba(169,219,242,.22);
  background: rgba(255,255,255,.08);
  color: rgba(244,250,255,.94);
  font-weight: 700;
}
.site-header .nav a:hover, .site-header .icon-link:hover {
  background: rgba(102,216,255,.16);
  border-color: rgba(102,216,255,.48);
}
.nav a:hover, .icon-link:hover, .button:hover { border-color: #9fb3c8; }
.nav-dropdown {
  position: relative;
  flex: 0 0 auto;
}
.nav-dropdown summary {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid rgba(169,219,242,.22);
  border-radius: 7px;
  background: rgba(255,255,255,.08);
  padding: 0 14px;
  color: rgba(244,250,255,.94);
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  list-style: none;
}
.nav-dropdown summary::-webkit-details-marker { display: none; }
.nav-dropdown summary::after { content: "v"; color: var(--cyan); font-size: 11px; }
.nav-dropdown:hover summary,
.nav-dropdown[open] summary {
  background: rgba(102,216,255,.16);
  border-color: rgba(102,216,255,.48);
}
.nav-submenu {
  position: absolute;
  top: calc(100% + 7px);
  left: 0;
  z-index: 60;
  width: 180px;
  display: grid;
  gap: 6px;
  padding: 8px;
  border: 1px solid rgba(102,216,255,.3);
  border-radius: 7px;
  background: rgba(4,14,22,.98);
  box-shadow: 0 18px 44px rgba(0,0,0,.34);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-5px);
  transition: opacity .16s ease, transform .16s ease, visibility .16s ease;
}
.nav-dropdown:hover .nav-submenu,
.nav-dropdown[open] .nav-submenu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}
.site-header .nav-submenu a {
  width: 100%;
  justify-content: flex-start;
  background: rgba(255,255,255,.06);
}
.header-actions { flex: 0 0 auto; display: flex; gap: 8px; }
.icon-link:first-child, .button.primary, .upload-form button {
  background: linear-gradient(135deg, var(--blue), #0b5f93);
  border-color: var(--blue);
  color: #fff;
}
.site-header .icon-link:first-child {
  background: linear-gradient(135deg, #8bd63d, #0d83c5);
  border-color: rgba(255,255,255,.2);
  color: #061018;
  font-weight: 900;
}
.ghost { background: var(--soft); }
.admin-tabs {
  position: sticky;
  top: 74px;
  z-index: 12;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 10px 24px;
  background: rgba(243,247,250,.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}
.admin-tabs a {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  padding: 0 12px;
  font-weight: 800;
  white-space: nowrap;
}

main { width: 100%; margin: 0; }
.hero {
  min-height: 620px;
  display: grid;
  grid-template-columns: minmax(0, 720px) minmax(280px, 360px);
  justify-content: center;
  gap: 46px;
  align-items: center;
  padding: 78px 24px 72px;
  color: #fff;
  background:
    radial-gradient(circle at 72% 32%, rgba(139,214,61,.24), transparent 250px),
    radial-gradient(circle at 24% 20%, rgba(102,216,255,.18), transparent 330px),
    linear-gradient(90deg, rgba(3,10,17,.92), rgba(7,21,32,.86) 55%, rgba(5,13,20,.94)),
    url("/assets/img/caxess-logo.png") center / cover;
  border-bottom: 1px solid rgba(13,131,197,.22);
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 140px;
  background: linear-gradient(180deg, transparent, #f3f7fa);
  pointer-events: none;
}
.hero-copy h1, .form-shell h1, .reader-meta h1, .admin-head h1 {
  margin: 0;
  font-size: clamp(44px, 6vw, 82px);
  line-height: .94;
  letter-spacing: 0;
  max-width: 780px;
}
.hero-copy h1 {
  background: linear-gradient(90deg, #ffffff, #bfeeff 60%, #9dea4c);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 24px 60px rgba(0,0,0,.26);
}
.hero-copy p:not(.eyebrow), .form-shell p, .reader-meta p, .admin-head p {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.6;
  max-width: 720px;
}
.hero-copy p:not(.eyebrow) { color: rgba(235,247,255,.82); font-size: 20px; }
.eyebrow {
  margin: 0 0 12px;
  color: var(--green);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: .08em;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.button { height: 44px; font-weight: 700; }
.hero .button {
  border-color: rgba(255,255,255,.24);
  background: rgba(255,255,255,.09);
  color: #fff;
}
.hero .button.primary {
  background: linear-gradient(135deg, #9ce94d, #1ba4e8);
  border: 0;
  color: #05111a;
  box-shadow: 0 18px 42px rgba(13,131,197,.32);
}
.hero-panel {
  min-height: 330px;
  padding: 30px;
  border: 1px solid rgba(144,216,249,.26);
  background:
    linear-gradient(180deg, rgba(4,14,22,.42), rgba(2,8,14,.9)),
    url("/assets/img/caxess-logo.png") center / cover;
  box-shadow: var(--shadow);
  border-radius: 8px;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.hero-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent, rgba(102,216,255,.18));
  pointer-events: none;
}
.hero-panel span, .hero-panel small { color: rgba(255,255,255,.78); display: block; }
.hero-panel strong { display: block; font-size: 112px; line-height: 1; margin: 42px 0 8px; }
.hero-panel-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 36px; }
.hero-panel-tags b {
  padding: 7px 10px;
  border: 1px solid rgba(255,255,255,.24);
  border-radius: 999px;
  background: rgba(255,255,255,.1);
  color: #dff7ff;
}

.category-strip, .tag-row, .metrics { display: flex; flex-wrap: wrap; gap: 10px; }
.category-strip {
  width: min(1180px, calc(100% - 32px));
  margin: -42px auto 0;
  padding: 18px;
  background: rgba(255,255,255,.92);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 55px rgba(8,25,38,.11);
  position: relative;
  z-index: 2;
}
.category-pill, .tag-row span, .accept-list span {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 9px 13px;
  color: var(--muted);
  font-weight: 700;
  font-size: 14px;
}
.category-pill.active { background: #e8f6ff; color: #0b6ea8; border-color: #96d2f2; }

.library-head {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 520px);
  gap: 20px;
  align-items: end;
  padding: 44px 0 20px;
}
.library-head h2, .admin-table h2, .upload-form h2 { margin: 0 0 8px; font-size: 32px; }
.library-head p { color: var(--muted); margin: 0; line-height: 1.5; }
.search-form { display: grid; grid-template-columns: 1fr 130px auto; gap: 8px; }
.search-form input, .search-form select, .search-form button, .upload-form input, .upload-form textarea, .upload-form select {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 10px 12px;
  color: var(--ink);
}
.search-form button { background: var(--ink); color: #fff; font-weight: 800; }

.doc-grid {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  padding-bottom: 56px;
}
.doc-card, .empty, .upload-form, .reader-meta, .reader-preview, .metrics article, .admin-table, .admin-note {
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: 8px;
  box-shadow: 0 10px 26px rgba(25, 40, 52, .06);
}
.doc-card {
  min-height: 420px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 0;
  overflow: hidden;
}
.doc-card > div:not(.tag-row):not(.card-foot),
.doc-card .tag-row,
.doc-card .card-foot {
  margin-left: 18px;
  margin-right: 18px;
}
.doc-thumb {
  display: block;
  height: 205px;
  padding: 16px 28px;
  background:
    radial-gradient(circle at 82% 16%, rgba(139,214,61,.18), transparent 70px),
    linear-gradient(135deg, #ecf6fb, #f8fbfd);
  border-bottom: 1px solid var(--line);
}
.doc-thumb.image-thumb { padding: 0; background: #07111a; }
.doc-thumb.rendered-thumb {
  padding: 12px 28px;
  background:
    radial-gradient(circle at 82% 16%, rgba(139,214,61,.16), transparent 80px),
    linear-gradient(135deg, #eaf5fb, #f7fbfd);
  display: grid;
  place-items: center;
  overflow: hidden;
}
.doc-thumb.rendered-thumb img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  background: transparent;
  border: 0;
  border-radius: 3px;
  box-shadow: none;
}
.doc-thumb.image-thumb img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.video-thumb {
  padding: 22px 18px;
}
.video-card-preview {
  width: min(300px, 90%);
  aspect-ratio: 16 / 9;
  margin: 0 auto;
  position: relative;
  overflow: visible;
  border-radius: 7px;
  border: 1px solid #c7dce9;
  background: #07111a;
  box-shadow: 0 16px 34px rgba(12, 38, 56, .16);
}
.video-card-preview img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.video-card-preview .thumb-ext {
  position: absolute;
  z-index: 2;
  top: 10px;
  left: 10px;
  background: rgba(237, 248, 255, .92);
  box-shadow: 0 6px 18px rgba(5, 18, 28, .16);
}
.thumb-page {
  width: min(148px, 58%);
  height: 100%;
  min-width: 128px;
  margin: 0 auto;
  padding: 15px;
  display: grid;
  align-content: start;
  gap: 8px;
  background: #fff;
  border: 1px solid #c9d9e5;
  border-radius: 5px;
  box-shadow: 0 16px 32px rgba(12, 38, 56, .14);
  position: relative;
  overflow: hidden;
}
.thumb-page-preview {
  width: min(250px, 82%);
  max-width: 250px;
  min-width: 210px;
  height: 180px;
  padding: 13px;
  gap: 8px;
}
.thumb-page-preview .thumb-media {
  min-height: 0;
  height: 118px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 4px;
  border: 1px solid #e1ebf2;
  background:
    linear-gradient(45deg, #f3f7fa 25%, transparent 25%),
    linear-gradient(-45deg, #f3f7fa 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #f3f7fa 75%),
    linear-gradient(-45deg, transparent 75%, #f3f7fa 75%),
    #fff;
  background-size: 14px 14px;
  background-position: 0 0, 0 7px, 7px -7px, -7px 0;
}
.thumb-page-preview strong {
  font-size: 12px;
  max-height: 28px;
}
.thumb-page::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background: var(--blue);
}
.thumb-ext {
  justify-self: start;
  padding: 5px 7px;
  border-radius: 5px;
  background: #edf8ff;
  color: #0b6ea8;
  font-size: 11px;
  font-weight: 900;
}
.thumb-page strong {
  color: var(--ink);
  font-size: 15px;
  line-height: 1.12;
  max-height: 52px;
  overflow: hidden;
}
.thumb-page em {
  color: var(--muted);
  font-style: normal;
  font-size: 11px;
  line-height: 1.25;
  max-height: 28px;
  overflow: hidden;
}
.thumb-page i,
.preview-lines i {
  display: block;
  height: 7px;
  border-radius: 999px;
  background: #dce7ee;
}
.thumb-page i:nth-of-type(2),
.preview-lines i:nth-child(2) { width: 78%; }
.thumb-page i:nth-of-type(3),
.preview-lines i:nth-child(4) { width: 58%; }
.ext-pdf .thumb-page::before { background: #d92d20; }
.ext-pdf .thumb-ext { background: #fff1f0; color: #b42318; }
.ext-jpg .thumb-page::before,
.ext-jpeg .thumb-page::before,
.ext-png .thumb-page::before,
.ext-webp .thumb-page::before { background: #1d74d8; }
.ext-jpg .thumb-ext,
.ext-jpeg .thumb-ext,
.ext-png .thumb-ext,
.ext-webp .thumb-ext { background: #edf8ff; color: #0b6ea8; }
.ext-zip .thumb-page::before,
.ext-rar .thumb-page::before,
.ext-7z .thumb-page::before { background: #0b6ea8; }
.ext-zip .thumb-ext,
.ext-rar .thumb-ext,
.ext-7z .thumb-ext { background: #edf8ff; color: #0b6ea8; }
.ext-doc .thumb-page::before,
.ext-docx .thumb-page::before { background: #1d74d8; }
.ext-doc .thumb-ext,
.ext-docx .thumb-ext { background: #edf5ff; color: #145db8; }
.ext-xls .thumb-page::before,
.ext-xlsx .thumb-page::before,
.ext-csv .thumb-page::before { background: #1f8b4c; }
.ext-xls .thumb-ext,
.ext-xlsx .thumb-ext,
.ext-csv .thumb-ext { background: #ecfdf3; color: #18713e; }
.ext-epub .thumb-page::before,
.ext-mobi .thumb-page::before { background: #a66f00; }
.ext-epub .thumb-ext,
.ext-mobi .thumb-ext { background: #fff7e6; color: #945f00; }
.meta { color: var(--muted); margin: 0 0 8px; font-size: 13px; font-weight: 700; }
.doc-card h3 { margin: 0 0 8px; font-size: 22px; line-height: 1.15; }
.doc-card p { color: var(--muted); line-height: 1.45; margin: 0; }
.card-foot {
  margin-top: auto;
  padding-top: 12px;
  padding-bottom: 18px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
}
.card-foot a { color: var(--blue); font-weight: 800; }
.empty { grid-column: 1 / -1; padding: 36px; text-align: center; }

.form-shell, .reader-shell, .admin-head, .admin-grid {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 520px);
  gap: 18px;
  padding: 54px 0;
  align-items: start;
}
.upload-form { padding: 22px; display: grid; gap: 14px; }
.upload-form label { display: grid; gap: 7px; color: var(--muted); font-weight: 800; }
.upload-form textarea { min-height: 130px; resize: vertical; }
.check { grid-template-columns: auto 1fr; align-items: start; font-weight: 600; }
.check input { width: 18px; min-height: 18px; margin-top: 3px; }
.accept-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }

.reader-shell { grid-template-columns: 380px 1fr; }
.reader-meta, .reader-preview { padding: 24px; }
.reader-meta h1 { font-size: 42px; line-height: 1.05; }
.reader-meta dl { display: grid; gap: 12px; margin: 24px 0 0; }
.reader-meta dt { color: var(--muted); font-size: 12px; text-transform: uppercase; font-weight: 900; }
.reader-meta dd { margin: 4px 0 0; font-weight: 800; }
.reader-preview { min-height: 680px; padding: 0; overflow: hidden; }
.reader-preview iframe { width: 100%; height: 760px; border: 0; background: #fff; }
.image-preview {
  min-height: 680px;
  display: grid;
  place-items: center;
  background: #07111a;
}
.image-preview img {
  max-width: 100%;
  max-height: 760px;
  display: block;
  object-fit: contain;
}
.preview-placeholder {
  min-height: 680px;
  display: grid;
  place-items: center;
  padding: 34px;
  background:
    linear-gradient(180deg, #eef5f9, #f8fafb);
}
.preview-page {
  width: min(520px, 100%);
  min-height: 620px;
  padding: 72px 62px 44px;
  display: grid;
  align-content: start;
  gap: 18px;
  text-align: left;
  background: #fff;
  border: 1px solid #d8e3ea;
  box-shadow: 0 26px 70px rgba(10, 31, 45, .16);
  position: relative;
}
.preview-page::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 8px;
  background: linear-gradient(90deg, var(--blue), var(--green));
}
.preview-page span {
  color: var(--gold);
  font-size: clamp(54px, 8vw, 88px);
  font-weight: 900;
  line-height: 1;
  text-align: center;
}
.preview-page h2 {
  margin: 34px 0 0;
  font-size: 28px;
  line-height: 1.15;
  text-align: center;
}
.preview-page p {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
  text-align: center;
}
.preview-lines {
  display: grid;
  gap: 12px;
  margin-top: 28px;
}
.preview-page small {
  align-self: end;
  margin-top: 54px;
  color: var(--muted);
  text-align: center;
  font-size: 15px;
}
.preview-page-art {
  width: min(560px, 86%);
  height: auto;
  min-height: 520px;
  align-content: start;
  gap: 18px;
  padding: 22px;
}
.preview-page-art .preview-art-frame {
  height: 280px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 6px;
  border: 1px solid #d8e5ee;
  background:
    linear-gradient(45deg, #f4f8fb 25%, transparent 25%),
    linear-gradient(-45deg, #f4f8fb 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #f4f8fb 75%),
    linear-gradient(-45deg, transparent 75%, #f4f8fb 75%),
    #fff;
  background-size: 18px 18px;
  background-position: 0 0, 0 9px, 9px -9px, -9px 0;
}
.preview-page-art img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.preview-page-art h2 {
  margin-top: 4px;
  font-size: 25px;
}
.preview-page-art small {
  margin-top: 0;
}
.share-strip {
  margin-top: 18px;
  padding: 14px;
  border: 1px solid rgba(196, 214, 226, .9);
  border-radius: 8px;
  background: rgba(255,255,255,.72);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.8);
}
.share-strip strong {
  display: block;
  margin-bottom: 10px;
  color: var(--ink);
}
.share-strip div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.share-strip .button {
  min-height: 36px;
  padding: 0 12px;
  font-size: 14px;
}
.library-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
}
.currency-switcher {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 5px 6px 5px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,.84);
  box-shadow: 0 10px 24px rgba(25,40,52,.06);
}
.currency-switcher span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}
.currency-switcher div {
  display: inline-flex;
  gap: 4px;
}
.currency-switcher button {
  min-width: 48px;
  min-height: 30px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}
.currency-switcher button[aria-pressed="true"] {
  background: linear-gradient(135deg, #8bd63d, #0d83c5);
  color: #041018;
}
.price {
  white-space: nowrap;
}

.admin-head { grid-template-columns: 1fr auto; align-items: center; padding-bottom: 16px; }
.metrics { padding-bottom: 24px; }
.metrics article { min-width: 190px; padding: 18px; }
.metrics strong { display: block; font-size: 36px; }
.metrics span { color: var(--muted); font-weight: 700; }
.admin-grid { grid-template-columns: 1fr 340px; padding-top: 0; }
.admin-table { overflow-x: auto; padding: 18px; }
table { width: 100%; border-collapse: collapse; min-width: 760px; }
th, td { padding: 13px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { color: var(--muted); font-size: 12px; text-transform: uppercase; }
td small { display: block; color: var(--muted); margin-top: 5px; }
.product-manager {
  grid-column: 1 / -1;
}
.product-manager table {
  table-layout: fixed;
  min-width: 1080px;
}
.product-manager th:nth-child(1) { width: 62px; }
.product-manager th:nth-child(2) { width: 42%; }
.product-manager th:nth-child(3) { width: 105px; }
.product-manager th:nth-child(4) { width: 180px; }
.product-manager th:nth-child(5) { width: 105px; }
.product-manager th:nth-child(6) { width: 130px; }
.product-manager th:nth-child(7) { width: 190px; }
.admin-product-cell {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}
.admin-product-cell strong {
  display: block;
  line-height: 1.2;
}
.admin-product-cell p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.admin-product-thumb {
  width: 82px;
  height: 104px;
  display: block;
  object-fit: contain;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: #fff;
}
.admin-product-thumb.placeholder {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}
.inline-controls { display: flex; flex-wrap: wrap; gap: 7px; }
.inline-controls button, .bulk-bar button { min-height: 34px; cursor: pointer; }
.inline-controls .danger, .bulk-bar .danger { color: var(--red); border-color: #ffc9c5; background: #fff7f6; }
.inline-controls .compact-action {
  width: 100%;
  justify-content: center;
}
.product-manager .inline-controls {
  gap: 6px;
}
.product-manager .inline-controls .button,
.product-manager .inline-controls button {
  min-height: 31px;
  padding: 0 9px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
}
.product-manager .inline-controls .compact-action {
  font-size: 12px;
  text-transform: uppercase;
}
.admin-table-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: start;
  margin-bottom: 14px;
}
.admin-table-head p { margin: 0; color: var(--muted); font-weight: 700; }
.admin-filter {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 190px auto auto;
  gap: 10px;
  align-items: end;
  margin: 14px 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}
.admin-filter label { display: grid; gap: 6px; color: var(--muted); font-weight: 800; font-size: 12px; text-transform: uppercase; }
.admin-filter input, .admin-filter select {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 0 11px;
  background: #fff;
  color: var(--ink);
  text-transform: none;
  font-size: 14px;
  font-weight: 600;
}
.bulk-bar {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin: 12px 0;
  padding: 10px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.bulk-bar > div { display: flex; flex-wrap: wrap; gap: 8px; }
.select-all { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-weight: 800; }
.check-col { width: 58px; text-align: center; }
.check-col input { width: 18px; height: 18px; }
.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--soft);
  font-size: 12px;
  font-weight: 900;
  text-transform: capitalize;
}
.status-pill.published { color: #14532d; background: #eaf7ef; border-color: #b6dec6; }
.status-pill.hidden { color: #7a2e0e; background: #fff8e6; border-color: #f4d597; }
.pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
  margin: 12px 0;
}
.pagination span { color: var(--muted); font-weight: 800; }
.pagination a, .pagination strong {
  min-width: 36px;
  min-height: 34px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  color: var(--ink);
  font-weight: 900;
}
.pagination strong { background: var(--ink); color: #fff; border-color: var(--ink); }
.login-shell { width: min(520px, 100%); margin: 64px auto; }
.admin-note { padding: 14px; display: grid; gap: 6px; background: #fff8e6; }
.admin-note code { font-size: 20px; color: var(--gold); }

.flash {
  width: min(1180px, calc(100% - 32px));
  margin: 16px auto 0;
  padding: 13px 16px;
  border-radius: 8px;
  background: #eaf7ef;
  border: 1px solid #b6dec6;
  color: #14532d;
  font-weight: 800;
}
.flash.bad { background: #fff0ef; border-color: #ffc9c5; color: var(--red); }
.support-strip {
  width: min(1180px, calc(100% - 32px));
  margin: 6px auto 34px;
  padding: 24px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 18px;
  align-items: center;
  border: 1px solid rgba(13, 131, 197, .22);
  border-radius: 8px;
  background:
    radial-gradient(circle at 86% 12%, rgba(139,214,61,.18), transparent 150px),
    linear-gradient(135deg, #ffffff, #eef7fc);
  box-shadow: 0 14px 34px rgba(10, 31, 45, .08);
}
.support-gif {
  width: 74px;
  height: 74px;
  object-fit: contain;
  border-radius: 999px;
  background: rgba(255, 255, 255, .72);
  border: 1px solid rgba(13, 131, 197, .15);
  box-shadow: 0 12px 24px rgba(10, 31, 45, .08);
}
.support-strip h2 {
  margin: 0 0 8px;
  font-size: 28px;
  line-height: 1.12;
}
.support-strip p:not(.eyebrow) {
  margin: 0;
  max-width: 760px;
  color: var(--muted);
  line-height: 1.55;
}
.support-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
  filter: drop-shadow(0 12px 22px rgba(169, 119, 17, .18));
}
.support-button img {
  width: 220px;
  max-width: 100%;
  height: auto;
  display: block;
}
.footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 26px 28px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  background: #fff;
}
.footer strong, .footer span { display: block; }
.footer div:last-child { display: flex; gap: 14px; font-weight: 800; }

@media (max-width: 900px) {
  .hero, .library-head, .form-shell, .reader-shell, .admin-head, .admin-grid { grid-template-columns: 1fr; }
  .hero { min-height: 0; padding-top: 36px; }
  .doc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .reader-preview, .preview-placeholder { min-height: 420px; }
  .reader-preview iframe { height: 520px; }
  .preview-page { min-height: 500px; padding: 54px 36px 34px; }
}

@media (max-width: 620px) {
  .site-header { padding: 8px 10px; gap: 8px; overflow: visible; flex-wrap: wrap; }
  .brand { flex-basis: 160px; }
  img.brand-logo { width: 155px !important; max-width: 155px; height: 36px !important; object-fit: contain; object-position: left center; }
  .brand span { display: none; }
  .menu-toggle { display: inline-flex; flex-direction: column; justify-content: center; }
  .menu-toggle b { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .nav {
    order: 5;
    flex: 1 0 100%;
    display: none;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
    padding: 8px 0 2px;
    overflow: visible;
  }
  .site-header.menu-open .nav { display: grid; }
  .nav a { width: 100%; }
  .nav-dropdown { width: 100%; }
  .nav-dropdown summary { width: 100%; justify-content: space-between; }
  .nav-submenu {
    position: static;
    width: 100%;
    margin-top: 7px;
    transform: none;
  }
  .header-actions { margin-left: auto; gap: 6px; }
  .icon-link { padding: 0 10px; }
  .admin-tabs { top: 56px; padding: 8px 10px; }
  .hero-copy h1 { font-size: 42px; }
  .search-form { grid-template-columns: 1fr; }
  .doc-grid { grid-template-columns: 1fr; }
  .doc-thumb { height: 170px; }
  .preview-page { min-height: 460px; padding: 44px 24px 28px; }
  .support-strip { grid-template-columns: 1fr; padding: 20px; }
  .support-gif { width: 64px; height: 64px; }
  .support-button { justify-content: flex-start; }
  .support-button img { width: 210px; }
  .footer { display: grid; padding: 22px 14px; }
}


/* Sales funnel home hero */
.sales-hero {
  min-height: auto;
  grid-template-columns: minmax(0, 690px) minmax(340px, 430px);
  gap: 34px;
  padding: 58px 24px 70px;
  align-items: center;
  background:
    linear-gradient(90deg, rgba(3,10,17,.96), rgba(7,24,37,.9) 56%, rgba(4,11,18,.98)),
    url("/assets/img/caxess-logo.png") center / cover;
}
.sales-hero::after {
  height: 74px;
}
.sales-copy h1 {
  max-width: 650px;
  font-size: clamp(42px, 5.7vw, 76px);
}
.sales-copy p:not(.eyebrow) {
  max-width: 700px;
}
.sales-lead {
  font-weight: 800;
}
.seller-note {
  margin-top: 22px;
  max-width: 650px;
  display: grid;
  gap: 6px;
  padding: 16px 18px;
  border: 1px solid rgba(156,233,77,.28);
  border-radius: 8px;
  background: rgba(5,17,26,.72);
  box-shadow: 0 14px 34px rgba(0,0,0,.18);
}
.seller-note strong {
  color: #fff;
  font-size: 18px;
}
.seller-note span {
  color: rgba(235,247,255,.8);
  line-height: 1.45;
}
.funnel-card {
  padding: 24px;
  border: 1px solid rgba(144,216,249,.28);
  border-radius: 8px;
  background: rgba(3,12,20,.86);
  box-shadow: 0 24px 60px rgba(0,0,0,.32);
  color: #fff;
}
.funnel-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: baseline;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.funnel-head span {
  color: var(--green);
  font-weight: 900;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: .08em;
}
.funnel-head strong {
  color: #dff7ff;
}
.funnel-steps {
  display: grid;
  gap: 10px;
  margin: 18px 0;
}
.funnel-steps article {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 8px;
  background: rgba(255,255,255,.06);
}
.funnel-steps b {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #9ce94d, #1ba4e8);
  color: #061018;
  font-weight: 900;
}
.funnel-steps span {
  color: rgba(244,250,255,.92);
  font-weight: 800;
  line-height: 1.25;
}
.buyer-box {
  display: grid;
  gap: 7px;
  padding: 15px;
  border-radius: 8px;
  background: rgba(102,216,255,.12);
  border: 1px solid rgba(102,216,255,.25);
}
.buyer-box strong {
  color: #fff;
}
.buyer-box span {
  color: rgba(235,247,255,.8);
  line-height: 1.45;
}
@media (max-width: 960px) {
  .sales-hero {
    grid-template-columns: 1fr;
    padding: 42px 16px 60px;
  }
  .funnel-card {
    max-width: 720px;
  }
}
@media (max-width: 560px) {
  .sales-copy h1 {
    font-size: 42px;
  }
  .funnel-head {
    display: grid;
  }
  .seller-note,
  .funnel-card {
    padding: 16px;
  }
}


.doc-count-badge {
  width: fit-content;
  margin-top: 16px;
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid rgba(102,216,255,.26);
  background: rgba(255,255,255,.08);
  color: #fff;
}
.doc-count-badge strong {
  font-size: 28px;
  line-height: 1;
}
.doc-count-badge span {
  color: rgba(235,247,255,.78);
  font-weight: 800;
}


.checkout-payments {
  align-items: start;
}
.checkout-payments[hidden] {
  display: none !important;
}
.card-payment-icons {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: -4px 0 14px;
}
.card-payment-icons img {
  width: auto;
  height: 24px;
  max-width: 76px;
  object-fit: contain;
  padding: 3px 6px;
  border: 1px solid #d7e6ef;
  border-radius: 7px;
  background: #fff;
}
.crypto-methods {
  display: grid;
  gap: 10px;
}
.crypto-picker {
  display: grid;
  gap: 8px;
  margin: 14px 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}
.crypto-picker select {
  width: min(100%, 360px);
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  text-transform: none;
}
.crypto-method {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
.crypto-method[hidden] {
  display: none;
}
.crypto-method-head {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
}
.payment-coin-icon {
  width: 34px;
  height: 34px;
  object-fit: contain;
  padding: 4px;
  border: 1px solid #d7e6ef;
  border-radius: 999px;
  background: #fff;
}
.crypto-method strong {
  font-size: 16px;
}
.crypto-method span {
  color: var(--muted);
  font-weight: 700;
}
.crypto-method code {
  display: block;
  margin-top: 5px;
  padding: 9px 10px;
  border: 1px solid #d7e6ef;
  border-radius: 7px;
  background: #f8fbfd;
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
  color: #31465a;
  font-size: 12px;
  line-height: 1.35;
}
.crypto-qr-wrap {
  width: 240px;
  max-width: 100%;
  padding: 10px;
  border: 1px solid #d7e6ef;
  border-radius: 8px;
  background: #fff;
}
.payment-qr {
  width: 220px;
  height: 220px;
  display: block;
}
.crypto-wallet-data {
  display: grid;
  gap: 10px;
  min-width: 0;
}
.crypto-wallet-data label {
  display: grid;
  gap: 3px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}
.crypto-wallet-data small {
  color: #31465a;
  font-weight: 700;
}
@media (max-width: 620px) {
  .checkout-shell {
    padding-top: 30px;
  }
  .checkout-payments {
    width: min(100% - 24px, 1180px);
    gap: 14px;
  }
  .crypto-card-list,
  .checkout-payments .upload-form {
    padding: 16px;
  }
  .crypto-card-list .admin-table-head h2,
  .checkout-payments .upload-form h2 {
    font-size: 24px;
  }
  .crypto-card-list .admin-table-head p {
    font-size: 14px;
    line-height: 1.35;
  }
  .crypto-method {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 12px;
  }
  .crypto-method code {
    font-size: 11px;
  }
  .crypto-qr-wrap {
    width: min(100%, 244px);
  }
}


.scan-notice {
  width: min(560px, 100%);
  margin: 22px 0 18px;
  padding: 16px 18px;
  display: grid;
  gap: 4px;
  border-radius: 18px;
  border: 1px solid rgba(102,216,255,.34);
  background:
    linear-gradient(135deg, rgba(255,255,255,.78), rgba(255,255,255,.42)),
    radial-gradient(circle at 12% 10%, rgba(156,233,77,.28), transparent 130px);
  box-shadow: 0 18px 42px rgba(11, 42, 62, .12), inset 0 1px 0 rgba(255,255,255,.72);
  backdrop-filter: blur(18px) saturate(145%);
  -webkit-backdrop-filter: blur(18px) saturate(145%);
}
.scan-notice strong {
  color: #07111a;
  font-size: 18px;
  line-height: 1.2;
}
.scan-notice span {
  color: #365066;
  line-height: 1.35;
  font-weight: 700;
}


.secure-payout-note {
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  border: 1px solid rgba(13,131,197,.22);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.92), rgba(237,248,255,.78)),
    radial-gradient(circle at 12% 8%, rgba(156,233,77,.18), transparent 120px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.72), 0 10px 26px rgba(10,31,45,.06);
}
.secure-payout-note strong {
  color: #07111a;
  font-size: 16px;
}
.secure-payout-note span,
.form-help {
  color: var(--muted);
  line-height: 1.4;
  font-weight: 700;
}
.payout-fieldset {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbfd;
}
.payout-fieldset legend {
  padding: 0 8px;
  color: var(--ink);
  font-weight: 900;
}
.payout-panel {
  display: grid;
  gap: 12px;
}
.field-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.edit-thumb-preview {
  display: grid;
  grid-template-columns: 120px 1fr;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbfd;
}
#edit-product {
  grid-column: 1 / -1;
}
.edit-form-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.edit-form-head h2 {
  margin: 0;
}
.edit-form-head .button {
  min-height: 38px;
  font-size: 14px;
}
.edit-thumb-preview img {
  width: 120px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: #fff;
}
.edit-thumb-preview span {
  color: var(--muted);
  font-weight: 800;
}
.checkout-product-art {
  width: min(100%, 560px);
  margin: auto;
  display: grid;
  gap: 12px;
}
.checkout-product-art img {
  width: 100%;
  max-height: 560px;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 42px rgba(10, 30, 44, .16);
}
.checkout-product-art span {
  justify-self: start;
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  border-radius: 999px;
  padding: 0 12px;
  color: var(--muted);
  background: #fff;
  border: 1px solid var(--line);
  font-weight: 900;
}
.payout-panel[hidden] {
  display: none;
}
@media (max-width: 620px) {
  .field-row {
    grid-template-columns: 1fr;
  }
  .edit-thumb-preview {
    grid-template-columns: 1fr;
  }
  .edit-thumb-preview img {
    width: 100%;
  }
  .payout-fieldset {
    padding: 14px;
  }
}


.upload-trust-stack {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 150px;
  gap: 14px;
  align-items: center;
  margin: 18px 0;
}
.policy-stamp,
.policy-stamp-card {
  margin: 0;
  border-radius: 999px;
  background: rgba(2, 8, 14, .94);
  box-shadow:
    0 16px 34px rgba(2, 8, 14, .24),
    inset 0 0 0 2px rgba(255,255,255,.18),
    inset 0 0 0 7px rgba(210,20,20,.38);
  overflow: hidden;
}
.policy-stamp img,
.policy-stamp-card img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 999px;
}
.policy-stamp figcaption,
.policy-stamp-card span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}
.policy-stamp-card {
  width: 190px;
  height: 190px;
  margin: 16px auto 0;
  padding: 6px;
}
.policy-stamp {
  width: 150px;
  height: 150px;
  padding: 5px;
}
.policy-footer {
  display: grid;
  grid-template-columns: minmax(190px, 260px) minmax(0, 1fr) auto;
  align-items: center;
}
.footer-brand a {
  display: inline-block;
  margin-top: 8px;
  font-weight: 900;
  color: var(--blue);
}
.footer-policy {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  max-width: 720px;
}
.footer-policy-stamp {
  width: 88px;
  height: 88px;
  border-radius: 999px;
  object-fit: cover;
  background: #03070b;
  box-shadow:
    0 10px 22px rgba(2,8,14,.2),
    inset 0 0 0 2px rgba(255,255,255,.18),
    inset 0 0 0 5px rgba(210,20,20,.34);
}
.footer-policy strong {
  color: var(--ink);
}
.footer-policy span {
  line-height: 1.45;
}
.footer-links {
  display: flex;
  gap: 14px;
  font-weight: 800;
}
.result-count {
  display: inline-block;
  margin-top: 8px;
  color: var(--muted);
  font-size: .95rem;
  font-weight: 800;
}
.pagination {
  width: min(1240px, calc(100% - 40px));
  margin: 28px auto 54px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.pagination a,
.pagination span,
.pagination strong {
  min-width: 42px;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0 14px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.86);
  color: var(--ink);
  font-weight: 900;
  text-decoration: none;
}
.pagination strong {
  color: #03101d;
  border-color: rgba(76, 190, 255, .6);
  background: linear-gradient(135deg, #8ddf4e, #4cbeff);
}
.pagination span {
  color: var(--muted);
  background: rgba(255,255,255,.52);
}
.back-to-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 80;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255,255,255,.42);
  border-radius: 999px;
  background: rgba(3, 16, 29, .78);
  color: #fff;
  box-shadow: 0 16px 36px rgba(2, 8, 14, .26);
  backdrop-filter: blur(14px);
  font-size: 22px;
  font-weight: 900;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity .18s ease, transform .18s ease;
}
.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

@media (max-width: 900px) {
  .policy-footer {
    grid-template-columns: 1fr;
  }
  .footer-policy {
    margin: 8px 0;
  }
}

@media (max-width: 620px) {
  .upload-trust-stack {
    grid-template-columns: 1fr;
  }
  .policy-stamp {
    width: 170px;
    height: 170px;
  }
  .footer-policy {
    grid-template-columns: 72px minmax(0, 1fr);
  }
  .footer-policy-stamp {
    width: 72px;
    height: 72px;
  }
  .pagination {
    width: min(100% - 24px, 1240px);
    margin-bottom: 38px;
  }
  .pagination a,
  .pagination span,
  .pagination strong {
    min-width: 38px;
    min-height: 38px;
    padding: 0 12px;
  }
  .back-to-top {
    right: 12px;
    bottom: 12px;
  }
}
.caxess-gpt-search {
    width: min(1180px, calc(100% - 32px));
    display: grid;
    grid-template-columns: minmax(260px, .72fr) minmax(420px, 1.28fr);
    gap: 28px;
    align-items: center;
    margin: 30px auto 22px;
    padding: 28px;
    border: 1px solid rgba(80, 220, 255, .3);
    border-radius: 8px;
    color: #f6fbff;
    background: linear-gradient(115deg, rgba(4,14,22,.98), rgba(8,35,49,.96));
    box-shadow: 0 20px 52px rgba(4, 17, 27, .22);
}

.caxess-gpt-search h2 {
    margin: 0 0 8px;
    color: #fff;
    font-size: 30px;
    line-height: 1.08;
}

.caxess-gpt-search p {
    margin: 0;
    color: rgba(228,244,252,.76);
    line-height: 1.5;
}

.caxess-gpt-search form {
    display: grid;
    gap: 9px;
}

.caxess-gpt-search label {
    color: #fff;
    font-size: 13px;
    font-weight: 900;
}

.gpt-search-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 9px;
}

.caxess-gpt-search input {
    width: 100%;
    min-height: 50px;
    border: 1px solid rgba(102,216,255,.38);
    border-radius: 7px;
    padding: 0 15px;
    color: #0b1720;
    background: #fff;
}

.caxess-gpt-search input::placeholder { color: #70808d; }
.gpt-search-scopes {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.gpt-search-scopes a {
    min-height: 32px;
    display: inline-flex;
    align-items: center;
    padding: 0 10px;
    border: 1px solid rgba(102,216,255,.24);
    border-radius: 7px;
    color: #dff7ff;
    background: rgba(255,255,255,.06);
    font-size: 12px;
    font-weight: 800;
}
.gpt-search-scopes a:hover {
    border-color: var(--green);
    color: #fff;
}
.gpt-thinking {
    min-height: 40px;
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 8px 10px;
    border-left: 3px solid var(--green);
    color: rgba(228,244,252,.8);
    background: rgba(255,255,255,.05);
    font-size: 13px;
}
.gpt-thinking[hidden] { display: none !important; }
.gpt-thinking strong { color: #fff; }
.gpt-thinking-dots { display: inline-flex; gap: 4px; }
.gpt-thinking-dots i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--green);
    animation: gpt-thinking-pulse .9s infinite ease-in-out;
}
.gpt-thinking-dots i:nth-child(2) { animation-delay: .14s; }
.gpt-thinking-dots i:nth-child(3) { animation-delay: .28s; }
@keyframes gpt-thinking-pulse {
    0%, 70%, 100% { opacity: .3; transform: translateY(0); }
    35% { opacity: 1; transform: translateY(-3px); }
}
.gpt-response {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    padding: 18px;
    border: 1px solid rgba(139,214,61,.38);
    border-radius: 8px;
    background: rgba(139,214,61,.09);
}
.gpt-response div { display: grid; gap: 5px; }
.gpt-response span {
    color: var(--green);
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
}
.gpt-response strong { color: #fff; font-size: 21px; }
.gpt-response p { max-width: 820px; }
.gpt-response.no-result {
    border-color: rgba(102,216,255,.28);
    background: rgba(102,216,255,.07);
}

/* Homepage: curated Featured Downloads */
.featured-downloads {
    padding: 44px 0 28px;
    scroll-margin-top: 100px;
}
#featured-downloads-grid { scroll-margin-top: 100px; }
.featured-downloads-intro,
.featured-downloads-footer {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 18px 48px rgba(8,25,38,.1);
}
.featured-downloads-intro {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(240px, 320px);
    gap: 32px;
    align-items: center;
    padding: 34px;
    background:
        radial-gradient(circle at 94% 10%, rgba(139,214,61,.16), transparent 210px),
        linear-gradient(135deg, #fff, #f4f9fc);
}
.featured-downloads-intro h2 {
    margin: 0 0 12px;
    color: var(--ink);
    font-size: clamp(34px, 4vw, 50px);
    line-height: 1;
}
.featured-downloads-lead {
    max-width: 760px;
    margin: 0;
    color: var(--ink);
    font-size: 18px;
    font-weight: 750;
    line-height: 1.55;
}
.featured-downloads-licence {
    max-width: 820px;
    margin: 14px 0 0;
    color: var(--muted);
    line-height: 1.55;
}
.featured-downloads-actions {
    display: grid;
    gap: 10px;
}
.featured-downloads-actions .currency-switcher {
    justify-self: stretch;
    justify-content: space-between;
    margin-bottom: 4px;
}
.featured-downloads-actions .button {
    width: 100%;
    min-height: 48px;
    text-align: center;
}
.caxess-gpt-search .button.primary,
.featured-downloads .button.primary,
.featured-downloads-grid .card-foot a,
.category-pill.featured-pill.active {
    border: 1px solid rgba(255,255,255,.22);
    background: linear-gradient(135deg, #9ce94d, #1ba4e8);
    color: #05111a;
    font-weight: 900;
    box-shadow: 0 10px 26px rgba(13,131,197,.2);
    transition: transform .16s ease, box-shadow .16s ease, filter .16s ease;
}
.caxess-gpt-search .button.primary:hover,
.featured-downloads .button.primary:hover,
.featured-downloads-grid .card-foot a:hover,
.category-pill.featured-pill.active:hover {
    border-color: rgba(255,255,255,.38);
    filter: brightness(1.04);
    transform: translateY(-1px);
    box-shadow: 0 14px 30px rgba(13,131,197,.26);
}
.caxess-gpt-search .button.primary:focus-visible,
.featured-downloads .button.primary:focus-visible,
.featured-downloads-grid .card-foot a:focus-visible,
.category-pill.featured-pill:focus-visible {
    outline: 3px solid #07111a;
    outline-offset: 3px;
}
.caxess-gpt-search .gpt-search-row .button.primary {
    min-height: 50px;
}
.featured-downloads-grid .card-foot a {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 12px;
    border-radius: 7px;
    text-align: center;
}
.card-foot a.card-details-action,
.featured-downloads-grid .card-foot a.card-details-action {
    min-height: 44px;
    border: 1px solid rgba(7,17,26,.28);
    background: linear-gradient(135deg, rgba(7,17,26,.045), rgba(139,214,61,.11));
    color: #07111a;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.62), 0 8px 20px rgba(7,17,26,.08);
    font-weight: 900;
    transition: transform .16s ease, border-color .16s ease, background .16s ease, box-shadow .16s ease;
}
.card-foot a.card-details-action:hover,
.featured-downloads-grid .card-foot a.card-details-action:hover {
    border-color: rgba(13,131,197,.48);
    background: linear-gradient(135deg, rgba(139,214,61,.18), rgba(102,216,255,.14));
    color: #07111a;
    filter: none;
    transform: translateY(-1px);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.72), 0 12px 24px rgba(7,17,26,.12);
}
.card-foot a.card-details-action:focus-visible,
.featured-downloads-grid .card-foot a.card-details-action:focus-visible {
    outline: 3px solid #07111a;
    outline-offset: 3px;
}
.featured-downloads-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding-top: 22px;
    padding-bottom: 22px;
}
.featured-downloads-grid .doc-card {
    min-height: 430px;
}
.featured-downloads-grid .doc-card h3 {
    min-height: 2.3em;
}
.featured-downloads-grid .doc-card p:not(.meta) {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}
.featured-downloads-footer {
    display: flex;
    justify-content: space-between;
    gap: 22px;
    align-items: center;
    padding: 22px 24px;
    background: #fff;
}
.featured-downloads-footer > div:first-child {
    display: grid;
    gap: 4px;
}
.featured-downloads-footer span {
    color: var(--muted);
}
.featured-downloads-footer > div:last-child {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.crypto-method em {
    display: block;
    margin: 8px 0;
    color: #8be02b;
    font-style: normal;
    font-weight: 800;
}

@media (max-width: 760px) {
    .caxess-gpt-search {
        grid-template-columns: 1fr;
        gap: 18px;
        padding: 20px;
    }
    .gpt-search-row {
        grid-template-columns: 1fr;
    }
    .gpt-response {
        grid-template-columns: 1fr;
    }
    .gpt-thinking { flex-wrap: wrap; }
    .featured-downloads-intro {
        grid-template-columns: 1fr;
        gap: 22px;
    }
    .featured-downloads-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .featured-downloads-footer {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 620px) {
    .featured-downloads {
        padding-top: 32px;
    }
    .featured-downloads-intro {
        width: min(100% - 24px, 1180px);
        padding: 25px 20px;
    }
    .featured-downloads-lead {
        font-size: 17px;
    }
    .featured-downloads-grid {
        width: min(100% - 24px, 1180px);
        grid-template-columns: 1fr;
    }
    .featured-downloads-grid .doc-card h3 {
        min-height: 0;
    }
    .featured-downloads-footer {
        width: min(100% - 24px, 1180px);
        padding: 20px;
    }
    .featured-downloads-footer > div:last-child,
    .featured-downloads-footer .button {
        width: 100%;
    }
    .approved-funnel-card .card-foot {
        align-items: flex-start;
        flex-direction: column;
    }
    .approved-funnel-card .card-details-action {
        width: 100%;
    }
}

/* One-product funnel: Top 5000 ChatGPT Prompts */
.prompt-funnel {
    background:
        radial-gradient(circle at 12% 8%, rgba(102,216,255,.12), transparent 340px),
        #f3f7fa;
}
.prompt-funnel h1,
.prompt-funnel h2,
.prompt-funnel h3,
.prompt-funnel p { margin-top: 0; }
.prompt-funnel h2 {
    margin-bottom: 14px;
    font-size: clamp(32px, 4vw, 50px);
    line-height: 1.03;
    letter-spacing: -.035em;
}
.prompt-funnel h3 {
    margin-bottom: 8px;
    font-size: 21px;
    line-height: 1.15;
}
.prompt-funnel p {
    color: var(--muted);
    font-size: 17px;
    line-height: 1.65;
}
.prompt-funnel-hero {
    min-height: 660px;
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(340px, .92fr);
    gap: 56px;
    align-items: center;
    padding: 70px max(24px, calc((100vw - 1180px) / 2));
    color: #fff;
    background:
        radial-gradient(circle at 78% 26%, rgba(13,131,197,.34), transparent 280px),
        radial-gradient(circle at 18% 12%, rgba(139,214,61,.13), transparent 260px),
        linear-gradient(135deg, #040b12, #071a2a 60%, #06121d);
    border-bottom: 1px solid rgba(102,216,255,.2);
}
.prompt-funnel-hero h1 {
    max-width: 760px;
    margin: 0 0 22px;
    color: #fff;
    font-size: clamp(46px, 6vw, 78px);
    line-height: .98;
    letter-spacing: -.045em;
}
.prompt-funnel-hero .eyebrow,
.prompt-funnel-final .eyebrow { color: #a7ee61; }
.prompt-funnel-lead {
    max-width: 720px;
    color: rgba(235,247,255,.82) !important;
    font-size: clamp(18px, 2vw, 22px) !important;
}
.prompt-funnel-lead strong { color: #fff; }
.prompt-funnel-checks {
    display: grid;
    gap: 9px;
    margin: 26px 0 0;
    padding: 0;
    list-style: none;
}
.prompt-funnel-checks li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: rgba(244,250,255,.9);
    font-weight: 750;
}
.prompt-funnel-checks li::before {
    content: "✓";
    color: #a7ee61;
    font-weight: 950;
}
.prompt-funnel-actions .button,
.prompt-funnel-final .button { min-height: 52px; padding: 0 20px; }
.prompt-funnel-actions .button:not(.primary) {
    color: #fff;
    border-color: rgba(255,255,255,.28);
    background: rgba(255,255,255,.08);
}
.prompt-funnel .button.primary {
    color: #05111a;
    border: 1px solid rgba(255,255,255,.22);
    background: linear-gradient(135deg, #9ce94d, #1ba4e8);
    box-shadow: 0 18px 42px rgba(13,131,197,.28);
    font-weight: 900;
    transition: transform .16s ease, box-shadow .16s ease, filter .16s ease;
}
.prompt-funnel .button.primary:hover {
    border-color: rgba(255,255,255,.38);
    filter: brightness(1.04);
    transform: translateY(-1px);
    box-shadow: 0 22px 46px rgba(13,131,197,.34);
}
.prompt-funnel .button.primary:focus-visible {
    outline: 3px solid #9ce94d;
    outline-offset: 3px;
}
.prompt-funnel-payment-note {
    max-width: 650px;
    margin: 12px 0 0;
    color: rgba(208,231,244,.72) !important;
    font-size: 13px !important;
}
.prompt-funnel-cover {
    position: relative;
    width: min(100%, 470px);
    margin: 0 auto;
}
.prompt-funnel-cover-frame {
    padding: 16px;
    border: 1px solid rgba(160,222,252,.28);
    border-radius: 8px;
    background: rgba(255,255,255,.08);
    box-shadow: 0 34px 80px rgba(0,0,0,.38);
}
.prompt-funnel-cover-frame img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 560px;
    object-fit: contain;
    border-radius: 5px;
    background: #020817;
}
.prompt-funnel-cover-placeholder {
    aspect-ratio: 3 / 4;
    display: grid;
    place-content: center;
    gap: 6px;
    text-align: center;
    border-radius: 5px;
    background: linear-gradient(160deg, #061226, #0d4f9d);
}
.prompt-funnel-cover-placeholder strong { font-size: 42px; }
.prompt-funnel-cover-placeholder span {
    color: #f8df58;
    font-size: 24px;
    font-weight: 900;
}
.prompt-funnel-price-card {
    position: absolute;
    right: -18px;
    bottom: 26px;
    min-width: 176px;
    display: grid;
    gap: 3px;
    padding: 15px 18px;
    color: var(--ink);
    border: 1px solid rgba(102,216,255,.5);
    border-radius: 8px;
    background: rgba(255,255,255,.95);
    box-shadow: 0 16px 34px rgba(0,0,0,.24);
    backdrop-filter: blur(14px);
}
.prompt-funnel-price-card span,
.prompt-funnel-price-card small {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}
.prompt-funnel-price-card strong { font-size: 30px; }
.prompt-funnel-trust {
    width: min(1120px, calc(100% - 32px));
    margin: -24px auto 0;
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255,255,255,.96);
    box-shadow: 0 18px 48px rgba(8,25,38,.12);
}
.prompt-funnel-trust div {
    display: grid;
    gap: 4px;
    padding: 20px 22px;
}
.prompt-funnel-trust div + div { border-left: 1px solid var(--line); }
.prompt-funnel-trust strong { color: var(--ink); font-size: 16px; }
.prompt-funnel-trust span {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.4;
}
.catalogue-funnel-visual {
    display: grid;
    grid-template-columns: minmax(260px, .72fr) minmax(0, 1.28fr);
    gap: 38px;
    align-items: center;
    padding-top: 72px;
    padding-bottom: 72px;
}
.catalogue-funnel-visual-copy p:not(.eyebrow) {
    margin-bottom: 0;
}
.catalogue-funnel-visual-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}
.catalogue-funnel-visual-grid article {
    min-height: 142px;
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 14px;
    align-items: start;
    padding: 20px;
    border: 1px solid rgba(7,17,26,.14);
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(255,255,255,.96), rgba(139,214,61,.08));
    box-shadow: 0 12px 28px rgba(7,17,26,.07);
}
.catalogue-funnel-visual-grid article > span {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    color: #07111a;
    border: 1px solid rgba(13,131,197,.22);
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(156,233,77,.7), rgba(27,164,232,.45));
    font-size: 12px;
    font-weight: 950;
}
.catalogue-funnel-visual-grid h3 {
    margin-bottom: 5px;
}
.catalogue-funnel-visual-grid p {
    margin-bottom: 0;
    font-size: 15px;
    line-height: 1.5;
}
.catalogue-funnel-visual-note {
    grid-column: 2;
    margin: -22px 0 0 !important;
    color: var(--muted);
    font-size: 13px !important;
    font-weight: 750;
}
.catalogue-funnel-file-panel {
    min-height: 480px;
    display: grid;
    place-content: center;
    gap: 18px;
    padding: 36px;
    color: #fff;
    text-align: left;
    border-radius: 5px;
    background:
        radial-gradient(circle at 82% 18%, rgba(139,214,61,.2), transparent 160px),
        linear-gradient(145deg, #06111b, #0a3854);
}
.catalogue-funnel-file-panel > span {
    width: fit-content;
    padding: 7px 10px;
    color: #07111a;
    border-radius: 6px;
    background: linear-gradient(135deg, #9ce94d, #1ba4e8);
    font-size: 12px;
    font-weight: 950;
}
.catalogue-funnel-file-panel strong {
    max-width: 360px;
    font-size: clamp(28px, 4vw, 46px);
    line-height: 1.02;
}
.catalogue-funnel-file-panel small {
    color: rgba(225,241,249,.78);
    font-size: 14px;
    font-weight: 800;
}
.catalogue-funnel-asset-note {
    margin: 14px 0 0 !important;
    padding: 10px 12px;
    color: rgba(225,241,249,.78) !important;
    border-left: 3px solid #9ce94d;
    background: rgba(255,255,255,.06);
    font-size: 12px !important;
}
.prompt-funnel-section,
.prompt-funnel-final,
.prompt-funnel-share {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
}
.prompt-funnel-section { padding: 82px 0; }
.prompt-funnel-centered { text-align: center; }
.prompt-funnel-centered > p:not(.eyebrow) {
    max-width: 760px;
    margin-right: auto;
    margin-left: auto;
}
.prompt-funnel-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-top: 34px;
}
.prompt-funnel-grid article {
    padding: 26px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(25,40,52,.06);
}
.prompt-funnel-benefits article { text-align: left; }
.prompt-funnel-benefits article > span {
    display: inline-grid;
    width: 42px;
    height: 42px;
    margin-bottom: 22px;
    place-items: center;
    color: #0b6ea8;
    border-radius: 8px;
    background: #e8f6ff;
    font-size: 13px;
    font-weight: 950;
}
.prompt-funnel-split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 390px);
    gap: 42px;
    align-items: start;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}
.prompt-funnel-list {
    display: grid;
    gap: 12px;
    margin: 26px 0 0;
    padding: 0;
    list-style: none;
}
.prompt-funnel-list li {
    position: relative;
    padding: 14px 16px 14px 45px;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: #fff;
    line-height: 1.5;
}
.prompt-funnel-list li::before {
    content: "✓";
    position: absolute;
    left: 17px;
    color: #17783f;
    font-weight: 950;
}
.prompt-funnel-value {
    position: sticky;
    top: 96px;
    padding: 28px;
    border: 1px solid rgba(13,131,197,.28);
    border-radius: 8px;
    background: radial-gradient(circle at 100% 0, rgba(139,214,61,.16), transparent 160px), #fff;
    box-shadow: var(--shadow);
}
.prompt-funnel-value-price {
    display: block;
    margin: 10px 0;
    font-size: 48px;
}
.prompt-funnel-value .button {
    width: 100%;
    min-height: 50px;
    margin-top: 10px;
}
.prompt-funnel-use-cases .prompt-funnel-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
.prompt-funnel-use-cases article p { margin-bottom: 0; }
.prompt-funnel-disclaimer {
    margin: 20px 0 0;
    font-size: 14px !important;
    font-weight: 750;
}
.prompt-funnel-faq {
    display: grid;
    grid-template-columns: minmax(260px, .7fr) minmax(0, 1.3fr);
    gap: 50px;
    align-items: start;
    border-top: 1px solid var(--line);
}
.prompt-funnel-faq-list { display: grid; gap: 10px; }
.prompt-funnel-faq details {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 10px 24px rgba(25,40,52,.04);
}
.prompt-funnel-faq summary {
    min-height: 54px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 15px 18px;
    cursor: pointer;
    color: var(--ink);
    font-weight: 850;
}
.prompt-funnel-faq summary::after {
    content: "+";
    color: var(--blue);
    font-size: 23px;
}
.prompt-funnel-faq details[open] summary::after { content: "−"; }
.prompt-funnel-faq details p {
    margin: 0;
    padding: 0 18px 18px;
    font-size: 15px;
}
.prompt-funnel-final {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 34px;
    align-items: center;
    margin-bottom: 56px;
    padding: 42px;
    color: #fff;
    border: 1px solid rgba(102,216,255,.24);
    border-radius: 8px;
    background:
        radial-gradient(circle at 84% 20%, rgba(13,131,197,.35), transparent 230px),
        linear-gradient(135deg, #06111b, #08253a);
    box-shadow: var(--shadow);
}
.prompt-funnel-final h2 { margin-bottom: 8px; color: #fff; }
.prompt-funnel-final p { margin-bottom: 0; color: rgba(225,241,249,.8); }
.prompt-funnel-final > div:last-child { display: grid; gap: 10px; }
.prompt-funnel-final small {
    color: rgba(208,231,244,.7);
    text-align: center;
}
.prompt-funnel-share { padding-bottom: 56px; }
.prompt-funnel-mobile-cta { display: none; }

@media (max-width: 900px) {
    .prompt-funnel-hero {
        grid-template-columns: 1fr;
        gap: 42px;
        padding-top: 54px;
    }
    .prompt-funnel-cover { max-width: 420px; }
    .prompt-funnel-trust,
    .prompt-funnel-grid { grid-template-columns: 1fr; }
    .prompt-funnel-trust div + div {
        border-top: 1px solid var(--line);
        border-left: 0;
    }
    .prompt-funnel-split,
    .prompt-funnel-faq,
    .prompt-funnel-final { grid-template-columns: 1fr; }
    .catalogue-funnel-visual {
        grid-template-columns: 1fr;
    }
    .catalogue-funnel-visual-note {
        grid-column: 1;
        margin-top: 0 !important;
    }
    .prompt-funnel-value { position: static; }
    .prompt-funnel-use-cases .prompt-funnel-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .prompt-funnel-final > div:last-child { justify-items: start; }
}

@media (max-width: 620px) {
    .prompt-funnel { padding-bottom: 88px; }
    .prompt-funnel-hero {
        min-height: 0;
        padding: 38px 16px 52px;
    }
    .prompt-funnel-hero h1 { font-size: 44px; }
    .prompt-funnel-actions { display: grid; }
    .prompt-funnel-actions .button,
    .prompt-funnel-final .button {
        width: 100%;
        min-height: 52px;
        white-space: normal;
        text-align: center;
    }
    .prompt-funnel-cover { width: calc(100% - 12px); }
    .prompt-funnel-price-card {
        right: -8px;
        bottom: 18px;
    }
    .prompt-funnel-section { padding: 58px 0; }
    .prompt-funnel h2 { font-size: 34px; }
    .prompt-funnel-grid,
    .prompt-funnel-use-cases .prompt-funnel-grid { grid-template-columns: 1fr; }
    .catalogue-funnel-visual-grid {
        grid-template-columns: 1fr;
    }
    .catalogue-funnel-visual-grid article {
        min-height: 0;
    }
    .catalogue-funnel-file-panel {
        min-height: 390px;
        padding: 28px;
    }
    .prompt-funnel-grid article { padding: 22px; }
    .prompt-funnel-final {
        width: calc(100% - 24px);
        margin-bottom: 38px;
        padding: 28px 22px;
    }
    .prompt-funnel-share { padding-bottom: 24px; }
    .prompt-funnel-mobile-cta {
        position: fixed;
        right: 0;
        bottom: 0;
        left: 0;
        z-index: 30;
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 10px;
        align-items: center;
        padding: 10px 76px 10px 12px;
        border-top: 1px solid var(--line);
        background: rgba(255,255,255,.96);
        box-shadow: 0 -12px 30px rgba(7,17,26,.16);
        backdrop-filter: blur(16px);
    }
    .prompt-funnel-mobile-cta div {
        min-width: 0;
        display: grid;
    }
    .prompt-funnel-mobile-cta span {
        overflow: hidden;
        color: var(--muted);
        font-size: 11px;
        font-weight: 800;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    .prompt-funnel-mobile-cta strong {
        color: var(--ink);
        font-size: 18px;
    }
    .prompt-funnel-mobile-cta .button {
        min-height: 48px;
        padding: 0 16px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .prompt-funnel * { scroll-behavior: auto !important; }
}
