@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Inter:wght@400;500;600&display=swap');

:root {
  --mh-font-display: 'Plus Jakarta Sans', sans-serif;
  --mh-font-body: 'Inter', sans-serif;
  --mh-background: #ffffff;
  --mh-foreground: #111118;
  --mh-primary: #6D28D9;
  --mh-primary-foreground: #ffffff;
  --mh-secondary: #F3F0FF;
  --mh-secondary-foreground: #6D28D9;
  --mh-muted: #F5F5F8;
  --mh-muted-foreground: #71717A;
  --mh-accent: #F97316;
  --mh-border: rgba(0, 0, 0, 0.08);
  --mh-radius: 0.875rem;
  --mh-radius-xl: calc(var(--mh-radius) + 4px);
  --mh-radius-2xl: calc(var(--mh-radius) + 8px);
  --mh-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --mh-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.08);
  --mh-shadow-lg: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
  --mh-container: 80rem;
  --mh-page-gutter: 1rem;
}

@media (min-width: 640px) {
  :root {
    --mh-page-gutter: 1.5rem;
  }
}

body.mh-body {
  font-family: var(--mh-font-body);
  background: var(--mh-background);
  color: var(--mh-foreground);
}

.mh-body h1,
.mh-body h2,
.mh-body h3,
.mh-body h4,
.mh-body h5,
.mh-body h6,
.mh-display {
  font-family: var(--mh-font-display);
  font-weight: 800;
}

/* Header */
.mh-header {
  position: sticky;
  top: 0;
  z-index: 1030;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--mh-border);
  box-shadow: var(--mh-shadow-sm);
}

.mh-header-inner {
  max-width: var(--mh-container);
  margin: 0 auto;
  padding: 0 var(--mh-page-gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
  gap: 1rem;
}

.mh-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--mh-foreground);
  flex-shrink: 0;
}

.mh-logo-icon {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: var(--mh-radius);
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}

.mh-logo-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.mh-logo-text {
  font-family: var(--mh-font-display);
  font-weight: 800;
  font-size: 1.25rem;
}

.mh-logo-text span { color: var(--mh-primary); }

.mh-nav {
  display: none;
  align-items: center;
  gap: 0.25rem;
}

@media (min-width: 992px) {
  .mh-nav { display: flex; }
}

.mh-nav-link {
  padding: 0.375rem 0.75rem;
  border-radius: var(--mh-radius);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--mh-muted-foreground);
  text-decoration: none;
  transition: color 0.15s, background 0.15s;
}

.mh-nav-link:hover {
  color: var(--mh-foreground);
  background: var(--mh-muted);
}

.mh-nav-link.active {
  background: var(--mh-secondary);
  color: var(--mh-primary);
}

.mh-header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.mh-btn-create {
  display: none;
  align-items: center;
  gap: 0.375rem;
  background: var(--mh-primary);
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: var(--mh-radius-xl);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  border: none;
  transition: opacity 0.15s;
}

.mh-btn-create:hover {
  opacity: 0.9;
  color: #fff;
}

@media (min-width: 576px) {
  .mh-btn-create { display: inline-flex; }
}

.mh-menu-toggle {
  display: flex;
  padding: 0.5rem;
  border: none;
  background: transparent;
  border-radius: var(--mh-radius-xl);
  color: var(--mh-muted-foreground);
  cursor: pointer;
}

.mh-menu-toggle:hover {
  background: var(--mh-muted);
  color: var(--mh-foreground);
}

@media (min-width: 992px) {
  .mh-menu-toggle { display: none; }
}

.mh-mobile-search {
  max-width: var(--mh-container);
  margin: 0 auto;
  padding: 0 var(--mh-page-gutter) 0.75rem;
}

@media (min-width: 768px) {
  .mh-mobile-search { display: none; }
}

.mh-search-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--mh-muted);
  border-radius: var(--mh-radius-xl);
  padding: 0.5rem 0.75rem;
}

.mh-search-bar input {
  flex: 1;
  border: none;
  background: transparent;
  outline: none;
  font-size: 0.875rem;
  color: var(--mh-foreground);
}

.mh-search-bar input::placeholder { color: var(--mh-muted-foreground); }

.mh-mobile-nav {
  border-top: 1px solid var(--mh-border);
  padding: 1rem;
  background: #fff;
}

.mh-mobile-nav .mh-nav-link {
  display: block;
  padding: 0.625rem 1rem;
  margin-bottom: 0.25rem;
}

.mh-mobile-nav-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--mh-border);
}

.mh-mobile-nav-actions .mh-btn-create {
  display: flex;
  flex: 1;
  justify-content: center;
}

/* Footer */
.mh-footer {
  background: var(--mh-foreground);
  color: #fff;
  margin-top: 5rem;
}

.mh-footer-inner {
  max-width: var(--mh-container);
  margin: 0 auto;
  padding: 3.5rem var(--mh-page-gutter);
}

.mh-footer-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem;
}

@media (min-width: 768px) {
  .mh-footer-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 992px) {
  .mh-footer-grid { grid-template-columns: 2fr repeat(4, 1fr); }
}

.mh-footer-brand {
  grid-column: span 2;
}

@media (min-width: 768px) {
  .mh-footer-brand { grid-column: span 3; }
}

@media (min-width: 992px) {
  .mh-footer-brand { grid-column: span 1; }
}

.mh-footer-brand p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.875rem;
  line-height: 1.6;
  max-width: 20rem;
  margin: 1rem 0 1.5rem;
}

.mh-footer-social {
  display: flex;
  gap: 0.75rem;
}

.mh-footer-social a {
  width: 2rem;
  height: 2rem;
  border-radius: var(--mh-radius);
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: background 0.15s;
}

.mh-footer-social a:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.mh-footer-col-title {
  font-family: var(--mh-font-display);
  font-weight: 700;
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

.mh-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mh-footer ul li { margin-bottom: 0.625rem; }

.mh-footer ul a {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.875rem;
  text-decoration: none;
  transition: color 0.15s;
}

.mh-footer ul a:hover { color: #fff; }

.mh-footer-bottom {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}

@media (min-width: 576px) {
  .mh-footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.mh-footer-bottom p {
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.875rem;
  margin: 0;
}

/* Page layout */
.mh-page {
  min-height: 50vh;
  padding-left: var(--mh-page-gutter);
  padding-right: var(--mh-page-gutter);
  overflow-x: clip;
}

.mh-container {
  max-width: var(--mh-container);
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 640px) {
  .mh-container { padding: 0 1.5rem; }
}

/* Inside page content: single gutter from .mh-page only */
.mh-page .mh-container {
  padding-left: 0;
  padding-right: 0;
}

/* Full-width bands inside a padded page */
.mh-page > .mh-hero,
.mh-page > .mh-home-hero,
.mh-page > .mh-about-hero,
.mh-page > .mh-page-header-hero,
.mh-page > .mh-generator-hero,
.mh-page > .mh-stats-bar,
.mh-page > .mh-cta-banner,
.mh-page > .mh-newsletter {
  margin-left: calc(-1 * var(--mh-page-gutter));
  margin-right: calc(-1 * var(--mh-page-gutter));
}

.mh-section { padding: 3rem 0; }

/* Hero */
.mh-hero {
  background: linear-gradient(135deg, var(--mh-primary) 0%, rgba(109, 40, 217, 0.7) 100%);
  padding: 4rem var(--mh-page-gutter);
  text-align: center;
}

.mh-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  padding: 0.375rem 1rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
}

.mh-hero h1 {
  color: #fff;
  font-size: clamp(1.75rem, 5vw, 3rem);
  margin-bottom: 1rem;
}

.mh-hero p {
  color: rgba(255, 255, 255, 0.8);
  max-width: 36rem;
  margin: 0 auto 2rem;
}

.mh-hero-catalog > .mh-container {
  max-width: var(--mh-container);
}

.mh-hero-catalog h1 {
  font-size: clamp(1.375rem, 3.2vw, 2.125rem);
  line-height: 1.25;
  max-width: none;
  margin-left: auto;
  margin-right: auto;
}

.mh-hero-catalog p {
  max-width: none;
  font-size: 1rem;
  line-height: 1.7;
}

.mh-hero-search {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: #fff;
  border-radius: var(--mh-radius-2xl);
  padding: 0.875rem 1.25rem;
  max-width: 36rem;
  margin: 0 auto;
  box-shadow: var(--mh-shadow-lg);
}

.mh-hero-search input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 1rem;
  color: var(--mh-foreground);
  background: transparent;
}

.mh-hero-search input::placeholder { color: var(--mh-muted-foreground); }

/* Generator hub hero with embedded builder */
.mh-generator-hero {
  background: linear-gradient(135deg, var(--mh-primary) 0%, rgba(109, 40, 217, 0.75) 100%);
  padding: 3rem var(--mh-page-gutter) 2.5rem;
  text-align: center;
}
.mh-generator-hero-copy {
  margin-bottom: 1.5rem;
  text-align: center;
  width: 100%;
}
.mh-generator-hero-copy .mh-hero-badge {
  margin-left: auto;
  margin-right: auto;
}
.mh-generator-hero-copy h1 {
  color: #fff;
  font-size: clamp(1.75rem, 5vw, 3rem);
  margin-bottom: 0.75rem;
  text-align: center;
}
.mh-generator-hero-copy p {
  color: rgba(255, 255, 255, 0.85);
  max-width: 40rem;
  margin: 0 auto;
  font-size: 1.05rem;
  text-align: center;
}
.mh-generator-builder-wrap {
  max-width: 72rem;
  margin: 0 auto;
  padding-top: 0.5rem;
  overflow: visible;
}
.mh-generator-builder {
  text-align: left;
  overflow: visible;
  position: relative;
  z-index: 1;
}

.mh-generator-template-search {
  margin: 0 auto 1.5rem;
  border: 1px solid var(--mh-border, #e5e7eb);
}

.mh-generator-hero-copy h1 {
  text-transform: capitalize;
}

@media (max-width: 767px) {
  .mh-generator-hero {
    padding: 2rem var(--mh-page-gutter) 1.5rem;
  }

  .mh-generator-hero-copy {
    margin-bottom: 1rem;
  }

  .mh-generator-hero-copy h1 {
    font-size: clamp(1.375rem, 6vw, 1.875rem);
    line-height: 1.2;
    word-break: break-word;
    overflow-wrap: anywhere;
  }

  .mh-generator-hero-copy p {
    font-size: 0.9375rem;
    line-height: 1.5;
    padding: 0 0.25rem;
  }

  .mh-breadcrumb {
    font-size: 0.75rem;
    gap: 0.25rem 0.375rem;
    line-height: 1.4;
    margin-bottom: 0.625rem;
  }

  .mh-generator-builder-wrap {
    padding-top: 0;
    overflow: visible;
  }

  .mh-section {
    padding: 2rem 0;
  }

  .mh-section-header {
    flex-direction: column;
    align-items: flex-start !important;
    justify-content: flex-start;
    gap: 0.5rem;
    margin-bottom: 1rem;
    width: 100%;
    text-align: left !important;
  }

  .mh-section-header > div {
    width: 100%;
    text-align: left !important;
  }

  .mh-section-header h2 {
    font-size: 1.125rem;
    line-height: 1.3;
    word-break: break-word;
    text-align: left !important;
  }

  .mh-section-header p {
    text-align: left !important;
  }

  .mh-section-header a {
    align-self: flex-start;
    margin-left: 0 !important;
    text-align: left !important;
  }

  .mh-trending-header {
    flex-direction: column;
    align-items: flex-start !important;
    gap: 0.75rem;
  }

  .mh-trending-header > div {
    width: 100%;
    text-align: left !important;
  }

  .mh-trending-label,
  .mh-trending-title {
    text-align: left !important;
  }

  .mh-carousel-controls {
    align-self: flex-start;
  }

  .mh-chip-row {
    justify-content: flex-start;
  }

  .mh-page-header,
  .mh-page-header h1,
  .mh-page-header p {
    text-align: left !important;
  }

  .mh-home-hero,
  .mh-home-hero h1,
  .mh-home-hero > .mh-home-hero-inner > p {
    text-align: left;
  }

  .mh-home-hero > .mh-home-hero-inner > p {
    margin-left: 0;
    margin-right: 0;
  }

  .mh-home-search {
    margin-left: 0;
    margin-right: 0;
    max-width: 100%;
    padding: 0.75rem 1rem;
  }

  .mh-home-search input {
    font-size: 0.9375rem;
  }

  .mh-tag-cloud {
    justify-content: flex-start;
  }

  .mh-cta-row {
    justify-content: flex-start;
  }

  .mh-generator-hero,
  .mh-generator-hero-copy,
  .mh-generator-hero-copy h1,
  .mh-generator-hero-copy p {
    text-align: left;
  }

  .mh-generator-hero-copy .mh-hero-badge {
    margin-left: 0;
    margin-right: auto;
  }

  .mh-generator-hero-copy p {
    margin-left: 0;
    margin-right: 0;
  }

  .mh-breadcrumb {
    justify-content: flex-start;
  }

  .mh-generator-templates-section .mh-section-header,
  .mh-generator-templates-section .mh-gen-category-column-head {
    align-items: flex-start;
    text-align: left;
  }

  .mh-template-card-v2-body h3,
  .mh-template-card-v2-body .mh-template-card-title {
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
}

@media (max-width: 576px) {
  .mh-generator-template-search {
    max-width: 100%;
    margin-bottom: 1rem;
  }

  .mh-pills {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0.25rem;
    margin-bottom: 1.5rem;
    scrollbar-width: none;
    margin-left: calc(-1 * var(--mh-page-gutter));
    margin-right: calc(-1 * var(--mh-page-gutter));
    padding-left: var(--mh-page-gutter);
    padding-right: var(--mh-page-gutter);
  }

  .mh-pills::-webkit-scrollbar {
    display: none;
  }

  .mh-pill {
    flex-shrink: 0;
    white-space: nowrap;
  }

  .mh-label-row {
    font-size: 0.75rem;
  }
}

.mh-template-card-v2-mobile-action {
  display: none;
}

.mh-breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.875rem;
  margin-bottom: 0.75rem;
}

.mh-breadcrumb a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
}

.mh-breadcrumb a:hover { color: #fff; }

.mh-category-hero-icon {
  display: block;
  width: 7rem;
  height: 7rem;
  margin: 0.25rem auto 1.25rem;
  border-radius: 1.25rem;
  object-fit: cover;
  border: 3px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

/* Section header */
.mh-section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
  text-align: left;
}

.mh-section-header > div {
  text-align: left;
}

.mh-section-header h2 {
  font-size: 1.25rem;
  margin: 0;
  font-weight: 800;
  text-align: left;
}

.mh-section-header p {
  color: var(--mh-muted-foreground);
  font-size: 0.875rem;
  margin: 0.25rem 0 0;
  text-align: left;
}

.mh-section-header a {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  color: var(--mh-primary);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.mh-section-header a:hover { gap: 0.5rem; }

.mh-label-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--mh-muted-foreground);
  text-transform: uppercase;
}

.mh-label-row.accent { color: var(--mh-accent); }

/* Cards */
.mh-category-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  align-items: stretch;
}

@media (min-width: 576px) {
  .mh-category-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 768px) {
  .mh-category-grid { grid-template-columns: repeat(4, 1fr); }
}

.mh-category-card {
  position: relative;
  display: block;
  border-radius: var(--mh-radius-2xl);
  overflow: hidden;
  border: 1px solid var(--mh-border);
  aspect-ratio: 1 / 1;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}

.mh-category-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--mh-shadow-lg);
}

.mh-category-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.3s;
}

.mh-category-card:hover img { transform: scale(1.05); }

.mh-category-card-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 1;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.mh-category-card:hover .mh-category-card-overlay {
  opacity: 0;
}

.mh-category-card-body {
  position: absolute;
  inset: 0;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  z-index: 2;
}

.mh-category-card-body::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 55%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.72), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: -1;
}

.mh-category-card:hover .mh-category-card-body::before {
  opacity: 1;
}

.mh-category-card-body h3,
.mh-category-card-body .mh-category-card-title {
  color: #fff;
  font-size: 0.875rem;
  font-weight: 700;
  margin: 0 0 0.125rem;
}

.mh-category-card-body span {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.75rem;
}

.mh-category-card-lg { aspect-ratio: 1 / 1; }

/* Uniform card image crop */
.mh-card-img-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--mh-muted);
  color: var(--mh-muted-foreground);
  font-size: 0.75rem;
}

/* Template card */
.mh-template-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

@media (min-width: 576px) {
  .mh-template-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 768px) {
  .mh-template-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (min-width: 992px) {
  .mh-template-grid { grid-template-columns: repeat(5, 1fr); }
}

.mh-template-card {
  display: block;
  background: #fff;
  border: 1px solid var(--mh-border);
  border-radius: var(--mh-radius-2xl);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s, box-shadow 0.2s;
}

.mh-template-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--mh-shadow-lg);
}

.mh-template-card-img {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: var(--mh-muted);
  overflow: hidden;
}

.mh-template-card-img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.3s;
}

.mh-template-card:hover .mh-template-card-img img { transform: scale(1.05); }

.mh-template-card-body {
  padding: 0.75rem;
}

.mh-template-card-body h3 {
  font-size: 0.8125rem;
  font-weight: 700;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Category pills */
.mh-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.mh-pill {
  padding: 0.375rem 1rem;
  border-radius: var(--mh-radius-xl);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid var(--mh-border);
  color: var(--mh-muted-foreground);
  background: #fff;
  transition: border-color 0.15s, color 0.15s;
  cursor: pointer;
  font-family: inherit;
}

.mh-pill:hover {
  border-color: var(--mh-primary);
  color: var(--mh-primary);
}

.mh-pill.active {
  background: var(--mh-primary);
  border-color: var(--mh-primary);
  color: #fff;
}

/* Utility */
.mh-text-muted { color: var(--mh-muted-foreground); }
.mh-bg-muted { background: var(--mh-muted); }

.mh-empty {
  text-align: center;
  color: var(--mh-muted-foreground);
  padding: 2rem;
}

/* Override old purple navbar if any child page sets it */
.mh-body .navbar:not(.mh-header) {
  background-color: transparent !important;
}

/* Home hero */
.mh-home-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(109,40,217,0.05) 0%, #fff 50%, rgba(249,115,22,0.05) 100%);
  padding: 5rem var(--mh-page-gutter) 6rem;
  text-align: center;
}
.mh-home-hero::before,
.mh-home-hero::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
}
.mh-home-hero::before { top: 2.5rem; left: 2.5rem; width: 16rem; height: 16rem; background: rgba(109,40,217,0.05); }
.mh-home-hero::after { bottom: 2.5rem; right: 2.5rem; width: 20rem; height: 20rem; background: rgba(249,115,22,0.05); }
.mh-home-hero-inner { position: relative; max-width: 56rem; margin: 0 auto; }
.mh-badge { display: inline-flex; align-items: center; gap: 0.5rem; background: var(--mh-secondary); color: var(--mh-primary); padding: 0.375rem 1rem; border-radius: 9999px; font-size: 0.875rem; font-weight: 600; margin-bottom: 1.5rem; }
.mh-home-hero h1 { font-size: clamp(2rem, 6vw, 3.75rem); line-height: 1.15; margin-bottom: 1.5rem; }
.mh-home-hero h1 span { color: var(--mh-primary); }
.mh-home-hero > .mh-home-hero-inner > p { color: var(--mh-muted-foreground); font-size: clamp(1rem, 2vw, 1.125rem); max-width: 36rem; margin: 0 auto 2.5rem; }
.mh-home-search { display: flex; align-items: center; gap: 0.75rem; background: #fff; border: 2px solid var(--mh-border); border-radius: var(--mh-radius-2xl); padding: 0.875rem 1.25rem; max-width: 42rem; margin: 0 auto 2rem; box-shadow: var(--mh-shadow-lg); }
.mh-home-search:focus-within { border-color: var(--mh-primary); }
.mh-home-search input { flex: 1 1 0%; min-width: 0; border: none; outline: none; font-size: 1rem; background: transparent; text-align: left; }
.mh-home-search button { background: var(--mh-primary); color: #fff; border: none; padding: 0.5rem 1.25rem; border-radius: var(--mh-radius-xl); font-size: 0.875rem; font-weight: 600; cursor: pointer; white-space: nowrap; flex-shrink: 0; }
.mh-tag-cloud { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; margin-bottom: 2.5rem; }
.mh-tag { background: #fff; border: 1px solid var(--mh-border); color: var(--mh-muted-foreground); font-size: 0.875rem; padding: 0.25rem 0.75rem; border-radius: 9999px; text-decoration: none; font-weight: 500; transition: border-color 0.15s, color 0.15s; }
.mh-tag:hover { border-color: var(--mh-primary); color: var(--mh-primary); }
.mh-cta-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; }
.mh-btn-primary-lg { display: inline-flex; align-items: center; gap: 0.5rem; background: var(--mh-primary); color: #fff; padding: 0.75rem 1.75rem; border-radius: var(--mh-radius-2xl); font-weight: 700; text-decoration: none; border: none; cursor: pointer; }
.mh-btn-primary-lg:hover { opacity: 0.9; color: #fff; }
.mh-btn-outline-lg { display: inline-flex; align-items: center; gap: 0.5rem; background: #fff; border: 2px solid var(--mh-border); color: var(--mh-foreground); padding: 0.75rem 1.75rem; border-radius: var(--mh-radius-2xl); font-weight: 600; text-decoration: none; }
.mh-btn-outline-lg:hover { border-color: var(--mh-primary); color: var(--mh-primary); }

/* Stats */
.mh-stats-bar {
  background: var(--mh-foreground);
  padding: 2.5rem var(--mh-page-gutter);
}
.mh-stats-inner { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; text-align: center; }
@media (min-width: 768px) { .mh-stats-inner { grid-template-columns: repeat(4, 1fr); } }
.mh-stat-value { color: #fff; font-family: var(--mh-font-display); font-weight: 800; font-size: 1.75rem; margin-bottom: 0.25rem; }
.mh-stat-label { color: rgba(255,255,255,0.5); font-size: 0.875rem; }

/* Meme card v2 */
.mh-meme-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; align-items: stretch; }
@media (min-width: 576px) { .mh-meme-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 992px) { .mh-meme-grid { grid-template-columns: repeat(4, 1fr); } }
.mh-meme-grid > *,
.mh-meme-grid-item,
.mh-meme-carousel-item { display: flex; min-height: 0; }
.mh-meme-card {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  background: #fff;
  border: 1px solid var(--mh-border);
  border-radius: var(--mh-radius-2xl);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}
.mh-meme-card:hover { transform: translateY(-2px); box-shadow: var(--mh-shadow-lg); }
.mh-meme-card-interactive { cursor: default; }
.mh-meme-card-interactive .mh-meme-action-like,
.mh-meme-card-interactive .mh-meme-action-download { cursor: pointer; }
.mh-meme-card-title-link { color: inherit; text-decoration: none; transition: color 0.2s; }
.mh-meme-card-title-link:hover { color: var(--mh-primary); }
.mh-meme-card-badge-link { color: inherit; text-decoration: none; z-index: 3; transition: background 0.2s, color 0.2s; }
.mh-meme-card-badge-link:hover { background: #fff; color: var(--mh-primary); }
.mh-meme-card-img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  flex-shrink: 0;
  background: var(--mh-muted);
  overflow: hidden;
}
.mh-meme-card-img-wrap img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.3s;
}
.mh-meme-card:hover img { transform: scale(1.05); }
.mh-meme-card-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.4), transparent); opacity: 0; transition: opacity 0.2s; z-index: 1; pointer-events: none; }
.mh-meme-card:hover .mh-meme-card-overlay { opacity: 1; }
.mh-meme-card-badge { position: absolute; top: 0.75rem; left: 0.75rem; z-index: 2; background: rgba(255,255,255,0.9); backdrop-filter: blur(4px); font-size: 0.75rem; font-weight: 600; padding: 0.25rem 0.625rem; border-radius: 9999px; pointer-events: auto; }
.mh-meme-card-body { padding: 0.75rem; flex: 1; display: flex; flex-direction: column; }
.mh-meme-card-body h3,
.mh-meme-card-body .mh-meme-card-title { font-size: 0.875rem; font-weight: 600; margin: 0 0 0.5rem; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.7em; }
.mh-meme-card-tags { display: flex; flex-wrap: wrap; gap: 0.25rem; margin-bottom: 0.625rem; min-height: 1.375rem; }
.mh-meme-card-tags span,
.mh-meme-card-tag-link { font-size: 0.75rem; background: var(--mh-secondary); color: var(--mh-primary); padding: 0.125rem 0.5rem; border-radius: 9999px; text-decoration: none; transition: background 0.15s, color 0.15s; }
.mh-meme-card-tag-link:hover { background: var(--mh-primary); color: #fff; }
.mh-meme-card-meta { display: flex; align-items: center; gap: 0.65rem; flex-wrap: wrap; font-size: 0.75rem; color: var(--mh-muted-foreground); margin-top: auto; }
.mh-meme-stat { display: inline-flex; align-items: center; gap: 0.25rem; border: 0; background: transparent; padding: 0; color: inherit; font: inherit; }
.mh-meme-action-like,
.mh-meme-action-download { cursor: pointer; border-radius: 0.375rem; padding: 0.125rem 0.25rem; transition: color 0.15s, background 0.15s; }
.mh-meme-action-like:hover,
.mh-meme-action-download:hover { color: var(--mh-primary); background: var(--mh-secondary); }
.mh-meme-action-like.is-liked { color: #ef4444; }
.mh-meme-action-like.is-liked svg { fill: #ef4444; stroke: #ef4444; }
.mh-meme-card-preview { position: absolute; inset: 0; display: block; width: 100%; height: 100%; border: 0; padding: 0; background: transparent; cursor: zoom-in; z-index: 1; }
.mh-meme-card-preview img { position: static; width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; transition: transform 0.3s; }
.mh-meme-card:hover .mh-meme-card-preview img { transform: scale(1.05); }
.mh-meme-modal { position: fixed; inset: 0; z-index: 1200; display: flex; align-items: center; justify-content: center; padding: 1.5rem; }
.mh-meme-modal[hidden] { display: none !important; }
.mh-meme-modal-backdrop { position: absolute; inset: 0; background: rgba(15, 23, 42, 0.82); backdrop-filter: blur(4px); }
.mh-meme-modal-dialog { position: relative; z-index: 1; max-width: min(94vw, 56rem); width: 100%; background: #fff; border-radius: 1.25rem; padding: 0; box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.35); overflow: hidden; }
.mh-meme-modal-layout { display: grid; grid-template-columns: 1.1fr 0.9fr; min-height: 22rem; }
.mh-meme-modal-media { background: linear-gradient(160deg, #f8fafc 0%, #eef2ff 100%); display: flex; align-items: center; justify-content: center; padding: 1.5rem; }
.mh-meme-modal-media img { display: block; width: 100%; max-height: 70vh; object-fit: contain; border-radius: 0.875rem; box-shadow: 0 10px 30px rgba(15, 23, 42, 0.12); }
.mh-meme-modal-info { display: flex; flex-direction: column; gap: 0.875rem; padding: 1.5rem 1.5rem 1.75rem; }
.mh-meme-modal-badge { display: inline-flex; align-self: flex-start; font-size: 0.75rem; font-weight: 600; color: var(--mh-primary, #6d28d9); background: rgba(109, 40, 217, 0.1); padding: 0.25rem 0.625rem; border-radius: 9999px; }
.mh-meme-modal-title { margin: 0; font-size: 1.375rem; font-weight: 700; line-height: 1.3; color: var(--mh-foreground); }
.mh-meme-modal-desc { margin: 0; font-size: 0.9375rem; line-height: 1.6; color: var(--mh-muted-foreground); }
.mh-meme-modal-stats { display: flex; flex-wrap: wrap; gap: 0.875rem 1.25rem; font-size: 0.8125rem; color: var(--mh-muted-foreground); }
.mh-meme-modal-stats span { display: inline-flex; align-items: center; gap: 0.375rem; }
.mh-meme-modal-actions { display: flex; flex-wrap: wrap; gap: 0.625rem; margin-top: 0.25rem; }
.mh-meme-modal-actions .mh-btn-primary-lg { display: inline-flex; align-items: center; gap: 0.5rem; flex: 1; justify-content: center; min-width: 10rem; margin-top: 0; }
.mh-meme-modal-like { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.75rem 1rem; border: 1px solid var(--mh-border, #e2e8f0); border-radius: 9999px; background: #fff; color: var(--mh-foreground); font-weight: 600; font-size: 0.875rem; cursor: pointer; transition: border-color 0.2s, color 0.2s, background 0.2s; }
.mh-meme-modal-like:hover { border-color: var(--mh-primary, #6d28d9); color: var(--mh-primary, #6d28d9); }
.mh-meme-modal-like.is-liked { border-color: #ef4444; color: #ef4444; background: rgba(239, 68, 68, 0.06); }
.mh-meme-modal-share { margin-top: auto; padding-top: 0.5rem; border-top: 1px solid var(--mh-border, #e2e8f0); }
.mh-meme-modal-share-label { display: block; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--mh-muted-foreground); margin-bottom: 0.625rem; }
.mh-meme-modal-share-btns { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.mh-meme-share-btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.375rem; min-width: 2.5rem; height: 2.5rem; padding: 0 0.75rem; border: 1px solid var(--mh-border, #e2e8f0); border-radius: 9999px; background: #fff; color: var(--mh-foreground); font-size: 0.75rem; font-weight: 600; cursor: pointer; transition: border-color 0.2s, background 0.2s, transform 0.15s; }
.mh-meme-share-btn:hover { border-color: var(--mh-primary, #6d28d9); background: rgba(109, 40, 217, 0.06); transform: translateY(-1px); }
.mh-meme-modal-share-toast { margin: 0.5rem 0 0; font-size: 0.8125rem; color: #059669; font-weight: 600; }
.mh-meme-modal-close { position: absolute; top: 0.75rem; right: 0.75rem; width: 2.25rem; height: 2.25rem; border: 0; border-radius: 9999px; background: rgba(255, 255, 255, 0.95); color: var(--mh-foreground); font-size: 1.35rem; line-height: 1; cursor: pointer; z-index: 3; box-shadow: 0 2px 8px rgba(15, 23, 42, 0.12); }
.mh-meme-modal-close:hover { background: #fff; }
body.mh-meme-modal-open { overflow: hidden; }
@media (max-width: 768px) {
  .mh-meme-modal { padding: 0.75rem; }
  .mh-meme-modal-layout { grid-template-columns: 1fr; }
  .mh-meme-modal-media { padding: 1rem 1rem 0.5rem; }
  .mh-meme-modal-media img { max-height: 45vh; }
  .mh-meme-modal-info { padding: 1rem 1rem 1.25rem; }
  .mh-meme-modal-actions .mh-btn-primary-lg { width: 100%; }
}

/* Template card v2 */
.mh-template-grid-v2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  align-items: stretch;
  width: 100%;
}
@media (min-width: 576px) {
  .mh-template-grid-v2 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 768px) {
  .mh-template-grid-v2 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (min-width: 992px) {
  .mh-template-grid-v2-lg5 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (min-width: 1400px) {
  .mh-template-grid-v2-lg5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
.mh-template-grid-v2 > .mh-template-card-v2,
.mh-template-grid-v2 > .mh-template-item {
  display: flex;
  min-height: auto;
  min-width: 0;
}
.mh-template-grid-v2 > .mh-template-item > .mh-template-card-v2 { flex: 1; width: 100%; min-width: 0; }

#generatorCategoryPanel {
  display: block;
  width: 100%;
}

.mh-generator-category-results {
  display: block;
  width: 100%;
}

.mh-generator-load-footer {
  width: 100%;
  margin-top: 2.5rem;
  padding-top: 0.25rem;
  clear: both;
}

#generatorCategoryLoadWrap:not([hidden]) {
  display: block;
}

.mh-trending-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}
.mh-trending-title {
  font-family: var(--mh-font-display);
  font-weight: 800;
  font-size: 1.5rem;
  margin: 0;
  color: var(--mh-foreground);
}
.mh-carousel-controls { display: flex; gap: 0.5rem; }
.mh-carousel-btn {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: var(--mh-radius-xl);
  border: 1px solid var(--mh-border);
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--mh-foreground);
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}
.mh-carousel-btn:hover:not(:disabled) { border-color: var(--mh-primary); color: var(--mh-primary); }
.mh-carousel-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.mh-template-card-v2 {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  background: #fff;
  border: 1px solid var(--mh-border);
  border-radius: var(--mh-radius-2xl);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}
.mh-template-card-v2:hover { transform: translateY(-2px); box-shadow: var(--mh-shadow-lg); }
.mh-template-card-v2-img {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  flex-shrink: 0;
  background: var(--mh-muted);
  overflow: hidden;
}
.mh-template-card-v2-img img,
.mh-template-card-v2-img .mh-card-img-placeholder {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.3s;
}
.mh-template-card-v2:hover img { transform: scale(1.05); }
.mh-template-card-v2-cat { position: absolute; top: 0.625rem; left: 0.625rem; z-index: 2; background: rgba(255,255,255,0.9); font-size: 0.75rem; padding: 0.125rem 0.5rem; border-radius: 9999px; color: var(--mh-muted-foreground); font-weight: 500; }
.mh-template-card-v2-body-link { display: flex; flex-direction: column; color: inherit; text-decoration: none; transition: background 0.2s; }
.mh-template-card-v2-body-link:hover { background: var(--mh-muted, #f4f4f5); }
.mh-template-card-v2-body-link h3,
.mh-template-card-v2-body-link p,
.mh-template-card-v2-body-link .mh-template-uses { color: inherit; }
.mh-template-card-v2-hover { position: absolute; inset: 0; z-index: 2; background: linear-gradient(to top, rgba(0,0,0,0.5), transparent); opacity: 0; display: flex; align-items: flex-end; justify-content: center; padding-bottom: 1rem; transition: opacity 0.2s; }
.mh-template-card-v2:hover .mh-template-card-v2-hover { opacity: 1; }
.mh-btn-use-template { display: inline-flex; align-items: center; gap: 0.375rem; background: var(--mh-primary); color: #fff; border: none; padding: 0.5rem 1rem; border-radius: var(--mh-radius-xl); font-size: 0.875rem; font-weight: 600; text-decoration: none; cursor: pointer; }
.mh-template-card-v2-body { padding: 0.75rem; flex: 1; display: flex; flex-direction: column; min-height: 5.5rem; }
.mh-template-card-v2-body h3,
.mh-template-card-v2-body .mh-template-card-title { font-size: 0.875rem; font-weight: 700; margin: 0 0 0.125rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mh-template-card-v2-body p { font-size: 0.75rem; color: var(--mh-muted-foreground); margin: 0 0 0.5rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mh-template-uses { display: inline-flex; align-items: center; gap: 0.25rem; font-size: 0.75rem; color: var(--mh-muted-foreground); margin-top: auto; }

/* Generator template browse — centered heading + search */
.mh-generator-templates-section .mh-section-header,
.mh-generator-templates-section .mh-gen-category-column-head {
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 1rem;
}

.mh-generator-templates-section .mh-gen-category-column-head {
  border-bottom: none;
  padding-bottom: 0;
  gap: 0.25rem;
}

.mh-generator-templates-section .mh-section-header h2,
.mh-generator-templates-section .mh-gen-category-column-head h3 {
  font-size: clamp(1.125rem, 4vw, 1.5rem);
}

.mh-generator-templates-section .mh-gen-category-column-head span {
  font-size: 0.875rem;
  color: var(--mh-muted-foreground);
}

.mh-generator-templates-section .mh-generator-template-search {
  max-width: 28rem;
}

/* Desktop: always show Use Template on generator browse grids */
@media (min-width: 577px) {
  .mh-generator-templates-section .mh-template-card-v2-hover,
  #generatorCategoryGrid .mh-template-card-v2-hover {
    opacity: 1;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.05) 55%, transparent);
  }

  .mh-generator-templates-section .mh-template-card-v2-body h3,
  .mh-generator-templates-section .mh-template-card-v2-body .mh-template-card-title,
  #generatorCategoryGrid .mh-template-card-v2-body h3,
  #generatorCategoryGrid .mh-template-card-v2-body .mh-template-card-title {
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
}

@media (max-width: 576px) {
  .mh-template-grid-v2,
  .mh-template-grid-v2.mh-template-grid-v2-lg5 {
    grid-template-columns: 1fr;
    gap: 0.875rem;
  }

  .mh-template-card-v2-img {
    aspect-ratio: 16 / 10;
  }

  .mh-template-card-v2-hover {
    display: none;
  }

  .mh-template-card-v2-mobile-action {
    display: block;
    padding: 0 0.75rem 0.75rem;
  }

  .mh-btn-use-template-block {
    width: 100%;
    justify-content: center;
    padding: 0.625rem 1rem;
  }

  .mh-template-card-v2-body {
    min-height: auto;
    padding-bottom: 0.5rem;
  }

  .mh-template-card-v2-body p {
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
}

/* Trending section */
.mh-section-muted {
  background: var(--mh-muted);
  margin-left: calc(-1 * var(--mh-page-gutter));
  margin-right: calc(-1 * var(--mh-page-gutter));
  padding: 3.5rem var(--mh-page-gutter);
  border-radius: 1.5rem;
}
.mh-trending-label { display: flex; align-items: center; gap: 0.5rem; color: var(--mh-accent); font-size: 0.875rem; font-weight: 700; margin-bottom: 0.25rem; }

/* Generator row */
.mh-generator-row { display: grid; grid-template-columns: 1fr; gap: 1.25rem; }
@media (min-width: 576px) { .mh-generator-row { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 768px) { .mh-generator-row { grid-template-columns: repeat(3, 1fr); } }
.mh-generator-item-form { display: block; margin: 0; }
.mh-generator-item { display: flex; align-items: center; gap: 1rem; width: 100%; background: #fff; border: 1px solid var(--mh-border); border-radius: var(--mh-radius-2xl); padding: 1rem; text-decoration: none; color: inherit; transition: box-shadow 0.2s, border-color 0.2s; font: inherit; text-align: left; cursor: pointer; }
.mh-generator-item:hover { box-shadow: var(--mh-shadow); border-color: rgba(109,40,217,0.3); }
.mh-generator-item img { width: 4rem; height: 4rem; border-radius: var(--mh-radius-xl); object-fit: cover; flex-shrink: 0; }
.mh-generator-item h3,
.mh-generator-item .mh-generator-item-title { font-size: 0.875rem; font-weight: 700; margin: 0 0 0.125rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mh-generator-item p { font-size: 0.75rem; color: var(--mh-muted-foreground); margin: 0; }
.mh-generator-item .uses { font-size: 0.75rem; color: var(--mh-accent); font-weight: 600; }

/* Blog */
.mh-blog-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; align-items: stretch; }
@media (min-width: 576px) { .mh-blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 768px) { .mh-blog-grid { grid-template-columns: repeat(3, 1fr); } }
.mh-blog-card { display: flex; flex-direction: column; height: 100%; background: #fff; border: 1px solid var(--mh-border); border-radius: var(--mh-radius-2xl); overflow: hidden; text-decoration: none; color: inherit; transition: transform 0.2s, box-shadow 0.2s; }
.mh-blog-card:hover { transform: translateY(-2px); box-shadow: var(--mh-shadow-lg); }
.mh-blog-card-featured { display: grid; grid-template-columns: 1fr; height: auto; }
@media (min-width: 768px) { .mh-blog-card-featured { grid-template-columns: 1fr 1fr; } }
.mh-blog-card-img { position: relative; width: 100%; aspect-ratio: 16 / 10; flex-shrink: 0; background: var(--mh-muted); overflow: hidden; }
.mh-blog-card-img-sm { aspect-ratio: 16 / 10; }
.mh-blog-card-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; transition: transform 0.3s; }
.mh-blog-card:hover img { transform: scale(1.05); }
.mh-blog-card-body { padding: 1rem 1.25rem; display: flex; flex-direction: column; flex: 1; }
.mh-blog-card-body h3 { font-size: 1rem; font-weight: 700; margin: 0 0 0.5rem; line-height: 1.35; }
.mh-blog-card-featured .mh-blog-card-body h3 { font-size: 1.25rem; }
.mh-blog-card-body > p { font-size: 0.875rem; color: var(--mh-muted-foreground); line-height: 1.6; margin: 0 0 1rem; flex: 1; }
.mh-blog-cat { background: var(--mh-secondary); color: var(--mh-primary); font-size: 0.75rem; font-weight: 600; padding: 0.25rem 0.625rem; border-radius: 9999px; }
.mh-blog-card-meta { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.75rem; flex-wrap: wrap; }
.mh-blog-time { display: inline-flex; align-items: center; gap: 0.25rem; font-size: 0.75rem; color: var(--mh-muted-foreground); }
.mh-blog-card-footer { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.mh-blog-card-footer strong { display: block; font-size: 0.875rem; }
.mh-blog-card-footer span { font-size: 0.75rem; color: var(--mh-muted-foreground); }
.mh-blog-read { display: inline-flex; align-items: center; gap: 0.25rem; color: var(--mh-primary); font-size: 0.875rem; font-weight: 600; }
.mh-blog-card-footer-sm { display: flex; align-items: center; justify-content: space-between; font-size: 0.75rem; color: var(--mh-muted-foreground); }
.mh-blog-card-img .mh-blog-cat { position: absolute; top: 0.75rem; left: 0.75rem; background: rgba(255,255,255,0.9); color: var(--mh-foreground); }

/* Newsletter */
.mh-newsletter { padding: 4rem var(--mh-page-gutter); }
.mh-newsletter-box { background: linear-gradient(135deg, rgba(109,40,217,0.05), rgba(249,115,22,0.05)); border: 1px solid var(--mh-border); border-radius: 1.5rem; padding: 2.5rem; text-align: center; }
.mh-newsletter-icon { width: 3rem; height: 3rem; background: rgba(109,40,217,0.1); border-radius: var(--mh-radius-2xl); display: flex; align-items: center; justify-content: center; margin: 0 auto 1rem; color: var(--mh-primary); }
.mh-newsletter-box h2 { font-size: 1.5rem; margin-bottom: 0.5rem; }
.mh-newsletter-box > p { color: var(--mh-muted-foreground); margin-bottom: 2rem; }
.mh-newsletter-form { max-width: 28rem; margin: 0 auto; }
.mh-newsletter-fields { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.mh-newsletter-fields input { flex: 1; min-width: 12rem; background: #fff; border: 1px solid var(--mh-border); border-radius: var(--mh-radius-xl); padding: 0.625rem 1rem; font-size: 0.875rem; outline: none; }
.mh-newsletter-fields input:focus { border-color: var(--mh-primary); box-shadow: 0 0 0 3px rgba(109,40,217,0.15); }
.mh-newsletter-fields button { background: var(--mh-primary); color: #fff; border: none; padding: 0.625rem 1.25rem; border-radius: var(--mh-radius-xl); font-size: 0.875rem; font-weight: 600; cursor: pointer; }
.mh-newsletter-success { display: flex; align-items: center; justify-content: center; gap: 0.5rem; color: #16a34a; font-weight: 600; }
.mh-newsletter-error { display: none; margin-top: 0.75rem; color: #dc2626; font-size: 0.875rem; font-weight: 500; }
.mh-newsletter-note { font-size: 0.75rem; color: var(--mh-muted-foreground); margin-top: 0.75rem; margin-bottom: 0; }

/* Page headers */
.mh-page-header { margin-bottom: 2rem; text-align: left; }
.mh-page-header h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); margin-bottom: 0.25rem; text-align: left; }
.mh-page-header p { color: var(--mh-muted-foreground); margin: 0; text-align: left; }
.mh-page-header-hero {
  background: linear-gradient(135deg, var(--mh-muted) 0%, #fff 100%);
  padding: 4rem var(--mh-page-gutter);
  text-align: center;
  border-bottom: 1px solid var(--mh-border);
}
.mh-page-header-hero .mh-container { max-width: 48rem; }
.mh-page-header-hero h1 { font-size: clamp(1.75rem, 5vw, 3rem); margin-bottom: 0.75rem; }

/* Filters */
.mh-filter-bar { display: flex; flex-direction: column; gap: 0.75rem; margin-bottom: 1.5rem; }
@media (min-width: 576px) { .mh-filter-bar { flex-direction: row; } }
.mh-filter-search { display: flex; align-items: center; gap: 0.5rem; background: var(--mh-muted); border-radius: var(--mh-radius-xl); padding: 0.625rem 1rem; flex: 1; }
.mh-filter-search input { flex: 1; border: none; background: transparent; outline: none; font-size: 0.875rem; }
.mh-filter-tabs { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 2rem; }
.mh-filter-tab { display: inline-flex; align-items: center; gap: 0.375rem; padding: 0.5rem 1rem; border-radius: var(--mh-radius-xl); font-size: 0.875rem; font-weight: 500; border: 1px solid var(--mh-border); background: #fff; color: var(--mh-muted-foreground); cursor: pointer; text-decoration: none; transition: all 0.15s; }
.mh-filter-tab:hover, .mh-filter-tab.active { background: var(--mh-primary); border-color: var(--mh-primary); color: #fff; }
.mh-filter-tab.mh-sort.active { background: rgba(109,40,217,0.1); border-color: transparent; color: var(--mh-primary); }
.mh-btn-filter { display: inline-flex; align-items: center; gap: 0.5rem; background: #fff; border: 1px solid var(--mh-border); border-radius: var(--mh-radius-xl); padding: 0.625rem 1rem; font-size: 0.875rem; font-weight: 500; cursor: pointer; color: var(--mh-foreground); white-space: nowrap; flex-shrink: 0; }
.mh-btn-filter:hover { border-color: var(--mh-primary); color: var(--mh-primary); }
.mh-memes-search-row { display: flex; align-items: stretch; gap: 0.75rem; margin-bottom: 1rem; }
.mh-memes-search-row .mh-filter-search { flex: 1; margin-bottom: 0; }
.mh-sort-tabs { display: flex; flex-wrap: nowrap; gap: 0.5rem; margin-bottom: 1.5rem; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; padding-bottom: 0.125rem; }
.mh-sort-tabs::-webkit-scrollbar { display: none; }
.mh-filter-tab.mh-sort:hover { background: rgba(109,40,217,0.06); border-color: var(--mh-border); color: var(--mh-primary); }
.mh-btn-filter.is-active { border-color: var(--mh-primary); color: var(--mh-primary); background: rgba(109,40,217,0.06); }
.mh-memes-layout { display: grid; grid-template-columns: 1fr; gap: 1.5rem; align-items: start; }
.mh-memes-layout.filters-open { grid-template-columns: 1fr; }
@media (min-width: 992px) {
  .mh-memes-layout.filters-open { grid-template-columns: 14rem 1fr; gap: 2rem; }
}
.mh-memes-sidebar {
  display: none;
  background: #fff;
  border: 1px solid var(--mh-border);
  border-radius: var(--mh-radius-2xl);
  padding: 1.25rem;
}
.mh-memes-layout.filters-open .mh-memes-sidebar { display: block; }
.mh-memes-sidebar-title { font-size: 0.9375rem; font-weight: 700; margin: 0 0 1rem; }
.mh-memes-category-list { list-style: none; margin: 0 0 1rem; padding: 0; display: flex; flex-direction: column; gap: 0.625rem; }
.mh-memes-category-check { display: flex; align-items: center; gap: 0.625rem; font-size: 0.875rem; cursor: pointer; color: var(--mh-foreground); }
.mh-memes-category-check input { width: 1rem; height: 1rem; accent-color: var(--mh-primary); flex-shrink: 0; }
.mh-memes-apply-btn { width: 100%; justify-content: center; }
.mh-memes-clear-filters { display: block; margin-top: 0.75rem; font-size: 0.8125rem; text-align: center; color: var(--mh-muted-foreground); }
.mh-memes-clear-filters:hover { color: var(--mh-primary); }
.mh-memes-main { min-width: 0; }
.mh-result-count { font-size: 0.875rem; color: var(--mh-muted-foreground); margin-bottom: 1rem; }
.mh-load-more { display: inline-flex; align-items: center; gap: 0.5rem; background: #fff; border: 2px solid var(--mh-border); color: var(--mh-foreground); padding: 0.75rem 2rem; border-radius: var(--mh-radius-2xl); font-weight: 600; text-decoration: none; cursor: pointer; transition: border-color 0.15s, color 0.15s; }
.mh-load-more:hover { border-color: var(--mh-primary); color: var(--mh-primary); }
.mh-pagination { display: flex; justify-content: center; gap: 0.5rem; margin-top: 2rem; flex-wrap: wrap; }
.mh-pagination a, .mh-pagination span { width: 2.25rem; height: 2.25rem; display: inline-flex; align-items: center; justify-content: center; border-radius: var(--mh-radius-xl); font-size: 0.875rem; font-weight: 500; text-decoration: none; border: 1px solid var(--mh-border); color: var(--mh-muted-foreground); }
.mh-pagination .active { background: var(--mh-primary); border-color: var(--mh-primary); color: #fff; }

/* Recently used chips */
.mh-recent-chips { display: flex; flex-wrap: nowrap; gap: 0.75rem; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; padding-bottom: 0.125rem; }
.mh-recent-chips::-webkit-scrollbar { display: none; }
.mh-recent-chip-form { display: contents; }
.mh-recent-chip { display: flex; align-items: center; gap: 0.75rem; background: #fff; border: 1px solid var(--mh-border); border-radius: var(--mh-radius-xl); padding: 0.625rem 1rem; text-decoration: none; color: inherit; transition: border-color 0.15s, box-shadow 0.15s; flex: 0 0 auto; max-width: min(100%, 14rem); font: inherit; text-align: left; cursor: pointer; }
.mh-recent-chip:hover { border-color: var(--mh-primary); box-shadow: var(--mh-shadow-sm); }
.mh-recent-chip img { width: 2rem; height: 2rem; border-radius: var(--mh-radius); object-fit: cover; }
.mh-recent-chip strong { display: block; font-size: 0.875rem; }
.mh-recent-chip span { font-size: 0.75rem; color: var(--mh-muted-foreground); }

/* Popular generator cards */
.mh-pop-gen-grid { display: grid; grid-template-columns: 1fr; gap: 1.25rem; }
@media (min-width: 576px) { .mh-pop-gen-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 768px) { .mh-pop-gen-grid { grid-template-columns: repeat(3, 1fr); } }
.mh-pop-gen-form { display: block; margin: 0; }
.mh-pop-gen-card { display: block; width: 100%; background: #fff; border: 1px solid var(--mh-border); border-radius: var(--mh-radius-2xl); overflow: hidden; text-decoration: none; color: inherit; transition: transform 0.2s, box-shadow 0.2s; font: inherit; text-align: left; cursor: pointer; padding: 0; }
.mh-pop-gen-card:hover { transform: translateY(-2px); box-shadow: var(--mh-shadow-lg); }
.mh-pop-gen-card-img { position: relative; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; background: var(--mh-muted); }
.mh-pop-gen-card-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; transition: transform 0.3s; }
.mh-pop-gen-card:hover img { transform: scale(1.05); }
.mh-pop-gen-card-img::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.4), transparent); }
.mh-pop-gen-card-img span { position: absolute; bottom: 0.75rem; left: 0.75rem; z-index: 1; background: rgba(255,255,255,0.9); font-size: 0.75rem; font-weight: 600; padding: 0.125rem 0.5rem; border-radius: 9999px; }
.mh-pop-gen-card-body { padding: 1rem; }
.mh-pop-gen-card-body h3 { font-size: 0.875rem; font-weight: 700; margin: 0 0 0.25rem; }
.mh-pop-gen-card-meta { display: flex; align-items: center; justify-content: space-between; font-size: 0.75rem; }
.mh-pop-gen-card-meta .trend { color: var(--mh-accent); font-weight: 600; display: inline-flex; align-items: center; gap: 0.25rem; }

.mh-gen-category-columns {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  align-items: start;
}
@media (min-width: 576px) {
  .mh-gen-category-columns { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 992px) {
  .mh-gen-category-columns { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1200px) {
  .mh-gen-category-columns { grid-template-columns: repeat(4, 1fr); }
}
.mh-gen-category-column {
  background: #fff;
  border: 1px solid var(--mh-border);
  border-radius: var(--mh-radius-2xl);
  padding: 1rem;
  scroll-margin-top: 6rem;
}
.mh-gen-category-column-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--mh-border);
}
.mh-gen-category-column-head h3 {
  font-size: 1rem;
  font-weight: 700;
  margin: 0;
}
.mh-gen-category-column-head span {
  font-size: 0.75rem;
  color: var(--mh-text-muted);
  white-space: nowrap;
}
.mh-gen-category-templates {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.mh-gen-category-templates .mh-template-card-v2 {
  width: 100%;
}

/* 404 error page */
.mh-error-page {
  min-height: calc(100vh - var(--mh-header-height, 4rem));
  display: flex;
  flex-direction: column;
}

.mh-error-hero {
  position: relative;
  overflow: hidden;
  flex: 1 1 auto;
  background: linear-gradient(135deg, rgba(109,40,217,0.06) 0%, #fff 45%, rgba(249,115,22,0.06) 100%);
  padding: clamp(3rem, 8vw, 5rem) var(--mh-page-gutter);
  text-align: center;
  border-bottom: 1px solid var(--mh-border);
}

.mh-error-hero::before,
.mh-error-hero::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
}

.mh-error-hero::before {
  top: 1rem;
  left: 10%;
  width: 14rem;
  height: 14rem;
  background: rgba(109,40,217,0.08);
}

.mh-error-hero::after {
  bottom: 0;
  right: 8%;
  width: 18rem;
  height: 18rem;
  background: rgba(249,115,22,0.08);
}

.mh-error-hero-inner {
  position: relative;
  max-width: 42rem;
  margin: 0 auto;
}

.mh-error-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--mh-secondary);
  color: var(--mh-primary);
  padding: 0.375rem 1rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
}

.mh-error-code {
  font-family: var(--mh-font-display);
  font-size: clamp(5rem, 18vw, 9rem);
  font-weight: 800;
  line-height: 1;
  margin: 0 0 0.5rem;
  background: linear-gradient(135deg, var(--mh-primary), #f97316);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: -0.04em;
}

.mh-error-hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin-bottom: 0.75rem;
}

.mh-error-lead {
  color: var(--mh-muted-foreground);
  font-size: clamp(1rem, 2vw, 1.125rem);
  line-height: 1.7;
  max-width: 34rem;
  margin: 0 auto 2rem;
}

.mh-error-search {
  margin-bottom: 1.75rem;
}

.mh-error-links {
  padding-top: 2.5rem;
  padding-bottom: 3rem;
}

.mh-error-links-title {
  text-align: center;
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
}

.mh-error-link-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 576px) {
  .mh-error-link-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  .mh-error-link-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.mh-error-link-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.375rem;
  background: #fff;
  border: 1px solid var(--mh-border);
  border-radius: var(--mh-radius-2xl);
  padding: 1.25rem;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}

.mh-error-link-card:hover {
  border-color: rgba(109,40,217,0.35);
  box-shadow: var(--mh-shadow-md);
  transform: translateY(-2px);
  color: inherit;
}

.mh-error-link-icon {
  width: 2.75rem;
  height: 2.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(109,40,217,0.1);
  color: var(--mh-primary);
  border-radius: var(--mh-radius-xl);
  margin-bottom: 0.25rem;
}

.mh-error-link-card strong {
  font-size: 0.9375rem;
}

.mh-error-link-card span:last-child {
  font-size: 0.8125rem;
  color: var(--mh-muted-foreground);
  line-height: 1.5;
}

/* About */
.mh-about-hero {
  background: linear-gradient(135deg, rgba(109,40,217,0.05), rgba(249,115,22,0.05));
  padding: 5rem var(--mh-page-gutter);
  text-align: center;
  border-bottom: 1px solid var(--mh-border);
}
.mh-about-icon { width: 7rem; height: 7rem; background: transparent; border-radius: var(--mh-radius-2xl); display: flex; align-items: center; justify-content: center; margin: 0 auto 1.5rem; overflow: hidden; }
.mh-about-icon img { width: 100%; height: 100%; object-fit: contain; display: block; }
.mh-about-hero h1 { font-size: clamp(2rem, 5vw, 3.5rem); margin-bottom: 1rem; }
.mh-about-hero h1 span { color: var(--mh-primary); }
.mh-feature-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 576px) { .mh-feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 768px) { .mh-feature-grid { grid-template-columns: repeat(3, 1fr); } }
.mh-feature-card { background: #fff; border: 1px solid var(--mh-border); border-radius: var(--mh-radius-2xl); padding: 1.5rem; }
.mh-feature-icon { width: 2.5rem; height: 2.5rem; background: rgba(109,40,217,0.1); border-radius: var(--mh-radius-xl); display: flex; align-items: center; justify-content: center; margin-bottom: 1rem; color: var(--mh-primary); }
.mh-feature-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 0.5rem; }
.mh-feature-card p { font-size: 0.875rem; color: var(--mh-muted-foreground); line-height: 1.6; margin: 0; }
.mh-team-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
@media (min-width: 768px) { .mh-team-grid { grid-template-columns: repeat(4, 1fr); } }
.mh-team-member { text-align: center; }
.mh-team-member img { width: 5rem; height: 5rem; border-radius: 50%; object-fit: cover; border: 2px solid var(--mh-border); margin-bottom: 0.75rem; }
.mh-team-member h3 { font-size: 0.875rem; font-weight: 700; margin: 0 0 0.125rem; }
.mh-team-member p { font-size: 0.75rem; color: var(--mh-muted-foreground); margin: 0; }
.mh-cta-banner {
  background: var(--mh-primary);
  padding: 4rem var(--mh-page-gutter);
  text-align: center;
  color: #fff;
}
.mh-cta-banner h2 { color: #fff; font-size: 2rem; margin-bottom: 0.75rem; }
.mh-cta-banner p { color: rgba(255,255,255,0.7); max-width: 28rem; margin: 0 auto 2rem; }
.mh-btn-white { background: #fff; color: var(--mh-primary); padding: 0.75rem 1.75rem; border-radius: var(--mh-radius-2xl); font-weight: 700; text-decoration: none; display: inline-flex; }
.mh-btn-white-outline { border: 2px solid rgba(255,255,255,0.4); color: #fff; padding: 0.75rem 1.75rem; border-radius: var(--mh-radius-2xl); font-weight: 600; text-decoration: none; display: inline-flex; }
.mh-story-grid { display: grid; grid-template-columns: 1fr; gap: 3rem; align-items: center; }
@media (min-width: 768px) { .mh-story-grid { grid-template-columns: 1fr 1fr; } }
.mh-story-grid img { width: 100%; height: 320px; object-fit: cover; border-radius: var(--mh-radius-2xl); }
.mh-story-grid p { color: var(--mh-muted-foreground); line-height: 1.7; margin-bottom: 1rem; }

/* Contact & forms */
.mh-form-card { background: var(--mh-muted); border-radius: var(--mh-radius-xl); padding: 0.625rem 1rem; }
.mh-form-group { margin-bottom: 1rem; }
.mh-form-group label { display: block; font-size: 0.875rem; font-weight: 600; margin-bottom: 0.375rem; }
.mh-form-input { width: 100%; background: var(--mh-muted); border: 1px solid transparent; border-radius: var(--mh-radius-xl); padding: 0.625rem 1rem; font-size: 0.875rem; outline: none; transition: border-color 0.15s, background 0.15s; }
.mh-form-input:focus { background: #fff; border-color: rgba(109,40,217,0.3); box-shadow: 0 0 0 3px rgba(109,40,217,0.1); }
.mh-form-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 576px) { .mh-form-grid { grid-template-columns: 1fr 1fr; } }
.mh-sidebar-card { background: var(--mh-muted); border-radius: var(--mh-radius-2xl); padding: 1.5rem; margin-bottom: 1.5rem; }
.mh-sidebar-card-title { font-size: 0.875rem; font-weight: 700; margin-bottom: 1rem; }
.mh-contact-form-wrap {
  max-width: 40rem;
  margin: 0 auto 2.5rem;
  text-align: left;
}
.mh-contact-info-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin: 0 auto 2.5rem;
  max-width: 48rem;
}
@media (min-width: 640px) {
  .mh-contact-info-row { grid-template-columns: 1fr 1fr; }
}
.mh-contact-info-row .mh-sidebar-card { margin-bottom: 0; }
.mh-contact-form-title {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  text-align: center;
}
.mh-contact-form-wrap .mh-btn-primary-lg {
  display: inline-flex;
}
.mh-social-list {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}
.mh-social-list a {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 0.875rem;
  color: var(--mh-foreground);
  text-decoration: none;
}
.mh-social-list a:hover { color: var(--mh-primary); }
.mh-social-list i { width: 1rem; text-align: center; color: var(--mh-primary); }
.mh-section-title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.35;
  font-family: var(--mh-font-display);
  color: var(--mh-foreground);
  text-align: left;
}
.mh-faq-section .mh-section-title {
  text-align: left;
}
.mh-faq-item { background: #fff; border: 1px solid var(--mh-border); border-radius: var(--mh-radius-2xl); overflow: hidden; margin-bottom: 0.75rem; }
.mh-faq-q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.25rem; border: none; background: transparent; text-align: left; font-size: 0.875rem; font-weight: 600; cursor: pointer; }
.mh-faq-a { padding: 0 1.25rem 1.25rem; font-size: 0.875rem; color: var(--mh-muted-foreground); line-height: 1.6; display: none; }
.mh-faq-item.open .mh-faq-a { display: block; }
.mh-alert-success { background: #f0fdf4; border: 1px solid #bbf7d0; border-radius: var(--mh-radius-2xl); padding: 2rem; text-align: center; color: #16a34a; }
.mh-alert-danger { background: #fef2f2; border: 1px solid #fecaca; border-radius: var(--mh-radius-xl); padding: 1rem; color: #dc2626; margin-bottom: 1rem; font-size: 0.875rem; }
.mh-content-prose {
  color: var(--mh-muted-foreground);
  font-size: 0.9375rem;
  line-height: 1.7;
}
.mh-content-prose p,
.mh-content-prose li,
.mh-content-prose td,
.mh-content-prose th {
  font-size: inherit;
  line-height: inherit;
}
.mh-content-prose [style*="font-size"] {
  font-size: inherit !important;
}
.mh-content-prose h2,
.mh-content-prose h3 {
  color: var(--mh-foreground);
  font-family: var(--mh-font-display);
  margin-top: 1.5rem;
  font-size: 1.125rem;
  line-height: 1.35;
  font-weight: 700;
}
.mh-content-prose h2 { font-size: 1.25rem; }
.mh-content-prose h3 { font-size: 1.0625rem; }
.mh-page-info-title {
  margin: 0 0 1rem;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.35;
  font-family: var(--mh-font-display);
  color: var(--mh-foreground);
}

/* Editor wrapper */
.mh-editor-wrap {
  background: var(--mh-muted);
  padding: 2rem var(--mh-page-gutter);
}

.mh-editor-wrap .container-xl,
.mh-editor-wrap .container-fluid.container-xl {
  max-width: var(--mh-container);
  margin: 0 auto;
  padding-left: 0;
  padding-right: 0;
  padding-bottom: 2rem;
}

.mh-editor-wrap > .container {
  max-width: var(--mh-container);
  margin: 0 auto;
  padding-left: 0;
  padding-right: 0;
}

/* Tag chips row */
.mh-chip-row { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.mh-chip { background: #fff; border: 1px solid var(--mh-border); color: var(--mh-foreground); padding: 0.5rem 1rem; border-radius: var(--mh-radius-xl); font-size: 0.875rem; font-weight: 500; text-decoration: none; transition: border-color 0.15s, color 0.15s; }
.mh-chip:hover { border-color: var(--mh-primary); color: var(--mh-primary); }

/* Center utilities */
.mh-text-center { text-align: center; }
.mh-py-section { padding: 3.5rem 0; }
.mh-mb-section { margin-bottom: 3.5rem; }

@media (min-width: 992px) {
  .mh-footer-grid { grid-template-columns: 2fr repeat(4, 1fr); }
}

.mh-header-icon-btn {
  display: none;
  padding: 0.5rem;
  border: none;
  background: transparent;
  border-radius: var(--mh-radius-xl);
  color: var(--mh-muted-foreground);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

@media (min-width: 768px) {
  .mh-header-icon-btn { display: inline-flex; }
}

.mh-header-icon-btn:hover {
  background: var(--mh-muted);
  color: var(--mh-foreground);
}

.mh-header-search-wrap { position: relative; }

.mh-header-search-expand {
  display: none;
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  align-items: center;
  gap: 0.5rem;
  background: var(--mh-muted);
  border-radius: var(--mh-radius-xl);
  padding: 0.375rem 0.75rem;
  width: 14rem;
  z-index: 10;
}

.mh-header-search-expand.open { display: flex; }

.mh-header-search-expand input {
  flex: 1;
  border: none;
  background: transparent;
  outline: none;
  font-size: 0.875rem;
  min-width: 0;
}

.mh-btn-sign-in {
  display: none;
  align-items: center;
  gap: 0.375rem;
  border: 1px solid var(--mh-border);
  color: var(--mh-foreground);
  padding: 0.5rem 0.75rem;
  border-radius: var(--mh-radius-xl);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  background: #fff;
  transition: background 0.15s;
}

.mh-btn-sign-in:hover {
  background: var(--mh-muted);
  color: var(--mh-foreground);
}

@media (min-width: 576px) {
  .mh-btn-sign-in { display: inline-flex; }
}

.mh-btn-sign-in-block {
  display: flex !important;
  flex: 1;
  justify-content: center;
  padding: 0.625rem 1rem;
}

.mh-stat-icon {
  display: flex;
  justify-content: center;
  margin-bottom: 0.5rem;
  color: rgba(255, 255, 255, 0.4);
}

/* Laravel pagination */
.mh-body .pagination {
  justify-content: center;
  gap: 0.5rem;
  margin: 0;
}

.mh-body .pagination .page-link {
  border-radius: var(--mh-radius-xl);
  border: 1px solid var(--mh-border);
  color: var(--mh-muted-foreground);
  font-size: 0.875rem;
  padding: 0.375rem 0.75rem;
}

.mh-body .pagination .page-item.active .page-link {
  background: var(--mh-primary);
  border-color: var(--mh-primary);
  color: #fff;
}

.mh-body .pagination .page-link:hover {
  border-color: var(--mh-primary);
  color: var(--mh-primary);
}

/* Editor page: keep meme tools readable inside new chrome */
.mh-editor-wrap .main-head h1,
.mh-editor-wrap .heading {
  font-family: var(--mh-font-display);
  font-weight: 800;
}

button.mh-btn-primary-lg,
.mh-btn-primary-lg[type="submit"] {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--mh-primary);
  color: #fff;
  padding: 0.75rem 1.75rem;
  border-radius: var(--mh-radius-2xl);
  font-weight: 700;
  text-decoration: none;
  border: none;
  cursor: pointer;
}
button.mh-btn-primary-lg:hover { opacity: 0.9; color: #fff; }

/* Legal pages (Privacy, Terms, Disclaimer) */
.mh-legal-page .mh-legal-hero {
  background: linear-gradient(180deg, rgba(109,40,217,0.06) 0%, #fff 100%);
  padding: 4.5rem var(--mh-page-gutter) 3rem;
  text-align: center;
  border-bottom: 1px solid var(--mh-border);
}
.mh-legal-hero .mh-container { max-width: 42rem; }
.mh-legal-hero-icon {
  width: 4rem;
  height: 4rem;
  margin: 0 auto 1.25rem;
  border-radius: 1.25rem;
  background: linear-gradient(135deg, var(--mh-primary), #8b5cf6);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 28px rgba(109,40,217,0.22);
}
.mh-legal-hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 0.75rem;
  line-height: 1.15;
}
.mh-legal-hero-lead {
  color: var(--mh-muted-foreground);
  font-size: 1.0625rem;
  line-height: 1.7;
  margin: 0 auto;
  max-width: 36rem;
}
.mh-legal-body {
  max-width: 52rem;
  padding-top: 2.5rem;
  padding-bottom: 4rem;
}
.mh-legal-date {
  display: inline-block;
  font-size: 0.875rem;
  color: var(--mh-muted-foreground);
  background: var(--mh-muted);
  border: 1px solid var(--mh-border);
  border-radius: 9999px;
  padding: 0.375rem 0.875rem;
  margin: 0 0 1.5rem;
}
.mh-legal-intro,
.mh-legal-notice {
  background: linear-gradient(135deg, rgba(109,40,217,0.04), rgba(249,115,22,0.04));
  border: 1px solid var(--mh-border);
  border-radius: var(--mh-radius-2xl);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.5rem;
}
.mh-legal-notice {
  background: linear-gradient(135deg, rgba(249,115,22,0.08), rgba(249,115,22,0.03));
  border-color: rgba(249,115,22,0.25);
}
.mh-legal-intro p,
.mh-legal-notice p {
  margin: 0;
  color: var(--mh-muted-foreground);
  line-height: 1.75;
}
.mh-legal-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem 1.25rem;
  align-items: start;
  background: #fff;
  border: 1px solid var(--mh-border);
  border-radius: var(--mh-radius-2xl);
  padding: 1.5rem;
  margin-bottom: 1.25rem;
  box-shadow: var(--mh-shadow-sm);
  transition: box-shadow 0.2s, border-color 0.2s;
}
.mh-legal-card:hover {
  border-color: rgba(109,40,217,0.25);
  box-shadow: var(--mh-shadow-md);
}
.mh-legal-card-icon {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.875rem;
  background: rgba(109,40,217,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  line-height: 1;
  flex-shrink: 0;
}
.mh-legal-card-body h2 {
  font-size: 1.25rem;
  margin: 0 0 0.75rem;
  color: var(--mh-foreground);
  font-family: var(--mh-font-display);
}
.mh-legal-card-body h3 {
  font-size: 0.9375rem;
  margin: 1rem 0 0.375rem;
  color: var(--mh-foreground);
}
.mh-legal-card-body p,
.mh-legal-card-body li {
  font-size: 0.9375rem;
  color: var(--mh-muted-foreground);
  line-height: 1.75;
  margin: 0 0 0.75rem;
}
.mh-legal-card-body ul {
  margin: 0 0 0.75rem;
  padding-left: 1.25rem;
}
.mh-legal-card-body li { margin-bottom: 0.375rem; }
.mh-legal-contact-card {
  margin-top: 2.5rem;
  text-align: center;
  background: linear-gradient(135deg, rgba(109,40,217,0.06), rgba(249,115,22,0.05));
  border: 1px solid var(--mh-border);
  border-radius: 1.5rem;
  padding: 2rem 1.5rem;
}
.mh-legal-contact-card h2 {
  font-size: 1.375rem;
  margin: 0 0 0.5rem;
}
.mh-legal-contact-card > p {
  color: var(--mh-muted-foreground);
  margin: 0 0 1rem;
  line-height: 1.7;
}
.mh-legal-contact-email {
  font-size: 0.9375rem;
  margin-bottom: 1rem !important;
}
.mh-legal-contact-email a {
  color: var(--mh-primary);
  font-weight: 600;
  text-decoration: none;
}
.mh-legal-contact-note {
  font-size: 0.8125rem;
  color: var(--mh-muted-foreground);
  margin: 0 !important;
  padding-top: 1rem;
  border-top: 1px solid var(--mh-border);
}
.mh-legal-related {
  margin-top: 2rem;
  text-align: center;
}
.mh-legal-related h3 {
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--mh-muted-foreground);
  margin-bottom: 0.75rem;
}
.mh-legal-related-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}
.mh-legal-related-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.5rem 1rem;
  border-radius: var(--mh-radius-xl);
  border: 1px solid var(--mh-border);
  background: #fff;
  color: var(--mh-foreground);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  transition: border-color 0.15s, color 0.15s;
}
.mh-legal-related-links a:hover {
  border-color: var(--mh-primary);
  color: var(--mh-primary);
}
@media (max-width: 575.98px) {
  .mh-legal-card {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  .mh-legal-card-icon { margin-bottom: 0.25rem; }
}

/* Page bottom info sections */
.mh-page-info-section {
  background: linear-gradient(135deg, rgba(109,40,217,0.04), rgba(255,255,255,1) 55%, rgba(249,115,22,0.04));
  border: 1px solid var(--mh-border);
  border-left: 4px solid var(--mh-primary);
  border-radius: 1.25rem;
  padding: 1.5rem 1.5rem 1.25rem;
  box-shadow: var(--mh-shadow-sm);
}
.mh-page-info-head {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  margin-bottom: 1rem;
  padding-bottom: 0.875rem;
  border-bottom: 1px solid var(--mh-border);
}
.mh-page-info-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.75rem;
  background: rgba(109,40,217,0.1);
  color: var(--mh-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.mh-page-info-head h2 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.35;
  font-family: var(--mh-font-display);
  color: var(--mh-foreground);
}
.mh-page-info-body {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.7;
}
.mh-page-info-body.mh-content-prose {
  font-size: 0.9375rem;
  line-height: 1.7;
}
.mh-page-info-body p:last-child { margin-bottom: 0; }
.mh-legal-body .mh-page-info-section { margin-bottom: 1.5rem; }

