.mm-home {
  --mm-yellow: #dfff00;
  --mm-blue: #55a7ff;
  --mm-bg: #070a0c;
  --mm-surface: #10171b;
  --mm-surface-2: #0b1013;
  --mm-border: #2c373e;
  --mm-muted: #929da4;
}

.mm-home .container,
.mm-home-footer .container {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

.mm-hero {
  position: relative;
  overflow: hidden;
  padding: 84px 0 72px;
  border-bottom: 1px solid var(--mm-border);
  background:
    radial-gradient(circle at 82% 38%, rgba(223,255,0,.12), transparent 24%),
    radial-gradient(circle at 70% 10%, rgba(85,167,255,.07), transparent 22%),
    var(--mm-bg);
}

.mm-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(380px, .85fr);
  gap: 62px;
  align-items: center;
}

.mm-kicker {
  color: var(--mm-yellow);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: .17em;
  text-transform: uppercase;
}

.mm-hero-copy h1 {
  max-width: 820px;
  margin: 18px 0 22px;
  color: #f6f8f9;
  font-size: clamp(48px, 6vw, 82px);
  line-height: .98;
  letter-spacing: -.045em;
}

.mm-hero-copy h1 em {
  color: var(--mm-yellow);
  font-style: normal;
}

.mm-hero-copy > p {
  max-width: 680px;
  color: #aeb8bd;
  font-size: 18px;
  line-height: 1.7;
}

.mm-home-search {
  display: grid;
  grid-template-columns: minmax(260px, 1.3fr) minmax(180px, .7fr) auto;
  gap: 10px;
  margin-top: 30px;
  padding: 10px;
  border: 1px solid #303b42;
  border-radius: 17px;
  background: #10171b;
  box-shadow: 0 24px 65px rgba(0,0,0,.28);
}

.mm-home-search label {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.mm-home-search label span {
  padding-inline: 4px;
  color: #89959c;
  font-size: 11px;
  font-weight: 800;
}

.mm-home-search input,
.mm-home-search select {
  width: 100%;
  min-height: 50px;
  padding: 0 14px;
  border: 1px solid #344047;
  border-radius: 11px;
  background: #090e11;
  color: #f0f3f4;
  font: inherit;
  font-weight: 750;
}

.mm-home-search input:focus,
.mm-home-search select:focus {
  border-color: var(--mm-yellow);
  outline: none;
  box-shadow: 0 0 0 3px rgba(223,255,0,.09);
}

.mm-home-search-button,
.mm-button-primary,
.mm-button-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 20px;
  border: 1px solid var(--mm-yellow);
  border-radius: 11px;
  background: var(--mm-yellow);
  color: #080b0d;
  text-decoration: none;
  font: inherit;
  font-weight: 950;
  cursor: pointer;
}

.mm-home-search-button {
  align-self: end;
}

.mm-home-search-button:hover,
.mm-button-primary:hover {
  background: #efff69;
}

.mm-button-secondary {
  border-color: #3b474e;
  background: #10171b;
  color: #f2f5f6;
}

.mm-button-secondary:hover {
  border-color: var(--mm-yellow);
  color: var(--mm-yellow);
}

.mm-hero-actions {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-top: 20px;
}

.mm-button-link {
  color: #c2cbd0;
  text-decoration: none;
  font-weight: 850;
}

.mm-button-link:hover {
  color: var(--mm-yellow);
}

.mm-trust-points {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 28px;
  color: #8f9aa1;
  font-size: 12px;
  font-weight: 750;
}

.mm-trust-points span::first-letter {
  color: var(--mm-yellow);
}

.mm-hero-visual {
  position: relative;
  min-height: 450px;
  overflow: hidden;
  border: 1px solid #313d44;
  border-radius: 28px;
  background:
    linear-gradient(145deg, rgba(223,255,0,.08), transparent 45%),
    #0d1316;
  box-shadow: 0 35px 90px rgba(0,0,0,.35);
}

.mm-hero-glow {
  position: absolute;
  right: -70px;
  bottom: -90px;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: rgba(223,255,0,.14);
  filter: blur(55px);
}

.mm-hero-panel {
  position: absolute;
  right: 24px;
  bottom: 24px;
  left: 24px;
  display: grid;
  gap: 6px;
  padding: 18px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 16px;
  background: rgba(7,11,13,.74);
  backdrop-filter: blur(12px);
}

.mm-hero-panel small {
  color: var(--mm-blue);
  font-weight: 900;
  letter-spacing: .14em;
}

.mm-hero-panel strong {
  color: #fff;
  font-size: 20px;
}

.mm-hero-panel span {
  color: #98a4aa;
}

.mm-hero-lines {
  position: absolute;
  inset: 0;
  opacity: .16;
  background-image: repeating-linear-gradient(115deg, transparent 0 34px, rgba(255,255,255,.12) 35px 36px);
}

.mm-home-section {
  padding: 78px 0;
  background: var(--mm-bg);
}

.mm-home-surface {
  border-block: 1px solid var(--mm-border);
  background: #0b1013;
}

.mm-section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 26px;
  margin-bottom: 28px;
}

.mm-section-heading h2,
.mm-safety-grid h2,
.mm-home-cta h2 {
  margin: 8px 0;
  color: #f5f7f8;
  font-size: clamp(32px, 4vw, 50px);
  letter-spacing: -.03em;
}

.mm-section-heading p,
.mm-safety-grid p,
.mm-home-cta p {
  margin: 0;
  color: var(--mm-muted);
  line-height: 1.65;
}

.mm-section-heading > a {
  color: #d5dde1;
  text-decoration: none;
  font-weight: 850;
}

.mm-section-heading > a:hover {
  color: var(--mm-yellow);
}

.mm-category-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.mm-category-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: center;
  min-height: 112px;
  padding: 18px;
  border: 1px solid var(--mm-border);
  border-radius: 17px;
  background: var(--mm-surface);
  color: #edf1f3;
  text-decoration: none;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.mm-category-card:hover {
  border-color: var(--mm-yellow);
  transform: translateY(-4px);
  box-shadow: 0 18px 44px rgba(0,0,0,.26);
}

.mm-category-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid #3b474e;
  border-radius: 14px;
  background: #0a0f12;
  font-size: 22px;
}

.mm-category-card div {
  display: grid;
  gap: 5px;
}

.mm-category-card strong {
  font-size: 16px;
}

.mm-category-card small {
  color: var(--mm-muted);
}

.mm-category-card > b {
  color: var(--mm-yellow);
  font-size: 20px;
}

.mm-home-listing-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.mm-home-listing-card {
  overflow: hidden;
  border: 1px solid var(--mm-border);
  border-radius: 18px;
  background: var(--mm-surface);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.mm-home-listing-card:hover {
  border-color: #45535b;
  transform: translateY(-5px);
  box-shadow: 0 20px 50px rgba(0,0,0,.3);
}

.mm-home-listing-card > a {
  color: inherit;
  text-decoration: none;
}

.mm-home-listing-photo {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: #070b0d;
}

.mm-home-listing-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s ease;
}

.mm-home-listing-card:hover img {
  transform: scale(1.035);
}

.mm-home-photo-placeholder {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  color: #5f6b72;
  font-weight: 900;
}

.mm-home-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 7px 10px;
  border-radius: 999px;
  background: var(--mm-yellow);
  color: #080b0d;
  font-size: 10px;
  font-weight: 950;
}

.mm-home-listing-body {
  padding: 17px;
}

.mm-home-listing-body p {
  margin: 0;
  color: var(--mm-muted);
  font-size: 12px;
}

.mm-home-listing-body h3 {
  margin: 10px 0;
  color: #f4f6f7;
  font-size: 18px;
}

.mm-home-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: #a9b3b8;
  font-size: 12px;
}

.mm-home-listing-body > strong {
  display: block;
  margin-top: 17px;
  color: var(--mm-yellow);
  font-size: 22px;
}

.mm-home-empty {
  grid-column: 1 / -1;
  display: grid;
  place-items: center;
  gap: 10px;
  min-height: 300px;
  padding: 40px;
  border: 1px dashed #3b474e;
  border-radius: 20px;
  text-align: center;
}

.mm-home-empty > span {
  font-size: 36px;
}

.mm-home-empty h3 {
  margin: 0;
  color: #f4f6f7;
}

.mm-home-empty p {
  color: var(--mm-muted);
}

.mm-value-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.mm-value-grid article {
  padding: 26px;
  border: 1px solid var(--mm-border);
  border-radius: 18px;
  background: var(--mm-surface);
}

.mm-value-grid article > span {
  color: var(--mm-blue);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: .12em;
}

.mm-value-grid h3 {
  margin: 14px 0 10px;
  color: #f4f7f8;
  font-size: 22px;
}

.mm-value-grid p {
  margin: 0;
  color: var(--mm-muted);
  line-height: 1.65;
}

.mm-safety-section {
  background:
    linear-gradient(120deg, rgba(85,167,255,.08), transparent 38%),
    #0b1013;
}

.mm-safety-grid {
  display: grid;
  grid-template-columns: 1fr .8fr;
  gap: 70px;
  align-items: center;
}

.mm-safety-grid > div:last-child {
  display: grid;
  justify-items: start;
  gap: 20px;
}

.mm-home-cta {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: center;
  padding: 42px;
  border: 1px solid var(--mm-yellow);
  border-radius: 24px;
  background:
    radial-gradient(circle at 85% 20%, rgba(223,255,0,.13), transparent 26%),
    var(--mm-surface);
  box-shadow: 0 28px 70px rgba(0,0,0,.28);
}

.mm-button-large {
  min-height: 58px;
  padding-inline: 28px;
  font-size: 16px;
}

.mm-home-footer {
  border-top: 1px solid #2a343b;
  background: #080c0e;
}

.mm-footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 60px;
  padding-block: 54px;
}

.mm-footer-grid > div {
  display: grid;
  align-content: start;
  gap: 11px;
}

.mm-footer-grid p,
.mm-footer-grid a,
.mm-footer-bottom {
  color: #919ca3;
}

.mm-footer-grid a {
  text-decoration: none;
}

.mm-footer-grid a:hover {
  color: var(--mm-yellow);
}

.mm-footer-grid strong {
  margin-bottom: 5px;
  color: #f1f4f5;
}

.mm-footer-brand p {
  max-width: 350px;
  line-height: 1.6;
}

.mm-footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-block: 20px;
  border-top: 1px solid #222c31;
  font-size: 12px;
}

@media (max-width: 1050px) {
  .mm-hero-grid {
    grid-template-columns: 1fr;
  }

  .mm-hero-visual {
    min-height: 340px;
  }

  .mm-category-grid,
  .mm-home-listing-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .mm-home .container,
  .mm-home-footer .container {
    width: min(100% - 24px, 1180px);
  }

  .mm-hero {
    padding: 56px 0;
  }

  .mm-home-search {
    grid-template-columns: 1fr;
  }

  .mm-home-search-button {
    width: 100%;
  }

  .mm-section-heading,
  .mm-safety-grid,
  .mm-home-cta {
    grid-template-columns: 1fr;
  }

  .mm-section-heading {
    align-items: start;
    flex-direction: column;
  }

  .mm-value-grid,
  .mm-footer-grid {
    grid-template-columns: 1fr;
  }

  .mm-footer-grid {
    gap: 32px;
  }

  .mm-footer-bottom {
    align-items: start;
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  .mm-hero-copy h1 {
    font-size: 46px;
  }

  .mm-category-grid,
  .mm-home-listing-grid {
    grid-template-columns: 1fr;
  }

  .mm-hero-actions,
  .mm-trust-points {
    align-items: stretch;
    flex-direction: column;
  }

  .mm-home-cta {
    padding: 28px 22px;
  }
}

/* MotoMarket Home V3 */
.mm-hero-brand-stage {
  position: absolute;
  inset: 34px 26px 118px;
  z-index: 1;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 22px;
}

.mm-hero-mm {
  position: absolute;
  color: rgba(223, 255, 0, .055);
  font-size: clamp(180px, 22vw, 330px);
  font-weight: 1000;
  font-style: italic;
  letter-spacing: -.12em;
  line-height: 1;
  transform: translateX(-3%);
  user-select: none;
}

.mm-hero-brand-logo {
  position: relative;
  z-index: 2;
  display: block;
  width: min(92%, 520px);
  height: auto;
  filter:
    drop-shadow(0 16px 28px rgba(0, 0, 0, .55))
    drop-shadow(0 0 18px rgba(223, 255, 0, .12));
  animation: mmBrandFloat 4.8s ease-in-out infinite;
}

.mm-hero-road-line {
  position: absolute;
  right: 7%;
  bottom: 14%;
  left: 7%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(223,255,0,.85), transparent);
  box-shadow: 0 0 18px rgba(223,255,0,.32);
}

.mm-category-icon svg {
  width: 30px;
  height: 30px;
  overflow: visible;
  fill: none;
  stroke: currentColor;
  stroke-width: 3.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.mm-category-card:hover .mm-category-icon {
  color: var(--mm-yellow);
  border-color: var(--mm-yellow);
}

.mm-category-card > b {
  transition: transform .2s ease;
}

.mm-category-card:hover > b {
  transform: translateX(4px);
}

@keyframes mmBrandFloat {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-7px) scale(1.01); }
}

@media (prefers-reduced-motion: reduce) {
  .mm-hero-brand-logo {
    animation: none;
  }
}

@media (max-width: 700px) {
  .mm-hero-brand-stage {
    inset: 18px 16px 108px;
  }

  .mm-hero-brand-logo {
    width: min(94%, 430px);
  }
}


/* MotoMarket Home V4 — detailed category illustrations and brand browser */
.mm-category-icon {
  width: 68px;
  height: 58px;
  padding: 7px;
}

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

.mm-category-card {
  min-height: 126px;
}

.mm-brand-section {
  border-top: 1px solid var(--mm-border);
  background:
    radial-gradient(circle at 85% 10%, rgba(223,255,0,.055), transparent 23%),
    #080c0e;
}

.mm-brand-group + .mm-brand-group {
  margin-top: 38px;
}

.mm-brand-group-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 16px;
}

.mm-brand-group-heading h3 {
  margin: 0;
  color: #f4f7f8;
  font-size: 22px;
}

.mm-brand-group-heading a {
  color: #b8c2c7;
  text-decoration: none;
  font-weight: 850;
}

.mm-brand-group-heading a:hover {
  color: var(--mm-yellow);
}

.mm-brand-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.mm-brand-card {
  display: block;
  overflow: hidden;
  border: 1px solid var(--mm-border);
  border-radius: 18px;
  background: #0c1215;
  text-decoration: none;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.mm-brand-card:hover {
  border-color: var(--mm-yellow);
  transform: translateY(-4px);
  box-shadow: 0 18px 44px rgba(0,0,0,.28);
}

.mm-brand-card img {
  display: block;
  width: 100%;
  height: auto;
}

@media (max-width: 900px) {
  .mm-brand-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .mm-brand-grid {
    grid-template-columns: 1fr;
  }

  .mm-brand-group-heading {
    align-items: flex-start;
    flex-direction: column;
  }
}


/* MotoMarket Home V6 — professional category artwork and logo-only brand wall */
.mm-category-card {
  grid-template-columns: 104px 1fr auto;
  min-height: 142px;
  padding: 18px 20px;
}
.mm-category-icon {
  width: 104px;
  height: 78px;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(145deg,#111a20,#090e11);
}
.mm-category-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.mm-brand-grid {
  grid-template-columns: repeat(6,minmax(0,1fr));
}
.mm-brand-card {
  display:grid;
  place-items:center;
  min-height:118px;
  padding:16px;
  background:#eef2f4;
  border-color:#354149;
}
.mm-brand-card img {
  width:100%;
  height:74px;
  object-fit:contain;
  filter:none;
}
.mm-brand-card:hover {
  background:#fff;
}
@media(max-width:1050px){
  .mm-brand-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
}
@media(max-width:760px){
  .mm-category-card{grid-template-columns:88px 1fr auto}
  .mm-category-icon{width:88px;height:68px}
  .mm-brand-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:520px){
  .mm-category-card{grid-template-columns:92px 1fr auto}
}


/* MotoMarket Home V5 — visual polish */
.mm-category-grid{
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:18px;
}
.mm-category-card{
  position:relative;
  display:flex;
  min-height:250px;
  padding:0;
  overflow:hidden;
  border-radius:22px;
  background:
    radial-gradient(circle at 80% 10%,rgba(223,255,0,.08),transparent 34%),
    linear-gradient(160deg,#121a1f,#0b1013);
}
.mm-category-card::after{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  background:linear-gradient(180deg,transparent 34%,rgba(5,8,10,.94) 82%);
}
.mm-category-icon{
  position:absolute;
  inset:16px 16px 78px;
  z-index:0;
  display:grid;
  place-items:center;
  width:auto;
  height:auto;
  padding:8px;
  border:0;
  border-radius:16px;
  background:
    linear-gradient(145deg,rgba(255,255,255,.05),rgba(255,255,255,.01));
}
.mm-category-icon img{
  width:100%;
  height:100%;
  object-fit:contain;
  filter:drop-shadow(0 18px 24px rgba(0,0,0,.42));
  transition:transform .28s ease,filter .28s ease;
}
.mm-category-card>div{
  position:absolute;
  right:52px;
  bottom:19px;
  left:20px;
  z-index:2;
}
.mm-category-card>div strong{
  font-size:19px;
  line-height:1.15;
}
.mm-category-card>div small{
  display:block;
  margin-top:6px;
  line-height:1.4;
}
.mm-category-card>b{
  position:absolute;
  right:20px;
  bottom:29px;
  z-index:2;
}
.mm-category-card:hover .mm-category-icon img{
  transform:scale(1.06) translateY(-3px);
  filter:drop-shadow(0 22px 30px rgba(0,0,0,.5));
}

.mm-brand-grid{
  grid-template-columns:repeat(6,minmax(0,1fr));
  gap:14px;
}
.mm-brand-card{
  position:relative;
  min-height:132px;
  display:grid;
  place-items:center;
  padding:22px;
  overflow:hidden;
  border-color:#2d383f;
  background:
    radial-gradient(circle at 50% 0,rgba(255,255,255,.055),transparent 60%),
    #0e1519;
}
.mm-brand-card::before{
  content:"";
  position:absolute;
  inset:0;
  opacity:0;
  background:radial-gradient(circle at 50% 50%,rgba(223,255,0,.09),transparent 62%);
  transition:opacity .2s ease;
}
.mm-brand-card:hover::before{opacity:1}
.mm-brand-card img{
  position:relative;
  z-index:1;
  width:100%;
  height:76px;
  object-fit:contain;
  object-position:center;
  filter:drop-shadow(0 8px 16px rgba(0,0,0,.34));
  transition:transform .2s ease;
}
.mm-brand-card:hover img{transform:scale(1.05)}
.mm-brand-grid-quad{
  grid-template-columns:repeat(3,minmax(0,1fr));
  max-width:760px;
}

.mm-hero-visual{
  min-height:470px;
  background:
    radial-gradient(circle at 68% 35%,rgba(223,255,0,.16),transparent 30%),
    linear-gradient(145deg,#172126,#0a0f12 72%);
}
.mm-hero-brand-logo{
  width:min(86%,500px);
}

@media(max-width:1050px){
  .mm-category-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .mm-brand-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
}
@media(max-width:700px){
  .mm-category-card{min-height:220px}
  .mm-brand-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .mm-brand-grid-quad{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:520px){
  .mm-category-grid{grid-template-columns:1fr}
  .mm-category-card{min-height:235px}
  .mm-brand-card{min-height:120px}
}


/* MotoMarket Home Premium V3 */
.mm-hero {
  min-height: 690px;
  display: flex;
  align-items: center;
  padding: 78px 0 88px;
}

.mm-hero-grid {
  grid-template-columns: minmax(0, 1.05fr) minmax(470px, .95fr);
}

.mm-hero-copy h1 {
  max-width: 760px;
  font-size: clamp(52px, 5.8vw, 86px);
}

.mm-hero-visual {
  min-height: 500px;
  background:
    radial-gradient(circle at 66% 46%, rgba(223,255,0,.16), transparent 30%),
    linear-gradient(145deg, #121a1e 0%, #070b0d 72%);
}

.mm-hero-bike-stage {
  position: absolute;
  inset: 10px 8px 92px;
  display: grid;
  place-items: center;
}

.mm-hero-bike {
  position: relative;
  z-index: 2;
  width: min(110%, 760px);
  max-width: none;
  filter: drop-shadow(0 30px 35px rgba(0,0,0,.68));
  transform: translate(2%, 3%);
  animation: mmBikeFloat 5.4s ease-in-out infinite;
}

.mm-hero-outline {
  position: absolute;
  top: 30px;
  right: 18px;
  color: rgba(255,255,255,.025);
  font-size: clamp(96px, 11vw, 160px);
  font-weight: 1000;
  font-style: italic;
  letter-spacing: -.08em;
  line-height: .8;
  user-select: none;
}

.mm-hero-panel {
  z-index: 4;
}

@keyframes mmBikeFloat {
  0%, 100% { transform: translate(2%, 3%); }
  50% { transform: translate(2%, 1%); }
}

.mm-category-grid {
  gap: 18px;
}

.mm-category-card {
  position: relative;
  display: flex;
  min-height: 320px;
  padding: 18px 20px 22px;
  overflow: hidden;
  flex-direction: column;
  justify-content: flex-end;
  align-items: stretch;
  border-radius: 22px;
  background:
    radial-gradient(circle at 75% 5%, rgba(223,255,0,.075), transparent 32%),
    linear-gradient(155deg, #121a1e, #090d0f);
}

.mm-category-card::after {
  content: "";
  position: absolute;
  inset: auto 18px 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(223,255,0,.75), transparent);
  opacity: 0;
  transition: opacity .2s ease;
}

.mm-category-card:hover::after {
  opacity: 1;
}

.mm-category-icon {
  position: absolute;
  inset: 12px 12px 102px;
  width: auto;
  height: auto;
  padding: 0;
  border: 0;
  border-radius: 17px;
  background:
    radial-gradient(circle at 65% 38%, rgba(223,255,0,.10), transparent 34%),
    linear-gradient(150deg, rgba(255,255,255,.035), rgba(255,255,255,0));
}

.mm-category-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 18px 18px rgba(0,0,0,.48));
  transition: transform .28s ease, filter .28s ease;
}

.mm-category-card:hover .mm-category-icon img {
  transform: scale(1.035) translateY(-3px);
  filter: drop-shadow(0 24px 22px rgba(0,0,0,.58));
}

.mm-category-card div {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 7px;
  padding-right: 38px;
}

.mm-category-card strong {
  font-size: 21px;
  letter-spacing: -.02em;
}

.mm-category-card small {
  font-size: 13px;
  line-height: 1.45;
}

.mm-category-card > b {
  position: absolute;
  right: 20px;
  bottom: 25px;
  z-index: 2;
}

.mm-brand-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 15px;
}

.mm-brand-card {
  position: relative;
  display: grid;
  min-height: 156px;
  padding: 18px 16px 14px;
  align-content: center;
  gap: 12px;
  border-radius: 20px;
  background:
    radial-gradient(circle at 50% 0%, rgba(255,255,255,.055), transparent 52%),
    #0d1418;
}

.mm-brand-card.is-top-brand {
  border-color: #3b484f;
}

.mm-brand-card.is-top-brand::before {
  content: "TOP";
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 3px 7px;
  border-radius: 999px;
  background: rgba(223,255,0,.11);
  color: var(--mm-yellow);
  font-size: 8px;
  font-weight: 950;
  letter-spacing: .12em;
}

.mm-brand-logo-wrap {
  display: grid;
  place-items: center;
  min-height: 78px;
  overflow: hidden;
}

.mm-brand-card img {
  width: auto;
  max-width: 90%;
  height: auto;
  max-height: 74px;
  object-fit: contain;
  background: transparent;
  transition: transform .25s ease, filter .25s ease;
}

.mm-brand-card:hover img {
  transform: scale(1.055);
}

.mm-brand-name {
  overflow: hidden;
  color: #b7c1c6;
  font-size: 12px;
  font-weight: 800;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mm-brand-card:hover .mm-brand-name {
  color: #f4f7f8;
}

.mm-brand-grid-quad {
  grid-template-columns: repeat(3, minmax(0, 260px));
}

@media (max-width: 1120px) {
  .mm-brand-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .mm-hero {
    min-height: auto;
  }

  .mm-hero-grid {
    grid-template-columns: 1fr;
  }

  .mm-category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mm-brand-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .mm-category-grid,
  .mm-brand-grid,
  .mm-brand-grid-quad {
    grid-template-columns: 1fr;
  }

  .mm-category-card {
    min-height: 300px;
  }

  .mm-hero-visual {
    min-height: 390px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mm-hero-bike {
    animation: none;
  }
}


/* MotoMarket Home Photo V1 — realistic photography direction */
.mm-hero {
  padding-top: 72px;
  background:
    radial-gradient(circle at 78% 36%, rgba(223,255,0,.10), transparent 26%),
    linear-gradient(180deg, #070a0c 0%, #090d10 100%);
}

.mm-hero-visual {
  isolation: isolate;
  min-height: 520px;
  border-color: rgba(255,255,255,.12);
  background: #080b0d;
}

.mm-hero-photo {
  position: absolute;
  inset: 0;
  z-index: -3;
  background-image:
    url("https://images.pexels.com/photos/32253318/pexels-photo-32253318.jpeg?auto=compress&cs=tinysrgb&w=1600");
  background-position: center;
  background-size: cover;
  transform: scale(1.015);
  filter: saturate(.82) contrast(1.08);
  transition: transform .7s ease;
}

.mm-hero-visual:hover .mm-hero-photo {
  transform: scale(1.045);
}

.mm-hero-shade {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(180deg, rgba(6,9,11,.05) 0%, rgba(6,9,11,.25) 50%, rgba(6,9,11,.94) 100%),
    linear-gradient(90deg, rgba(6,9,11,.5), transparent 58%);
}

.mm-hero-panel {
  right: 22px;
  bottom: 22px;
  left: 22px;
  padding: 20px 22px;
  border-color: rgba(255,255,255,.15);
  background: rgba(7,10,12,.78);
  box-shadow: 0 18px 50px rgba(0,0,0,.35);
}

.mm-category-grid {
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 16px;
}

.mm-category-card {
  position: relative;
  display: block;
  min-height: 255px;
  padding: 0;
  overflow: hidden;
  border-radius: 20px;
  background: #0b1013;
}

.mm-category-photo {
  position: absolute;
  inset: 0;
  display: block;
}

.mm-category-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(5,8,10,.02) 20%, rgba(5,8,10,.86) 78%, rgba(5,8,10,.98) 100%),
    linear-gradient(110deg, rgba(5,8,10,.28), transparent 55%);
}

.mm-category-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.78) contrast(1.08);
  transition: transform .45s ease, filter .45s ease;
}

.mm-category-card:hover .mm-category-photo img {
  transform: scale(1.055);
  filter: saturate(.95) contrast(1.08);
}

.mm-category-copy {
  position: absolute;
  right: 48px;
  bottom: 20px;
  left: 20px;
  z-index: 2;
  display: grid;
  gap: 5px;
}

.mm-category-copy strong {
  color: #fff;
  font-size: 19px;
  letter-spacing: -.01em;
}

.mm-category-copy small {
  overflow: hidden;
  color: #aeb8bd;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mm-category-card > b {
  position: absolute;
  right: 20px;
  bottom: 23px;
  z-index: 2;
}

.mm-brand-section {
  background:
    radial-gradient(circle at 85% 12%, rgba(223,255,0,.045), transparent 24%),
    #080c0e;
}

.mm-brand-grid,
.mm-brand-grid-quad {
  grid-template-columns: repeat(6,minmax(0,1fr));
  gap: 8px 20px;
}

.mm-brand-card {
  display: grid;
  grid-template-rows: 76px auto;
  place-items: center;
  min-height: 112px;
  padding: 12px 8px 10px;
  border-color: transparent;
  border-radius: 12px;
  background: transparent;
  box-shadow: none;
}

.mm-brand-card:hover {
  border-color: rgba(223,255,0,.35);
  background: rgba(255,255,255,.025);
  box-shadow: none;
}

.mm-brand-logo-wrap {
  display: grid;
  place-items: center;
  width: 100%;
  height: 76px;
}

.mm-brand-card img,
.mm-brand-logo-wrap img {
  width: min(100%, 128px);
  height: 64px;
  object-fit: contain;
  filter: grayscale(1) brightness(1.45) contrast(.92);
  opacity: .86;
  transition: filter .2s ease, opacity .2s ease, transform .2s ease;
}

.mm-brand-card:hover img {
  filter: grayscale(0) brightness(1) contrast(1);
  opacity: 1;
  transform: scale(1.035);
}

.mm-brand-name {
  color: #87939a;
  font-size: 11px;
  font-weight: 800;
  text-align: center;
}

/* SVG logos need no white tile and remain readable on dark background. */
.mm-brand-card img[src$="bmw.svg"],
.mm-brand-card img[src$="cfmoto.svg"] {
  width: min(100%, 118px);
  filter: none;
  opacity: 1;
}

@media (max-width: 1050px) {
  .mm-category-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .mm-brand-grid,
  .mm-brand-grid-quad { grid-template-columns: repeat(4,minmax(0,1fr)); }
}

@media (max-width: 760px) {
  .mm-hero-visual { min-height: 420px; }
  .mm-category-card { min-height: 225px; }
  .mm-brand-grid,
  .mm-brand-grid-quad { grid-template-columns: repeat(3,minmax(0,1fr)); }
}

@media (max-width: 520px) {
  .mm-category-grid { grid-template-columns: 1fr; }
  .mm-category-card { min-height: 240px; }
  .mm-brand-grid,
  .mm-brand-grid-quad { grid-template-columns: repeat(2,minmax(0,1fr)); }
}


/* MotoMarket Home MM V2 — hero identitet */
.mm-hero-identity {
  isolation: isolate;
  min-height: 430px;
  background:
    radial-gradient(circle at 62% 42%, rgba(223,255,0,.13), transparent 24%),
    radial-gradient(circle at 26% 18%, rgba(85,167,255,.06), transparent 30%),
    linear-gradient(145deg, #12191d 0%, #090d0f 62%, #070a0c 100%);
}

.mm-hero-identity::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, #000, transparent 82%);
}

.mm-hero-identity .mm-hero-lines {
  opacity: .08;
}

.mm-hero-identity .mm-hero-glow {
  right: 13%;
  bottom: 13%;
  width: 290px;
  height: 290px;
  background: rgba(223,255,0,.18);
  filter: blur(72px);
}

.mm-hero-monogram {
  position: absolute;
  inset: 24px 24px 106px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(0px, .4vw, 8px);
  transform: skewX(-10deg);
  user-select: none;
}

.mm-hero-monogram span {
  display: block;
  margin-inline: clamp(-18px, -1.4vw, -8px);
  color: transparent;
  font-size: clamp(150px, 16vw, 250px);
  font-weight: 1000;
  line-height: .78;
  letter-spacing: -.16em;
  -webkit-text-stroke: 3px rgba(223,255,0,.20);
  text-shadow:
    0 0 34px rgba(223,255,0,.08),
    0 24px 54px rgba(0,0,0,.55);
}

.mm-hero-monogram span:last-child {
  color: rgba(223,255,0,.055);
  -webkit-text-stroke-color: rgba(223,255,0,.32);
  transform: translateY(18px);
}

.mm-hero-wordmark {
  position: absolute;
  top: 49%;
  left: 50%;
  z-index: 2;
  display: flex;
  align-items: baseline;
  transform: translate(-50%, -50%) skewX(-8deg);
  white-space: nowrap;
}

.mm-hero-wordmark strong {
  color: #f5f7f8;
  font-size: clamp(23px, 3vw, 39px);
  font-weight: 1000;
  letter-spacing: -.06em;
}

.mm-hero-wordmark strong span,
.mm-hero-wordmark small {
  color: var(--mm-yellow);
}

.mm-hero-wordmark small {
  margin-left: 5px;
  font-size: 13px;
  font-weight: 950;
  letter-spacing: .08em;
}

.mm-hero-identity .mm-hero-panel {
  right: 30px;
  bottom: 22px;
  left: 30px;
  padding: 15px 17px;
  border-color: rgba(255,255,255,.10);
  background: rgba(7,11,13,.70);
}

@media (max-width: 1050px) {
  .mm-hero-identity {
    min-height: 360px;
  }

  .mm-hero-monogram span {
    font-size: clamp(145px, 28vw, 240px);
  }
}

@media (max-width: 520px) {
  .mm-hero-identity {
    min-height: 330px;
  }

  .mm-hero-monogram {
    inset: 20px 14px 108px;
  }

  .mm-hero-monogram span {
    font-size: clamp(120px, 39vw, 180px);
    -webkit-text-stroke-width: 2px;
  }

  .mm-hero-wordmark strong {
    font-size: 24px;
  }

  .mm-hero-identity .mm-hero-panel {
    right: 16px;
    bottom: 16px;
    left: 16px;
  }
}


/* MotoMarket Home V3 — final premium brand wall */
.mm-brand-section {
  padding-top: 84px;
  padding-bottom: 92px;
  background:
    radial-gradient(circle at 50% 0%, rgba(223,255,0,.045), transparent 30%),
    linear-gradient(180deg, #080c0e 0%, #070a0c 100%);
}

.mm-brand-group + .mm-brand-group {
  margin-top: 54px;
  padding-top: 42px;
  border-top: 1px solid rgba(255,255,255,.075);
}

.mm-brand-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0,1fr));
  gap: 10px 18px;
}

.mm-brand-card {
  position: relative;
  display: grid;
  grid-template-rows: 78px auto;
  place-items: center;
  min-width: 0;
  min-height: 112px;
  padding: 12px 10px 14px;
  overflow: visible;
  border: 0;
  border-radius: 14px;
  background: transparent;
  text-decoration: none;
  transition: background-color .22s ease, transform .22s ease;
}

.mm-brand-card::after {
  content: "";
  position: absolute;
  inset: 5px;
  z-index: -1;
  border: 1px solid transparent;
  border-radius: 14px;
  background: linear-gradient(145deg,rgba(255,255,255,.035),rgba(255,255,255,.012));
  opacity: 0;
  transition: opacity .22s ease, border-color .22s ease, box-shadow .22s ease;
}

.mm-brand-card:hover {
  transform: translateY(-3px);
  border-color: transparent;
  background: transparent;
  box-shadow: none;
}

.mm-brand-card:hover::after,
.mm-brand-card:focus-visible::after {
  opacity: 1;
  border-color: rgba(223,255,0,.38);
  box-shadow: 0 12px 30px rgba(0,0,0,.24), 0 0 24px rgba(223,255,0,.06);
}

.mm-brand-logo-wrap {
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 78px;
  overflow: visible;
}

.mm-brand-card img {
  display: block;
  width: auto;
  max-width: 86%;
  height: auto;
  max-height: 52px;
  object-fit: contain;
  background: transparent !important;
  filter: grayscale(1) brightness(.92) contrast(1.22);
  mix-blend-mode: screen;
  opacity: .9;
  transition: transform .22s ease, filter .22s ease, opacity .22s ease;
}

.mm-brand-card:hover img,
.mm-brand-card:focus-visible img {
  transform: scale(1.075);
  filter: grayscale(0) brightness(1.08) contrast(1.08);
  opacity: 1;
}

.mm-brand-name {
  margin-top: 8px;
  color: #8f9ba1;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .01em;
  transition: color .22s ease;
}

.mm-brand-card:hover .mm-brand-name,
.mm-brand-card:focus-visible .mm-brand-name {
  color: var(--mm-yellow);
}

/* Original user-provided marks */
.mm-brand-bmw img {
  max-height: 62px;
  filter: none;
  mix-blend-mode: normal;
  opacity: 1;
}

.mm-brand-cfmoto img {
  max-width: 74%;
  max-height: 48px;
  filter: none;
  mix-blend-mode: normal;
  opacity: .96;
}

.mm-brand-grid-quad {
  grid-template-columns: repeat(3, minmax(150px, 210px));
  justify-content: start;
}

@media (max-width: 1120px) {
  .mm-brand-grid { grid-template-columns: repeat(4,minmax(0,1fr)); }
}

@media (max-width: 760px) {
  .mm-brand-section { padding-top: 64px; padding-bottom: 70px; }
  .mm-brand-grid { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; }
  .mm-brand-grid-quad { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .mm-brand-card { grid-template-rows: 64px auto; min-height: 98px; padding-inline: 6px; }
  .mm-brand-logo-wrap { min-height: 64px; }
  .mm-brand-card img { max-height: 44px; }
  .mm-brand-bmw img { max-height: 54px; }
}

@media (max-width: 520px) {
  .mm-brand-grid,
  .mm-brand-grid-quad { grid-template-columns: repeat(2,minmax(0,1fr)); }
}


/* MotoMarket Home V4 — compact premium sponsor wall */
.mm-brand-section {
  padding-top: 78px;
  padding-bottom: 82px;
}

.mm-brand-group {
  margin-top: 30px;
}

.mm-brand-group + .mm-brand-group {
  margin-top: 38px;
  padding-top: 34px;
  border-top: 1px solid rgba(255,255,255,.09);
}

.mm-brand-group-heading {
  margin-bottom: 18px;
}

.mm-brand-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}

.mm-brand-grid-quad {
  grid-template-columns: repeat(3, minmax(150px, 1fr));
  max-width: 660px;
}

.mm-brand-card {
  display: grid;
  place-items: center;
  min-height: 104px;
  padding: 18px 16px;
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 16px;
  background:
    linear-gradient(145deg, rgba(255,255,255,.025), rgba(255,255,255,.008));
  overflow: hidden;
  isolation: isolate;
  transition: transform .2s ease, border-color .2s ease, background-color .2s ease, box-shadow .2s ease;
}

.mm-brand-card::before {
  content: "";
  position: absolute;
  inset: auto 16% -45% 16%;
  height: 60%;
  border-radius: 999px;
  background: rgba(223,255,0,.14);
  filter: blur(28px);
  opacity: 0;
  z-index: -1;
  transition: opacity .2s ease;
}

.mm-brand-card::after {
  display: none;
}

.mm-brand-card:hover,
.mm-brand-card:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(223,255,0,.46);
  background: linear-gradient(145deg, rgba(223,255,0,.045), rgba(255,255,255,.012));
  box-shadow: 0 14px 34px rgba(0,0,0,.28), 0 0 0 1px rgba(223,255,0,.035);
  outline: none;
}

.mm-brand-card:hover::before,
.mm-brand-card:focus-visible::before {
  opacity: 1;
}

.mm-brand-logo-wrap {
  width: 100%;
  min-height: 66px;
  display: grid;
  place-items: center;
}

.mm-brand-card img {
  display: block;
  width: auto;
  height: auto;
  max-width: 82%;
  max-height: 58px;
  object-fit: contain;
  opacity: 1;
  mix-blend-mode: normal;
  filter: none;
  transition: transform .2s ease, filter .2s ease;
}

/* White-background source files: invert dark artwork and let the black field disappear */
.mm-brand-yamaha img,
.mm-brand-honda img,
.mm-brand-suzuki img,
.mm-brand-kawasaki img,
.mm-brand-ktm img,
.mm-brand-aprilia img {
  filter: invert(1) grayscale(1) brightness(1.35) contrast(1.25);
  mix-blend-mode: screen;
}

/* Transparent monochrome marks */
.mm-brand-ducati img,
.mm-brand-harleydavidson img,
.mm-brand-indian img,
.mm-brand-motoguzzi img,
.mm-brand-mvagusta img,
.mm-brand-canam img,
.mm-brand-segwaypowersports img {
  filter: grayscale(1) brightness(1.55) contrast(1.12);
}

/* User supplied brand marks */
.mm-brand-bmw img {
  max-height: 68px;
  max-width: 72px;
  filter: none;
  mix-blend-mode: normal;
}

.mm-brand-cfmoto img {
  max-height: 56px;
  max-width: 118px;
  filter: none;
  mix-blend-mode: normal;
}

.mm-brand-card:hover img,
.mm-brand-card:focus-visible img {
  transform: scale(1.07);
}

.mm-brand-yamaha img { max-height: 50px; }
.mm-brand-honda img { max-height: 54px; }
.mm-brand-suzuki img { max-height: 46px; }
.mm-brand-kawasaki img { max-height: 46px; }
.mm-brand-ducati img { max-height: 60px; }
.mm-brand-ktm img { max-height: 48px; }
.mm-brand-aprilia img { max-height: 48px; max-width: 90%; }
.mm-brand-harleydavidson img { max-height: 58px; }
.mm-brand-indian img { max-height: 48px; max-width: 88%; }
.mm-brand-motoguzzi img { max-height: 48px; }
.mm-brand-mvagusta img { max-height: 58px; }
.mm-brand-canam img { max-height: 56px; }
.mm-brand-segwaypowersports img { max-height: 48px; max-width: 84%; }

@media (max-width: 1120px) {
  .mm-brand-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .mm-brand-grid-quad {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-width: none;
  }
}

@media (max-width: 760px) {
  .mm-brand-section {
    padding-top: 62px;
    padding-bottom: 68px;
  }

  .mm-brand-grid,
  .mm-brand-grid-quad {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 9px;
  }

  .mm-brand-card {
    min-height: 88px;
    padding: 14px 10px;
    border-radius: 13px;
  }

  .mm-brand-logo-wrap {
    min-height: 56px;
  }

  .mm-brand-card img {
    max-height: 48px;
  }

  .mm-brand-bmw img {
    max-height: 58px;
  }
}

@media (max-width: 520px) {
  .mm-brand-grid,
  .mm-brand-grid-quad {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
