:root {
  --bg-canvas: #f5f3ee;
  --bg-surface: #ffffff;
  --bg-tinted: #ebe7de;
  --bg-ink: #151513;
  --bg-ink-soft: #22221f;
  --text-primary: #151513;
  --text-secondary: #585650;
  --text-muted: #848178;
  --accent: #c2522b;
  --accent-hover: #a74320;
  --slate: #1e3a5f;
  --border: rgba(21, 21, 19, 0.12);
  --border-strong: rgba(21, 21, 19, 0.24);
  --radius: 3px;
  --shadow-card: 0 2px 10px rgba(21, 21, 19, 0.04);
  --shadow-elevated: 0 20px 50px rgba(21, 21, 19, 0.14);
  --font-display: "Space Grotesk", "Plus Jakarta Sans", system-ui, sans-serif;
  --font-sans: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background-color: var(--bg-canvas);
  color: var(--text-primary);
  font-family: var(--font-sans);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
}

button,
input,
select {
  font: inherit;
  color: inherit;
}

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

.hidden {
  display: none !important;
}

.container {
  width: min(1280px, calc(100% - 2.5rem));
  margin: 0 auto;
}

.mono-tag,
.mono-num,
.mono-btn {
  font-family: var(--font-mono);
  letter-spacing: 0.03em;
}

.mono-tag {
  font-size: 0.72rem;
  font-weight: 500;
  text-transform: uppercase;
}

/* Top Strip */
.top-strip {
  background: var(--bg-ink);
  color: #e8e5dd;
  font-size: 0.8rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.top-strip-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.48rem 0;
  flex-wrap: wrap;
}

.top-strip .mono-tag {
  color: #e28d6e;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(245, 243, 238, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
}

.brand-mark {
  color: var(--text-primary);
}

.brand-text {
  display: flex;
  align-items: baseline;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.06em;
}

.brand-domain {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent);
  margin-left: 2px;
}

.header-search {
  flex: 1;
  max-width: 380px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.45rem 0.75rem;
  transition: border-color 0.2s;
}

.header-search:focus-within {
  border-color: var(--text-primary);
}

.header-search svg {
  color: var(--text-muted);
  flex-shrink: 0;
}

.header-search input {
  border: 0;
  background: transparent;
  width: 100%;
  outline: none;
  font-size: 0.88rem;
}

.kbd-hint {
  border: 1px solid var(--border);
  padding: 0.1rem 0.4rem;
  border-radius: 2px;
  color: var(--text-muted);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  font-size: 0.9rem;
  font-weight: 500;
}

.main-nav a {
  color: var(--text-secondary);
  transition: color 0.15s;
  white-space: nowrap;
}

.main-nav a:hover {
  color: var(--text-primary);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-shrink: 0;
}

/* Buttons */
.btn-primary,
.btn-outline,
.btn-ghost,
.btn-accent {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.88rem;
  padding: 0.52rem 1rem;
  cursor: pointer;
  transition: all 0.18s ease;
  border: 1px solid transparent;
  white-space: nowrap;
}

.btn-primary {
  background: var(--bg-ink);
  color: #ffffff;
}

.btn-primary:hover {
  background: #2c2c28;
}

.btn-accent {
  background: var(--accent);
  color: #ffffff;
}

.btn-accent:hover {
  background: var(--accent-hover);
}

.btn-outline {
  background: var(--bg-surface);
  color: var(--text-primary);
  border-color: var(--border-strong);
}

.btn-outline:hover {
  border-color: var(--text-primary);
  background: #faf9f6;
}

.btn-ghost {
  background: transparent;
  border-color: var(--border);
  font-size: 0.78rem;
  padding: 0.44rem 0.65rem;
}

.btn-ghost:hover {
  background: var(--bg-surface);
}

.btn-ghost .muted {
  color: var(--text-muted);
}

.btn-lg {
  padding: 0.78rem 1.35rem;
  font-size: 0.95rem;
}

.btn-sm {
  padding: 0.42rem 0.85rem;
  font-size: 0.82rem;
}

.full-w {
  width: 100%;
}

.cart-badge {
  background: var(--accent);
  color: #fff;
  padding: 0.08rem 0.42rem;
  border-radius: 2px;
  font-size: 0.7rem;
}

/* Hero Section */
.hero-section {
  position: relative;
  padding: 3.6rem 0 3.2rem;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.drafting-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(21, 21, 19, 0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(21, 21, 19, 0.035) 1px, transparent 1px);
  background-size: 36px 36px;
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 2.75rem;
  align-items: center;
}

.eyebrow-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.coord-badge {
  display: inline-block;
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 0.07em;
}

.coord-badge.light {
  color: #f09c7e;
}

.verified-pill {
  font-size: 0.78rem;
  color: var(--slate);
  background: rgba(30, 58, 95, 0.08);
  border: 1px solid rgba(30, 58, 95, 0.18);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius);
  font-weight: 500;
}

.hero-copy h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.4vw, 3.1rem);
  line-height: 1.12;
  letter-spacing: -0.025em;
  margin: 0 0 1.1rem;
}

.accent-underline {
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 3px;
  text-underline-offset: 6px;
}

.hero-desc {
  font-size: 1.03rem;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 0 1.65rem;
}

.hero-cta-row {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin-bottom: 2.2rem;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--border);
}

.metric-item strong {
  display: block;
  font-size: 1.25rem;
  font-weight: 700;
}

.metric-item span {
  font-size: 0.78rem;
  color: var(--text-secondary);
}

/* Hero Featured Card */
.hero-showcase-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  box-shadow: var(--shadow-elevated);
  overflow: hidden;
}

.showcase-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 1rem;
  border-bottom: 1px solid var(--border);
  background: #faf9f6;
}

.format-tag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  background: var(--slate);
  color: #ffffff;
  padding: 0.16rem 0.48rem;
  border-radius: 2px;
}

.showcase-image-wrap {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #dedad2;
}

.showcase-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blueprint-crosshair {
  position: absolute;
  width: 16px;
  height: 16px;
  pointer-events: none;
}

.blueprint-crosshair.tl {
  top: 10px;
  left: 10px;
  border-top: 1.5px solid rgba(255, 255, 255, 0.85);
  border-left: 1.5px solid rgba(255, 255, 255, 0.85);
}

.blueprint-crosshair.br {
  bottom: 10px;
  right: 10px;
  border-bottom: 1.5px solid rgba(255, 255, 255, 0.85);
  border-right: 1.5px solid rgba(255, 255, 255, 0.85);
}

.showcase-floating-spec {
  position: absolute;
  left: 12px;
  bottom: 12px;
  display: inline-flex;
  gap: 0.45rem;
  background: rgba(21, 21, 19, 0.84);
  color: #ffffff;
  padding: 0.3rem 0.65rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  border-radius: 2px;
  backdrop-filter: blur(6px);
}

.showcase-body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.1rem;
}

.asset-studio {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 0.2rem;
}

.showcase-body h2 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  margin: 0;
}

.showcase-price-box {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.showcase-price-box .price {
  font-size: 1.15rem;
  font-weight: 700;
}

/* Format Strip */
.format-strip {
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border);
  padding: 0.85rem 0;
}

.format-strip-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.strip-label {
  color: var(--text-muted);
}

.format-chips {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.format-chip {
  background: var(--bg-canvas);
  border: 1px solid var(--border);
  padding: 0.36rem 0.72rem;
  font-size: 0.8rem;
  font-weight: 500;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.15s;
}

.format-chip:hover {
  border-color: var(--text-primary);
}

.format-chip.active {
  background: var(--bg-ink);
  color: #ffffff;
  border-color: var(--bg-ink);
}

/* Sections */
.section-block {
  padding: 4rem 0;
}

.section-tinted {
  background: var(--bg-tinted);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 2.2vw, 2rem);
  margin: 0.3rem 0 0;
  letter-spacing: -0.02em;
}

.catalog-controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.category-tabs {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.cat-tab {
  background: transparent;
  border: 1px solid var(--border);
  padding: 0.42rem 0.85rem;
  border-radius: var(--radius);
  font-size: 0.84rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
}

.cat-tab:hover {
  background: var(--bg-surface);
}

.cat-tab.active {
  background: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
}

.sort-select {
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 0.44rem 0.75rem;
  font-size: 0.84rem;
  cursor: pointer;
}

.result-meta-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.2rem;
  color: var(--text-muted);
}

.link-reset {
  background: none;
  border: none;
  color: var(--accent);
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
}

/* Asset Grid & Cards */
.asset-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
}

.asset-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.asset-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-strong);
  box-shadow: 0 12px 28px rgba(21, 21, 19, 0.08);
}

.asset-thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  background: #eae6dd;
  overflow: hidden;
  cursor: pointer;
}

.asset-thumb img,
.asset-thumb svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.asset-card:hover .asset-thumb img {
  transform: scale(1.04);
}

.thumb-badges {
  position: absolute;
  top: 8px;
  left: 8px;
  right: 8px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  pointer-events: none;
}

.badge-sku {
  background: rgba(21, 21, 19, 0.78);
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  padding: 0.18rem 0.45rem;
  border-radius: 2px;
}

.badge-free {
  background: #1a7a4c;
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  padding: 0.18rem 0.45rem;
  border-radius: 2px;
  font-weight: 600;
}

.thumb-hover-cta {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--text-primary);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.28rem 0.58rem;
  border-radius: 2px;
  opacity: 0;
  transform: translateY(4px);
  transition: all 0.2s;
  border: 1px solid var(--border);
}

.asset-card:hover .thumb-hover-cta {
  opacity: 1;
  transform: translateY(0);
}

.asset-body {
  padding: 0.95rem 1rem 1rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.asset-format-row {
  display: flex;
  gap: 0.3rem;
  flex-wrap: wrap;
  margin-bottom: 0.45rem;
}

.fmt-pill {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  padding: 0.1rem 0.38rem;
  border: 1px solid var(--border);
  border-radius: 2px;
  color: var(--slate);
  background: #f8f7f4;
}

.asset-title {
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.3;
  margin: 0 0 0.3rem;
  cursor: pointer;
}

.asset-title:hover {
  color: var(--accent);
}

.asset-creator {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.6rem;
}

.asset-specs-mono {
  font-family: var(--font-mono);
  font-size: 0.71rem;
  color: var(--text-secondary);
  padding: 0.45rem 0;
  border-top: 1px dashed var(--border);
  border-bottom: 1px dashed var(--border);
  margin-bottom: 0.8rem;
}

.asset-foot {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.asset-price {
  font-family: var(--font-mono);
  font-size: 1.05rem;
  font-weight: 700;
}

.asset-price.free-text {
  color: #1a7a4c;
}

.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 3.5rem 1rem;
  background: var(--bg-surface);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius);
}

/* Collections */
.collections-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.collection-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.collection-img {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.collection-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.collection-count {
  position: absolute;
  bottom: 10px;
  left: 10px;
  background: rgba(21, 21, 19, 0.84);
  color: #ffffff;
  padding: 0.25rem 0.55rem;
  border-radius: 2px;
}

.collection-body {
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.collection-body h3 {
  font-family: var(--font-display);
  margin: 0 0 0.45rem;
  font-size: 1.12rem;
}

.collection-body p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin: 0 0 1rem;
  flex: 1;
}

/* Pricing */
.pricing-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 2.5rem;
}

.pricing-header h2 {
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 2.4vw, 2.15rem);
  margin: 0.35rem 0 0.6rem;
}

.section-sub {
  color: var(--text-secondary);
  margin: 0 0 1.4rem;
}

.billing-toggle {
  display: inline-flex;
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  padding: 0.25rem;
  border-radius: var(--radius);
}

.billing-btn {
  border: 0;
  background: transparent;
  padding: 0.45rem 0.95rem;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  border-radius: 2px;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.billing-btn.active {
  background: var(--bg-ink);
  color: #ffffff;
}

.save-badge {
  background: var(--accent);
  color: #ffffff;
  padding: 0.1rem 0.35rem;
  border-radius: 2px;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  align-items: stretch;
}

.price-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  position: relative;
}

.featured-plan {
  border: 2px solid var(--bg-ink);
  box-shadow: var(--shadow-elevated);
}

.plan-ribbon {
  position: absolute;
  top: -11px;
  right: 16px;
  background: var(--accent);
  color: #ffffff;
  padding: 0.2rem 0.6rem;
  border-radius: 2px;
}

.price-tier {
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}

.price-card h3 {
  font-family: var(--font-display);
  margin: 0 0 0.75rem;
  font-size: 1.2rem;
}

.price-figure {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
  margin-bottom: 0.75rem;
}

.price-figure .mono-num {
  font-size: 2rem;
  font-weight: 700;
}

.price-figure .per {
  color: var(--text-muted);
  font-size: 0.88rem;
}

.plan-desc {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin: 0 0 1.2rem;
}

.plan-features {
  list-style: none;
  padding: 1rem 0;
  margin: 0 0 1.5rem;
  border-top: 1px solid var(--border);
  display: grid;
  gap: 0.55rem;
  font-size: 0.88rem;
  color: var(--text-secondary);
  flex: 1;
}

/* Creator Banner */
.creator-banner-section {
  padding-top: 1rem;
}

.creator-banner {
  background: var(--bg-ink);
  color: #f4f2ec;
  border-radius: var(--radius);
  padding: 2.5rem;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2.5rem;
  align-items: center;
}

.creator-copy h2 {
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 2.2vw, 2rem);
  margin: 0.45rem 0 0.85rem;
}

.creator-copy p {
  color: #c9c5bb;
  margin: 0 0 1.5rem;
}

.creator-actions {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  flex-wrap: wrap;
}

.creator-stat {
  color: #a9a59b;
}

.payout-calculator {
  background: var(--bg-ink-soft);
  border: 1px solid rgba(255, 255, 255, 0.14);
  padding: 1.4rem;
  border-radius: var(--radius);
}

.calc-head {
  color: #f09c7e;
  margin-bottom: 1rem;
}

.calc-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.4rem 0.8rem;
  align-items: center;
  margin-bottom: 1rem;
  font-size: 0.86rem;
  color: #dedad0;
}

.calc-row input[type="range"] {
  grid-column: 1 / 2;
  accent-color: var(--accent);
}

.calc-row strong {
  grid-row: 1 / 3;
  grid-column: 2 / 3;
  font-size: 1.05rem;
  color: #ffffff;
}

.calc-result {
  padding-top: 0.9rem;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.calc-result strong {
  color: #62d29b;
  font-size: 1.25rem;
}

/* Footer */
.site-footer {
  background: #ebe7de;
  border-top: 1px solid var(--border);
  padding: 3.2rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.9fr 1.1fr;
  gap: 2rem;
  padding-bottom: 2.2rem;
  border-bottom: 1px solid var(--border);
}

.footer-brand p {
  color: var(--text-secondary);
  font-size: 0.88rem;
  margin: 0.7rem 0 0;
  max-width: 340px;
}

.site-footer h4 {
  font-family: var(--font-display);
  font-size: 0.92rem;
  margin: 0 0 0.75rem;
}

.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.45rem;
  font-size: 0.86rem;
  color: var(--text-secondary);
}

.site-footer li a:hover {
  color: var(--text-primary);
}

.newsletter-form {
  display: flex;
  gap: 0.45rem;
  margin-bottom: 0.75rem;
}

.newsletter-form input {
  flex: 1;
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 0.45rem 0.7rem;
  font-size: 0.86rem;
}

.footer-note {
  color: var(--text-muted);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding-top: 1.2rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Modals */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(21, 21, 19, 0.65);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}

.modal-panel {
  position: relative;
  background: var(--bg-surface);
  width: min(980px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-elevated);
  padding: 1.5rem;
}

.modal-panel-sm {
  width: min(520px, 100%);
  padding: 2rem;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-canvas);
  cursor: pointer;
  font-weight: 700;
}

.modal-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1.75rem;
  align-items: start;
}

.view-mode-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.6rem;
}

.view-mode-switch {
  display: inline-flex;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.view-btn {
  border: 0;
  background: var(--bg-canvas);
  padding: 0.3rem 0.65rem;
  font-size: 0.76rem;
  font-weight: 600;
  cursor: pointer;
}

.view-btn.active {
  background: var(--slate);
  color: #ffffff;
}

.modal-preview-frame {
  position: relative;
  aspect-ratio: 16 / 10;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  overflow: hidden;
  background: #eae6dd;
}

.modal-preview-frame img,
.modal-preview-frame svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: filter 0.25s ease;
}

.blueprint-overlay {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  background:
    linear-gradient(to right, rgba(167, 211, 255, 0.22) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(167, 211, 255, 0.22) 1px, transparent 1px),
    rgba(16, 44, 78, 0.74);
  background-size: 28px 28px;
}

.modal-preview-frame.blueprint-active img {
  filter: grayscale(100%) contrast(130%);
}

.modal-preview-frame.blueprint-active .blueprint-overlay {
  opacity: 1;
}

.bp-line-h {
  position: absolute;
  left: 5%;
  right: 5%;
  top: 24px;
  border-top: 1px dashed rgba(167, 211, 255, 0.85);
}

.bp-line-v {
  position: absolute;
  top: 10%;
  bottom: 10%;
  left: 26px;
  border-left: 1px dashed rgba(167, 211, 255, 0.85);
}

.bp-dim-top,
.bp-dim-side,
.bp-stamp {
  position: absolute;
  color: #cfe8ff;
  background: rgba(16, 44, 78, 0.9);
  padding: 0.16rem 0.45rem;
  border: 1px solid rgba(167, 211, 255, 0.55);
}

.bp-dim-top {
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
}

.bp-dim-side {
  bottom: 44px;
  left: 12px;
}

.bp-stamp {
  bottom: 12px;
  right: 12px;
}

.modal-tags-row {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-top: 0.75rem;
}

.modal-info-col h2 {
  font-family: var(--font-display);
  margin: 0.35rem 0 0.25rem;
  font-size: 1.4rem;
  line-height: 1.25;
}

.modal-creator {
  font-size: 0.84rem;
  color: var(--text-muted);
  margin: 0 0 0.8rem;
}

.modal-desc {
  color: var(--text-secondary);
  font-size: 0.92rem;
  margin: 0 0 1rem;
}

.spec-table {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.45rem;
  background: var(--bg-canvas);
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 1rem;
}

.spec-cell {
  font-size: 0.8rem;
}

.spec-cell span {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.67rem;
  color: var(--text-muted);
  text-transform: uppercase;
}

.spec-cell strong {
  font-weight: 600;
}

.license-box {
  margin-bottom: 1.1rem;
}

.license-label {
  color: var(--text-muted);
  margin-bottom: 0.45rem;
}

.license-options {
  display: grid;
  gap: 0.5rem;
}

.license-opt {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.65rem;
  padding: 0.65rem 0.8rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
}

.license-opt.active {
  border-color: var(--bg-ink);
  background: #faf9f6;
}

.license-opt strong {
  display: block;
  font-size: 0.86rem;
}

.license-opt small {
  color: var(--text-muted);
  font-size: 0.76rem;
}

.creator-form {
  display: grid;
  gap: 0.85rem;
}

.creator-form label {
  display: grid;
  gap: 0.3rem;
  font-size: 0.84rem;
  font-weight: 600;
}

.creator-form input,
.creator-form select {
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: var(--bg-surface);
  font-weight: 400;
}

/* Cart Drawer */
.drawer-overlay {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(21, 21, 19, 0.55);
  display: flex;
  justify-content: flex-end;
}

.cart-drawer {
  width: min(430px, 100%);
  height: 100%;
  background: var(--bg-surface);
  border-left: 1px solid var(--border-strong);
  display: flex;
  flex-direction: column;
}

.drawer-head {
  padding: 1.1rem 1.25rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.drawer-head h3 {
  margin: 0.15rem 0 0;
  font-family: var(--font-display);
}

.modal-close-inline {
  background: var(--bg-canvas);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  width: 30px;
  height: 30px;
  cursor: pointer;
}

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 1rem 1.25rem;
  display: grid;
  gap: 0.8rem;
  align-content: start;
}

.cart-empty {
  text-align: center;
  color: var(--text-muted);
  padding: 3rem 1rem;
  border: 1px dashed var(--border);
  border-radius: var(--radius);
}

.cart-item {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 0.75rem;
  align-items: center;
  padding: 0.7rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.cart-item-thumb {
  width: 72px;
  height: 50px;
  border-radius: 2px;
  overflow: hidden;
  background: #eae6dd;
}

.cart-item-thumb img,
.cart-item-thumb svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cart-item-title {
  font-size: 0.86rem;
  font-weight: 600;
  line-height: 1.25;
}

.cart-item-meta {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
}

.cart-item-right {
  text-align: right;
}

.cart-remove {
  background: none;
  border: 0;
  color: var(--accent);
  font-size: 0.74rem;
  cursor: pointer;
  padding: 0;
  margin-top: 0.2rem;
}

.drawer-foot {
  padding: 1rem 1.25rem 1.25rem;
  border-top: 1px solid var(--border);
  background: #faf9f6;
}

.promo-row {
  display: flex;
  gap: 0.45rem;
}

.promo-row input {
  flex: 1;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 0.42rem 0.65rem;
  font-size: 0.84rem;
  background: #ffffff;
}

.promo-feedback {
  min-height: 1.1rem;
  margin: 0.35rem 0 0.6rem;
  color: #1a7a4c;
}

.summary-rows {
  display: grid;
  gap: 0.4rem;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.summary-line {
  display: flex;
  justify-content: space-between;
}

.discount-line {
  color: #1a7a4c;
}

.total-line {
  padding-top: 0.45rem;
  border-top: 1px solid var(--border);
  font-size: 1rem;
}

/* TinyFish AI Live Spec Sync Box */
.spec-sync-box {
  background: #f7f5ef;
  border: 1px solid var(--border-strong);
  border-left: 3px solid #1a7a4c;
  border-radius: var(--radius);
  padding: 0.75rem 0.9rem;
  margin-bottom: 1rem;
}

.spec-sync-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.35rem;
}

.spec-sync-kicker {
  display: block;
  color: var(--text-muted);
  margin-bottom: 0.2rem;
}

.spec-sync-status {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: #145c38;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #1a7a4c;
  display: inline-block;
}

.spec-sync-meta {
  margin: 0;
  color: var(--text-secondary);
  line-height: 1.45;
}

/* Account & Corporate Invoice Modals */
.account-card {
  background: #f7f5ef;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.9rem 1rem;
  margin-bottom: 1rem;
}

.account-card h3 {
  font-family: var(--font-display);
  margin: 0.25rem 0 0.2rem;
}

.account-section {
  margin-bottom: 1rem;
}

.account-orders-list {
  display: grid;
  gap: 0.5rem;
  margin-top: 0.5rem;
  max-height: 180px;
  overflow-y: auto;
}

.account-order-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.82rem;
}

.checkout-total-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0.9rem;
  background: #f7f5ef;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  font-size: 0.95rem;
}

.invoice-box {
  background: #ffffff;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 1rem;
  margin-bottom: 1rem;
}

.invoice-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.65rem;
  margin-bottom: 0.65rem;
}

.invoice-head h3 {
  font-family: var(--font-mono);
  margin: 0.2rem 0 0;
  font-size: 1rem;
}

.status-pill-ok {
  background: #e7f5ee;
  color: #145c38;
  border: 1px solid #b5dec7;
  padding: 0.2rem 0.45rem;
  border-radius: 2px;
}

.invoice-meta {
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
  line-height: 1.5;
}

.invoice-items {
  display: grid;
  gap: 0.35rem;
  font-size: 0.84rem;
  border-top: 1px dashed var(--border);
  border-bottom: 1px dashed var(--border);
  padding: 0.65rem 0;
  margin-bottom: 0.65rem;
}

.invoice-item-row {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
}

.invoice-footer {
  color: var(--text-muted);
}

/* Toast */
.toast {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 120;
  background: var(--bg-ink);
  color: #ffffff;
  padding: 0.75rem 1.2rem;
  border-radius: var(--radius);
  border-left: 4px solid var(--accent);
  font-size: 0.88rem;
  box-shadow: var(--shadow-elevated);
}

/* Responsive */
@media (max-width: 1100px) {
  .main-nav {
    display: none;
  }
  .asset-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .hero-grid,
  .creator-banner,
  .modal-grid {
    grid-template-columns: 1fr;
  }
  .collections-grid,
  .pricing-grid,
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .hide-sm {
    display: none;
  }
  .header-search {
    max-width: none;
  }
  .asset-grid,
  .collections-grid,
  .pricing-grid,
  .footer-grid,
  .hero-metrics {
    grid-template-columns: 1fr;
  }
}
