/* ==========================================================================
   HAPTAGS LLP — MARKETPLACE (listing + item pages)
   Builds on design-system.css tokens and components.css (header, footer,
   buttons, modals, forms). Everything here is prefixed mk- to stay separate.
   ========================================================================== */

.mk-body {
  --mk-sticky-top: 86px;
  --mk-green: #047857;
  --mk-green-soft: rgba(5, 150, 105, 0.1);
  --mk-code-bg: #0d1117;
  --mk-code-bar: #161b22;
  --mk-code-text: #e6edf3;
}

[data-theme="dark"] .mk-body {
  --mk-green: #34d399;
  --mk-green-soft: rgba(52, 211, 153, 0.14);
}

.mk-skip {
  position: absolute;
  left: -999px;
  top: 8px;
  z-index: 2000;
  background: var(--text-primary);
  color: var(--bg-primary);
  padding: 10px 16px;
  border-radius: var(--radius-full);
  font-weight: 700;
}

.mk-skip:focus { left: 16px; }

.mk-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.mk-body main { position: relative; z-index: 2; }

.mk-body :focus-visible { outline: 2px solid var(--brand-blue); outline-offset: 2px; }

/* --------------------------------------------------------------------------
   HERO
   -------------------------------------------------------------------------- */
.mk-hero {
  padding: calc(128px + env(safe-area-inset-top, 0px)) 0 44px;
  text-align: center;
}

.mk-hero-inner {
  max-width: 880px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.mk-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 6px 6px;
  border-radius: var(--radius-full);
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  box-shadow: var(--shadow-sm);
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text-secondary);
  backdrop-filter: var(--glass-blur);
}

.mk-eyebrow b {
  background: var(--brand-gradient);
  color: #fff;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 0.74rem;
  letter-spacing: 0.02em;
}

.mk-hero h1 {
  font-size: clamp(2.3rem, 5.4vw, 4.2rem);
  line-height: 1.04;
  letter-spacing: -0.04em;
  margin: 22px 0 18px;
}

.mk-hero-lead {
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  max-width: 660px;
  margin: 0 auto;
}

.mk-search {
  position: relative;
  width: min(640px, 100%);
  margin: 30px auto 0;
}

.mk-search svg {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

.mk-search input {
  width: 100%;
  font: 500 1rem var(--font-body);
  color: var(--text-primary);
  padding: 18px 64px 18px 54px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-card);
  background: var(--bg-card-solid);
  box-shadow: var(--shadow-lg);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.mk-search input::placeholder { color: var(--text-muted); }

.mk-search input:focus {
  outline: none;
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.14), var(--shadow-lg);
}

.mk-search input::-webkit-search-cancel-button { cursor: pointer; }

.mk-search kbd {
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
  border: 1px solid var(--border-card);
  border-radius: 6px;
  padding: 2px 8px;
  background: var(--bg-secondary);
}

.mk-popular {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  font-size: 0.86rem;
  color: var(--text-muted);
}

.mk-popular button {
  border: 1px solid var(--border-card);
  background: var(--bg-card);
  color: var(--text-secondary);
  font: 600 0.84rem var(--font-body);
  padding: 6px 12px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.mk-popular button:hover {
  color: var(--text-primary);
  border-color: var(--brand-blue);
}

.mk-stats {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 26px;
  margin-top: 26px;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.mk-stats li { display: inline-flex; align-items: center; gap: 8px; }

.mk-stats li::before {
  content: '';
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--mk-green-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23059669' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12l4 4 8-8'/%3E%3C/svg%3E") center / 11px no-repeat;
}

.mk-stats b { color: var(--text-primary); }

/* --------------------------------------------------------------------------
   TOOLBAR (tabs, price filter, sort, categories)
   -------------------------------------------------------------------------- */
.mk-toolbar-wrap {
  position: sticky;
  top: var(--mk-sticky-top);
  z-index: 50;
  padding: 10px 0;
  margin-bottom: 8px;
}

.mk-toolbar-wrap::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.mk-toolbar-wrap.is-stuck::before { opacity: 1; }

.mk-toolbar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.mk-tabs {
  display: flex;
  gap: 4px;
  padding: 4px;
  border-radius: var(--radius-full);
  background: var(--bg-card-solid);
  border: 1px solid var(--border-card);
  box-shadow: var(--shadow-sm);
  overflow-x: auto;
  scrollbar-width: none;
  max-width: 100%;
}

.mk-tabs::-webkit-scrollbar { display: none; }

.mk-tabs button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 0;
  background: transparent;
  padding: 9px 16px;
  border-radius: var(--radius-full);
  font: 600 0.92rem var(--font-body);
  color: var(--text-secondary);
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--transition-fast), color var(--transition-fast);
}

.mk-tabs button span {
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--text-muted);
  background: var(--bg-secondary);
  padding: 1px 7px;
  border-radius: var(--radius-full);
}

.mk-tabs button:hover { color: var(--text-primary); }

.mk-tabs button[aria-pressed="true"] {
  background: var(--text-primary);
  color: var(--bg-primary);
}

.mk-tabs button[aria-pressed="true"] span {
  background: rgba(255, 255, 255, 0.18);
  color: inherit;
}

[data-theme="dark"] .mk-tabs button[aria-pressed="true"] span { background: rgba(0, 0, 0, 0.12); }

.mk-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.mk-seg {
  display: flex;
  gap: 2px;
  padding: 4px;
  border-radius: var(--radius-full);
  background: var(--bg-card-solid);
  border: 1px solid var(--border-card);
}

.mk-seg button {
  border: 0;
  background: transparent;
  padding: 7px 14px;
  border-radius: var(--radius-full);
  font: 600 0.86rem var(--font-body);
  color: var(--text-secondary);
  cursor: pointer;
}

.mk-seg button[aria-pressed="true"] {
  background: var(--bg-secondary);
  color: var(--text-primary);
  box-shadow: var(--shadow-sm);
}

.mk-sort select {
  appearance: none;
  -webkit-appearance: none;
  font: 600 0.88rem var(--font-body);
  color: var(--text-primary);
  padding: 10px 38px 10px 16px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-card);
  background: var(--bg-card-solid) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23788293' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") right 14px center / 14px no-repeat;
  cursor: pointer;
}

.mk-cats {
  position: relative;
  display: flex;
  gap: 8px;
  margin-top: 12px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 2px;
}

.mk-cats::-webkit-scrollbar { display: none; }

.mk-cats[hidden] { display: none; }

.mk-cats button {
  border: 1px solid var(--border-card);
  background: var(--bg-card);
  color: var(--text-secondary);
  font: 600 0.85rem var(--font-body);
  padding: 7px 14px;
  border-radius: var(--radius-full);
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition-fast);
}

.mk-cats button:hover { border-color: var(--brand-blue); color: var(--text-primary); }

.mk-cats button[aria-pressed="true"] {
  background: var(--brand-blue);
  border-color: var(--brand-blue);
  color: #fff;
}

.mk-cats button[hidden] { display: none; }

/* --------------------------------------------------------------------------
   RESULTS + CARDS
   -------------------------------------------------------------------------- */
.mk-results { padding-bottom: 40px; }

.mk-count {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 14px 0 6px;
}

.mk-section { padding-top: 26px; }

.mk-section[hidden] { display: none; }

.mk-section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  margin-bottom: 22px;
}

.mk-section-head h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); }

.mk-section-head p { font-size: 0.95rem; margin-top: 4px; max-width: 620px; }

.mk-see-all {
  border: 0;
  background: none;
  color: var(--brand-blue);
  font: 700 0.92rem var(--font-body);
  cursor: pointer;
  white-space: nowrap;
  padding: 6px 0;
}

.mk-see-all:hover { text-decoration: underline; }

.mk-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 34px 24px;
}

.mk-card { display: flex; flex-direction: column; gap: 14px; min-width: 0; }

.mk-card[hidden] { display: none; }

.mk-thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-secondary);
  border: 1px solid var(--border-card);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth), border-color var(--transition-smooth);
}

.mk-card:hover .mk-thumb {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
  border-color: var(--border-focus);
}

.mk-thumb-link { position: absolute; inset: 0; display: block; }

.mk-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.mk-card:hover .mk-thumb img { transform: scale(1.035); }

.mk-thumb-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font: 800 1.6rem var(--font-heading);
  color: #fff;
  background: var(--brand-gradient);
}

.mk-badges {
  position: absolute;
  left: 12px;
  top: 12px;
  display: flex;
  gap: 6px;
  pointer-events: none;
}

.mk-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 9px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.94);
  color: #10141a;
  box-shadow: 0 2px 8px rgba(16, 20, 26, 0.12);
}

.mk-badge-prompt { background: #10141a; color: #fff; }

.mk-badge-prompt::before { content: '✦'; color: #a78bfa; }

.mk-live {
  position: absolute;
  right: 12px;
  top: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.76rem;
  font-weight: 700;
  padding: 6px 11px;
  border-radius: var(--radius-full);
  background: rgba(16, 20, 26, 0.86);
  color: #fff;
  text-decoration: none;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity var(--transition-fast), transform var(--transition-fast);
  backdrop-filter: blur(6px);
}

.mk-card:hover .mk-live,
.mk-live:focus-visible { opacity: 1; transform: none; }

.mk-live:hover { background: #10141a; }

.mk-card-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.mk-card-title {
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.3;
}

.mk-card-title a { color: var(--text-primary); text-decoration: none; }

.mk-card-title a:hover { color: var(--brand-blue); }

.mk-card-tagline {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.45;
  margin-top: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.mk-card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.mk-mark {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  border-radius: 6px;
  background: var(--brand-gradient);
  color: #fff;
  font: 800 0.66rem/18px var(--font-heading);
  text-align: center;
}

.mk-mark-lg {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  font-size: 0.85rem;
  line-height: 26px;
}

.mk-price {
  flex-shrink: 0;
  font: 700 0.95rem var(--font-body);
  color: var(--text-primary);
  background: var(--bg-card-solid);
  border: 1px solid var(--border-card);
  padding: 4px 11px;
  border-radius: var(--radius-full);
  white-space: nowrap;
}

.mk-price.is-free {
  color: var(--mk-green);
  background: var(--mk-green-soft);
  border-color: transparent;
}

.mk-empty {
  text-align: center;
  padding: 60px 20px;
  border: 1px dashed var(--border-card);
  border-radius: var(--radius-xl);
  background: var(--bg-card);
  margin-top: 26px;
}

.mk-empty[hidden] { display: none; }

.mk-empty h3 { font-size: 1.4rem; margin-bottom: 8px; }

.mk-empty p { max-width: 460px; margin: 0 auto 20px; }

/* --------------------------------------------------------------------------
   HOW IT WORKS / CUSTOM CTA / FAQ (listing page)
   -------------------------------------------------------------------------- */
.mk-band { padding: 90px 0 30px; }

.mk-band-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 44px;
}

.mk-band-head h2 { margin: 10px 0 12px; }

.mk-steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  counter-reset: mkstep;
}

.mk-step {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-xl);
  padding: 30px;
  backdrop-filter: var(--glass-blur);
  box-shadow: var(--shadow-sm);
}

.mk-step::before {
  counter-increment: mkstep;
  content: counter(mkstep);
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--brand-gradient);
  color: #fff;
  font: 800 1.05rem var(--font-heading);
  margin-bottom: 18px;
}

.mk-step h3 { font-size: 1.25rem; margin-bottom: 8px; }

.mk-step p { font-size: 0.95rem; }

.mk-step code {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  background: var(--bg-secondary);
  padding: 1px 6px;
  border-radius: 6px;
}

.mk-cta {
  margin-top: 70px;
  border-radius: var(--radius-xl);
  padding: 52px;
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 40px;
  align-items: center;
  background: #0e131b;
  color: #fff;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.mk-cta::before {
  content: '';
  position: absolute;
  right: -120px;
  top: -140px;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.45), transparent 65%);
  pointer-events: none;
}

.mk-cta > * { position: relative; }

.mk-cta h2 { color: #fff; font-size: clamp(1.7rem, 3.4vw, 2.5rem); margin: 10px 0 12px; }

.mk-cta p { color: #9da8b6; }

.mk-cta .section-tag { color: #a5b4fc; }

.mk-cta-list {
  list-style: none;
  display: grid;
  gap: 10px;
  margin-top: 20px;
  color: #d8dee8;
  font-size: 0.95rem;
}

.mk-cta-list li::before { content: '✓'; color: #34d399; font-weight: 800; margin-right: 10px; }

.mk-cta-actions { display: flex; flex-direction: column; gap: 12px; }

.mk-cta-actions .btn { width: 100%; }

.mk-cta .btn-primary { background: #fff; color: #0b0f17; }

.mk-cta .btn-ghost-dark {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.mk-cta .btn-ghost-dark:hover { background: rgba(255, 255, 255, 0.14); transform: translateY(-2px); }

.mk-faq {
  max-width: 860px;
  margin: 0 auto;
  display: grid;
  gap: 10px;
}

.mk-faq details {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 18px 22px;
  backdrop-filter: var(--glass-blur);
  transition: border-color var(--transition-fast);
}

.mk-faq details[open] { border-color: var(--border-focus); }

.mk-faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-weight: 700;
  color: var(--text-primary);
}

.mk-faq summary::-webkit-details-marker { display: none; }

.mk-faq summary::after {
  content: '+';
  font-size: 1.3rem;
  line-height: 1;
  color: var(--text-muted);
  transition: transform var(--transition-fast);
}

.mk-faq details[open] summary::after { transform: rotate(45deg); }

.mk-faq details p { margin-top: 10px; font-size: 0.95rem; }

/* --------------------------------------------------------------------------
   ITEM PAGE
   -------------------------------------------------------------------------- */
.mk-detail { padding: calc(118px + env(safe-area-inset-top, 0px)) 0 40px; }

.mk-crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 0.86rem;
  color: var(--text-muted);
  margin-bottom: 22px;
}

.mk-crumbs a { color: var(--text-secondary); text-decoration: none; }

.mk-crumbs a:hover { color: var(--brand-blue); }

.mk-crumbs span[aria-current] { color: var(--text-primary); font-weight: 600; }

.mk-d-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 30px;
  margin-bottom: 28px;
}

.mk-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }

.mk-tag {
  font-size: 0.76rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  background: var(--bg-card-solid);
  border: 1px solid var(--border-card);
  color: var(--text-secondary);
  text-decoration: none;
}

a.mk-tag:hover { border-color: var(--brand-blue); color: var(--text-primary); }

.mk-tag-green { background: var(--mk-green-soft); color: var(--mk-green); border-color: transparent; }

.mk-tag-dark { background: #10141a; color: #fff; border-color: #10141a; }

.mk-tag-dark::before { content: '✦ '; color: #a78bfa; }

.mk-d-head h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); letter-spacing: -0.04em; }

.mk-d-tagline { font-size: clamp(1rem, 1.6vw, 1.18rem); margin-top: 10px; max-width: 720px; }

.mk-creator {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.mk-creator b { color: var(--text-primary); }

.mk-head-cta { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }

.mk-head-price {
  font: 800 1.9rem var(--font-heading);
  letter-spacing: -0.03em;
  color: var(--text-primary);
}

.mk-head-price.is-free { color: var(--mk-green); }

.mk-d-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 36px;
  align-items: start;
}

.mk-d-main { min-width: 0; }

/* Preview frames */
.mk-preview { margin-bottom: 44px; }

.mk-preview-template {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 230px;
  gap: 20px;
  align-items: start;
}

.mk-browser {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-card);
  background: var(--bg-card-solid);
  box-shadow: var(--shadow-xl);
}

.mk-browser-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-subtle);
}

.mk-dots { display: flex; gap: 6px; }

.mk-dots i { width: 10px; height: 10px; border-radius: 50%; background: #ff5f56; }

.mk-dots i:nth-child(2) { background: #ffbd2e; }

.mk-dots i:nth-child(3) { background: #27c93f; }

.mk-url {
  flex: 1;
  min-width: 0;
  font: 500 0.76rem var(--font-mono);
  color: var(--text-muted);
  background: var(--bg-card-solid);
  border: 1px solid var(--border-subtle);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mk-open-live {
  flex-shrink: 0;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--brand-blue);
  text-decoration: none;
  white-space: nowrap;
}

.mk-open-live:hover { text-decoration: underline; }

.mk-browser-view {
  height: 600px;
  overflow-y: auto;
  position: relative;
  background: var(--bg-secondary);
  scrollbar-width: thin;
}

.mk-browser-view img { width: 100%; height: auto; display: block; }

.mk-browser iframe {
  display: block;
  width: 100%;
  height: 620px;
  border: 0;
  background: #fff;
}

.mk-scroll-hint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--text-muted);
  padding: 10px;
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-secondary);
}

.mk-phone {
  border-radius: 38px;
  padding: 10px;
  background: #10141a;
  box-shadow: var(--shadow-xl);
  position: relative;
}

.mk-phone::before {
  content: '';
  position: absolute;
  top: 17px;
  left: 50%;
  transform: translateX(-50%);
  width: 58px;
  height: 16px;
  border-radius: 12px;
  background: #000;
  z-index: 1;
}

.mk-phone-screen {
  border-radius: 30px;
  border-top: 26px solid #10141a;
  overflow: hidden;
  aspect-ratio: 390 / 844;
  background: #fff;
}

.mk-phone-screen img { width: 100%; height: 100%; object-fit: cover; object-position: top; }

.mk-phone-caption { text-align: center; font-size: 0.8rem; color: var(--text-muted); margin-top: 12px; }

/* Vector previews */
.mk-vgrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(112px, 1fr));
  gap: 12px;
  padding: 22px;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  backdrop-filter: var(--glass-blur);
}

.mk-vtile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  aspect-ratio: 1;
  border-radius: var(--radius-md);
  background: var(--bg-card-solid);
  border: 1px solid var(--border-subtle);
  color: var(--mk-accent, var(--text-primary));
  font: 600 0.72rem var(--font-body);
  cursor: default;
  padding: 10px;
  transition: border-color var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
}

.mk-vtile span { color: var(--text-muted); text-align: center; line-height: 1.2; }

.mk-vtile svg { width: 40px; height: 40px; }

.mk-vtile.is-sticker svg { width: 64px; height: 64px; }

button.mk-vtile { cursor: copy; }

button.mk-vtile:hover {
  border-color: var(--brand-blue);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.mk-vgrid-note {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 12px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.mk-vgrid-note a {
  color: var(--brand-blue);
  font-weight: 700;
  text-decoration: none;
}

.mk-vgrid-note a:hover { text-decoration: underline; }

.mk-vgrid-note code {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  background: var(--bg-secondary);
  padding: 1px 5px;
  border-radius: 5px;
}

.mk-gradients {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 16px;
}

.mk-gradient {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-card);
  background: var(--bg-card-solid);
}

.mk-gradient-art { aspect-ratio: 16 / 10; }

.mk-gradient-art svg { display: block; width: 100%; height: 100%; }

.mk-gradient-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  font-size: 0.86rem;
  font-weight: 700;
}

.mk-gradient-foot a {
  font-size: 0.8rem;
  color: var(--brand-blue);
  text-decoration: none;
}

.mk-gradient-foot a:hover { text-decoration: underline; }

/* Content sections */
.mk-d-section { margin-bottom: 44px; }

.mk-d-section > h2 { font-size: clamp(1.4rem, 2.4vw, 1.8rem); margin-bottom: 14px; }

.mk-d-section > p { margin-bottom: 12px; line-height: 1.7; }

.mk-list-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.mk-list-grid li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.94rem;
  color: var(--text-secondary);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px 14px;
}

.mk-list-grid li::before {
  content: '';
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 1px;
  border-radius: 50%;
  background: var(--mk-green-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23059669' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12l4 4 8-8'/%3E%3C/svg%3E") center / 11px no-repeat;
}

.mk-list-grid.is-numbered { counter-reset: mksec; }

.mk-list-grid.is-numbered li::before {
  counter-increment: mksec;
  content: counter(mksec);
  background: var(--bg-secondary);
  color: var(--text-primary);
  font: 700 0.72rem var(--font-body);
  display: grid;
  place-items: center;
}

/* Claude prompt block */
.mk-prompt {
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-card);
  background: var(--bg-card);
  backdrop-filter: var(--glass-blur);
  padding: 30px;
  box-shadow: var(--shadow-md);
  scroll-margin-top: 110px;
}

.mk-kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-purple);
}

[data-theme="dark"] .mk-kicker { color: #c4b5fd; }

.mk-prompt h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); margin: 8px 0 8px; }

.mk-prompt-intro { font-size: 0.97rem; max-width: 640px; }

.mk-howto {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 20px 0 22px;
  counter-reset: mkhow;
}

.mk-howto li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
  background: var(--bg-card-solid);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 10px 12px;
}

.mk-howto li::before {
  counter-increment: mkhow;
  content: counter(mkhow);
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: var(--brand-gradient);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 800;
}

.mk-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.mk-field { display: flex; flex-direction: column; gap: 6px; }

.mk-field label { font-size: 0.8rem; font-weight: 700; color: var(--text-secondary); }

.mk-field input {
  width: 100%;
  font: 500 0.95rem var(--font-body);
  color: var(--text-primary);
  padding: 11px 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-card);
  background: var(--bg-card-solid);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.mk-field input:focus {
  outline: none;
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.14);
}

.mk-field-color { display: flex; gap: 8px; align-items: center; }

.mk-field-color input[type="color"] {
  width: 46px;
  height: 44px;
  padding: 4px;
  flex-shrink: 0;
  cursor: pointer;
}

.mk-code {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--mk-code-bg);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow-lg);
  position: relative;
}

.mk-code-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px 10px 16px;
  background: var(--mk-code-bar);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  flex-wrap: wrap;
}

.mk-code-file {
  display: flex;
  align-items: center;
  gap: 10px;
  font: 500 0.78rem var(--font-mono);
  color: #8b949e;
}

.mk-code-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.mk-code-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: #e6edf3;
  font: 700 0.82rem var(--font-body);
  padding: 8px 13px;
  border-radius: 10px;
  cursor: pointer;
  text-decoration: none;
  transition: background var(--transition-fast), border-color var(--transition-fast);
}

.mk-code-btn:hover { background: rgba(255, 255, 255, 0.12); }

.mk-code-btn.is-primary {
  background: #fff;
  color: #0d1117;
  border-color: #fff;
}

.mk-code-btn.is-primary:hover { background: #e8edff; }

.mk-code-btn.is-done { background: #238636; border-color: #2ea043; color: #fff; }

.mk-prompt-text {
  margin: 0;
  padding: 20px 22px;
  font: 400 0.84rem/1.75 var(--font-mono);
  color: var(--mk-code-text);
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 460px;
  overflow: auto;
  scrollbar-width: thin;
  scrollbar-color: #30363d transparent;
}

.mk-prompt-text.is-expanded { max-height: none; }

.mk-token {
  background: rgba(56, 139, 253, 0.2);
  color: #9ecbff;
  border-radius: 4px;
  padding: 0 3px;
  box-shadow: inset 0 -1px 0 rgba(56, 139, 253, 0.55);
}

.mk-token.is-filled { background: rgba(46, 160, 67, 0.2); color: #7ee787; box-shadow: inset 0 -1px 0 rgba(46, 160, 67, 0.6); }

.mk-code-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  font-size: 0.78rem;
  color: #8b949e;
  flex-wrap: wrap;
}

.mk-code-foot button {
  border: 0;
  background: none;
  color: #58a6ff;
  font: 700 0.8rem var(--font-body);
  cursor: pointer;
}

.mk-prompt-tip {
  margin-top: 16px;
  font-size: 0.9rem;
  background: var(--brand-gradient-subtle);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 14px 16px;
}

.mk-prompt-tip b { color: var(--text-primary); }

.mk-after-copy {
  display: none;
  margin-top: 14px;
  padding: 16px 18px;
  border-radius: var(--radius-md);
  background: var(--mk-green-soft);
  border: 1px solid rgba(5, 150, 105, 0.25);
  font-size: 0.92rem;
  color: var(--text-primary);
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.mk-after-copy.is-visible { display: flex; }

/* Locked (paid) prompt */
.mk-code.is-locked .mk-prompt-text { max-height: none; overflow: visible; padding-bottom: 6px; }

.mk-locked-lines { padding: 0 22px 20px; display: grid; gap: 10px; filter: blur(3px); opacity: 0.6; user-select: none; }

.mk-locked-lines i { display: block; height: 10px; border-radius: 6px; background: #30363d; }

.mk-lock {
  position: absolute;
  inset: auto 0 0 0;
  padding: 90px 20px 26px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  background: linear-gradient(180deg, rgba(13, 17, 23, 0) 0%, rgba(13, 17, 23, 0.94) 42%, #0d1117 100%);
  color: #e6edf3;
}

.mk-lock b { font-size: 1.05rem; }

.mk-lock span { font-size: 0.86rem; color: #8b949e; max-width: 420px; }

.mk-lock .btn { margin-top: 8px; background: #fff; color: #0d1117; }

/* Sidebar */
.mk-d-side {
  position: sticky;
  top: 108px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.mk-buy {
  background: var(--bg-card-solid);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-xl);
  padding: 26px;
  box-shadow: var(--shadow-lg);
}

.mk-buy-price {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.mk-buy-price strong {
  font: 800 2.2rem var(--font-heading);
  letter-spacing: -0.03em;
  color: var(--text-primary);
}

.mk-buy-price strong.is-free { color: var(--mk-green); }

.mk-buy-price span { font-size: 0.82rem; color: var(--text-muted); text-align: right; }

.mk-buy-actions { display: grid; gap: 10px; margin: 18px 0; }

.mk-buy-actions .btn { width: 100%; }

.mk-btn-wa {
  background: #1faa55;
  color: #fff;
  box-shadow: 0 6px 18px rgba(31, 170, 85, 0.25);
}

.mk-btn-wa:hover { background: #1b9a4c; transform: translateY(-2px); }

.mk-buy h3 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin: 18px 0 10px;
  font-family: var(--font-body);
}

.mk-includes { list-style: none; display: grid; gap: 9px; }

.mk-includes li {
  display: flex;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.45;
}

.mk-includes li::before { content: '✓'; color: var(--mk-green); font-weight: 800; flex-shrink: 0; }

.mk-specs { width: 100%; border-collapse: collapse; font-size: 0.88rem; }

.mk-specs th,
.mk-specs td { padding: 8px 0; border-bottom: 1px solid var(--border-subtle); text-align: left; vertical-align: top; }

.mk-specs th { color: var(--text-muted); font-weight: 600; width: 42%; padding-right: 10px; }

.mk-specs td { color: var(--text-primary); font-weight: 600; }

.mk-licence { font-size: 0.8rem; color: var(--text-muted); margin-top: 14px; line-height: 1.5; }

.mk-help {
  border-radius: var(--radius-xl);
  padding: 22px;
  background: #0e131b;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.mk-help b { display: block; font: 700 1.05rem var(--font-heading); margin-bottom: 6px; }

.mk-help p { color: #9da8b6; font-size: 0.88rem; margin-bottom: 14px; }

.mk-help .btn { width: 100%; background: #fff; color: #0b0f17; }

/* Related */
.mk-related { padding-top: 30px; border-top: 1px solid var(--border-subtle); margin-top: 20px; }

.mk-related .mk-section-head { margin-bottom: 22px; }

/* Mobile sticky buy bar */
.mk-mbar {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  z-index: 900;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 10px 10px 18px;
  border-radius: var(--radius-full);
  background: var(--bg-card-solid);
  border: 1px solid var(--border-card);
  box-shadow: var(--shadow-xl);
  transform: translateY(140%);
  transition: transform var(--transition-smooth);
}

.mk-mbar.is-visible { transform: none; }

.mk-mbar b { font: 800 1.15rem var(--font-heading); color: var(--text-primary); }

.mk-mbar b.is-free { color: var(--mk-green); }

.mk-mbar small { display: block; font-size: 0.74rem; color: var(--text-muted); }

/* Order modal */
.mk-order-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border-radius: var(--radius-md);
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  margin: 4px 44px 18px 0;
}

.mk-order-item img {
  width: 84px;
  height: 52px;
  object-fit: cover;
  object-position: top;
  border-radius: 8px;
  border: 1px solid var(--border-subtle);
  flex-shrink: 0;
}

.mk-order-item span { flex: 1; min-width: 0; font-size: 0.82rem; color: var(--text-muted); }

.mk-order-item span b { display: block; font-size: 1rem; color: var(--text-primary); }

.mk-order-item strong { font: 800 1.2rem var(--font-heading); color: var(--text-primary); white-space: nowrap; }

.mk-order h3 { font-size: 1.6rem; margin-bottom: 6px; }

.mk-order-lede { font-size: 0.92rem; margin-bottom: 18px; }

.mk-check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 18px;
  cursor: pointer;
}

.mk-check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--brand-blue); flex-shrink: 0; }

.mk-form-error {
  display: none;
  font-size: 0.88rem;
  color: #b91c1c;
  background: rgba(225, 29, 72, 0.08);
  border: 1px solid rgba(225, 29, 72, 0.25);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  margin-bottom: 14px;
}

[data-theme="dark"] .mk-form-error { color: #fda4af; }

.mk-form-error.is-visible { display: block; }

.mk-order-alt {
  text-align: center;
  font-size: 0.86rem;
  color: var(--text-muted);
  margin-top: 14px;
}

.mk-order-alt a { color: var(--brand-blue); font-weight: 700; text-decoration: none; }

.mk-order-success { text-align: center; padding: 10px 0 4px; }

.mk-order-success[hidden] { display: none; }

.mk-order-success .mk-tick {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  margin: 0 auto 16px;
  display: grid;
  place-items: center;
  background: var(--mk-green-soft);
  color: var(--mk-green);
  font-size: 2rem;
  font-weight: 800;
}

.mk-order-success h3 { margin-bottom: 8px; }

.mk-order-success p { margin-bottom: 18px; }

.mk-order-success .btn { margin: 4px; }

/* --------------------------------------------------------------------------
   RESPONSIVE
   -------------------------------------------------------------------------- */
@media (max-width: 1100px) {
  .mk-d-layout { grid-template-columns: minmax(0, 1fr) 320px; gap: 28px; }
  .mk-preview-template { grid-template-columns: minmax(0, 1fr); }
  .mk-phone { display: none; }
  .mk-phone-caption { display: none; }
}

@media (max-width: 1024px) {
  .mk-body { --mk-sticky-top: 72px; }
  .mk-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mk-toolbar { flex-direction: column; align-items: stretch; }
  .mk-controls { justify-content: space-between; }
  .mk-steps-grid { grid-template-columns: 1fr; }
  .mk-cta { grid-template-columns: 1fr; padding: 36px; }
  .mk-d-layout { grid-template-columns: minmax(0, 1fr); }
  .mk-d-side { position: static; }
  .mk-d-head { flex-direction: column; align-items: flex-start; gap: 18px; }
}

@media (max-width: 768px) {
  .mk-body { --mk-sticky-top: 64px; }
  .mk-hero { padding: calc(104px + env(safe-area-inset-top, 0px)) 0 30px; }
  .mk-search input { padding: 15px 18px 15px 48px; font-size: 16px; }
  .mk-search kbd { display: none; }
  .mk-search svg { left: 17px; }
  .mk-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .mk-section-head { flex-direction: column; align-items: flex-start; gap: 6px; }
  .mk-live { opacity: 1; transform: none; }
  .mk-band { padding-top: 60px; }
  .mk-cta { padding: 26px 20px; margin-top: 48px; }
  .mk-detail { padding-top: calc(96px + env(safe-area-inset-top, 0px)); }
  .mk-browser-view { height: 440px; }
  .mk-browser iframe { height: 540px; }
  .mk-list-grid { grid-template-columns: minmax(0, 1fr); }
  .mk-howto { grid-template-columns: minmax(0, 1fr); }
  .mk-fields { grid-template-columns: minmax(0, 1fr); }
  .mk-field input { font-size: 16px; }
  .mk-prompt { padding: 20px 16px; border-radius: var(--radius-lg); }
  .mk-prompt-text { padding: 16px; font-size: 0.8rem; max-height: 380px; }
  .mk-code-bar { padding: 10px 12px; }
  .mk-code-actions { width: 100%; }
  .mk-code-actions .mk-code-btn { flex: 1; justify-content: center; }
  .mk-head-cta { display: none; }
  .mk-mbar { display: flex; }
  .mk-body.has-mbar .site-footer { padding-bottom: 110px !important; }
  .mk-order-item { margin-right: 36px; }
  .mk-vgrid { grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); padding: 14px; }
  .mk-vtile svg { width: 32px; height: 32px; }
  .mk-vtile.is-sticker svg { width: 52px; height: 52px; }
}

@media (max-width: 480px) {
  .mk-controls { flex-direction: column; align-items: stretch; }
  .mk-seg { justify-content: space-between; }
  .mk-seg button { flex: 1; }
  .mk-sort select { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .mk-thumb,
  .mk-thumb img,
  .mk-live,
  .mk-mbar { transition: none; }
}
