:root {
  --bg: #08090b;
  --bg-soft: #0c0e12;
  --panel: #11141a;
  --panel-2: #161a21;
  --line: #232933;
  --line-soft: #1a1f27;
  --text: #ecebe6;
  --muted: #98a1ad;
  --muted-2: #6e7885;
  --accent: #ff7a45;
  --accent-soft: rgba(255, 122, 69, 0.12);
  --accent-2: #ffd166;
  --green: #4ade80;
  --red: #f87171;
  --radius: 18px;
  --radius-sm: 12px;
  --maxw: 1180px;
  --shadow: 0 30px 80px -40px rgba(0, 0, 0, 0.9);
  --font: "Inter", "Segoe UI", system-ui, -apple-system, "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --mono: "JetBrains Mono", "Cascadia Code", Consolas, ui-monospace, monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  background-image: radial-gradient(900px 500px at 15% -10%, rgba(255, 122, 69, 0.1), transparent 60%),
    radial-gradient(700px 500px at 100% 0%, rgba(255, 209, 102, 0.06), transparent 55%);
  background-repeat: no-repeat;
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}

::selection {
  background: var(--accent);
  color: #100b08;
}

.wrap {
  width: min(100% - 40px, var(--maxw));
  margin-inline: auto;
}

@media (max-width: 640px) {
  .wrap {
    width: min(100% - 28px, var(--maxw));
  }
}

/* ------------------------------------------------------------------ header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px);
  background: rgba(8, 9, 11, 0.72);
  border-bottom: 1px solid var(--line-soft);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-weight: 650;
  letter-spacing: -0.01em;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(145deg, var(--accent), #c2410c);
  display: grid;
  place-items: center;
  color: #1a0d06;
  font-weight: 800;
  font-size: 15px;
  box-shadow: 0 8px 24px -10px rgba(255, 122, 69, 0.8);
}

.brand small {
  display: block;
  font-size: 11px;
  color: var(--muted-2);
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1;
  margin-top: 3px;
}

.nav {
  display: flex;
  gap: 4px;
  margin-left: auto;
}

.nav a {
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 14px;
  color: var(--muted);
  transition: 0.2s ease;
}

.nav a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}

.nav a.active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.07);
}

.nav .nav-cta {
  color: #1a0d06;
  background: var(--accent);
  font-weight: 600;
  padding: 8px 18px;
}

.nav .nav-cta:hover {
  background: #ff8f63;
  color: #1a0d06;
}

.nav .nav-auth {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 180px;
  padding: 7px 18px;
  border: 1px solid rgba(255, 122, 69, 0.55);
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(255, 122, 69, 0.16), rgba(255, 122, 69, 0.06));
  color: #ff6b35;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: 0.18s ease;
}

.nav .nav-auth:hover {
  color: #ff8a5c;
  border-color: var(--accent);
  background: rgba(255, 122, 69, 0.2);
}

.nav-toggle {
  display: none;
  margin-left: auto;
  background: none;
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: 9px;
  width: 40px;
  height: 38px;
  font-size: 16px;
  cursor: pointer;
}

@media (max-width: 760px) {
  .site-header .wrap {
    gap: 12px;
    height: 62px;
  }
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .nav {
    display: none;
    position: absolute;
    top: 62px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 2px;
    margin-left: 0;
    padding: 10px 14px 16px;
    background: rgba(9, 10, 13, 0.98);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--line);
  }
  .nav.open {
    display: flex;
  }
  .nav a {
    padding: 12px 14px;
  }
  .nav .nav-cta {
    margin-top: 6px;
    text-align: center;
    padding: 11px 14px;
  }
}

/* -------------------------------------------------------------------- hero */

.hero {
  padding: 92px 0 64px;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(600px 400px at 30% 20%, #000, transparent 75%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-2);
  background: rgba(255, 209, 102, 0.08);
  border: 1px solid rgba(255, 209, 102, 0.2);
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 22px;
}

.kicker .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-2);
  box-shadow: 0 0 12px var(--accent-2);
}

.hero h1 {
  font-size: clamp(34px, 5.2vw, 62px);
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin: 0 0 22px;
  font-weight: 700;
}

.hero h1 em {
  font-style: normal;
  background: linear-gradient(100deg, var(--accent) 10%, var(--accent-2) 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p.lead {
  font-size: 17px;
  color: var(--muted);
  max-width: 46ch;
  margin: 0 0 32px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 12px 22px;
  font-size: 14.5px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease, border-color 0.2s ease;
  background: var(--panel-2);
  border-color: var(--line);
  color: var(--text);
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-1px);
  border-color: #313845;
  background: #1b2027;
}

.btn:active {
  transform: translateY(0);
}

.btn.primary {
  background: linear-gradient(180deg, #ff8a5c, var(--accent));
  color: #1a0d06;
  border-color: transparent;
  box-shadow: 0 14px 34px -16px rgba(255, 122, 69, 0.9);
}

.btn.primary:hover {
  background: #ff9469;
}

.btn.ghost {
  background: transparent;
}

.btn.block {
  width: 100%;
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.btn.sm {
  padding: 8px 14px;
  font-size: 13px;
  border-radius: 10px;
}

.btn.danger {
  color: var(--red);
  border-color: rgba(248, 113, 113, 0.3);
  background: rgba(248, 113, 113, 0.06);
}

.hero-card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.015));
  padding: 10px;
  box-shadow: var(--shadow);
  transform: rotate(-1.2deg);
}

.hero-card-inner {
  border-radius: 18px;
  overflow: hidden;
  background: var(--panel);
  aspect-ratio: 4 / 3.4;
  position: relative;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 30px;
  background-image: radial-gradient(400px 300px at 50% 0%, rgba(255, 122, 69, 0.16), transparent 70%);
}

.hero-card-inner .glyph {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--accent);
  opacity: 0.9;
}

.hero-card-inner h3 {
  margin: 12px 0 6px;
  font-size: 22px;
  letter-spacing: -0.01em;
}

.hero-card-inner p {
  margin: 0;
  color: var(--muted-2);
  font-size: 13px;
}

.hero-card-inner .big-mono {
  font-family: var(--mono);
  font-size: clamp(52px, 8vw, 86px);
  line-height: 1;
  letter-spacing: -0.06em;
  background: linear-gradient(180deg, #fff, #7b8492);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-top: 16px;
}

.stats {
  display: flex;
  gap: 40px;
  margin-top: 48px;
  flex-wrap: wrap;
}

.stats .num {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.stats .label {
  font-size: 12px;
  color: var(--muted-2);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

@media (max-width: 900px) {
  .hero {
    padding: 56px 0 40px;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .hero-card {
    transform: none;
    max-width: 460px;
  }
}

/* ----------------------------------------------------------------- section */

.section {
  padding: 64px 0;
}

.section.tight {
  padding: 36px 0;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 30px;
}

.section-head .eyebrow {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}

.section-head h2 {
  margin: 0;
  font-size: clamp(24px, 3vw, 34px);
  letter-spacing: -0.025em;
  line-height: 1.2;
}

.section-head p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14.5px;
}

.section-head .more {
  font-size: 14px;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  padding-bottom: 2px;
  white-space: nowrap;
  transition: 0.2s;
}

.section-head .more:hover {
  color: var(--accent);
  border-color: var(--accent);
}

/* ------------------------------------------------------------------ cards */

.grid-products {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

@media (max-width: 980px) {
  .grid-products {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 620px) {
  .grid-products {
    grid-template-columns: 1fr;
  }
}

.product-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(180deg, var(--panel), var(--bg-soft));
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-4px);
  border-color: #343c48;
  box-shadow: 0 26px 50px -34px rgba(0, 0, 0, 0.9);
}

.card-media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #0e1116;
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.product-card:hover .card-media img {
  transform: scale(1.04);
}

.card-media .placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  color: var(--muted-2);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  background-image: radial-gradient(300px 200px at 50% 100%, rgba(255, 122, 69, 0.1), transparent);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(8, 9, 11, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(8px);
}

.card-media .badge {
  position: absolute;
  top: 12px;
  left: 12px;
}

.badge.accent {
  background: var(--accent-soft);
  border-color: rgba(255, 122, 69, 0.35);
  color: var(--accent);
}

.badge.green {
  background: rgba(74, 222, 128, 0.1);
  border-color: rgba(74, 222, 128, 0.3);
  color: var(--green);
}

.card-body {
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.card-body h3 {
  margin: 0;
  font-size: 17.5px;
  letter-spacing: -0.01em;
  line-height: 1.35;
}

.card-body .desc {
  margin: 0;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-foot {
  margin-top: auto;
  padding-top: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line-soft);
}

.price {
  font-family: var(--mono);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.price small {
  font-size: 12px;
  color: var(--muted-2);
  font-family: var(--font);
  margin-right: 2px;
}

.fav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  padding: 2px;
  margin: 0;
  background: none;
  color: var(--muted-2);
  cursor: pointer;
  line-height: 1;
  transition: color 0.16s ease, transform 0.16s ease;
}

.fav-btn:hover {
  color: #ef4444;
  transform: scale(1.08);
}

.fav-btn.is-fav {
  color: #ef4444;
}

.fav-btn .fav-icon {
  font-family: var(--font);
  font-size: 19px;
  line-height: 1;
}

.admin-model-thumb {
  width: 54px;
  height: 40px;
  border-radius: 6px;
  overflow: hidden;
  background: #0d1015;
}

.admin-model-thumb canvas {
  width: 100% !important;
  height: 100% !important;
  display: block;
}

.card-foot .files {
  font-size: 12px;
  color: var(--muted-2);
}

/* --------------------------------------------------------------- articles */

.article-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line-soft);
}

.article-row {
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr) auto;
  gap: 24px;
  align-items: baseline;
  padding: 22px 4px;
  border-bottom: 1px solid var(--line-soft);
  transition: 0.2s;
}

.article-row:hover {
  padding-left: 12px;
  background: linear-gradient(90deg, rgba(255, 122, 69, 0.05), transparent 60%);
}

.article-row time {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--muted-2);
}

.article-row h3 {
  margin: 0 0 4px;
  font-size: 18px;
  letter-spacing: -0.01em;
  font-weight: 600;
}

.article-row p {
  margin: 0;
  color: var(--muted);
  font-size: 13.5px;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-row .arrow {
  color: var(--muted-2);
  font-size: 18px;
  transition: 0.2s;
}

.article-row:hover .arrow {
  color: var(--accent);
  transform: translateX(4px);
}

@media (max-width: 640px) {
  .article-row {
    grid-template-columns: 1fr auto;
    gap: 4px 14px;
  }
  .article-row time {
    grid-column: 1 / -1;
  }
  .article-row p {
    display: none;
  }
}

/* ---------------------------------------------------------------- product */

.page-head {
  padding: 48px 0 8px;
}

.crumbs {
  display: flex;
  gap: 8px;
  align-items: center;
  color: var(--muted-2);
  font-size: 13px;
  margin-bottom: 24px;
}

.crumbs a:hover {
  color: var(--accent);
}

.product-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(340px, 0.9fr);
  gap: 48px;
  padding: 16px 0 72px;
  align-items: start;
}

@media (max-width: 940px) {
  .product-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

.gallery-main {
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  background: #0d1015;
  aspect-ratio: 4 / 3;
  position: relative;
}

.gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-main .placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  color: var(--muted-2);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.2em;
}

.thumbs {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.thumbs button {
  position: relative;
  border: 1px solid var(--line);
  padding: 0;
  border-radius: 10px;
  overflow: hidden;
  width: 82px;
  height: 62px;
  flex: 0 0 auto;
  background: #0d1015;
  cursor: pointer;
  opacity: 0.6;
  transition: 0.2s;
}

.thumbs button img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.thumbs button.active,
.thumbs button:hover {
  opacity: 1;
  border-color: var(--accent);
}

.thumbs button.thumb-no {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 10px;
  background: var(--panel);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 20px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.16s;
}

.thumbs button.thumb-no:hover {
  color: var(--text);
  border-color: var(--muted-2);
}

.thumbs button.thumb-no.active {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--accent-soft);
}

.thumbs button.thumb-no:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.file-row.active {
  background: rgba(255, 122, 69, 0.08);
}

.thumb-3d-label {
  position: absolute;
  left: 4px;
  bottom: 4px;
  z-index: 1;
  padding: 1px 5px;
  border-radius: 4px;
  background: rgba(8, 9, 11, 0.82);
  color: var(--accent);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.thumb-3d-empty {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 16px;
}

.product-info h1 {
  margin: 8px 0 12px;
  font-size: clamp(26px, 3.4vw, 40px);
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.product-info .summary {
  color: var(--muted);
  margin: 0 0 22px;
  font-size: 15px;
}

.price-box {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(180deg, var(--panel), var(--bg-soft));
  margin-bottom: 22px;
}

.price-qrs {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.price-qr-link {
  display: inline-flex;
  flex: 0 0 auto;
}

.price-qr {
  display: block;
  width: 96px;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  padding: 2px;
}

.price-box .note.qr-note {
  max-width: 190px;
  white-space: normal;
  text-align: right;
  line-height: 1.7;
}

.price-box .price {
  font-size: 30px;
}

.price-box .fav-btn {
  margin-top: 2px;
}

.price-box .fav-btn .fav-icon {
  font-size: 27px;
}

.price-box .note {
  font-size: 12.5px;
  color: var(--muted-2);
  margin-left: auto;
}

.price-box .note.unlock {
  color: #f5c542;
  font-weight: 600;
}

.price-box .note.clickable {
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.price-box .note.clickable:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 4px;
}

.work-no {
  display: inline-block;
  margin-right: 10px;
  padding: 2px 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--accent);
  font-family: var(--mono);
  font-size: 0.62em;
  vertical-align: 0.22em;
}

.work-badge {
  position: absolute;
  left: 10px;
  top: 10px;
  z-index: 5;
  padding: 3px 9px;
  border: 1px solid rgba(255, 122, 69, 0.35);
  border-radius: 999px;
  background: rgba(10, 12, 16, 0.72);
  color: var(--accent);
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 600;
  backdrop-filter: blur(6px);
}

.auth-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 18px;
}

.auth-card {
  max-width: 440px;
  margin: 90px auto 120px;
}

.auth-dialog {
  width: min(440px, calc(100vw - 32px));
}

.account-card {
  max-width: 760px;
  margin: 56px auto 100px;
}

.auth-note {
  margin-top: 14px;
  text-align: center;
  line-height: 1.7;
}

.auth-dialog-note {
  flex: 1;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

@media (max-width: 640px) {
  .auth-card {
    margin: 48px auto 80px;
  }

  .account-card {
    margin: 32px auto 80px;
  }
}

.auth-tab {
  appearance: none;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  padding: 8px 18px;
  font: inherit;
  font-size: 13.5px;
  cursor: pointer;
  transition: 0.16s;
}

.auth-tab:hover {
  color: var(--text);
  border-color: var(--muted-2);
}

.auth-tab.active {
  border-color: rgba(255, 122, 69, 0.4);
  background: var(--accent-soft);
  color: var(--accent);
}

.download-card .btn {
  margin-top: 4px;
}

.buy-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px;
  background: linear-gradient(180deg, var(--panel), var(--bg-soft));
  margin-bottom: 22px;
}

.buy-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  font-weight: 600;
  font-size: 15px;
}

.buy-card .qr-grid {
  margin: 14px 0;
}

.buy-steps {
  margin: 0 0 8px;
  padding-left: 20px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.9;
}

.buy-steps li::marker {
  color: var(--accent);
}

.spec-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  overflow: hidden;
  margin: 20px 0;
}

.spec-grid div {
  background: var(--bg-soft);
  padding: 12px 14px;
}

.spec-grid dt {
  font-size: 11.5px;
  color: var(--muted-2);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 3px;
}

.spec-grid dd {
  margin: 0;
  font-size: 14px;
}

.files-box {
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 22px;
}

.files-box .head {
  padding: 12px 16px;
  background: var(--panel);
  border-bottom: 1px solid var(--line-soft);
  font-size: 13px;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
}

.file-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  font-size: 13.5px;
  border-bottom: 1px solid var(--line-soft);
}

.file-row:last-child {
  border-bottom: 0;
}

.file-row .name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: var(--mono);
  font-size: 12.5px;
}

.file-row .size {
  color: var(--muted-2);
  font-size: 12px;
}

.file-row .lock {
  color: var(--muted-2);
}

.file-row.previewable {
  cursor: pointer;
  transition: background 0.16s ease;
}

.file-row.previewable:hover {
  background: rgba(255, 255, 255, 0.035);
}

.file-row.previewable .lock:last-child {
  color: var(--accent);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
}

.tabs {
  display: flex;
  gap: 6px;
  border-bottom: 1px solid var(--line);
  margin: 36px 0 26px;
}

.tabs button {
  background: none;
  border: 0;
  padding: 12px 16px;
  color: var(--muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  font-size: 14px;
}

.tabs button.active {
  color: var(--text);
  border-color: var(--accent);
}

.prose {
  font-size: 15.5px;
  line-height: 1.85;
  color: #d9d8d3;
  max-width: 76ch;
}

.prose h1,
.prose h2,
.prose h3 {
  color: var(--text);
  letter-spacing: -0.02em;
  line-height: 1.3;
  margin: 2em 0 0.7em;
}

.prose h1 {
  font-size: 28px;
  margin-top: 0;
}

.prose h2 {
  font-size: 22px;
}

.prose h3 {
  font-size: 18px;
}

.prose p {
  margin: 0 0 1.1em;
}

.prose a {
  color: var(--accent);
  border-bottom: 1px solid rgba(255, 122, 69, 0.35);
}

.prose img {
  border-radius: 14px;
  margin: 1.4em 0;
  border: 1px solid var(--line);
}

.prose blockquote {
  margin: 1.4em 0;
  padding: 4px 18px;
  border-left: 3px solid var(--accent);
  background: rgba(255, 122, 69, 0.06);
  border-radius: 0 10px 10px 0;
  color: var(--muted);
}

.prose code {
  font-family: var(--mono);
  font-size: 0.88em;
  background: rgba(255, 255, 255, 0.07);
  padding: 2px 6px;
  border-radius: 5px;
}

.prose pre {
  background: #0b0d11;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px 18px;
  overflow-x: auto;
  line-height: 1.6;
}

.prose pre code {
  background: none;
  padding: 0;
}

.prose ul,
.prose ol {
  padding-left: 1.4em;
  margin: 0 0 1.2em;
}

.prose li {
  margin: 0.35em 0;
}

.prose hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 2em 0;
}

/* ------------------------------------------------------------------- forms */

.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 16px;
}

.field > label {
  font-size: 12.5px;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.input,
.textarea,
.select {
  width: 100%;
  background: #0c0f13;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 11px 13px;
  font-size: 14px;
  outline: none;
  transition: 0.18s;
}

.input:focus,
.textarea:focus,
.select:focus {
  border-color: rgba(255, 122, 69, 0.6);
  box-shadow: 0 0 0 3px rgba(255, 122, 69, 0.1);
}

.textarea {
  resize: vertical;
  min-height: 108px;
  line-height: 1.7;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

@media (max-width: 560px) {
  .field-row {
    grid-template-columns: 1fr;
  }
}

.check {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13.5px;
  color: var(--muted);
  cursor: pointer;
  user-select: none;
}

.check input {
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
}

.hint {
  font-size: 12.5px;
  color: var(--muted-2);
  margin: 6px 0 0;
}

/* -------------------------------------------------------------------- pay */

.pay-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 36px;
  padding: 20px 0 80px;
  align-items: start;
}

@media (max-width: 900px) {
  .pay-layout {
    grid-template-columns: 1fr;
  }
}

.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  padding: 26px;
}

.panel + .panel {
  margin-top: 20px;
}

.panel h2 {
  margin: 0 0 6px;
  font-size: 20px;
  letter-spacing: -0.02em;
}

.panel .sub {
  color: var(--muted);
  font-size: 13.5px;
  margin: 0 0 20px;
}

.order-line {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 14px;
}

.order-line:last-child {
  border-bottom: 0;
}

.order-line span:first-child {
  color: var(--muted);
}

.order-line .mono {
  font-family: var(--mono);
  font-size: 13px;
}

.total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.total .price {
  font-size: 30px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12.5px;
  border: 1px solid var(--line);
  background: var(--bg-soft);
  color: var(--muted);
}

.status-pill.pending {
  color: var(--accent-2);
  border-color: rgba(255, 209, 102, 0.3);
  background: rgba(255, 209, 102, 0.08);
}

.status-pill.claimed {
  color: var(--accent);
  border-color: rgba(255, 122, 69, 0.35);
  background: var(--accent-soft);
}

.status-pill.paid {
  color: var(--green);
  border-color: rgba(74, 222, 128, 0.3);
  background: rgba(74, 222, 128, 0.08);
}

.status-pill.cancelled {
  color: var(--red);
  border-color: rgba(248, 113, 113, 0.3);
  background: rgba(248, 113, 113, 0.08);
}

.qr-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 20px 0;
}

.qr-grid.compact {
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 12px;
}

.qr-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
  text-align: center;
  background: #0c0f13;
}

.qr-card img {
  width: 100%;
  max-width: 190px;
  margin: 0 auto 10px;
  border-radius: 8px;
  background: #fff;
  padding: 6px;
}

.qr-card .empty {
  aspect-ratio: 1;
  border: 1px dashed var(--line);
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: var(--muted-2);
  font-size: 12px;
  margin-bottom: 10px;
}

.qr-card .label {
  font-size: 12.5px;
  color: var(--muted);
}

.steps {
  display: flex;
  gap: 0;
  margin-bottom: 24px;
}

.step {
  flex: 1;
  font-size: 12px;
  color: var(--muted-2);
  padding-top: 10px;
  border-top: 2px solid var(--line);
  position: relative;
}

.step.done {
  color: var(--muted);
  border-color: #3b4250;
}

.step.active {
  color: var(--text);
  border-color: var(--accent);
}

.notice {
  border: 1px solid rgba(255, 209, 102, 0.25);
  background: rgba(255, 209, 102, 0.06);
  color: #e8d9a8;
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 13.5px;
  margin: 16px 0;
}

.notice.error {
  border-color: rgba(248, 113, 113, 0.3);
  background: rgba(248, 113, 113, 0.07);
  color: #ffc8c8;
}

.notice.ok {
  border-color: rgba(74, 222, 128, 0.3);
  background: rgba(74, 222, 128, 0.07);
  color: #c9f7d8;
}

.download-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.download-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border: 1px solid rgba(74, 222, 128, 0.25);
  background: rgba(74, 222, 128, 0.05);
  border-radius: 12px;
  font-size: 13.5px;
}

.download-item .name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.muted {
  color: var(--muted);
}

.small {
  font-size: 12.5px;
}

.center {
  text-align: center;
}

.mt-2 {
  margin-top: 12px;
}

.mt-4 {
  margin-top: 24px;
}

.hidden {
  display: none !important;
}

/* ----------------------------------------------------------------- footer */

.site-footer {
  border-top: 1px solid var(--line-soft);
  padding: 46px 0 40px;
  margin-top: 40px;
  color: var(--muted-2);
  font-size: 13px;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}

.footer-grid .brand {
  color: var(--text);
}

.footer-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.footer-links a:hover {
  color: var(--accent);
}

.copyright {
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid var(--line-soft);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 12px;
}

/* --------------------------------------------------------------- admin ui */

.admin-shell {
  display: grid;
  grid-template-columns: 216px minmax(0, 1fr);
  gap: 28px;
  padding: 34px 0 70px;
  align-items: start;
}

@media (max-width: 860px) {
  .admin-shell {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .admin-nav {
    display: flex;
    overflow-x: auto;
    gap: 6px;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 6px;
  }
  .admin-nav button {
    white-space: nowrap;
  }
}

.admin-nav {
  position: sticky;
  top: 92px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.admin-nav button {
  text-align: left;
  background: none;
  border: 1px solid transparent;
  color: var(--muted);
  padding: 10px 14px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 14px;
}

.admin-nav button:hover {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

.admin-nav button.active {
  background: var(--accent-soft);
  border-color: rgba(255, 122, 69, 0.25);
  color: var(--accent);
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

@media (max-width: 860px) {
  .stat-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.stat-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
  padding: 18px;
}

.stat-card .num {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.02em;
  font-family: var(--mono);
}

.stat-card .label {
  font-size: 12px;
  color: var(--muted-2);
  margin-top: 4px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

@media (max-width: 1100px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }
}

.chart-card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
  padding: 18px;
}

.chart-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.chart-head h3 {
  margin: 0;
  font-size: 15px;
}

.chart-head span {
  color: var(--muted-2);
  font-size: 12px;
  white-space: nowrap;
}

.daily-chart {
  display: flex;
  align-items: stretch;
  gap: 6px;
  height: 220px;
}

.daily-col {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
}

.daily-value {
  height: 16px;
  color: var(--muted-2);
  font-family: var(--mono);
  font-size: 11px;
}

.daily-bar-wrap {
  flex: 1;
  width: 100%;
  min-height: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.daily-bar {
  width: 100%;
  max-width: 26px;
  min-height: 2px;
  border-radius: 6px 6px 2px 2px;
  background: linear-gradient(180deg, var(--accent), #c2410c);
}

.daily-label {
  color: var(--muted-2);
  font-size: 10px;
  white-space: nowrap;
}

.bar-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.bar-row {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr) 42px;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
}

.bar-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--muted);
}

.bar-track {
  height: 10px;
  border-radius: 999px;
  background: var(--bg-soft);
  overflow: hidden;
}

.bar-fill {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #c2410c, var(--accent));
}

.bar-count {
  color: var(--text);
  font-family: var(--mono);
  text-align: right;
}

.table-wrap {
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: auto;
  background: var(--panel);
}

table.data {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
  min-width: 640px;
}

table.data th {
  text-align: left;
  padding: 12px 16px;
  color: var(--muted-2);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--line);
  background: var(--panel-2);
  white-space: nowrap;
}

table.data td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--line-soft);
  vertical-align: middle;
  white-space: nowrap;
}

table.data td .muted {
  white-space: normal;
}

table.data tr:last-child td {
  border-bottom: 0;
}

table.data tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

table.data .actions {
  display: flex;
  gap: 6px;
  justify-content: flex-end;
}

table.data.users-table {
  min-width: 0;
  table-layout: fixed;
}

table.data.users-table th,
table.data.users-table td {
  padding: 10px 12px;
  white-space: normal;
  overflow-wrap: anywhere;
}

table.data.users-table th {
  white-space: nowrap;
}

table.data.users-table .cell-action {
  cursor: pointer;
}

table.data.users-table .cell-action:hover {
  color: var(--accent);
  background: var(--accent-soft);
}

.empty-state {
  padding: 56px 24px;
  text-align: center;
  color: var(--muted-2);
  font-size: 14px;
}

.toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.toolbar .spacer {
  flex: 1;
}

.tag {
  display: inline-block;
  font-size: 11.5px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 1px 9px;
  margin-right: 5px;
}

dialog {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--bg-soft);
  color: var(--text);
  padding: 0;
  width: min(920px, calc(100vw - 32px));
  max-height: calc(100vh - 60px);
  box-shadow: var(--shadow);
  overflow: hidden;
}

dialog::backdrop {
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
}

dialog[open] {
  display: flex;
  flex-direction: column;
}

body:has(dialog[open]) {
  overflow: hidden;
}

.dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  background: var(--bg-soft);
  z-index: 2;
}

.dialog-head h3 {
  margin: 0;
  font-size: 18px;
}

.dialog-body {
  padding: 24px;
  overflow-y: auto;
  flex: 1 1 auto;
  min-height: 0;
}

.dialog-foot {
  padding: 16px 24px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  position: sticky;
  bottom: 0;
  background: var(--bg-soft);
}

.icon-btn {
  background: none;
  border: 0;
  color: var(--muted);
  font-size: 22px;
  cursor: pointer;
  line-height: 1;
  padding: 4px 8px;
  border-radius: 8px;
}

.icon-btn:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

.dropzone {
  border: 1.5px dashed var(--line);
  border-radius: 14px;
  padding: 28px;
  text-align: center;
  color: var(--muted-2);
  font-size: 13.5px;
  cursor: pointer;
  transition: 0.2s;
}

.dropzone:hover,
.dropzone.dragover {
  border-color: var(--accent);
  color: var(--muted);
  background: var(--accent-soft);
}

.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.media-tile {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: #0c0f13;
}

.media-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-tile .del {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 0;
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
}

.media-tile .del:hover {
  background: var(--red);
}

.media-tile .tagline {
  position: absolute;
  left: 4px;
  bottom: 4px;
  font-size: 10px;
  background: rgba(0, 0, 0, 0.7);
  padding: 1px 6px;
  border-radius: 4px;
  color: #ddd;
}

.toast-host {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 200;
  display: grid;
  gap: 8px;
}

.toast {
  background: #191e25;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 18px;
  font-size: 13.5px;
  box-shadow: var(--shadow);
  animation: toast-in 0.2s ease;
  max-width: 360px;
}

.toast.ok {
  border-color: rgba(74, 222, 128, 0.35);
}

.toast.error {
  border-color: rgba(248, 113, 113, 0.4);
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}

.skeleton {
  border-radius: var(--radius);
  min-height: 300px;
  background: linear-gradient(100deg, var(--panel) 30%, var(--panel-2) 50%, var(--panel) 70%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
}

@keyframes shimmer {
  to {
    background-position: -200% 0;
  }
}

/* --------------------------------------------------------------- preview */

.viewer-hint {
  position: absolute;
  left: 12px;
  bottom: 12px;
  max-width: calc(100% - 24px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 11.5px;
  color: var(--muted-2);
  background: rgba(0, 0, 0, 0.45);
  padding: 3px 9px;
  border-radius: 6px;
  pointer-events: none;
}

.viewer-loading {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--muted-2);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.16em;
}

/* ------------------------------------------------------------- works / 3D */

.works-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 6px 0 0;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line-soft);
}

.works-nav a {
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 13.5px;
  background: var(--panel);
  transition: 0.18s ease;
}

.works-nav a:hover {
  color: var(--text);
  border-color: #343c48;
}

.works-nav a.active {
  color: var(--accent);
  background: var(--accent-soft);
  border-color: rgba(255, 122, 69, 0.4);
}

.works-upload {
  padding: 8px 16px;
  border: 1px solid rgba(255, 122, 69, 0.42);
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-family: inherit;
  font-size: 13.5px;
  cursor: pointer;
  transition: 0.18s ease;
}

.works-upload:hover {
  background: rgba(255, 122, 69, 0.2);
  border-color: rgba(255, 122, 69, 0.65);
}

.works-count {
  font-size: 13px;
  color: var(--muted-2);
  white-space: nowrap;
  padding-bottom: 6px;
}

.works-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin: 16px 0 18px;
}

.works-hint {
  font-size: 12.5px;
  color: var(--muted-2);
}

.model-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

@media (max-width: 1100px) {
  .model-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.model-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(180deg, var(--panel), var(--bg-soft));
  display: flex;
  flex-direction: column;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.model-card:hover {
  transform: translateY(-4px);
  border-color: #343c48;
  box-shadow: 0 26px 50px -34px rgba(0, 0, 0, 0.9);
}

.model-media {
  position: relative;
  aspect-ratio: 4 / 3;
  background: radial-gradient(420px 280px at 50% 0%, #1a2028, #0a0c10);
  overflow: hidden;
  cursor: grab;
}

.model-media:active {
  cursor: grabbing;
}

.model-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  transition: opacity 0.3s ease;
}

.model-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--muted-2);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.2em;
  z-index: 1;
}

.model-viewer-slot {
  position: absolute;
  inset: 0;
  z-index: 2;
}

.model-viewer-slot canvas {
  width: 100% !important;
  height: 100% !important;
  display: block;
}

.model-loading {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  z-index: 3;
  color: var(--muted-2);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  pointer-events: none;
  background: rgba(8, 9, 11, 0.25);
}

.model-media.ready .model-poster,
.model-media.ready .model-placeholder {
  opacity: 0;
  visibility: hidden;
}

.model-media.ready .model-loading {
  display: none;
}

.model-hint {
  position: absolute;
  left: 10px;
  bottom: 10px;
  max-width: calc(100% - 20px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  z-index: 4;
  font-size: 11px;
  color: var(--muted);
  background: rgba(8, 9, 11, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 3px 8px;
  border-radius: 6px;
  pointer-events: none;
  backdrop-filter: blur(6px);
}

.model-media .badge {
  position: absolute;
  right: 10px;
  top: 10px;
  z-index: 5;
}

.is-mobile .gallery-badge.right,
.is-mobile .viewer-hint,
.is-mobile .model-hint,
.is-mobile .model-media .badge.accent {
  display: none !important;
}

.model-body {
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  flex: 1;
}

.model-body h3 {
  margin: 0;
  font-size: 16px;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

.model-body h3 a:hover {
  color: var(--accent);
}

.model-body .desc {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.model-foot {
  margin-top: auto;
  padding-top: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  border-top: 1px solid var(--line-soft);
}

.model-price {
  display: flex;
  align-items: center;
  gap: 8px;
}

.model-foot .price {
  font-size: 17px;
}

.model-link {
  font-size: 12.5px;
  color: var(--muted-2);
  white-space: nowrap;
}

.model-link:hover {
  color: var(--accent);
}

.model-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.model-del {
  background: none;
  border: 0;
  padding: 0;
  color: var(--muted-2);
  font-family: inherit;
  font-size: 12.5px;
  cursor: pointer;
  white-space: nowrap;
  transition: 0.18s ease;
}

.model-del:hover {
  color: #fb7185;
}

.model-del:disabled {
  opacity: 0.5;
  cursor: default;
}

.upload-dialog {
  width: min(520px, calc(100vw - 32px));
}

.upload-dialog form {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
}

.upload-dialog input[type="file"] {
  padding: 9px 11px;
  color: var(--muted);
}

.upload-dialog input[type="file"]::file-selector-button {
  margin-right: 10px;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--text);
  font-family: inherit;
  cursor: pointer;
}

.gallery-3d {
  width: 100%;
  height: 100%;
  position: relative;
}

.gallery-badge {
  position: absolute;
  top: 12px;
  z-index: 6;
  padding: 4px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(10, 12, 16, 0.72);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.02em;
  pointer-events: none;
  backdrop-filter: blur(6px);
}

.gallery-badge.left {
  left: 12px;
  color: var(--accent);
  border-color: rgba(255, 122, 69, 0.4);
}

.gallery-badge.right {
  right: 12px;
  color: var(--accent);
  border-color: rgba(255, 122, 69, 0.4);
}

.gallery-3d canvas {
  width: 100% !important;
  height: 100% !important;
  display: block;
  touch-action: none;
}

@media (max-width: 560px) {
  .works-nav {
    gap: 6px;
  }
  .works-nav a {
    padding: 6px 12px;
    font-size: 12.5px;
  }
  .works-toolbar {
    margin: 12px 0 14px;
  }
  .model-grid {
    gap: 14px;
  }
  .model-body {
    padding: 12px 13px 14px;
  }
  .model-body h3 {
    font-size: 14px;
  }
  .model-foot .price {
    font-size: 15px;
  }
}

/* ------------------------------------------------------------ works hero */

.works-hero {
  max-width: 880px;
  margin: 0 0 28px;
}

.works-hero .eyebrow {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.works-hero h1 {
  font-size: clamp(33px, 5.2vw, 58px);
  line-height: 1.1;
  letter-spacing: -0.04em;
  margin: 0 0 16px;
  font-weight: 700;
}

.works-hero p {
  color: var(--muted);
  font-size: 16px;
  max-width: 62ch;
  margin: 0;
}

.works-toolbar {
  align-items: flex-end;
  margin: 18px 0 6px;
}

.works-toolbar > div {
  min-width: 0;
}

.works-category-title {
  font-size: 20px;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0;
  font-weight: 650;
}

.works-category-desc {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
  min-height: 1.2em;
}

@media (max-width: 560px) {
  .works-hero {
    margin-bottom: 20px;
  }
  .works-hero h1 {
    font-size: 32px;
  }
  .works-hero p {
    font-size: 14px;
  }
}

/* -------------------------------------------------------- contact band */

.contact-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  margin: 64px auto 90px;
  padding: 28px 30px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background:
    radial-gradient(520px 260px at 100% 0%, rgba(255, 122, 69, 0.14), transparent 62%),
    var(--panel);
}

.contact-band .mm-eyebrow {
  margin-bottom: 8px;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.contact-band h2 {
  margin: 0 0 6px;
  font-size: clamp(20px, 2.5vw, 28px);
  letter-spacing: -0.03em;
}

.contact-band p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.contact-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.025);
  color: var(--text);
  font-size: 13px;
  line-height: 1.2;
  white-space: nowrap;
  transition: 0.18s ease;
}

.contact-link:hover {
  border-color: rgba(255, 122, 69, 0.5);
  color: var(--accent);
}

.contact-link.primary {
  border-color: var(--accent);
  background: var(--accent);
  color: #1a0d06;
  font-weight: 600;
}

.contact-link.primary:hover {
  background: #ff8f63;
  color: #1a0d06;
}

.contact-link.ghost {
  color: var(--muted);
}

@media (max-width: 760px) {
  .contact-band {
    flex-direction: column;
    align-items: flex-start;
    margin: 44px auto 70px;
    padding: 22px;
  }

  .contact-link {
    white-space: normal;
  }
}

/* ------------------------------------------------------------ for who */

.for-who-section {
  margin: 56px auto 8px;
}

.for-who-head {
  max-width: 720px;
  margin-bottom: 28px;
}

.for-who-head .mm-eyebrow {
  margin-bottom: 10px;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.for-who-head h2 {
  margin: 0;
  font-size: clamp(24px, 3.2vw, 38px);
  letter-spacing: -0.03em;
  line-height: 1.12;
}

.for-who-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.for-who-grid > div {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.02);
}

.for-who-grid strong {
  display: block;
  margin-bottom: 5px;
  font-size: 14px;
}

.for-who-grid span {
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.6;
}

@media (max-width: 1024px) {
  .for-who-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .for-who-grid {
    grid-template-columns: 1fr;
  }
}
