@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Tomorrow:wght@400;500;600;700&display=swap');

/* ============================== tokens ============================== */
:root {
  --bg: #080808;
  --panel: #0d0d0e;
  --panel-2: #101012;
  --line: #232323;
  --line-soft: #1a1a1a;
  --text: #f3f3f3;
  --muted: #a3a3a3;
  --blue: #0a72f5;
  --blue-dark: #0757bd;
  --orange: #f57b11;
  --green: #37d07f;
  --radius: 16px;
  --display: 'Tomorrow', 'Space Grotesk', sans-serif;
  --body: 'Space Grotesk', Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  -webkit-font-smoothing: antialiased;
}

body.modal-open { overflow: hidden; }

a { color: inherit; text-decoration: none; }

img { max-width: 100%; }

button { font-family: inherit; }

/* ============================== header ============================== */
header {
  position: sticky;
  top: 0;
  z-index: 60;
  height: 84px;
  padding: 0 4%;
  display: flex;
  align-items: center;
  gap: 24px;
  background: rgba(9, 9, 10, .92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid #1b1b1b;
}

.site-logo { display: flex; align-items: center; flex: 0 0 190px; }
.site-logo img { width: 190px; height: 54px; object-fit: contain; }

header nav {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-left: auto;
  font: 500 12.5px var(--display);
  letter-spacing: .03em;
  color: #c2c2c2;
  white-space: nowrap;
}

header nav a { position: relative; padding: 6px 0; transition: color .2s; }
header nav a:hover { color: #fff; }
header nav a.active { color: #fff; }
header nav a.active::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  border-radius: 2px;
  background: var(--orange);
}
header nav a.nav-free { color: var(--orange); }
header nav a.nav-free::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--orange);
  display: inline-block;
  margin-right: 7px;
  vertical-align: middle;
  box-shadow: 0 0 8px rgba(245, 123, 17, .8);
}

.cart-icon {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border: 1px solid #2a2a2a;
  border-radius: 20px;
  font-size: 16px;
  color: #d0d0d0;
  transition: all .2s;
  position: relative;
  text-decoration: none;
}
.cart-icon:hover { border-color: var(--orange); color: var(--orange); }
.cart-badge {
  font-size: 11px;
  font-weight: 700;
  background: var(--orange);
  color: #000;
  padding: 2px 6px;
  border-radius: 10px;
  min-width: 18px;
  text-align: center;
}

.site-search {
  display: flex;
  align-items: center;
  width: 220px;
  height: 44px;
  padding: 0 6px 0 16px;
  border: 1px solid #262626;
  border-radius: 24px;
  background: #101011;
  transition: border-color .2s;
}
.site-search:focus-within { border-color: #35507a; }
.site-search input {
  flex: 1;
  min-width: 0;
  background: none;
  border: 0;
  outline: none;
  color: #eee;
  font: 13px var(--body);
}
.site-search input::placeholder { color: #7d7d7d; }
.site-search button {
  width: 32px; height: 32px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: #1b1b1c;
  color: #cfcfcf;
  font-size: 17px;
  cursor: pointer;
}
.site-search button:hover { background: var(--blue); color: #fff; }

.menu-toggle {
  display: none;
  margin-left: auto;
  background: none;
  border: 0;
  color: #fff;
  font-size: 25px;
  line-height: 1;
  cursor: pointer;
}

/* ============================== buttons ============================== */
.blue-button,
.dark-button,
.outline-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 8px;
  padding: 12px 18px;
  font: 600 13.5px var(--body);
  letter-spacing: .01em;
  cursor: pointer;
  transition: background .2s, border-color .2s, color .2s, transform .15s;
  border: 1px solid transparent;
}

.blue-button { background: var(--blue); border-color: var(--blue); color: #fff; }
.blue-button:hover { background: var(--blue-dark); border-color: var(--blue-dark); }

.dark-button { background: #161617; border-color: #303030; color: #ececec; }
.dark-button:hover { border-color: var(--blue); color: #fff; }

.outline-button { background: transparent; border-color: #303030; color: #e8e8e8; }
.outline-button:hover { border-color: var(--blue); color: #fff; }

.ghost-button { background: transparent; color: #cfcfcf; }
.ghost-button:hover { color: #fff; }

.blue-button:disabled,
.dark-button:disabled { opacity: .45; cursor: not-allowed; }

/* ============================== hero ============================== */
.hero {
  position: relative;
  height: calc(100vh - 84px);
  min-height: 560px;
  overflow: hidden;
}
.hero-image { position: absolute; inset: 0; background-size: cover; background-position: center; filter: saturate(.9); }
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, .9), rgba(0, 0, 0, .35) 55%, rgba(0, 0, 0, .08)),
    linear-gradient(0deg, #080808, transparent 45%);
}
.hero-copy { position: relative; z-index: 1; max-width: 720px; padding: 15vh 4% 0; }
.hero-kicker,
.section-kicker {
  font: 700 11px var(--display);
  letter-spacing: .18em;
  color: var(--orange);
  text-transform: uppercase;
}
.hero h1 {
  font-family: var(--display);
  font-size: clamp(44px, 6.2vw, 82px);
  line-height: 1.03;
  letter-spacing: -.045em;
  margin: 18px 0;
}
.hero p { color: #cfcfcf; font-size: 17px; line-height: 1.6; max-width: 520px; }
.hero-buttons { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

.hero-controls {
  position: absolute;
  z-index: 2;
  right: 4%;
  bottom: 44px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.hero-controls button {
  width: 44px; height: 44px;
  display: grid;
  place-items: center;
  padding-bottom: 5px;
  border: 0;
  border-radius: 50%;
  background: var(--orange);
  color: #fff;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  transition: transform .15s, background .2s;
}
.hero-controls button:hover { transform: scale(1.07); background: #ff8c25; }
.hero-controls div { display: flex; align-items: center; gap: 7px; }
.hero-controls i { width: 8px; height: 8px; border-radius: 50%; background: #6f6f6f; cursor: pointer; transition: .2s; }
.hero-controls i.active { width: 26px; border-radius: 8px; background: var(--orange); }

.hero-logo-link {
  position: absolute;
  bottom: 100px;
  left: 24px;
  z-index: 2;
  text-decoration: none;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  padding: 12px 16px;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: all 0.3s ease;
}

.hero-logo-link:hover {
  background: rgba(0, 0, 0, 0.8);
  transform: translateY(-2px);
}

.hero-logo-badge {
  display: flex;
  flex-direction: column;
  text-align: left;
  color: #fff;
}

@media (max-width: 768px) {
  .hero-logo-link {
    bottom: 70px;
  }
}

/* ============================== sections ============================== */
.section { padding: 92px 4%; }
.section-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 26px;
  margin-bottom: 36px;
}
.section h2 {
  font-family: var(--display);
  font-size: clamp(32px, 3.6vw, 46px);
  letter-spacing: -.03em;
  margin: 12px 0 8px;
  line-height: 1.08;
}
.section-row p { color: var(--muted); margin: 0; max-width: 560px; line-height: 1.6; }

.page { padding: 56px 4% 90px; }

/* ============================== asset cards ============================== */
.asset-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }

.asset-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color .2s, transform .2s;
}
.asset-card:hover { border-color: #34507a; transform: translateY(-3px); }

.asset-media { position: relative; display: block; height: 210px; background: #141414; }
.asset-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.asset-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, .55), transparent 55%);
  opacity: 0;
  transition: opacity .2s;
}
.asset-card:hover .asset-media::after { opacity: 1; }

.tag {
  position: absolute;
  left: 12px;
  bottom: 12px;
  background: rgba(10, 114, 245, .9);
  color: #fff;
  font: 700 9.5px var(--display);
  letter-spacing: .12em;
  padding: 5px 9px;
  border-radius: 5px;
}

.asset-content { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.asset-content h3 { font: 600 15.5px/1.35 var(--body); margin: 0; flex: 1; }
.asset-content h3 a:hover { color: #8dc0ff; }
.asset-foot { display: flex; align-items: center; justify-content: space-between; }
.asset-foot strong { font: 700 17px var(--display); }
.asset-go {
  width: 32px; height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--orange);
  color: #fff;
  font-size: 17px;
  transition: transform .15s, background .2s;
}
.asset-go:hover { transform: translateX(2px); background: #ff8c25; }

/* ---------- auto-moving asset slider ---------- */
.section-actions { display: flex; align-items: center; gap: 12px; }
.slider-arrows { display: flex; gap: 8px; }
.slider-arrows button {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  padding-bottom: 4px;
  border: 1px solid #303030;
  border-radius: 50%;
  background: #101011;
  color: #ddd;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  transition: border-color .2s, color .2s, background .2s;
}
.slider-arrows button:hover { border-color: var(--orange); color: #fff; background: #1a140d; }

.slider-hint { margin: 16px 0 0; color: #777; font-size: 12.5px; }

.asset-card.is-free { border-color: #3a2b1b; }
.asset-card.is-free:hover { border-color: var(--orange); }
.asset-card.is-free .tag { background: rgba(245, 123, 17, .92); }

.free-flag {
  display: inline-block;
  margin-left: 8px;
  padding: 3px 8px;
  border-radius: 5px;
  background: var(--orange);
  color: #1b0f03;
  font: 700 9.5px var(--display);
  letter-spacing: .12em;
  vertical-align: middle;
}
.model-price.is-free strong { color: var(--orange); }
.free-soon.inline { display: inline-flex; align-items: center; }
.free-card > a { display: block; }
.free-copy h3 a:hover { color: #ffb877; }

.switch-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 14px 0;
  padding: 12px 14px;
  border: 1px solid #2c2c2c;
  border-radius: 9px;
  background: #0b0b0c;
}
.switch-row input { width: 18px; height: 18px; margin-top: 1px; accent-color: var(--orange); cursor: pointer; }
.switch-row label { cursor: pointer; }
.switch-row b { display: block; font-size: 13px; margin-bottom: 3px; }
.switch-row small { color: #8f8f8f; font-size: 12px; }

/* ============================== works / portfolio ============================== */
.works-section {
  padding: 100px 4% 90px;
  background: radial-gradient(1200px 500px at 50% -10%, rgba(10, 114, 245, .07), transparent 70%), #070708;
  border-top: 1px solid #141414;
  border-bottom: 1px solid #141414;
}

.works-heading {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.works-heading h2 {
  font-family: var(--display);
  font-size: clamp(42px, 6vw, 70px);
  letter-spacing: -.035em;
  line-height: 1;
  margin: 12px 0 0;
}
.works-line {
  width: 120px;
  height: 3px;
  border-radius: 3px;
  margin: 24px 0 22px;
  background: linear-gradient(90deg, var(--orange), var(--blue));
}
.works-heading p { color: #a9a9a9; font-size: 16.5px; margin: 0; max-width: 620px; line-height: 1.6; }

.works-arrows { display: flex; gap: 12px; margin: 28px 0 42px; }
.works-arrows button {
  width: 48px; height: 48px;
  display: grid;
  place-items: center;
  padding-bottom: 5px;
  border: 0;
  border-radius: 50%;
  background: var(--orange);
  color: #fff;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  transition: transform .15s, background .2s;
}
.works-arrows button:hover { transform: scale(1.07); background: #ff8c25; }

.work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
  overflow: visible;
  scrollbar-width: none;
  padding-bottom: 0;
}
.work-grid::-webkit-scrollbar { display: none; }

.work-card {
  background: #0b0b0c;
  border: 1px solid #1f1f1f;
  border-radius: 18px;
  overflow: hidden;
  cursor: pointer;
  transition: border-color .2s, transform .2s;
}
.work-card:hover { border-color: #35507a; transform: translateY(-3px); }
.work-card:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

.work-media { position: relative; height: 300px; background: #121213; overflow: hidden; }
.work-media img,
.work-media video { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s; }
.work-card:hover .work-media img { transform: scale(1.04); }
.work-placeholder {
  display: block;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 50% 40%, #1b2433, #0e0e10 70%);
}

.play-badge {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 12px 34px rgba(10, 114, 245, .5);
  transition: transform .2s, background .2s;
}
.work-card:hover .play-badge { transform: scale(1.08); background: #2b8bff; }
.play-badge::before {
  content: '';
  position: absolute;
  left: 24px;
  top: 20px;
  border-left: 18px solid #fff;
  border-top: 11px solid transparent;
  border-bottom: 11px solid transparent;
}

.work-copy { padding: 22px 24px 26px; }
.work-tag {
  font: 700 10.5px var(--display);
  letter-spacing: .16em;
  color: #2b8bff;
  text-transform: uppercase;
}
.work-copy h3 { font: 600 23px/1.22 var(--display); margin: 12px 0 10px; letter-spacing: -.02em; }
.work-copy p { color: #a6a6a6; font-size: 14px; line-height: 1.6; margin: 0; }

/* ============================== work modal ============================== */
.work-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.work-modal.open { display: flex; }
.work-modal-backdrop { position: absolute; inset: 0; background: rgba(3, 3, 4, .86); backdrop-filter: blur(4px); }
.work-modal-dialog {
  position: relative;
  z-index: 1;
  width: min(1080px, 100%);
  max-height: 92vh;
  overflow: auto;
  background: #0c0c0d;
  border: 1px solid #2a2a2a;
  border-radius: 16px;
  box-shadow: 0 40px 120px rgba(0, 0, 0, .7);
}
.work-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  width: 38px;
  height: 38px;
  border: 1px solid #333;
  border-radius: 50%;
  background: rgba(10, 10, 11, .8);
  color: #fff;
  font-size: 16px;
  cursor: pointer;
}
.work-modal-close:hover { background: var(--blue); border-color: var(--blue); }
.work-modal-media { background: #000; }
.work-modal-media video,
.work-modal-media img { display: block; width: 100%; max-height: 66vh; object-fit: contain; }
.work-modal-body { padding: 26px 30px 30px; }
.work-modal-body h3 { font: 600 28px/1.2 var(--display); margin: 12px 0 10px; }
.work-modal-body p { color: #b0b0b0; line-height: 1.7; margin: 0; white-space: pre-line; }

/* ============================== free models ============================== */
.free-band {
  padding: 96px 4%;
  background: linear-gradient(180deg, #0b0b0c, #080809);
  border-top: 1px solid #171717;
}
.free-inner { max-width: 1500px; margin: auto; }

.free-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 34px;
  margin-bottom: 40px;
}
.free-head h2 {
  font-family: var(--display);
  font-size: clamp(34px, 4.4vw, 54px);
  line-height: 1.04;
  letter-spacing: -.035em;
  margin: 14px 0 12px;
}
.free-head p { color: #a3a3a3; line-height: 1.65; margin: 0; max-width: 540px; }

.free-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.free-card {
  display: flex;
  flex-direction: column;
  background: #101011;
  border: 1px solid #242424;
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color .2s, transform .2s;
}
.free-card:hover { border-color: #4a3a26; transform: translateY(-3px); }
.free-media { position: relative; height: 210px; background: #151516; }
.free-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.free-pill {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 6px 11px;
  border-radius: 20px;
  background: var(--orange);
  color: #fff;
  font: 700 10px var(--display);
  letter-spacing: .16em;
}
.free-copy { display: flex; flex-direction: column; gap: 10px; padding: 20px 22px 24px; flex: 1; }
.free-meta { font: 600 10.5px var(--display); letter-spacing: .12em; color: #8e8e8e; text-transform: uppercase; }
.free-copy h3 { font: 600 20px/1.25 var(--display); margin: 0; letter-spacing: -.01em; }
.free-copy p { color: #a2a2a2; font-size: 13.5px; line-height: 1.6; margin: 0; flex: 1; }
.free-download {
  border: 1px solid #3a3028;
  background: #1a1512;
  color: #ffb877;
  border-radius: 9px;
  padding: 11px 14px;
  font: 600 13px var(--body);
  cursor: pointer;
  transition: background .2s, border-color .2s, color .2s;
}
.free-download:hover { background: var(--orange); border-color: var(--orange); color: #fff; }
.free-soon {
  border: 1px dashed #2e2e2e;
  border-radius: 9px;
  padding: 11px 14px;
  text-align: center;
  color: #7f7f7f;
  font-size: 12.5px;
}

.free-hero {
  max-width: 980px;
  margin: 0 auto;
  padding: 90px 4% 40px;
  text-align: center;
}
.free-hero h1 {
  font: 700 clamp(44px, 6.4vw, 78px)/1.02 var(--display);
  letter-spacing: -.045em;
  margin: 16px 0 18px;
}
.free-hero p { color: #b3b3b3; font-size: 17px; line-height: 1.65; max-width: 640px; margin: 0 auto; }
.free-hero-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.free-list { padding: 20px 4% 90px; max-width: 1500px; margin: auto; }
.free-grid-wide { grid-template-columns: repeat(3, 1fr); gap: 24px; }
.free-note {
  margin: 40px 0 0;
  color: #7f7f7f;
  font-size: 13px;
  line-height: 1.7;
  max-width: 760px;
}

.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 9px; margin: 10px 0 34px; }
.chip {
  border: 1px solid #2b2b2b;
  background: #101011;
  color: #c3c3c3;
  border-radius: 22px;
  padding: 9px 16px;
  font: 600 12.5px var(--body);
  cursor: pointer;
  transition: .2s;
}
.chip:hover { border-color: #444; color: #fff; }
.chip.active { background: var(--orange); border-color: var(--orange); color: #fff; }

/* ============================== promo strip ============================== */
.promo-strip {
  display: block;
  padding: 0;
  background: transparent;
  border-top: 1px solid #191919;
  margin-top: 88px;
}
.promo-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  min-height: 500px;
}
.promo-text-section {
  padding: 60px 4%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: #0a0a0b;
}
.promo-text-section h2 {
  font-family: var(--display);
  font-size: clamp(34px, 4vw, 54px);
  line-height: 1.03;
  letter-spacing: -.035em;
  margin: 14px 0 16px;
}
.promo-text-section p {
  color: #a8a8a8;
  line-height: 1.65;
  max-width: 460px;
  margin: 0 0 26px;
}
.promo-image-section {
  position: relative;
  width: 100%;
  background-size: cover;
  background-position: center 30%;
  background-repeat: no-repeat;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  padding: 40px;
}
.promo-image-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.2) 100%);
}
.promo-overlay {
  position: relative;
  z-index: 1;
  max-width: 380px;
  color: white;
}
.promo-overlay span { color: var(--orange); font: 700 10px var(--display); letter-spacing: .18em; }
.promo-overlay h3 { font: 600 26px/1.18 var(--display); margin: 12px 0 10px; letter-spacing: -.02em; }
.promo-overlay p { color: #d0d0d0; font-size: 14px; line-height: 1.65; margin: 0 0 18px; }

.free-deal { display: none; }

/* ============================== clients ============================== */
.clients-section {
  padding: 82px 4% 96px;
  border-top: 1px solid #171717;
  text-align: center;
}
.clients-section h2 { font: 600 clamp(30px, 3.4vw, 42px)/1.1 var(--display); margin: 12px 0 34px; }
.clients { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.client {
  display: grid;
  place-items: center;
  min-height: 78px;
  border: 1px solid #292929;
  font: 700 18px var(--display);
  letter-spacing: .05em;
  color: #d9d9d9;
  transition: border-color .2s, color .2s;
}
.client:hover { border-color: var(--blue); color: #fff; }
.client.has-logo img { max-height: 38px; max-width: 160px; object-fit: contain; display: block; transition: opacity .2s; }
.client.has-logo:hover img { opacity: 1; }

.promo-logo { display: block; width: 250px; max-width: 100%; height: auto; margin-bottom: 20px; }
.free-deal-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

.clients-editor { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.client-edit { padding: 12px 14px; background: #0b0b0d; border: 1px solid #242428; border-radius: 10px; }
.client-edit .field { margin: 0 0 10px; }
.client-logo-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.client-logo-thumb {
  flex: 0 0 64px;
  width: 64px;
  height: 36px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 6px;
  background: #141417;
  color: #6f6f74;
  font-size: 10px;
}
.client-logo-thumb img { max-width: 100%; max-height: 100%; object-fit: contain; }
.client-logo-row .upload-button { padding: 7px 10px; font-size: 11.5px; }
.client-logo-row .remove { padding: 6px 9px; font-size: 11px; }
.client-logo-row .url-input { flex: 1; min-width: 130px; }

/* ============================== footer ============================== */
footer { background: #060607; border-top: 1px solid #1a1a1a; padding: 72px 4% 0; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.25fr .8fr 1fr;
  gap: 70px;
  padding-bottom: 54px;
  max-width: 1500px;
  margin: auto;
}
footer img { width: 240px; height: auto; }
footer p { color: #b7b7b7; line-height: 1.7; max-width: 420px; }
footer h3 { font: 600 18px var(--display); margin: 0 0 22px; }
footer section > a { display: block; color: #bdbdbd; margin: 14px 0; font-size: 14px; }
footer section > a:hover { color: #fff; }
.socials { display: flex; gap: 10px; margin-top: 24px; }
.socials a {
  width: 44px; height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid #2a2a2a;
  border-radius: 9px;
  color: #cfcfcf;
  transition: .2s;
}
.socials a:hover { border-color: var(--blue); color: #fff; background: #10233c; }
.newsletter { display: flex; gap: 8px; max-width: 360px; }
.newsletter input {
  flex: 1;
  padding: 12px 14px;
  border: 1px solid #2c2c2c;
  border-radius: 8px;
  background: #101011;
  color: #eee;
  font: 13.5px var(--body);
  outline: none;
}
.newsletter input:focus { border-color: #37537d; }
.newsletter button {
  width: 48px;
  border: 0;
  border-radius: 8px;
  background: var(--blue);
  color: #fff;
  font-size: 17px;
  cursor: pointer;
}
.footer-admin { margin-top: 22px !important; color: #7f7f7f !important; font-size: 13px !important; }
.copyright {
  border-top: 1px solid #161616;
  padding: 24px 0;
  text-align: center;
  color: #767676;
  font-size: 13px;
  max-width: 1500px;
  margin: auto;
}

/* ============================== contact form ============================== */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
}

.form-group input,
.form-group textarea {
  padding: 12px 14px;
  border: 1px solid #2c2c2c;
  border-radius: 8px;
  background: #101011;
  color: #eee;
  font: 14px var(--body);
  outline: none;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: #37537d;
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

/* ============================== content pages ============================== */
.content-hero {
  min-height: calc(100vh - 84px);
  margin: 0;
  padding: 14vh 8%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}
body:has(.content-hero) {
  background:
    radial-gradient(1100px 720px at 76% 0%, rgba(10, 114, 245, .17), transparent 66%) no-repeat,
    var(--bg);
}
.content-hero h1 {
  font: 700 clamp(44px, 6.6vw, 80px)/1.04 var(--display);
  letter-spacing: -.05em;
  margin: 18px 0;
  max-width: 880px;
}
.content-hero p { color: #bdbdbd; font-size: 17px; line-height: 1.7; max-width: 760px; white-space: pre-line; margin: 0 0 30px; }

.page-head { max-width: 1500px; margin: 0 auto 30px; }
.page-head h1 { font: 600 clamp(36px, 4.4vw, 54px)/1.08 var(--display); letter-spacing: -.035em; margin: 12px 0 10px; }
.page-head p { color: #a6a6a6; line-height: 1.6; margin: 0; max-width: 720px; }
.page-head p a { color: #58a6ff; }

/* ============================== marketplace page ============================== */
.market-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 34px;
  max-width: 1500px;
  margin: auto;
  align-items: start;
}
.asset-sidebar {
  position: sticky;
  top: 100px;
  background: #0e0e0f;
  border: 1px solid #1f1f1f;
  border-radius: 14px;
  padding: 24px;
}
.asset-sidebar h2 {
  font: 600 18px var(--display);
  margin: 0 0 18px;
  padding-left: 12px;
  border-left: 4px solid var(--blue);
}
.asset-sidebar h2 + h2 { margin-top: 26px; }
.asset-search { display: flex; gap: 0; margin-bottom: 22px; }
.asset-search input {
  flex: 1;
  min-width: 0;
  padding: 11px 12px;
  background: #111112;
  border: 1px solid #2a2a2a;
  border-right: 0;
  border-radius: 7px 0 0 7px;
  color: #eee;
  font: 13px var(--body);
  outline: none;
}
.asset-search button {
  width: 48px;
  border: 1px solid var(--blue);
  border-radius: 0 7px 7px 0;
  background: var(--blue);
  color: #fff;
  font-size: 19px;
  cursor: pointer;
}
.category-list { list-style: none; margin: 0; padding: 0; }
.category-list li { margin: 4px 0; }
.category-list button {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 10px 11px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: none;
  color: #c6c6c6;
  font: 500 13.5px var(--body);
  cursor: pointer;
  text-align: left;
}
.category-list button:hover { background: #171718; color: #fff; }
.category-list button.active { background: #12233a; border-color: #24425f; color: #fff; }
.category-list b { font-weight: 400; color: #8b8b8b; }

.market-results { min-width: 0; }
.market-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 26px;
  color: #cfcfcf;
  font-size: 15px;
}
.market-top label { display: flex; align-items: center; gap: 9px; color: #8f8f8f; font-size: 13px; }
.market-top select {
  background: #111112;
  border: 1px solid #2c2c2c;
  border-radius: 20px;
  color: #e6e6e6;
  padding: 9px 12px;
  font: 13px var(--body);
  outline: none;
}
.all-assets { grid-template-columns: repeat(4, 1fr); }
.all-assets .asset-media { height: 240px; }
.all-assets .asset-media img { object-fit: contain; background: #161616; }

.empty-state {
  border: 1px dashed #2c2c2c;
  border-radius: 14px;
  padding: 60px 24px;
  text-align: center;
  color: #8a8a8a;
}

/* ============================== checkout ============================== */
.checkout {
  max-width: 1050px;
  margin: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 52px;
  padding: 70px 4%;
}
.checkout h1 { font: 600 clamp(30px, 3.6vw, 44px)/1.1 var(--display); letter-spacing: -.03em; }
.checkout img { width: 100%; height: 330px; object-fit: contain; background: #101011; border-radius: 12px; border: 1px solid #222; }
.checkout h2 { font: 600 28px var(--display); }
.checkout p, .checkout small { color: #a6a6a6; line-height: 1.6; }
.checkout form {
  background: #0f0f10;
  border: 1px solid #262626;
  border-radius: 14px;
  padding: 28px;
  height: max-content;
}
.checkout label { display: block; margin: 15px 0; color: #d6d6d6; font-size: 13px; }
.checkout input {
  display: block;
  width: 100%;
  margin-top: 7px;
  padding: 12px 13px;
  background: #0a0a0b;
  border: 1px solid #303030;
  border-radius: 7px;
  color: #fff;
  font: 14px var(--body);
  outline: none;
}
.checkout form > div { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.checkout button { width: 100%; margin: 8px 0 14px; }

/* ============================== admin ============================== */
.admin-body { background: #08080a; }

.login {
  max-width: 420px;
  margin: 11vh auto;
  padding: 38px;
  background: #0f0f10;
  border: 1px solid #262626;
  border-radius: 18px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, .55);
}
.login h1 { font: 600 40px/1.05 var(--display); letter-spacing: -.04em; margin: 14px 0 8px; }
.login p { color: #a3a3a3; line-height: 1.6; margin: 0 0 22px; font-size: 14px; }
.login .blue-button { width: 100%; margin-top: 8px; }
.login small { display: block; margin-top: 12px; color: #ff8d8d; min-height: 18px; font-size: 13px; }
.login-back { display: inline-block; margin-top: 18px; color: #8a8a8a; font-size: 13px; }
.login-back:hover { color: #fff; }

.field { display: block; margin: 13px 0; }
.field > span { display: block; margin-bottom: 7px; color: #9b9b9b; font-size: 12px; letter-spacing: .03em; }
input[type="text"],
input[type="search"],
input[type="email"],
input[type="password"],
input:not([type]),
textarea,
select {
  font-family: var(--body);
}
.field input,
.field textarea,
.url-input {
  width: 100%;
  padding: 11px 13px;
  background: #0a0a0b;
  border: 1px solid #2b2b2b;
  border-radius: 8px;
  color: #f1f1f1;
  font-size: 13.5px;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; line-height: 1.55; }
.field input:focus,
.field textarea:focus,
.url-input:focus {
  border-color: #3b6fb5;
  box-shadow: 0 0 0 3px rgba(10, 114, 245, .14);
}

.admin-wrap { max-width: 1180px; margin: auto; padding: 24px 4% 130px; }

.admin-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 22px;
  border-bottom: 1px solid #1b1b1b;
}
.brand { font: 700 20px var(--display); letter-spacing: -.02em; }
.brand span { color: var(--blue); }
.admin-top-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.admin-heading { padding: 26px 0 6px; }
.admin-heading h1 { font: 600 42px/1.05 var(--display); letter-spacing: -.04em; margin: 12px 0 8px; }
.admin-heading p { color: #989898; line-height: 1.6; margin: 0; max-width: 720px; font-size: 14px; }

.admin-tabs {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 14px 0;
  margin: 18px 0 4px;
  background: linear-gradient(#08080a 75%, rgba(8, 8, 10, 0));
}
.admin-tab {
  border: 1px solid #2a2a2a;
  background: #101011;
  color: #c3c3c3;
  padding: 9px 15px;
  border-radius: 22px;
  font: 600 13px var(--body);
  cursor: pointer;
  transition: .2s;
}
.admin-tab:hover { border-color: #3c3c3c; color: #fff; }
.admin-tab.active { background: var(--blue); border-color: var(--blue); color: #fff; }

.editor-section {
  background: #0c0c0e;
  border: 1px solid #1e1e1e;
  border-radius: 16px;
  padding: 24px;
  margin: 16px 0;
}
.editor-section > h2,
.editor-title h2 { font: 600 22px var(--display); margin: 0 0 6px; letter-spacing: -.02em; }
.editor-subhead { margin-top: 30px !important; }
.editor-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 6px;
}
.admin-help { color: #8b8b8b; font-size: 13px; line-height: 1.6; margin: 6px 0 16px; max-width: 620px; }

.editor-card {
  background: #101013;
  border: 1px solid #232326;
  border-radius: 12px;
  padding: 18px;
  margin: 14px 0;
}
.editor-card-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}
.editor-card-title b { font: 600 14px var(--display); color: #e9e9e9; letter-spacing: .02em; }
.editor-card-actions { display: flex; gap: 8px; }
.editor-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }

.add {
  border: 1px solid var(--blue);
  background: #0d57b8;
  color: #fff;
  border-radius: 8px;
  padding: 9px 15px;
  font: 600 13px var(--body);
  cursor: pointer;
  white-space: nowrap;
}
.add:hover { background: var(--blue); }
.remove {
  border: 1px solid #3d2727;
  background: #1a1112;
  color: #ffa3a3;
  border-radius: 7px;
  padding: 7px 11px;
  font: 600 12px var(--body);
  cursor: pointer;
}
.remove:hover { background: #2a1416; border-color: #6b3535; }
.icon-button {
  width: 30px;
  height: 30px;
  border: 1px solid #2f2f2f;
  border-radius: 7px;
  background: #141416;
  color: #d0d0d0;
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
}
.icon-button:hover:not(:disabled) { border-color: var(--blue); color: #fff; }
.icon-button:disabled { opacity: .35; cursor: not-allowed; }

.media-box {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 16px;
  align-items: start;
  margin-top: 12px;
  padding: 14px;
  background: #0b0b0d;
  border: 1px solid #242428;
  border-radius: 11px;
}
.media-thumb {
  position: relative;
  height: 120px;
  border-radius: 8px;
  overflow: hidden;
  background: #151517;
  display: grid;
  place-items: center;
  color: #6f6f6f;
  font-size: 12px;
  text-align: center;
}
.media-thumb.big { height: 140px; }
.media-thumb img,
.media-thumb video { width: 100%; height: 100%; object-fit: cover; display: block; }
.media-empty { padding: 10px; }
.thumb-badge {
  position: absolute;
  left: 8px;
  bottom: 8px;
  padding: 3px 7px;
  border-radius: 4px;
  background: rgba(6, 6, 7, .82);
  border: 1px solid rgba(245, 123, 17, .55);
  color: #ffb26b;
  font: 700 9px var(--display);
  letter-spacing: .14em;
}

.media-controls { display: flex; flex-direction: column; align-items: flex-start; gap: 9px; }
.media-label { font: 600 12px var(--display); letter-spacing: .08em; text-transform: uppercase; color: #b9b9b9; }
.upload-button {
  position: relative;
  display: inline-block;
  overflow: hidden;
  padding: 10px 15px;
  border: 1px solid #2f6fd0;
  border-radius: 8px;
  background: #0c4c9f;
  color: #fff;
  font: 600 13px var(--body);
  cursor: pointer;
  transition: background .2s;
}
.upload-button:hover { background: #0d5cbf; }
.upload-button.primary { background: var(--orange); border-color: var(--orange); color: #1a0e03; }
.upload-button.primary:hover { background: #ff8c25; }
.upload-button input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.media-hint { color: #7d7d7d; font-size: 12px; line-height: 1.5; max-width: 460px; }
.media-warning { color: #ffb36b; font-size: 12px; line-height: 1.5; }
.media-box.missing-file { border-color: #5a3a1d; background: #17100a; }
.media-file {
  font-size: 12px;
  color: #cfcfcf;
  background: #17171a;
  border: 1px solid #28282c;
  border-radius: 6px;
  padding: 5px 9px;
  max-width: 100%;
  overflow-wrap: anywhere;
}
.url-input { margin-top: 2px; font-size: 12.5px; }
.file-box { grid-template-columns: 1fr; }
.video-box.dragging { border-color: var(--orange); background: #1a1309; box-shadow: 0 0 0 3px rgba(245, 123, 17, .18); }

.savebar {
  position: sticky;
  bottom: 16px;
  z-index: 50;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
  padding: 14px;
  background: rgba(20, 20, 22, .96);
  border: 1px solid #333;
  border-radius: 12px;
  box-shadow: 0 18px 45px rgba(0, 0, 0, .55);
  backdrop-filter: blur(10px);
}
.savebar #admin-status { color: #8dbbff; font-size: 12.5px; line-height: 1.4; }
.reset-button {
  border: 1px solid #3a2a2a;
  background: transparent;
  color: #d9a0a0;
  border-radius: 8px;
  padding: 11px 14px;
  font: 600 13px var(--body);
  cursor: pointer;
}
.reset-button:hover { border-color: #7a3f3f; color: #ffc0c0; }

/* ============================== toast ============================== */
.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 300;
  transform: translate(-50%, 20px);
  padding: 12px 20px;
  border-radius: 10px;
  background: #1b1b1e;
  border: 1px solid #3a3a3f;
  color: #f0f0f0;
  font-size: 13.5px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s, transform .25s;
  max-width: min(90vw, 460px);
  text-align: center;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.admin-body .toast { bottom: 24px; }

/* ============================== model detail page ============================== */
.model-page { padding-top: 26px; }

.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  color: #8b8b8b;
  font-size: 13px;
  margin-bottom: 26px;
}
.crumbs a:hover { color: #fff; }
.crumbs b { color: #e6e6e6; font-weight: 500; }
.crumbs span { color: #4a4a4a; }

.model-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 46px;
  align-items: start;
  max-width: 1500px;
  margin: auto;
}

.model-gallery { min-width: 0; }
.model-main {
  position: relative;
  border: 1px solid #242424;
  border-radius: 16px;
  overflow: hidden;
  background: radial-gradient(circle at 50% 40%, #191c22, #0c0d0f 75%);
}
.model-main img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 620px;
  object-fit: contain;
  transition: opacity .15s;
}
.model-thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.model-thumbs button {
  width: 92px;
  height: 70px;
  padding: 0;
  border: 1px solid #2a2a2a;
  border-radius: 9px;
  overflow: hidden;
  background: #101011;
  cursor: pointer;
  transition: border-color .2s;
}
.model-thumbs button img { width: 100%; height: 100%; object-fit: cover; display: block; }
.model-thumbs button.active,
.model-thumbs button:hover { border-color: var(--blue); }

.model-info h1 {
  font: 600 clamp(30px, 3.6vw, 46px)/1.08 var(--display);
  letter-spacing: -.035em;
  margin: 12px 0 14px;
}
.model-blurb { color: #b0b0b0; font-size: 15.5px; line-height: 1.65; margin: 0 0 24px; }

.model-price {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 16px 0;
  border-top: 1px solid #1f1f1f;
  border-bottom: 1px solid #1f1f1f;
  margin-bottom: 22px;
}
.model-price strong { font: 700 36px var(--display); letter-spacing: -.03em; }
.model-price small { color: #8f8f8f; font-size: 12.5px; }

.model-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 26px; }

.spec-list { margin: 0 0 22px; padding: 0; }
.spec-list > div {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 10px 2px;
  border-bottom: 1px dashed #212121;
  font-size: 13.5px;
}
.spec-list dt { color: #8b8b8b; }
.spec-list dd { margin: 0; color: #e6e6e6; text-align: right; }

.model-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.model-tags span {
  border: 1px solid #2c2c2c;
  border-radius: 20px;
  padding: 6px 12px;
  font-size: 12px;
  color: #c2c2c2;
}

.model-about {
  display: grid;
  grid-template-columns: 1.4fr 0.6fr;
  gap: 48px;
  max-width: 1500px;
  margin: 70px auto 0;
  padding-top: 44px;
  border-top: 1px solid #1c1c1c;
}
.model-about h2 { font: 600 30px var(--display); letter-spacing: -.03em; margin: 0 0 18px; }
.model-about-copy p { color: #b3b3b3; line-height: 1.8; margin: 0 0 16px; max-width: 720px; }
.model-about-copy h4 { font: 600 16px var(--display); color: #e8e8e8; margin: 22px 0 10px; }
.model-list { margin: 0 0 16px; padding-left: 20px; color: #b3b3b3; line-height: 1.85; max-width: 700px; }
.model-list li { margin: 4px 0; }
.model-includes {
  background: #0e0e10;
  border: 1px solid #232323;
  border-radius: 14px;
  padding: 24px;
  height: max-content;
}
.model-includes h3 { font: 600 17px var(--display); margin: 0 0 14px; }
.model-includes ul { margin: 0 0 18px; padding-left: 18px; color: #b0b0b0; line-height: 1.9; font-size: 13.5px; }

.related-section {
  max-width: 1500px;
  margin: 70px auto 0;
  padding-top: 44px;
  border-top: 1px solid #1c1c1c;
}
.asset-grid.related-grid { grid-template-columns: repeat(4, 1fr); }

.checkout-back { display: inline-block; margin-bottom: 14px; color: #8b8b8b; font-size: 13px; }
.checkout-back:hover { color: #fff; }
#checkout-message { display: block; margin: 8px 0 0; font-size: 12px; min-height: 16px; }
#login-message { display: block; margin: 8px 0 0; font-size: 12px; min-height: 16px; color: #a6a6a6; }
.checkout input:focus { border-color: #444; }
.checkout button:disabled { opacity: 0.7; cursor: not-allowed; }

/* ============================== cart ============================== */
.dark-button {
  padding: 12px 20px;
  background: #1a1a1c;
  border: 1px solid #2a2a2a;
  color: #d0d0d0;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 500;
  font-size: 14px;
  transition: all .2s;
  text-decoration: none;
  display: inline-block;
}
.dark-button:hover { border-color: #444; color: #fff; }

/* ============================== admin import ============================== */
.import-section textarea,
#import-text {
  width: 100%;
  min-height: 92px;
  padding: 12px 13px;
  background: #0a0a0b;
  border: 1px solid #2b2b2b;
  border-radius: 8px;
  color: #eaeaea;
  font: 12.5px/1.6 'Consolas', monospace;
  outline: none;
}
#import-text:focus { border-color: #3b6fb5; }
.import-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.import-help-box {
  margin-top: 14px;
  padding: 16px 18px;
  background: #101114;
  border: 1px solid #26292f;
  border-left: 3px solid var(--orange);
  border-radius: 9px;
  color: #b4b4b4;
  font-size: 13px;
  line-height: 1.75;
}
.import-help-box ol { margin: 10px 0; padding-left: 20px; }
.import-help-box li { margin: 5px 0; }
.import-help-box a { color: #58a6ff; }
.import-help-box kbd {
  background: #1e1f23;
  border: 1px solid #34363c;
  border-radius: 4px;
  padding: 1px 6px;
  font: 11px 'Consolas', monospace;
}
.import-section code {
  background: #17181b;
  border: 1px solid #282a30;
  border-radius: 4px;
  padding: 1px 5px;
  font-size: 11.5px;
}

.editor-details { margin-top: 6px; border-top: 1px solid #222; padding-top: 4px; }
.admin-filter { display: block; margin: 4px 0 16px; }.admin-filter input {
  width: 100%;
  padding: 12px 14px;
  background: #0a0a0b;
  border: 1px solid #2b2b2b;
  border-radius: 9px;
  color: #f0f0f0;
  font-size: 13.5px;
  outline: none;
}
.admin-filter input:focus { border-color: #3b6fb5; }

.admin-notice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 20px;
  padding: 16px 18px;
  background: linear-gradient(90deg, rgba(245, 123, 17, .12), rgba(10, 114, 245, .08));
  border: 1px solid #3a2c1d;
  border-radius: 12px;
}
.admin-notice b { display: block; font-size: 14px; margin-bottom: 4px; }
.admin-notice span { color: #a9a9a9; font-size: 13px; }
.editor-details summary {
  cursor: pointer;
  color: #9c9c9c;
  font-size: 12.5px;
  padding: 10px 0;
  list-style: none;
  user-select: none;
}
.editor-details summary::-webkit-details-marker { display: none; }
.editor-details summary::before { content: '▸ '; color: var(--blue); }
.editor-details[open] summary::before { content: '▾ '; }
.editor-details summary:hover { color: #fff; }

/* ============================== studio CRM ============================== */
.crm { display: grid; grid-template-columns: 252px minmax(0, 1fr); min-height: 100vh; }

.crm-side {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 22px 16px 18px;
  background: #0b0b0d;
  border-right: 1px solid #1c1c1f;
}
.crm-brand {
  display: block;
  padding: 0 6px;
  font: 700 18px var(--display);
  letter-spacing: -.02em;
  line-height: 1.1;
}
.crm-brand span { color: var(--blue); }
.crm-brand small { display: block; margin-top: 6px; font: 600 10px var(--body); letter-spacing: .18em; text-transform: uppercase; color: #6f7683; }

.crm-nav { display: flex; flex-direction: column; gap: 3px; overflow-y: auto; }
.crm-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 11px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: transparent;
  color: #a9a9ad;
  font: 500 13px var(--body);
  cursor: pointer;
  text-align: left;
  transition: background .15s, color .15s, border-color .15s;
}
.crm-link:hover { background: #141418; color: #fff; }
.crm-link.active { background: linear-gradient(90deg, #12233a, #101218); color: #fff; border-color: #1d3454; }
.crm-ico { width: 18px; text-align: center; font-size: 13px; color: #7b8492; }
.crm-link.active .crm-ico { color: var(--blue); }
.crm-link b { margin-left: auto; padding: 2px 7px; border-radius: 9px; background: #1b1b1f; color: #9a9a9a; font: 600 10.5px var(--body); }
.crm-link.active b { background: rgba(10, 114, 245, .2); color: #9dc6ff; }

.crm-side-foot { margin-top: auto; display: flex; flex-direction: column; gap: 6px; }
.crm-storage { padding: 10px 8px 12px; border-top: 1px solid #1b1b1f; }
.crm-storage > span { display: block; margin-bottom: 8px; font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: #6f7683; }
.crm-storage small { display: block; margin-top: 7px; color: #7a7a80; font-size: 11px; }
.crm-bar { height: 5px; border-radius: 3px; background: #1b1b1f; overflow: hidden; }
.crm-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--blue), #58a6ff); }
.crm-side-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #9b9b9f;
  font: 500 12.5px var(--body);
  cursor: pointer;
  text-align: left;
}
.crm-side-link:hover { background: #141418; color: #fff; }

.crm-main { display: flex; flex-direction: column; min-width: 0; }
.crm-head {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 22px;
  padding: 24px 34px 18px;
  background: rgba(8, 8, 10, .93);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #17171a;
}
.crm-crumb { font: 600 10.5px var(--body); letter-spacing: .16em; text-transform: uppercase; color: #6f7683; }
.crm-head h1 { font: 600 30px/1.1 var(--display); letter-spacing: -.035em; margin: 7px 0 5px; }
.crm-head p { margin: 0; color: #8d8d92; font-size: 13.5px; line-height: 1.55; max-width: 640px; }
.crm-head-actions { display: flex; align-items: center; gap: 12px; }
.crm-status { color: #8dbbff; font-size: 12.5px; line-height: 1.4; max-width: 240px; text-align: right; }

.crm-body { display: flex; flex-direction: column; gap: 18px; padding: 24px 34px 8px; }
.crm-body .editor-section { margin: 0; }
.crm-foot { display: flex; flex-wrap: wrap; gap: 10px; padding: 6px 34px 40px; }

.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.stat-card { padding: 16px 18px; background: #0e0e11; border: 1px solid #202025; border-radius: 14px; }
.stat-card span { display: block; color: #7d8592; font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; }
.stat-card strong { display: block; font: 700 30px var(--display); letter-spacing: -.03em; margin: 8px 0 2px; }
.stat-card small { color: #7d7d83; font-size: 11.5px; }

.crm-alert {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  padding: 14px 16px;
  border: 1px solid #3a2c1d;
  border-radius: 12px;
  background: linear-gradient(90deg, rgba(245, 123, 17, .12), rgba(10, 114, 245, .06));
}
.crm-alert.warn { border-color: #24374f; background: linear-gradient(90deg, rgba(10, 114, 245, .14), rgba(10, 114, 245, .03)); }
.crm-alert b { display: block; font-size: 13.5px; margin-bottom: 3px; }
.crm-alert span { color: #a5a5aa; font-size: 12.5px; }

.share-card {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 18px;
  border: 1px solid #1d3a5c;
  border-radius: 12px;
  background: linear-gradient(90deg, rgba(10, 114, 245, .14), rgba(10, 114, 245, .03));
}
.share-card.off { border-color: #2a2a2e; background: #0e0e11; }
.share-kicker { display: block; margin-bottom: 6px; font: 600 10px var(--body); letter-spacing: .16em; text-transform: uppercase; color: #7fb2ff; }
.share-card.off .share-kicker { color: #7d7d83; }
.share-card b { display: block; font-size: 14px; margin-bottom: 8px; }
.share-links { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.share-link {
  padding: 7px 11px;
  border: 1px solid #2f5a8c;
  border-radius: 7px;
  background: #0b2036;
  color: #bfe0ff;
  font: 600 12.5px var(--body);
  cursor: pointer;
}
.share-link:hover { background: #123456; color: #fff; }
.share-card small { display: block; max-width: 640px; color: #9aa3ad; font-size: 12px; line-height: 1.55; }
.share-card code { padding: 1px 5px; border-radius: 4px; background: #15181d; border: 1px solid #2a2e35; font-size: 11.5px; }

.dash-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 16px; }
.dash-card { padding: 18px 20px; background: #0d0d10; border: 1px solid #1f1f24; border-radius: 14px; }
.dash-card h3 { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 14px; font: 600 15px var(--display); }
.dash-link { color: #7fb2ff; font: 500 12px var(--body); }
.dash-link:hover { color: #fff; }

.bar-row { display: flex; align-items: center; gap: 12px; margin: 10px 0; font-size: 12.5px; color: #b7b7bc; }
.bar-row > span { flex: 0 0 96px; width: 96px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar-row .bar { flex: 1; height: 7px; border-radius: 4px; background: #17171b; overflow: hidden; }
.bar-row .bar i { display: block; height: 100%; background: linear-gradient(90deg, #0a72f5, #58a6ff); }
.bar-row b { width: 28px; text-align: right; color: #e8e8ea; font-weight: 600; }

.quick-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.quick {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 11px 12px;
  border: 1px solid #26262b;
  border-radius: 9px;
  background: #111114;
  color: #d6d6da;
  font: 500 12.5px var(--body);
  cursor: pointer;
  text-align: left;
  transition: border-color .15s, background .15s, color .15s;
}
.quick:hover { border-color: var(--blue); background: #101827; color: #fff; }
.quick span { color: var(--blue); font-size: 14px; }

.storage-line { margin-top: 16px; padding-top: 14px; border-top: 1px solid #1c1c20; }
.storage-line > div:first-child { display: flex; justify-content: space-between; margin-bottom: 8px; font-size: 11.5px; color: #8b8b90; }
.storage-line small { color: #77777c; }

.table-wrap { overflow-x: auto; }
.crm-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.crm-table th {
  padding: 8px 10px;
  text-align: left;
  color: #6f7683;
  font: 600 10px var(--body);
  letter-spacing: .12em;
  text-transform: uppercase;
  border-bottom: 1px solid #1e1e23;
}
.crm-table td { padding: 9px 10px; border-bottom: 1px solid #16161a; color: #c9c9ce; vertical-align: middle; }
.crm-table tr:hover td { background: #101014; }
.crm-table b { color: #eee; font-weight: 600; }
.crm-thumb { display: block; width: 46px; height: 34px; object-fit: cover; border-radius: 6px; background: #17171b; }

.pill { display: inline-block; padding: 3px 9px; border-radius: 20px; font: 600 10px var(--display); letter-spacing: .08em; }
.pill.free { background: rgba(245, 123, 17, .16); color: #ffb06a; border: 1px solid rgba(245, 123, 17, .4); }
.pill.paid { background: rgba(10, 114, 245, .14); color: #8dc0ff; border: 1px solid rgba(10, 114, 245, .35); }

.work-frame { display: none; width: 100%; aspect-ratio: 16 / 9; border: 0; background: #000; }
.source-chip {
  position: absolute;
  right: 14px;
  top: 14px;
  padding: 4px 9px;
  border-radius: 5px;
  background: rgba(6, 6, 7, .8);
  border: 1px solid #3a3a3a;
  color: #e6e6e6;
  font: 700 9px var(--display);
  letter-spacing: .12em;
}

/* ============================== responsive ============================== */
@media (max-width: 1400px) {
  header nav { gap: 18px; font-size: 12px; }
  .site-search { width: 190px; }
  .asset-grid { grid-template-columns: repeat(4, 1fr); }
  .all-assets { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 1150px) {
  header { padding: 0 3%; gap: 16px; }
  header nav { gap: 14px; font-size: 11.5px; }
  .site-logo,
  .site-logo img { flex-basis: 160px; width: 160px; }
  .site-search { width: 170px; }
  .work-grid { grid-template-columns: repeat(2, 1fr); }
  .asset-grid { grid-template-columns: repeat(3, 1fr); }
  .market-layout { grid-template-columns: 240px 1fr; gap: 24px; }
  .footer-grid { gap: 40px; }
}

@media (max-width: 900px) {
  header { height: 72px; padding: 0 18px; }
  header .menu-toggle { display: block; }
  .site-logo,
  .site-logo img { flex-basis: 150px; width: 150px; height: 44px; }
  header nav,
  .site-search { display: none; }
  .cart-icon { padding: 6px 10px; font-size: 14px; }
  .cart-badge { font-size: 10px; padding: 1px 4px; }
  header.open { flex-wrap: wrap; height: auto; min-height: 72px; padding-bottom: 16px; }
  header.open nav {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    order: 3;
    width: 100%;
    margin: 6px 0 0;
    font-size: 14px;
  }
  header.open nav a { padding: 9px 0; width: 100%; }
  header.open .site-search { display: flex; width: 100%; order: 4; margin-top: 10px; }
  .menu-toggle { margin-left: auto; }

  .hero { height: auto; min-height: 0; padding-bottom: 80px; }
  .hero-copy { padding: 12vh 20px 0; }
  .hero-controls { right: 20px; bottom: 24px; }

  .section { padding: 64px 20px; }
  .section-row { display: block; }
  .section-row .outline-button { margin-top: 20px; }

  .works-section { padding: 68px 20px 60px; }
  .work-grid { grid-template-columns: 1fr; }
  .work-media { height: 250px; }

  .free-band { padding: 68px 20px; }
  .free-head { display: block; }
  .free-head .outline-button { margin-top: 20px; }
  .free-grid,
  .free-grid-wide { grid-template-columns: 1fr; }
  .free-hero { padding: 60px 20px 30px; }
  .free-list { padding: 10px 20px 70px; }

  .promo-strip { margin-top: 64px; }
  .promo-wrapper { grid-template-columns: 1fr; min-height: auto; }
  .promo-text-section { padding: 40px 20px; }
  .promo-image-section { min-height: 320px; padding: 30px 20px; }
  .promo-overlay { max-width: 100%; }

  .clients { grid-template-columns: 1fr 1fr; }
  .clients-section { padding: 60px 20px; }

  .footer-grid { grid-template-columns: 1fr; gap: 34px; padding-bottom: 34px; }
  footer { padding: 56px 20px 0; }

  .page { padding: 36px 20px 70px; }
  .market-layout { grid-template-columns: 1fr; }
  .asset-sidebar { position: static; }
  .all-assets { grid-template-columns: repeat(2, 1fr); }
  .asset-grid { grid-template-columns: repeat(2, 1fr); }
  .section-actions { flex-wrap: wrap; }

  .checkout { grid-template-columns: 1fr; gap: 30px; padding: 40px 20px; }

  .model-layout { grid-template-columns: 1fr; gap: 28px; }
  .clients-editor { grid-template-columns: 1fr; }
  .model-main img { max-height: 460px; }
  .model-about { grid-template-columns: 1fr; gap: 26px; margin-top: 46px; padding-top: 30px; }
  .asset-grid.related-grid { grid-template-columns: repeat(2, 1fr); }
  .related-section { margin-top: 46px; padding-top: 30px; }
  .model-page { padding-top: 18px; }

  .crm { grid-template-columns: 1fr; }
  .crm-side {
    position: static;
    height: auto;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border-right: 0;
    border-bottom: 1px solid #1c1c1f;
  }
  .crm-brand { flex: 1; min-width: 0; }
  .crm-brand small { display: none; }
  .crm-nav { order: 3; width: 100%; flex-direction: row; gap: 6px; overflow-x: auto; padding-bottom: 2px; }
  .crm-link { white-space: nowrap; padding: 8px 11px; }
  .crm-link b { display: none; }
  .crm-side-foot { margin: 0; flex-direction: row; align-items: center; }
  .crm-storage { display: none; }
  .crm-head { position: static; flex-wrap: wrap; padding: 18px 16px; }
  .crm-head h1 { font-size: 26px; }
  .crm-head-actions { width: 100%; justify-content: space-between; }
  .crm-status { text-align: left; max-width: 60%; }
  .crm-body { padding: 16px; }
  .crm-foot { padding: 0 16px 30px; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .dash-grid { grid-template-columns: 1fr; }
  .quick-actions { grid-template-columns: 1fr; }
  .editor-grid { grid-template-columns: 1fr; }
  .media-box { grid-template-columns: 1fr; }
  .media-thumb { height: 170px; }
  .admin-tabs { gap: 6px; }
  .admin-tab { font-size: 12px; padding: 8px 12px; }
  .savebar { bottom: 8px; }
  .savebar .blue-button,
  .savebar .outline-button,
  .savebar .reset-button { flex: 1; }
}

@media (max-width: 560px) {
  .admin-top { flex-wrap: wrap; }
  .admin-top-actions { width: 100%; }
  .admin-top-actions > * { flex: 1; }
  .savebar { padding: 10px; gap: 8px; }
  .savebar .blue-button,
  .savebar .outline-button,
  .savebar .reset-button { padding: 10px 12px; font-size: 12.5px; }
  .asset-grid,
  .all-assets { grid-template-columns: 1fr; }
  .asset-media { height: 240px; }
  .work-media { height: 220px; }
  .clients { grid-template-columns: 1fr; }
  .market-top { flex-direction: column; align-items: flex-start; }
  .free-deal > div { padding: 22px; }
}
