body.mp-page {
  --ink: var(--text, #f4f1ea);
  --ink-2: var(--text, #f4f1ea);
  --body: 'Inter', 'Segoe UI', 'Nirmala UI', system-ui, sans-serif;
  --paper: var(--bg);
  --paper-2: var(--bg2);
  --surface: var(--bg2);
  --muted: var(--dim);
  --blue: var(--gold);
  --purple: var(--gold2);
  --red: var(--accent2, #7c4dff);
  --grad-subtle: color-mix(in srgb, var(--gold) 9%, transparent);
  --display: 'Sora', 'Segoe UI', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  --wrap: 1180px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--body);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

::selection {
  background: var(--purple);
  color: #fff;
}

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ==================== NAVBAR ==================== */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--nav);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
  transition: all 0.2s ease;
}

.nav-in {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.logo {
  font-family: var(--display);
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 12px;
  line-height: 1.1;
  color: var(--ink);
}

.logo-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--grad, linear-gradient(90deg, var(--gold2), var(--gold)));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--on-gold, #fff);
  font-size: 20px;
  box-shadow: 0 4px 12px rgba(139, 49, 232, 0.25);
  flex-shrink: 0;
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo em {
  font-family: var(--mono);
  font-style: normal;
  font-weight: 600;
  font-size: 9.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--purple);
  margin-top: 2px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--muted);
}

.nav-links a {
  transition: color 0.18s;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-links a:hover,
.nav-links a.on {
  color: var(--ink);
}

.nav-links a.on {
  font-weight: 600;
  color: var(--purple);
}

.nav-count-badge {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  background: color-mix(in srgb, #F0333E 16%, transparent);
  color: var(--red);
  padding: 2px 7px;
  border-radius: 99px;
  display: inline-flex;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-cta {
  background: var(--gold);
  color: var(--on-gold, #fff);
  padding: 10px 18px;
  border-radius: 99px;
  font-size: 13.5px;
  font-weight: 600;
  transition: transform 0.18s, box-shadow 0.18s, background 0.18s;
  white-space: nowrap;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(11, 13, 20, 0.22);
  background: var(--gold2);
}

/* ==================== HERO SECTION ==================== */
.page-head {
  padding: 70px 0 50px;
  background: linear-gradient(180deg, var(--bg2) 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}

.page-head::before {
  content: "";
  position: absolute;
  top: -120px;
  right: -80px;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  background: var(--grad, linear-gradient(90deg, var(--gold2), var(--gold)));
  filter: blur(140px);
  opacity: 0.18;
  pointer-events: none;
}

.page-eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.page-eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--grad, linear-gradient(90deg, var(--gold2), var(--gold)));
  border-radius: 2px;
}

h1 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(34px, 5.2vw, 66px);
  line-height: 1.05;
  letter-spacing: -0.035em;
  max-width: 17ch;
  margin-bottom: 22px;
  color: var(--ink);
}

.grad-text {
  background: var(--grad, linear-gradient(90deg, var(--gold2), var(--gold)));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
}

.page-head p {
  font-size: clamp(16px, 1.8vw, 19.5px);
  color: var(--muted);
  line-height: 1.6;
  max-width: 60ch;
  margin-bottom: 32px;
}

.page-btns {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-primary {
  background: var(--grad, linear-gradient(90deg, var(--gold2), var(--gold)));
  color: var(--on-gold, #fff);
  padding: 14px 28px;
  border-radius: 99px;
  font-weight: 600;
  font-size: 15px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 6px 20px rgba(139, 49, 232, 0.28);
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(139, 49, 232, 0.38);
}

.btn-ghost {
  border: 1.5px solid var(--line);
  padding: 14px 26px;
  border-radius: 99px;
  font-weight: 600;
  font-size: 15px;
  color: var(--ink-2);
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
  background: var(--surface);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-ghost:hover {
  border-color: var(--gold);
  transform: translateY(-1px);
}

/* ==================== STEPS SECTION ==================== */
.sec {
  padding: 24px 0 80px;
}

.sec-head {
  margin-bottom: 40px;
  max-width: 64ch;
}

.sec-eyebrow {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--purple);
  margin-bottom: 12px;
  font-weight: 600;
}

h2 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(28px, 3.8vw, 42px);
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 14px;
}

.sec-sub {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.6;
}

.mp-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 44px;
}

.mp-step {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px 18px;
  display: flex;
  gap: 14px;
  align-items: center;
  font-size: 13.5px;
  color: var(--ink-2);
  line-height: 1.45;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
  transition: transform 0.2s, border-color 0.2s;
}

.mp-step:hover {
  transform: translateY(-2px);
  border-color: var(--purple);
}

.mp-step b {
  flex: 0 0 32px;
  height: 32px;
  border-radius: 9px;
  background: var(--grad, linear-gradient(90deg, var(--gold2), var(--gold)));
  color: var(--on-gold, #fff);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--display);
  font-size: 15px;
  font-weight: 800;
}

/* ==================== SEARCH & FILTERS ==================== */
.pb-search-wrap {
  max-width: 640px;
  margin: 0 auto 20px;
  position: relative;
}

.pb-search {
  width: 100%;
  height: 50px;
  padding: 0 46px 0 48px;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  font-family: inherit;
  font-size: 15px;
  color: var(--ink);
  background: var(--surface);
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
  box-shadow: 0 4px 16px rgba(11, 13, 20, 0.04);
}

.pb-search:focus {
  border-color: var(--purple);
  box-shadow: 0 6px 20px rgba(139, 49, 232, 0.12);
}

.pb-search::placeholder {
  color: var(--dim);
}

.pb-search-ico {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 19px;
  height: 19px;
  opacity: 0.45;
  pointer-events: none;
  stroke: var(--ink);
}

.pb-search-clear {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 20px;
  color: var(--dim);
  line-height: 1;
  padding: 4px 6px;
  display: none;
}

.pb-search-clear.show {
  display: block;
}

.pb-search-clear:hover {
  color: var(--ink);
}

.pb-count {
  text-align: center;
  font-size: 13.5px;
  color: var(--muted);
  margin: -6px 0 20px;
  font-weight: 500;
}

.pb-count strong {
  color: var(--ink);
  font-weight: 600;
}

.pb-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 34px;
  justify-content: center;
}

.pb-chip {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 8px 15px;
  border-radius: 99px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  cursor: pointer;
  transition: all 0.18s ease;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  user-select: none;
}

.pb-chip:hover {
  border-color: var(--gold);
  color: var(--ink);
  transform: translateY(-1px);
}

.pb-chip.on {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--on-gold, #fff);
  box-shadow: 0 4px 12px rgba(11, 13, 20, 0.18);
}

.chip-fav.on {
  background: #F0333E;
  border-color: #F0333E;
  color: #fff;
}

/* ==================== CARDS GRID ==================== */
.mp-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.mp-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
  text-align: left;
  position: relative;
  box-shadow: 0 4px 16px rgba(11, 13, 20, 0.03);
}

.mp-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 44px rgba(11, 13, 20, 0.10);
  border-color: rgba(139, 49, 232, 0.3);
}

/* Stylized Visual Card Cover */
.mp-cover {
  position: relative;
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, #1E1B4B 0%, #31104B 50%, #161A26 100%);
  overflow: hidden;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
}

.mp-cover::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 25%, rgba(255, 255, 255, 0.18), transparent 60%);
  pointer-events: none;
}

.mp-cover-icon {
  font-size: 54px;
  line-height: 1;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.35));
  transition: transform 0.3s ease;
  position: relative;
  z-index: 1;
}

.mp-card:hover .mp-cover-icon {
  transform: scale(1.15) rotate(4deg);
}

.mp-cover-bg-text {
  position: absolute;
  right: -10px;
  bottom: -15px;
  font-family: var(--display);
  font-weight: 800;
  font-size: 64px;
  color: rgba(255, 255, 255, 0.04);
  letter-spacing: -0.04em;
  text-transform: uppercase;
  pointer-events: none;
  white-space: nowrap;
}

.mp-cover .mp-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(11, 13, 20, 0.75);
  backdrop-filter: blur(8px);
  color: #fff;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 5px 9px;
  border-radius: 6px;
  font-weight: 500;
  z-index: 2;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.mp-cover .mp-cat-tag {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  color: #fff;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 6px;
  z-index: 2;
}

.mp-cbody {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.pb-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.pb-tag {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 9px;
  border-radius: 6px;
  background: var(--paper-2);
  color: var(--muted);
  font-weight: 600;
}

.pb-tag.tool {
  background: rgba(139, 49, 232, 0.1);
  color: var(--purple);
}

.mp-ctitle {
  font-family: var(--display);
  font-weight: 700;
  font-size: 17.5px;
  letter-spacing: -0.015em;
  line-height: 1.3;
  color: var(--ink);
  cursor: pointer;
  transition: color 0.18s;
}

.mp-ctitle:hover {
  color: var(--purple);
}

.mp-cprompt {
  position: relative;
  font-family: var(--mono);
  font-size: 11.5px;
  line-height: 1.6;
  color: var(--ink-2);
  background: var(--paper-2);
  border-radius: 10px;
  padding: 12px 14px;
  max-height: 110px;
  overflow: hidden;
  white-space: pre-wrap;
  word-break: break-word;
  cursor: pointer;
  border: 1px solid rgba(0, 0, 0, 0.03);
}

.mp-cprompt::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 48px;
  background: linear-gradient(transparent, var(--paper-2));
  pointer-events: none;
}

.mp-lockt {
  font-size: 12px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
}

.mp-cacts {
  display: flex;
  gap: 8px;
  margin-top: auto;
  padding-top: 6px;
  align-items: center;
}

.pb-btn {
  font-family: var(--body);
  font-size: 12.5px;
  font-weight: 600;
  padding: 10px 14px;
  border-radius: 9px;
  cursor: pointer;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink-2);
  transition: all 0.18s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.pb-btn:hover {
  border-color: var(--gold);
  background: var(--paper-2);
}

.pb-btn.copy {
  flex: 1;
  background: var(--gold);
  border-color: var(--gold);
  color: var(--on-gold, #fff);
}

.pb-btn.copy:hover {
  background: var(--gold2);
  transform: translateY(-1px);
}

.pb-btn.done {
  background: var(--purple) !important;
  border-color: var(--purple) !important;
  color: var(--on-gold, #fff) !important;
}

.fav-btn {
  width: 38px;
  height: 38px;
  border: 1.5px solid var(--line);
  border-radius: 9px;
  background: var(--surface);
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.16s ease;
  flex-shrink: 0;
}

.fav-btn:hover {
  border-color: #F0333E;
  color: #F0333E;
  transform: scale(1.05);
}

.fav-btn.on {
  background: color-mix(in srgb, #F0333E 16%, transparent);
  border-color: #F0333E;
  color: #F0333E;
}

/* Empty State */
.pb-state {
  padding: 70px 20px;
  text-align: center;
  color: var(--muted);
  font-size: 16px;
  border: 1px dashed var(--line);
  border-radius: 18px;
  background: var(--surface);
}

/* ==================== DETAIL MODAL SHEET ==================== */
.mp-sheet {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(11, 13, 20, 0.65);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 36px 16px;
  overflow-y: auto;
}

.mp-sheet.open {
  display: flex;
}

.mp-box {
  position: relative;
  background: var(--surface);
  border-radius: 22px;
  max-width: 820px;
  width: 100%;
  padding: 32px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.35);
  animation: modalIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.mp-x {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.16s, border-color 0.16s;
  z-index: 10;
}

.mp-x:hover {
  background: var(--paper-2);
  border-color: var(--gold);
}

.mp-dhead {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 26px;
  align-items: center;
  margin-bottom: 24px;
}

.mp-dhead-banner {
  aspect-ratio: 1;
  border-radius: 16px;
  background: linear-gradient(135deg, #1E1B4B 0%, #31104B 50%, #161A26 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 64px;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.15);
  position: relative;
  overflow: hidden;
}

.mp-dhead-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 25%, rgba(255, 255, 255, 0.2), transparent 60%);
}

.mp-dtitle {
  font-family: var(--display);
  font-size: clamp(22px, 3.2vw, 30px);
  letter-spacing: -0.02em;
  line-height: 1.18;
  margin: 10px 0 12px;
  padding-right: 36px;
  color: var(--ink);
}

.mp-ddesc {
  font-size: 14.5px;
  color: var(--muted);
  line-height: 1.6;
}

.mp-h {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 24px 0 10px;
  font-weight: 600;
}

.mp-prev {
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.65;
  color: var(--ink-2);
  background: var(--paper-2);
  border-radius: 12px;
  padding: 18px;
  max-height: 340px;
  overflow-y: auto;
  white-space: pre-wrap;
  word-break: break-word;
  border: 1px solid var(--line);
}

.mp-meta {
  font-size: 12.5px;
  color: var(--muted);
  margin-top: 10px;
  font-family: var(--mono);
}

.mp-acts {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 22px;
}

.mp-acts .pb-btn {
  flex: 1 1 150px;
  padding: 12px 16px;
  font-size: 13.5px;
  border-radius: 10px;
}

.utw-ai {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.utw-ai button {
  flex: 1 1 180px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1.5px solid var(--line);
  background: var(--surface);
  color: var(--ink-2);
  font-weight: 600;
  font-size: 13.5px;
  cursor: pointer;
  transition: all 0.18s ease;
}

.utw-ai button:hover {
  border-color: var(--gold);
  background: var(--paper-2);
  transform: translateY(-1px);
}

body.mp-lock {
  overflow: hidden;
}

/* ==================== TOAST ==================== */
#toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%) translateY(40px);
  z-index: 9999;
  background: var(--gold);
  color: var(--on-gold, #fff);
  padding: 13px 24px;
  border-radius: 99px;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.3);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

#toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* ==================== FOOTER ==================== */
footer {
  background: var(--bg2);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 60px 0 34px;
  color: #fff;
  margin-top: auto;
}

.foot-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.foot-logo {
  font-family: var(--display);
  font-weight: 800;
  font-size: 20px;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.foot-about {
  font-size: 14px;
  color: #7C8399;
  line-height: 1.65;
  max-width: 38ch;
}

.foot-h {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 16px;
  font-weight: 600;
}

.foot-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.foot-links a {
  font-size: 14px;
  color: #9AA1B4;
  transition: color 0.18s;
}

.foot-links a:hover {
  color: var(--ink);
}

.foot-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--dim);
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 980px) {
  .mp-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .mp-steps {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  .foot-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .mp-dhead {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .mp-dhead-banner {
    max-width: 140px;
    margin: 0 auto;
  }
  .mp-dtitle {
    padding-right: 0;
  }
}

@media (max-width: 580px) {
  .mp-grid {
    grid-template-columns: 1fr;
  }
  .mp-steps {
    grid-template-columns: 1fr;
  }
  .page-head {
    padding: 50px 0 40px;
  }
  .mp-box {
    padding: 22px 18px;
  }
}

/* website: real cover pictures over the category gradient */
.mp-cover img.mp-img, .mp-dhead-banner img.mp-img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1;
}
.mp-cover .mp-badge, .mp-cover .mp-cat-tag { z-index: 2; }
.mp-img ~ .mp-cover-icon, .mp-img ~ .mp-cover-bg-text, .mp-img ~ span:not(.mp-badge):not(.mp-cat-tag) { display: none; }
.mp-dhead-banner { position: relative; overflow: hidden; aspect-ratio: 4 / 5; }
/* the phone rule only caps the width; with the picture absolutely placed the box had none */
@media (max-width: 768px) { .mp-dhead-banner { width: 100%; max-width: 200px; } }

/* sign-up gate */
.mp-lockbar { margin: 0 0 14px; padding: 12px 16px; border-radius: 14px; border: 1px solid var(--line);
  background: color-mix(in srgb, var(--gold) 10%, transparent); color: var(--text); font-size: 14px; }
.mp-lockbar a { color: var(--gold2); font-weight: 700; text-decoration: underline; }
.mp-gate { text-align: center; padding: 10px 4px 4px; }
.mp-gate-ico { font-size: 44px; margin-bottom: 6px; }
.mp-gate .mp-acts { justify-content: center; }
.mp-gate a.pb-btn { text-decoration: none; }

/* owner 10-30: premium prompts, the day's limit */
.mp-cover .mp-badge.prem { background: linear-gradient(135deg, #f59e0b, #d97706); color: #fff; }
.mp-open { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin: 12px 0 4px; font-size: 13.5px; color: var(--ink-2); }
.mp-prem-list { text-align: left; max-width: 420px; margin: 6px auto 14px; padding-left: 20px; line-height: 1.8; color: var(--ink-2); }
.mp-prem-price { font-size: 15px; margin: 0 0 12px; } .mp-prem-price b { font-size: 26px; } .mp-prem-price span { color: var(--ink-2); font-size: 13px; }
.mp-prem-agree { display: flex; gap: 8px; justify-content: center; align-items: flex-start; font-size: 13px; margin: 0 0 12px; }
.mp-prem-note { font-size: 12px; color: var(--ink-2); margin-top: 10px; } .mp-prem-note a, .mp-prem-agree a { text-decoration: underline; }
.mp-prem-msg { margin-top: 10px; font-size: 13.5px; font-weight: 600; } .mp-prem-msg.bad { color: #dc2626; }
.mp-acts[hidden], .utw-ai[hidden], .mp-open[hidden] { display: none !important; }

/* owner 10-30: the quick check when prompts are opened too fast */
.mp-human { display: flex; gap: 8px; justify-content: center; align-items: center; margin: 6px 0 10px; }
.mp-human img { height: 54px; border-radius: 8px; background: #fff; border: 1px solid var(--line); }
.mp-human button { width: 42px; height: 42px; border-radius: 10px; border: 1px solid var(--line); background: transparent; color: inherit; cursor: pointer; font-size: 18px; }
.mp-human-in { display: block; margin: 0 auto 12px; width: min(260px, 100%); padding: 11px 12px; border-radius: 10px; border: 1px solid var(--line);
  background: transparent; color: inherit; font: 600 16px Inter, sans-serif; text-align: center; letter-spacing: .12em; }

/* owner 10-31: the page opens straight on the prompts - on phones the categories are one row you swipe sideways */
@media (max-width: 768px) {
  .pb-bar { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; margin-bottom: 18px; padding-bottom: 6px;
            -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .pb-bar::-webkit-scrollbar { display: none; }
  .pb-chip { flex: 0 0 auto; }
}

/* price countdown (owner 11-14) */
.mp-offer { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin: 0 0 14px; padding: 12px 16px;
  border-radius: 14px; border: 1px solid color-mix(in srgb, var(--gold, #ffbf1f) 55%, transparent);
  background: linear-gradient(90deg, color-mix(in srgb, var(--gold, #ffbf1f) 22%, transparent), color-mix(in srgb, var(--gold2, #ffd84d) 8%, transparent));
  color: var(--text, #f4f1ea); font-size: 14px; }
.mp-offer[hidden] { display: none; }
.mp-offer-txt { flex: 1 1 260px; display: flex; flex-direction: column; gap: 2px; }
.mp-offer-txt span { color: var(--dim, #b8b4c8); }
.mp-offer-clock { font-family: var(--mono); font-size: 26px; font-weight: 600; letter-spacing: 1px; color: var(--gold2, #ffd84d); }
.mp-offer-btn { border: 0; border-radius: 10px; padding: 10px 16px; font-weight: 700; cursor: pointer;
  background: var(--gold, #ffbf1f); color: #1a1200; }
.mp-offer-note { margin: 6px 0 2px; font-size: 13px; color: var(--gold2, #ffd84d); }
@media (max-width: 560px) { .mp-offer-clock { font-size: 22px; } .mp-offer-btn { width: 100%; } }
