.saving-caption {
  max-width: 500px;
  border-left: 3px solid var(--orange);
  padding-left: 13px;
  margin: 25px 0 -38px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.55;
}

.saving-caption span {
  display: block;
  color: var(--orange);
  font: 500 10px 'DM Mono';
  letter-spacing: 1px;
}

.saving-caption strong {
  display: block;
  margin-top: 3px;
  font-size: 15px;
  letter-spacing: -0.3px;
}

.machine-image.equipment { background: #554e77; }
.machine-image.tools { background: #6e643c; }
.machine-image.drills { background: #3e6574; }
.machine-image.grinding { background: #64686e; }
.machine-image.milling { background: #825b38; }
.machine-image.printer { background: #506a7f; }

.fee-card {
  display: grid;
  width: fit-content;
  grid-template-columns: auto auto;
  column-gap: 8px;
  align-items: end;
  margin-top: 28px;
  padding: 14px 18px;
  border: 1px solid #62716d;
  background: #1c2d2a;
}

.fee-card strong { color: var(--navy-light); font-size: 29px; letter-spacing: -1px; }
.fee-card span { color: white; font-size: 12px; font-weight: 700; margin-bottom: 6px; }
.fee-card small { grid-column: 1 / -1; color: #b9c5c0; font: 10px 'DM Mono'; margin-top: 5px; }
.fee-note { margin: -4px 0 0 !important; max-width: none !important; color: #c6d0cc !important; font-size: 11px !important; }

.contact-fee {
  border-left: 3px solid var(--orange);
  padding: 9px 0 9px 12px;
  background: #f4f1e9;
  font-weight: 700;
}

.launch-offer { margin: 24px 0 -35px; padding: 11px 14px; width: fit-content; background: var(--lime); color: #fff; font-size: 12px; font-weight: 700; }
.launch-offer span { margin-right: 8px; color: var(--orange); font: 500 10px 'DM Mono'; letter-spacing: 1px; }
.launch-offer del, .fee-card del, .contact-fee del { color: #9ba9a3; text-decoration-thickness: 2px; }
.launch-offer strong, .fee-note strong, .contact-fee strong, .steps strong { color: var(--orange); }
.launch-card strong { color: var(--navy-light); }

@media (max-width: 760px) { .launch-offer { margin-bottom: -10px; } }


.upload-label input[type="file"] {
  padding: 10px;
  border-style: dashed;
  cursor: pointer;
}

#enquiryForm select {
  width: 100%;
  border: 1px solid #53625d;
  border-radius: 0;
  background: var(--ink);
  color: #fff;
  padding: 13px;
  font: 13px Manrope;
}

.filters input[type="search"] {
  width: 100%;
  border: 1px solid #2E6FF2;
  border-radius: 0;
  background: #E8EFFE;
  color: var(--ink);
  padding: 13px 12px;
  font: 600 12px Manrope;
}

.filters input[type="search"]::placeholder { color: #5C7FCC; }

.category-strip {
  display: grid;
  grid-template-columns: 230px 1fr;
  gap: 28px;
  align-items: start;
  padding: 42px 5vw;
  background: #fff;
}

.category-strip-intro .eyebrow { margin-bottom: 7px; font-weight: 800; font-size: 13px; color: var(--orange); }
.category-strip-intro h2 { margin: 0; font-size: 26px; font-weight: 800; letter-spacing: -1px; line-height: 1.2; }
.category-strip-sub { margin: 10px 0 20px; font-size: 13px; color: var(--muted); line-height: 1.5; }
.category-view-all { border: 1px solid var(--ink); background: #fff; color: var(--ink); padding: 10px 16px; font: 700 12px Manrope; cursor: pointer; }
.category-view-all:hover { background: var(--ink); color: #fff; }

.category-chips { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.category-tile { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 10px; background: #fff; padding: 12px 8px 14px; cursor: pointer; text-align: center; font: 700 12px Manrope; color: var(--ink); box-shadow: 0 4px 14px rgba(0,0,0,.04); transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; min-width: 0; }
.category-tile:hover { border-color: var(--orange); box-shadow: 0 10px 22px rgba(0,0,0,.1); transform: translateY(-3px); }
.category-tile-thumb { width: 64px; height: 64px; border-radius: 7px; overflow: hidden; background: var(--cream); display: flex; align-items: center; justify-content: center; }
.category-tile-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.category-tile-icon { font-size: 26px; }
.category-tile-name { line-height: 1.3; font-size: 12px; }
.category-tile-more { align-items: center; justify-content: center; color: var(--orange); background: #E8EFFE; border-color: #C3D6FB; }
.category-tile-more .category-tile-icon { color: var(--orange); font-weight: 800; }

.req-btn { background: var(--orange); color: #fff; border-radius: 30px; white-space: nowrap; }
.req-btn:hover { background: #1D4FC4; }

.login-link { border: 0; padding: 0; background: transparent; color: var(--ink); cursor: pointer; font: 700 13px Manrope; }
.login-link:hover { color: var(--orange); }
.signup-link { border: 0; background: var(--ink); color: #fff; padding: 10px 13px; cursor: pointer; font: 700 12px Manrope; }
.signup-link:hover { background: var(--orange); }
#authDialog { max-width: 500px; background: var(--cream); }
.auth-content { padding: 48px 36px 36px; }
.auth-content h2 { margin: 0; font-size: 31px; letter-spacing: -1.5px; line-height: 1.05; }
.auth-intro { color: var(--muted); font-size: 13px; line-height: 1.65; }
.auth-tabs { display: flex; gap: 18px; border-bottom: 1px solid var(--line); margin: 16px 0 23px; }
.auth-tab { border: 0; border-bottom: 3px solid transparent; margin-bottom: -1px; padding: 0 1px 10px; background: transparent; color: var(--muted); cursor: pointer; font: 800 13px Manrope; }
.auth-tab.active { border-color: var(--orange); color: var(--ink); }
.auth-content form { margin-top: 22px; }
.auth-content input { color: var(--ink); border-color: var(--line); }
.auth-content .button { justify-content: space-between; }
.auth-note { color: var(--orange); font-size: 12px; line-height: 1.55; }
.footer-legal-links { display: flex; gap: 18px; }
.footer-legal-links a { font-size: 11px; color: var(--muted); }
.footer-legal-links a:hover { color: var(--orange); }
.resend-row { margin: -6px 0 14px; font-size: 12.5px; color: var(--muted); }
.resend-row button { background: none; border: none; padding: 0; margin-left: 4px; color: var(--orange); font-weight: 800; font-size: 12.5px; cursor: pointer; text-decoration: underline; }
.resend-row button:disabled { color: var(--muted); cursor: default; text-decoration: none; }
.auth-checkbox-field { display: flex !important; flex-direction: row !important; align-items: flex-start; gap: 9px; margin: 4px 0 16px; }
.auth-checkbox-field input[type="checkbox"] { width: 16px; height: 16px; margin-top: 2px; flex-shrink: 0; accent-color: var(--orange); cursor: pointer; }
.auth-checkbox-field span { font-size: 12.5px; line-height: 1.55; color: var(--muted); font-weight: 500; letter-spacing: 0; text-transform: none; }
.auth-checkbox-field span a { color: var(--orange); font-weight: 700; text-decoration: underline; }
.forgot-link { display: block; text-align: right; margin: -8px 0 14px; font-size: 12px; }
#authBack { display: block; margin-top: 14px; }

#sellGate { display: grid; align-content: center; gap: 14px; padding: 40px 34px; border: 1px solid #3a4a45; background: #1c2d2a; }
#sellGate[hidden] { display: none; }
#sellGate h3 { margin: 0; color: var(--navy-light); font-size: 26px; letter-spacing: -1px; line-height: 1.15; }
#sellGate p { margin: 0; color: #c6d0cc; font-size: 13px; line-height: 1.65; max-width: 360px; }
#sellGate .button { width: fit-content; }


.machine-image.has-photo { background-size: cover; background-position: center; }
.machine-image.has-photo:before, .machine-image.has-photo:after { content: none; }

#machineDialog { max-width: 660px; }

.detail-gallery { margin: 18px 0; }
.gallery-main { width: 100%; height: 340px; background: #12201f; border: 1px solid var(--line); overflow: hidden; }
.gallery-main img, .gallery-main video, .gallery-main a { display: block; width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs { display: flex; gap: 8px; margin-top: 8px; overflow-x: auto; padding-bottom: 2px; }
.gallery-thumb { flex: 0 0 auto; width: 68px; height: 52px; padding: 0; border: 2px solid transparent; background: #12201f; cursor: pointer; opacity: .6; transition: .15s; }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery-thumb .thumb-video { display: grid; place-items: center; width: 100%; height: 100%; color: #fff; font-size: 14px; }
.gallery-thumb:hover { opacity: .85; }
.gallery-thumb.active { border-color: var(--orange); opacity: 1; }

.detail-info-row { display: flex; gap: 10px; flex-wrap: wrap; margin: 18px 0; }
.info-chip { flex: 1; min-width: 140px; padding: 12px 14px; border: 1px solid var(--line); background: var(--cream); }
.info-chip span { display: block; font: 500 10px 'DM Mono'; letter-spacing: .5px; color: var(--muted); margin-bottom: 4px; }
.info-chip strong { font-size: 17px; font-weight: 800; letter-spacing: -.3px; color: var(--ink); }
.info-chip span { font-weight: 800; }

.notice-contact-card { margin: 20px 0; border: 1px solid var(--line); background: var(--cream); }
.legal-notice { padding: 16px 18px; border-left: 4px solid var(--orange); border-bottom: 1px solid var(--line); font-size: 12px; line-height: 1.65; color: var(--muted); }
.legal-notice strong { display: block; margin-bottom: 8px; color: var(--orange); font: 800 12px 'DM Mono'; text-transform: uppercase; letter-spacing: 1px; }
.contact-inner { padding: 16px 18px; }
.contact-inner p { margin: 0 0 12px; font-size: 13px; color: var(--muted); font-weight: 700; }
#revealContactBtn { width: 100%; justify-content: center; }

.media-actions-tabs { display: flex; gap: 0; margin: 18px 0; border: 1px solid var(--line); overflow: hidden; }
.media-tab-btn { flex: 1; padding: 13px 10px; border: 0; background: #fff; color: var(--ink); font: 700 13px Manrope; cursor: pointer; border-right: 1px solid var(--line); }
.media-tab-btn:last-child { border-right: 0; }
.media-tab-btn:hover { background: var(--cream); }
.media-tab-btn.is-shortlisted { background: var(--lime); color: #fff; }

.ad-countdown { display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 8px; min-height: 90px; background: var(--cream); border-radius: 8px; }
.ad-countdown-timer { font: 700 12px 'DM Mono'; color: var(--ink); }

.detail-description { font-size: 14px; line-height: 1.7; color: var(--ink); }

.download-all-btn { background: #fff !important; color: var(--ink) !important; border: 1px solid var(--line); margin-bottom: 16px; width: 100%; justify-content: center; }
.download-all-btn:hover { background: var(--cream) !important; }
.download-all-btn:disabled { opacity: .6; cursor: wait; }

@media (max-width: 600px) {
  .gallery-main { height: 240px; }
}

.sell-section { background: var(--cream); color: var(--ink); }
.sell-section h2 { color: var(--ink); }
.sell-section > div > p:not(.eyebrow) { color: var(--muted); }
.sell-section form label { color: var(--ink); font-size: 13px; font-weight: 800; letter-spacing: 0.2px; }
.sell-section input, .sell-section textarea { border: 1px solid var(--line); background: #fff; color: var(--ink); }
.sell-section .fee-card { border: 1px solid var(--line); background: #fff; padding: 26px 32px; }
.sell-section .fee-card strong { color: var(--orange); font-size: 46px; }
.sell-section .fee-card span { color: var(--ink); font-size: 16px; }
.sell-section .fee-card small { color: var(--muted); font-size: 13px; }
.sell-section .fee-note { color: var(--muted) !important; }
.sell-section .form-note { color: var(--ink) !important; font-weight: 700; }
.sell-section .form-note.is-error { color: var(--orange) !important; }
#dialogContent .form-note { color: var(--ink) !important; font-weight: 700; margin-top: 14px; }
#dialogContent .form-note.is-error { color: var(--orange) !important; }
.sell-section .media-preview img, .sell-section .media-preview video { border: 1px solid var(--line); background: #fff; }
.preview-item { position: relative; display: inline-block; }
.preview-item img, .preview-item video { display: block; }
.remove-media-btn { position: absolute; top: -7px; right: -7px; width: 20px; height: 20px; border-radius: 50%; border: none; background: var(--orange); color: #fff; font-size: 13px; line-height: 1; cursor: pointer; display: grid; place-items: center; padding: 0; }
.remove-media-btn:hover { background: #d94f22; }
.sell-section #sellGate { background: #fff; border: 1px solid var(--line); }
.sell-section #sellGate h3 { color: var(--orange); }
.sell-section #sellGate p { color: var(--muted); }

.mission-section { padding: 70px 5vw 40px; background: var(--cream); }
.mission-section h2 { font-size: clamp(28px, 3.4vw, 44px); letter-spacing: -1.5px; line-height: 1.15; margin: 10px 0 18px; max-width: 720px; }
.mission-section h2 em { font-style: normal; color: var(--orange); }
.mission-section p { font-size: 14px; line-height: 1.75; color: var(--muted); max-width: 620px; }

.sell-mission, .sell-vision { margin-top: 32px; padding-top: 26px; border-top: 1px solid var(--line); }
.sell-mission h3, .sell-vision h3 { font-size: 22px; letter-spacing: -0.8px; line-height: 1.25; margin: 8px 0 12px; color: var(--ink); }
.sell-mission h3 em, .sell-vision h3 em { font-style: normal; color: var(--orange); }
.sell-mission > p, .sell-vision > p { font-size: 13px; line-height: 1.7; color: var(--muted); }
.mission-list { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 12px; }
.mission-list li { font-size: 13px; line-height: 1.6; color: var(--ink); padding-left: 14px; border-left: 2px solid var(--orange); }
.mission-list li strong { display: block; margin-bottom: 2px; }

.process h2 em { font-style: normal; color: var(--orange); }
.process .eyebrow { display: block; width: 100%; box-sizing: border-box; background: var(--orange); color: #fff; font: 800 clamp(38px, 6vw, 76px)/0.95 Manrope, Arial, sans-serif; letter-spacing: -2px; text-transform: uppercase; padding: 44px 32px; margin: 0 0 48px; }
.process .eyebrow b { font-size: 0.55em; vertical-align: middle; }
.process-tracks { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; margin-top: 50px; }
.process-track { border-top: 1px solid var(--line); padding-top: 28px; }
.track-label { display: inline-block; font: 500 11px 'DM Mono'; letter-spacing: 1px; color: var(--orange); margin-bottom: 14px; }
.process-track h3 { font-size: 26px; letter-spacing: -0.8px; line-height: 1.2; margin: 0 0 14px; color: var(--ink); }
.process-track > p { font-size: 14px; line-height: 1.7; color: var(--muted); max-width: 420px; margin: 0 0 32px; }
.track-steps { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; gap: 22px; }
.track-steps li { position: relative; padding-left: 42px; counter-increment: step; }
.track-steps li:before { content: counter(step); position: absolute; left: 0; top: 0; width: 26px; height: 26px; display: grid; place-items: center; background: var(--ink); color: var(--navy-light); font: 700 12px 'DM Mono'; }
.track-steps li strong { display: block; font-size: 14.5px; font-weight: 700; margin-bottom: 3px; color: var(--ink); }
.track-steps li span { display: block; font-size: 13px; color: var(--muted); line-height: 1.6; }
@media (max-width: 900px) { .process-tracks { grid-template-columns: 1fr; gap: 40px; } }

.contact-card { padding: 18px; border: 1px solid var(--line); background: var(--cream); }
.contact-card p { margin: 0 0 12px; font-size: 13px; color: var(--muted); font-weight: 700; }
.contact-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.contact-actions .button { flex: 1; min-width: 200px; }
.whatsapp-btn { background: #25D366 !important; color: #0b2e18 !important; }
.whatsapp-btn:hover { background: #1ebd5a !important; }
.seller-account-note { max-width: none !important; margin: -5px 0 4px !important; border-left: 3px solid var(--navy-light); padding-left: 11px; color: #dbe7e1 !important; font-size: 11px !important; }
.seller-account-note strong { color: var(--navy-light); }

/* Original MachineSetu featured VMC image */
.hero {
  position: relative;
  background: linear-gradient(rgba(18,32,31,.5), rgba(18,32,31,.5)), url('hero-machines.webp') center center / cover no-repeat;
}
.hero-copy .eyebrow { color: var(--navy-light); }
.hero-copy h1 { color: #fff; }
.hero-copy h1 em { color: #fff; }
.hero-copy .hero-text { color: #e9ece9; }
.hero-copy .text-link { color: #fff; }
.saving-caption { border-left-color: var(--navy-light); color: #fff; }
.saving-caption span { color: var(--navy-light); }
.trust-row { color: #cfd6d1; }
.trust-row span { border-left-color: rgba(255,255,255,.25); }
.trust-row b { color: #fff; }

.hero-art { background: transparent; }
.hero-art > :not(.machine-label) { display: none; }
.machine-label { z-index: 1; padding: 8px 10px; background: #12201fcc; }

/* Rebuilt marketplace search controls */
.search-panel {
  align-items: end;
  padding: 24px 28px;
  margin-top: 20px;
}

.filters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 20px 32px;
  align-items: end;
}
.filters .button { grid-column: 1 / -1; justify-content: center; margin-top: 8px; }
@media (min-width: 1150px) {
  .filters { grid-template-columns: repeat(4, minmax(170px, 1fr)) auto; }
  .filters .button { grid-column: auto; margin-top: 0; }
}

.listing-type-badge { position: absolute; top: 12px; right: 12px; padding: 5px 10px; background: var(--lime); color: #fff; font: 700 10px 'DM Mono'; letter-spacing: .5px; z-index: 1; }
.listing-type-badge.is-rent { background: var(--orange); color: #fff; }

.filters label {
  min-width: 0;
  color: #fff;
  font-weight: 800;
  font-size: 11px;
  font-style: italic;
  white-space: nowrap;
  padding-right: 10px;
}

.filters select,
.filters input[type="search"] {
  height: 44px;
  border: 1px solid #2E6FF2;
  background: #E8EFFE;
  box-shadow: inset 0 -2px 0 #A9C4F7;
}

.filters select:focus,
.filters input[type="search"]:focus {
  outline: 2px solid var(--ink);
  outline-offset: -2px;
}

.filters .button {
  height: 44px;
  padding: 0 17px;
}

@media (max-width: 980px) {
  .search-panel { display: block; }
}

@media (max-width: 760px) {
  .category-strip { display: block; padding: 34px 7vw; }
  .category-chips { margin-top: 18px; grid-template-columns: repeat(2, 1fr); }
}

.upload-label small { color: #aebbb5; font: 11px Manrope; letter-spacing: 0; }

.media-preview { display: flex; flex-wrap: wrap; gap: 8px; }

.media-preview img, .media-preview video {
  width: 86px;
  height: 66px;
  object-fit: cover;
  border: 1px solid #65736e;
  background: #20302d;
}

.media-preview video { width: 145px; }

.my-ads-list { display: grid; gap: 10px; margin-top: 18px; }
.my-ad-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); background: var(--cream); }
.my-ad-row span { font-size: 13px; font-weight: 600; color: var(--ink); }
.my-ad-row .my-ad-action { padding: 9px 14px; font-size: 11px; }
.my-ad-row-actions { display: flex; gap: 8px; flex-shrink: 0; }

.shortlist-btn { background: #fff !important; color: var(--ink) !important; border: 1px solid var(--line); margin-bottom: 12px; width: 100%; justify-content: center; }
.shortlist-btn:hover { background: var(--cream) !important; }
.shortlist-btn.is-shortlisted { background: var(--lime) !important; border-color: var(--lime); color: #fff !important; }

.my-ad-detail-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.my-ad-detail-actions .button { flex: 1; min-width: 180px; }
.my-ad-detail-actions .back-btn { background: #fff !important; color: var(--ink) !important; border: 1px solid var(--line); }
.my-ad-detail-actions .back-btn:hover { background: var(--cream) !important; }

@media (max-width: 760px) {
  .saving-caption { margin: 23px 0 -15px; }
}

.location-switcher { font: 700 12px Manrope; white-space: nowrap; border: 1px solid var(--line); background: var(--cream); color: var(--ink); padding: 9px 14px; cursor: pointer; margin-right: 10px; }
.location-switcher:hover { border-color: var(--ink); }
@media (max-width: 760px) { .location-switcher { margin-right: 6px; padding: 8px 10px; font-size: 11px; } }
@media (max-width: 760px) { .nav-links.open { z-index: 6; } }

/* Header redesign */
.site-header { border-bottom: 2px solid var(--ink); padding: 0 max(4vw, 24px); }
.nav-links { gap: 30px; }
.nav-links > a { position: relative; padding: 4px 0; }
.nav-links > a:not(.button)::after { content: ''; position: absolute; left: 0; bottom: -4px; width: 0; height: 2px; background: var(--orange); transition: width .18s; }
.nav-links > a:not(.button):hover::after { width: 100%; }

.location-switcher { border: none; border-radius: 20px; background: var(--lime); color: #fff; font-weight: 800; padding: 9px 16px 9px 14px; transition: background .15s, transform .15s; }
.location-switcher:hover { background: var(--navy-light); color: var(--ink); transform: translateY(-1px); }

#machineSetuHeaderAuth .auth-header-btn { padding: 10px 20px; border-radius: 20px; transition: .15s; }
#machineSetuLogin { background: transparent; border: 1px solid var(--line); color: var(--ink); font-weight: 700; }
#machineSetuLogin:hover { border-color: var(--ink); color: var(--orange); }
#machineSetuSignup, #machineSetuAccount { background: var(--orange); border: none; color: #fff; }
#machineSetuSignup:hover, #machineSetuAccount:hover { background: #1D4FC4; transform: translateY(-1px); }

.nav-category-wrap { position: relative; display: inline-block; }
@media (max-width: 760px) {
  .nav-category-wrap { display: block; width: 100%; }
  .nav-category-btn { display: block; width: 100%; text-align: left; padding: 8px 0; }
}
.nav-category-btn { background: transparent; border: 0; padding: 4px 0; font: 700 13px Manrope; color: var(--ink); cursor: pointer; }
.nav-category-btn:hover { color: var(--orange); }
.header-category-menu { position: absolute; top: calc(100% + 18px); left: 0; z-index: 1000; display: grid; grid-template-columns: repeat(2, minmax(160px, 1fr)); gap: 2px; max-height: 420px; overflow-y: auto; padding: 10px; background: #fff; border: 1px solid var(--line); box-shadow: 0 10px 30px rgba(0,0,0,.14); width: 480px; }
.header-category-menu[hidden] { display: none; }
.header-category-menu button { text-align: left; padding: 9px 10px; border: 0; background: transparent; cursor: pointer; font: 600 12px Manrope; color: var(--ink); }
.header-category-menu button:hover { background: var(--cream); color: var(--orange); }
@media (max-width: 760px) { .header-category-menu { width: 88vw; grid-template-columns: 1fr 1fr; } }

/* Dedicated category page */
.category-page { padding: 50px 5vw 100px; }
.category-breadcrumb { display: flex; gap: 8px; align-items: center; font-size: 12px; color: var(--muted); margin-bottom: 30px; }
.category-breadcrumb a { color: var(--muted); font-weight: 700; cursor: pointer; }
.category-breadcrumb a:hover { color: var(--orange); }
.category-breadcrumb span { color: var(--line); }
.category-breadcrumb #categoryBreadcrumbCurrent { color: var(--ink); font-weight: 700; }
.category-page-heading { display: flex; align-items: center; gap: 18px; margin-bottom: 40px; flex-wrap: wrap; }
.category-page-type-filter { margin-left: auto; display: grid; gap: 6px; font: 500 10px 'DM Mono'; letter-spacing: .5px; color: var(--muted); }
.category-page-type-filter select { height: 44px; padding: 0 14px; border: 1px solid var(--line); background: #fff; color: var(--ink); font: 700 13px Manrope; cursor: pointer; }
.category-page-icon { width: 56px; height: 56px; display: grid; place-items: center; background: var(--ink); color: var(--navy-light); font-size: 26px; flex-shrink: 0; }
.category-page-heading h1 { margin: 0 0 6px; font-size: clamp(26px, 3vw, 38px); letter-spacing: -1.2px; }
.category-page-heading p { margin: 0; color: var(--muted); font-size: 14px; }

/* Global fix: the [hidden] attribute must always win over any explicit
   display property set elsewhere in this stylesheet (author CSS otherwise
   overrides the browser's built-in hidden behavior at equal specificity).
   This has bitten us three times on individual elements - fixing it once, globally. */
[hidden] { display: none !important; }

.sell-founder { margin-top: 32px; padding-top: 26px; border-top: 1px solid var(--line); }
.sell-founder blockquote { margin: 12px 0 0; padding-left: 18px; border-left: 3px solid var(--orange); font: 500 15px/1.7 Georgia, serif; font-style: italic; color: var(--ink); }

.sell-quote { margin: 4px 0 0; font: italic 400 14px/1.6 Georgia, serif; color: #b9c5c0; transition: opacity .3s ease; min-height: 22px; }
.sell-section .sell-quote { color: var(--muted); }

.upload-progress { display: flex; align-items: center; gap: 10px; margin: 4px 0 0; font: 700 12px Manrope; color: var(--muted); }
.spinner { width: 16px; height: 16px; border: 2px solid var(--line); border-top-color: var(--orange); border-radius: 50%; animation: mb-spin 0.8s linear infinite; flex-shrink: 0; }
@keyframes mb-spin { to { transform: rotate(360deg); } }

.brand-logo { height: 46px; width: auto; display: block; }
.footer .brand-logo, footer .brand-logo { height: 38px; }
.brand-logo-full { margin-bottom: 24px; }
.brand-logo-full img { width: 100%; max-width: 440px; height: auto; display: block; }

.pagination { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 40px; }
.page-btn { min-width: 40px; height: 40px; padding: 0 8px; border: 1px solid var(--line); background: #fff; color: var(--ink); font: 700 13px Manrope; cursor: pointer; }
.page-btn:hover { border-color: var(--ink); }
.page-btn.active { background: var(--ink); color: #fff; border-color: var(--ink); }

.dashboard-page { padding: 50px 5vw 100px; }
.dashboard-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 20px; }
.dashboard-card { background: #fff; border: 1px solid var(--line); padding: 24px; }
.dashboard-card .eyebrow { margin-bottom: 18px; }
.dashboard-bars { display: grid; gap: 14px; }
.demand-row { display: grid; grid-template-columns: 1fr; gap: 4px; }
.demand-label { font-size: 13px; font-weight: 700; color: var(--ink); }
.demand-bar-track { height: 8px; background: var(--cream); border: 1px solid var(--line); }
.demand-bar-fill { height: 100%; background: var(--orange); }
.demand-value { font: 700 12px 'DM Mono'; color: var(--muted); }
.dashboard-empty { font-size: 13px; color: var(--muted); font-style: italic; }
.dashboard-note { margin-top: 30px; padding: 14px 18px; border-left: 3px solid var(--orange); background: var(--cream); font-size: 13px; color: var(--muted); }
@media (max-width: 900px) { .dashboard-grid { grid-template-columns: 1fr; } }

.dashboard-tabs { display: flex; gap: 8px; margin-top: 24px; border-bottom: 1px solid var(--line); }
.dashboard-tab { border: 0; background: transparent; padding: 12px 18px; font: 700 13px Manrope; color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.dashboard-tab:hover { color: var(--ink); }
.dashboard-tab.is-active { color: var(--orange); border-bottom-color: var(--orange); }
.dashboard-panel { padding-top: 24px; }

.kpi-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; margin-bottom: 8px; }
.kpi-card { background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--orange); padding: 16px; }
.kpi-card strong { display: block; font-size: 26px; font-weight: 800; color: var(--ink); letter-spacing: -.5px; }
.kpi-card span { font-size: 11.5px; color: var(--muted); font-weight: 600; }

.admin-panel-note { font-size: 12.5px; color: var(--muted); margin: 0 0 16px; }
.admin-filter-row { display: flex; gap: 16px; margin-bottom: 14px; }
.admin-filter-row label { display: flex; flex-direction: column; gap: 4px; font: 700 11px 'DM Mono'; color: var(--muted); }
.admin-filter-row select { padding: 9px 10px; border: 1px solid var(--line); background: #fff; font: 600 12px Manrope; }

.admin-table-wrap { overflow-x: auto; border: 1px solid var(--line); background: #fff; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 12.5px; white-space: nowrap; }
.admin-table th { text-align: left; padding: 10px 14px; background: var(--ink); color: #fff; font-weight: 700; position: sticky; top: 0; }
.admin-table td { padding: 10px 14px; border-bottom: 1px solid var(--line); color: var(--ink); }
.admin-table tr:last-child td { border-bottom: 0; }
.admin-actions { display: flex; gap: 6px; }
.admin-actions button { border: 1px solid var(--line); background: #fff; padding: 5px 9px; font: 700 11px Manrope; cursor: pointer; color: var(--ink); }
.admin-actions button:hover { border-color: var(--orange); color: var(--orange); }

.admin-badge { display: inline-block; padding: 3px 9px; font: 700 10.5px 'DM Mono'; text-transform: uppercase; letter-spacing: .3px; border-radius: 3px; }
.admin-badge-ok { background: #E8EFFE; color: #1D4FC4; }
.admin-badge-danger { background: #fde8e8; color: #c0392b; }
.admin-badge-pending { background: #fff8e1; color: #9a7b0a; }
.admin-badge-info { background: #E0FBFF; color: #0EA5C4; }

.admin-inline-form { display: flex; gap: 10px; margin-bottom: 18px; max-width: 420px; }
.admin-inline-form input { flex: 1; border: 1px solid var(--line); padding: 10px 12px; font: 13px Manrope; }
.admin-category-list { display: grid; gap: 8px; }
.admin-category-row { display: flex; align-items: center; justify-content: space-between; background: #fff; border: 1px solid var(--line); padding: 10px 14px; font-size: 13px; }
.admin-category-row button { border: 1px solid var(--line); background: #fff; padding: 5px 10px; font: 700 11px Manrope; cursor: pointer; color: var(--muted); }
.admin-category-row button:hover { border-color: #c0392b; color: #c0392b; }

/* Mobile audit fixes: prevent header overflow, ensure new components (added after the
   original mobile pass) reflow correctly at narrow widths, and guard against any
   horizontal scroll. Desktop layout, branding, and functionality are unchanged. */
@media (max-width: 480px) {
  .brand-logo { height: 32px; }
  .site-header { padding: 0 4vw; gap: 6px; }
  .location-switcher { font-size: 10px; padding: 7px 8px; }
  #machineSetuHeaderAuth .auth-header-btn { padding: 8px 12px; font-size: 12px; }
}
/* Below ~390px there isn't room for logo + menu + location + login/signup on one
   legible row without clipping. Rather than let flex-wrap break it up at random,
   lay it out as a deliberate two-row grid: row 1 = logo/menu, row 2 = location/auth. */
@media (max-width: 390px) {
  .site-header {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    height: auto;
    padding: 10px 16px;
    row-gap: 8px;
    column-gap: 8px;
  }
  .brand { grid-column: 1; grid-row: 1; }
  .menu-toggle { grid-column: 2; grid-row: 1; justify-self: end; }
  .nav-links { grid-column: 1 / -1; }
  .location-switcher { grid-column: 1; grid-row: 2; justify-self: start; margin-right: 0; }
  #machineSetuHeaderAuth { grid-column: 2; grid-row: 2; justify-self: end; margin-left: 0; }
}
.nav-links.open { top: 100% !important; }

@media (max-width: 700px) {
  .media-actions-tabs { flex-direction: column; }
  .media-tab-btn { border-right: 0; border-bottom: 1px solid var(--line); }
  .media-tab-btn:last-child { border-bottom: 0; }
}

@media (max-width: 560px) {
  #dialogContent { padding: 32px 20px 24px; }
  #dialogContent h2 { font-size: 24px; }
  .notice-contact-card, .legal-notice, .contact-inner { padding-left: 14px; padding-right: 14px; }
}

/* Universal overflow guard */
html, body { max-width: 100%; overflow-x: hidden; }
img, video { max-width: 100%; height: auto; }

/* Welcome popup */
.welcome-overlay { display: none; position: fixed; inset: 0; background: rgba(18,32,31,.55); backdrop-filter: blur(3px); z-index: 999; align-items: center; justify-content: center; padding: 20px; }
.welcome-overlay.show { display: flex; animation: welcomeFadeIn .3s both; }
@keyframes welcomeFadeIn { from { opacity: 0; } to { opacity: 1; } }
.welcome-modal { background: #fff; width: 100%; max-width: 420px; overflow: hidden; box-shadow: 0 30px 70px rgba(0,0,0,.4); position: relative; animation: welcomeModalIn .45s cubic-bezier(.2,.8,.25,1) both; }
@keyframes welcomeModalIn { from { opacity: 0; transform: scale(.88) translateY(18px); } to { opacity: 1; transform: scale(1) translateY(0); } }
.welcome-top { background: linear-gradient(155deg, var(--orange), #1D4FC4); padding: 30px 26px 26px; text-align: center; position: relative; overflow: hidden; }
.welcome-glow { position: absolute; width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,.22), transparent 70%); top: -70px; left: 50%; transform: translateX(-50%); }
.welcome-badge { position: relative; width: 58px; height: 58px; margin: 0 auto 14px; border-radius: 50%; background: rgba(255,255,255,.18); display: flex; align-items: center; justify-content: center; font-size: 28px; }
.welcome-eyebrow { position: relative; font: 800 11px 'DM Mono'; letter-spacing: .18em; text-transform: uppercase; color: #ffe1d2; margin: 0; }
.welcome-top h2 { position: relative; font-weight: 800; font-size: 23px; color: #fff; margin: 8px 0 0; line-height: 1.25; letter-spacing: -.5px; }
.welcome-close { position: absolute; top: 14px; right: 14px; width: 28px; height: 28px; border-radius: 50%; background: rgba(255,255,255,.2); border: 0; color: #fff; font-size: 15px; cursor: pointer; display: flex; align-items: center; justify-content: center; z-index: 2; }
.welcome-close:hover { background: rgba(255,255,255,.32); }
.welcome-content { padding: 24px 26px 26px; }
.welcome-content p { font-size: 14px; color: #333; line-height: 1.6; margin: 0 0 14px; }
.welcome-content p strong { color: var(--ink); }
.welcome-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 18px 0 20px; }
.welcome-stats div { background: #E8EFFE; border: 1px solid #C3D6FB; padding: 10px 4px; text-align: center; }
.welcome-stats strong { display: block; font-weight: 800; font-size: 12.5px; color: #1D4FC4; }
.welcome-stats span { font-size: 9.5px; color: var(--muted); }
.welcome-thanks { display: flex; align-items: center; gap: 8px; background: #f3f8f4; border: 1px solid #d7ebdc; padding: 12px 14px; font-size: 13px; color: #20603a; margin-bottom: 20px; }
.welcome-cta { width: 100%; justify-content: center; }
.welcome-later { display: block; text-align: center; margin-top: 12px; font: 700 12.5px Manrope; color: var(--muted); text-decoration: underline; cursor: pointer; background: none; border: none; width: 100%; padding: 0; }

/* Header search */
.nav-search-wrap { position: relative; display: inline-flex; align-items: center; }
.nav-search-btn { background: none; border: 0; font-size: 15px; cursor: pointer; padding: 4px; }
.nav-search-form { position: absolute; top: calc(100% + 10px); left: 0; z-index: 6; }
.nav-search-form input { width: 220px; height: 40px; padding: 0 14px; border: 1px solid var(--line); background: #fff; color: var(--ink); font: 600 13px Manrope; }
@media (max-width: 760px) {
  .nav-search-form { position: static; margin-top: 10px; }
  .nav-search-form input { width: 100%; }
}

/* Locked price on cards for logged-out visitors */
.price-locked { color: var(--muted) !important; font-size: 12px !important; font-weight: 700 !important; text-transform: uppercase; letter-spacing: .3px; }
.price-locked-detail { display: flex !important; align-items: center; gap: 8px; color: var(--muted) !important; font-size: 15px !important; }
.price-locked-detail button { border: 0; background: var(--orange); color: #fff; width: 24px; height: 24px; border-radius: 50%; cursor: pointer; font-weight: 800; line-height: 1; flex-shrink: 0; }
.price-locked-detail button:hover { background: #1D4FC4; }

/* New hero: Machines. People. Stronger Together. */
.hero-new { background: #1A1D23; overflow: hidden; }
.hero-new-image { line-height: 0; }
.hero-new-image img { width: 100%; height: auto; display: block; }

.hero-new-strip { background: var(--cream); display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px; padding: 40px 5vw; margin-top: 30px; }
.hero-new-strip > div { display: flex; gap: 12px; align-items: flex-start; }
.strip-badge { flex-shrink: 0; width: 40px; height: 40px; border-radius: 50%; background: #E8EFFE; display: flex; align-items: center; justify-content: center; font: 800 12px 'DM Mono'; color: var(--orange); }
.hero-new-strip strong { display: block; font-size: 13px; font-weight: 800; color: var(--ink); margin-bottom: 3px; }
.hero-new-strip p { margin: 0; font-size: 11.5px; line-height: 1.5; color: var(--muted); }

@media (max-width: 980px) {
  .hero-new-strip { grid-template-columns: repeat(2, 1fr); padding: 32px 6vw; }
}

/* Redesigned listing cards */
.section-sub { margin: 8px 0 0; font-size: 13px; color: var(--muted); line-height: 1.5; }
.machine-image { position: relative; }
.card-heart { position: absolute; top: 12px; right: 12px; width: 34px; height: 34px; border-radius: 50%; background: #fff; border: none; font-size: 16px; color: var(--ink); cursor: pointer; display: flex; align-items: center; justify-content: center; z-index: 2; }
.card-heart.is-shortlisted { color: var(--orange); }
.card-location-chip { position: absolute !important; top: auto !important; left: auto !important; right: 10px; bottom: 10px; padding: 5px 10px; background: rgba(15,27,51,.75); color: #fff; font: 700 11px Manrope; z-index: 2; border-radius: 4px; }
.listing-type-badge { position: absolute !important; top: 12px !important; left: 12px !important; right: auto !important; bottom: auto !important; }
.card-price-row { display: flex; align-items: flex-end; justify-content: space-between; margin-top: 10px; }
.card-price-row strong { font-size: 20px; font-weight: 800; color: var(--ink); display: block; }
.price-note { display: block; font-size: 11px; color: var(--muted); margin-top: 2px; }
.view-machine-link { font: 700 12.5px Manrope; color: var(--orange); white-space: nowrap; }

/* Bottom trust strip */
.trust-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 40px; padding: 26px 5vw; border: 1px solid var(--line); }
.trust-strip > div { display: flex; gap: 12px; align-items: flex-start; }
.trust-icon { flex-shrink: 0; font-size: 22px; }
.trust-strip strong { display: block; font-size: 13.5px; font-weight: 800; color: var(--ink); margin-bottom: 3px; }
.trust-strip p { margin: 0; font-size: 12px; line-height: 1.5; color: var(--muted); }

@media (max-width: 760px) {
  .trust-strip { grid-template-columns: 1fr 1fr; padding: 20px 6vw; }
}

/* How It Works redesign */
.how-it-works-new { padding: 60px 5vw; }
.hiw-top { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: center; margin-bottom: 40px; }
.hiw-intro .eyebrow { color: var(--orange); font-weight: 800; margin-bottom: 8px; }
.hiw-intro h2 { margin: 0; font-size: 36px; font-weight: 800; letter-spacing: -1.2px; line-height: 1.15; color: var(--ink); }
.hiw-intro h2 em { color: var(--orange); font-style: normal; }
.hiw-sub { margin: 14px 0 0; font-size: 14px; line-height: 1.6; color: var(--muted); max-width: 440px; }

.hiw-cycle { position: relative; display: grid; grid-template-columns: 1fr 60px 1fr; grid-template-rows: 1fr 60px 1fr; place-items: center; max-width: 360px; margin: 0 auto; }
.hiw-cycle-node { display: flex; flex-direction: column; align-items: center; gap: 6px; background: #fff; border: 1px solid var(--line); border-radius: 50%; width: 90px; height: 90px; justify-content: center; box-shadow: 0 4px 14px rgba(0,0,0,.06); }
.hiw-cycle-icon { font-size: 20px; }
.hiw-cycle-node strong { font: 800 10px 'DM Mono'; letter-spacing: .5px; color: var(--ink); }
.hiw-cycle-center { grid-column: 2; grid-row: 2; width: 64px; height: 64px; border-radius: 50%; background: var(--ink); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.hiw-cycle-center img { width: 40px; height: auto; filter: brightness(0) invert(1); }
.hiw-cycle-node:nth-of-type(1) { grid-column: 1; grid-row: 1; }
.hiw-cycle-arrow { font-size: 20px; color: var(--orange); font-weight: 800; }
.hiw-arrow-1 { grid-column: 2; grid-row: 1; }
.hiw-arrow-2 { grid-column: 1; grid-row: 2; }
.hiw-arrow-3 { grid-column: 3; grid-row: 2; }
.hiw-arrow-4 { grid-column: 2; grid-row: 3; }

.hiw-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.hiw-column { border: 1px solid var(--line); }
.hiw-col-header { display: flex; gap: 14px; align-items: center; padding: 22px 24px; color: #fff; }
.hiw-col-header.hiw-buyers { background: #1A1D23; }
.hiw-col-header.hiw-sellers { background: var(--orange); }
.hiw-col-icon { font-size: 24px; flex-shrink: 0; }
.hiw-col-label { margin: 0 0 4px; font: 800 11px 'DM Mono'; letter-spacing: .6px; opacity: .85; }
.hiw-col-header h3 { margin: 0; font-size: 18px; font-weight: 800; line-height: 1.25; }

.hiw-steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; padding: 24px; position: relative; }
.hiw-step { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; position: relative; }
.hiw-step-num { width: 22px; height: 22px; border-radius: 50%; background: var(--ink); color: #fff; font: 800 11px 'DM Mono'; display: flex; align-items: center; justify-content: center; }
.hiw-step-icon { font-size: 22px; width: 50px; height: 50px; border-radius: 50%; background: var(--cream); display: flex; align-items: center; justify-content: center; margin: 2px 0; }
.hiw-step strong { font-size: 12px; font-weight: 800; color: var(--ink); }
.hiw-step p { margin: 0; font-size: 10.5px; line-height: 1.4; color: var(--muted); }

.hiw-highlight { display: flex; gap: 12px; align-items: center; margin: 0 24px 24px; padding: 16px 18px; background: #E8EFFE; border: 1px solid #C3D6FB; }
.hiw-highlight-icon { font-size: 22px; font-weight: 800; color: var(--orange); flex-shrink: 0; }
.hiw-highlight strong { display: block; font-size: 13.5px; font-weight: 800; color: var(--ink); margin-bottom: 2px; }
.hiw-highlight p { margin: 0; font-size: 12px; color: var(--muted); }

.hiw-trust-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 28px; padding: 26px 5vw; border: 1px solid var(--line); }
.hiw-trust-strip > div { display: flex; gap: 12px; align-items: flex-start; }
.hiw-trust-icon { flex-shrink: 0; width: 40px; height: 40px; border-radius: 50%; background: #1A1D23; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 16px; }
.hiw-trust-strip strong { display: block; font-size: 13.5px; font-weight: 800; color: var(--ink); margin-bottom: 3px; }
.hiw-trust-strip p { margin: 0; font-size: 12px; line-height: 1.5; color: var(--muted); }

@media (max-width: 980px) {
  .hiw-top { grid-template-columns: 1fr; }
  .hiw-columns { grid-template-columns: 1fr; }
  .hiw-steps { grid-template-columns: repeat(2, 1fr); }
  .hiw-trust-strip { grid-template-columns: 1fr; padding: 20px 6vw; }
}

/* ==========================================================================
   MOBILE / TABLET UI-UX REFINEMENT
   Desktop layout (min-width: 981px) is untouched. Everything below only
   reshapes spacing, sizing and grid columns for tablet (761px-1024px) and
   phone (<=760px) widths. No HTML/JS structure, copy, colors, branding,
   business logic, filtering, auth or listing behaviour is changed here.
   ========================================================================== */

/* ---- Global: touch targets, overflow safety, section rhythm ---- */
@media (max-width: 760px) {
  a, button, select, input, .button, .text-link { -webkit-tap-highlight-color: rgba(0,0,0,.06); }
  .button, .text-link, .page-btn, .menu-toggle,
  .auth-header-btn, .location-switcher, .shortlist-btn, .whatsapp-btn { min-height: 44px; }
  /* card-heart and category-tile are icon/card buttons sized in their own
     sections below — excluded here so a blanket min-height doesn't turn
     the circular heart button into an oval. */

  /* The desktop .section rule (75px 7vw) stacks into a lot of dead air once
     several sections sit on top of each other on a phone. Tighten the rhythm
     without touching any section's internal (already-responsive) layout. */
  .section { padding: 48px 16px; }
  .section-heading { margin-bottom: 26px; }
  .section h2, .sell-section h2 { font-size: clamp(26px, 7.5vw, 34px); letter-spacing: -1px; }
}
@media (max-width: 480px) {
  .section { padding: 36px 16px; }
}

/* ---- 1. Header (see also the 390px grid rule above) ---- */
@media (max-width: 760px) {
  .site-header { padding: 0 16px; gap: 10px; }
  .nav-links { padding: 18px 16px; }
  .location-switcher { padding: 9px 12px; gap: 5px; }
  #machineSetuHeaderAuth { gap: 8px; }
  #machineSetuHeaderAuth .auth-header-btn { padding: 9px 14px; }
  .menu-toggle { min-width: 44px; display: flex; align-items: center; justify-content: center; }
}

/* ---- 2. Hero ----
   The source banner (hero-full.webp) is a wide ~1.8:1 image with the
   MachineSetu wordmark/headline in its left third and the photo collage
   filling the rest. Scaling it with height:auto alone leaves a very thin
   strip on narrow phones (the "compressed" look). A mild aspect-ratio +
   object-fit:cover crop, anchored left so the headline/text zone is never
   cut, gives it real presence on mobile without distorting or hiding
   any of the wordmark/copy baked into the artwork. */
@media (max-width: 760px) {
  .hero-new-image img { width: 100%; height: auto; display: block; aspect-ratio: 4 / 3; object-fit: cover; object-position: left center; }
  .hero-new-strip { grid-template-columns: 1fr 1fr; gap: 18px 16px; padding: 26px 16px; margin-top: 0; }
  .hero-new-strip > div { align-items: center; }
  .strip-badge { width: 34px; height: 34px; }
  .hero-new-strip strong { font-size: 12.5px; }
  .hero-new-strip p { font-size: 11px; }
}
@media (max-width: 480px) {
  .hero-new-strip { grid-template-columns: 1fr; gap: 14px; }
  .hero-new-strip > div { align-items: flex-start; }
}

/* ---- 3. Search / filter panel ---- */
@media (max-width: 760px) {
  .search-panel { padding: 18px 16px; }
  .filters { gap: 14px; }
  .filters label { font-size: 10.5px; }
  .filters select, .filters input[type="search"] { height: 46px; padding: 0 12px; }
  .filters .button { height: 46px; }
}

/* ---- 4. Category section ---- */
@media (max-width: 760px) {
  .category-strip { padding: 30px 16px; }
  .category-strip-intro h2 { font-size: clamp(22px, 7vw, 28px); }
  .category-strip-sub { margin: 8px 0 16px; }
  .category-chips { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .category-tile { padding: 10px 6px 12px; border-radius: 8px; }
  .category-tile-thumb { width: 52px; height: 52px; }
  .category-tile-name { font-size: 11.5px; }
}
@media (min-width: 761px) and (max-width: 1024px) {
  .category-chips { grid-template-columns: repeat(4, 1fr); }
}
/* Category artwork varies in source aspect ratio; contain (rather than cover)
   stops it being cropped/distorted inside the small mobile tile, at the cost
   of a little consistent cream padding around non-square images. Scoped to
   tablet/mobile only so desktop's existing look is untouched. */
@media (max-width: 1024px) {
  .category-tile-thumb img { object-fit: contain; }
}

/* ---- 5. "Just Listed" machine cards ---- */
@media (max-width: 760px) {
  .machine-grid { gap: 16px; }
  .machine-image { height: 180px; }
  .card-details { padding: 16px; }
  .tag { font-size: 10.5px; }
  .card-details h3 { font-size: 16px; margin: 7px 0 14px; }
  .card-price-row strong { font-size: 18px; }
  .card-heart { width: 38px; height: 38px; top: 10px; right: 10px; }
  .card-location-chip { font-size: 10.5px; padding: 4px 8px; }
}
@media (min-width: 761px) and (max-width: 1024px) {
  .machine-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---- 6. How it works ---- */
@media (max-width: 760px) {
  .how-it-works-new { padding: 44px 16px; }
  .hiw-intro h2 { font-size: clamp(24px, 7.5vw, 30px); }
  .hiw-cycle { max-width: 300px; margin-top: 10px; }
  .hiw-cycle-node { width: 78px; height: 78px; }
  .hiw-cycle-center { width: 54px; height: 54px; }
  .hiw-col-header { padding: 18px 18px; }
  .hiw-steps { grid-template-columns: repeat(2, 1fr); gap: 20px 12px; padding: 20px 16px; }
  .hiw-highlight { margin: 0 16px 20px; }
  .hiw-trust-strip { padding: 22px 16px; gap: 16px; }
}
@media (max-width: 420px) {
  /* Below ~420px, a 2-up card grid gets cramped. Switch each step to a
     left-aligned timeline row instead: number + icon on the left,
     title/description stacked on the right — using CSS grid placement
     only, the step markup itself is untouched. */
  .hiw-steps { grid-template-columns: 1fr; gap: 16px; text-align: left; }
  .hiw-step {
    display: grid;
    grid-template-columns: auto auto 1fr;
    grid-template-rows: auto auto;
    align-items: center;
    column-gap: 10px;
    text-align: left;
  }
  .hiw-step-num { grid-column: 1; grid-row: 1 / 3; }
  .hiw-step-icon { grid-column: 2; grid-row: 1 / 3; margin: 0; }
  .hiw-step strong { grid-column: 3; grid-row: 1; }
  .hiw-step p { grid-column: 3; grid-row: 2; text-align: left; }
}

/* ---- 7 & 8. Mission / Vision / Founder's Words ---- */
@media (max-width: 760px) {
  .sell-section { padding: 48px 16px; gap: 8px; }
  .brand-logo-full { margin-bottom: 18px; }
  .sell-mission, .sell-vision, .sell-founder { margin-top: 24px; padding-top: 20px; }
  .sell-mission h3, .sell-vision h3 { font-size: clamp(20px, 6.5vw, 24px); line-height: 1.3; margin: 8px 0 12px; }
  .sell-mission > p, .sell-vision > p { font-size: 14px; line-height: 1.65; max-width: 46ch; }
  .mission-list { gap: 14px; }
  .mission-list li { font-size: 13.5px; line-height: 1.6; }
  .sell-founder blockquote { font-size: 14.5px; line-height: 1.68; padding-left: 15px; }
}

/* ---- Sell form / "free to list" ---- */
@media (max-width: 760px) {
  .sell-section .fee-card { padding: 20px 22px; }
  .sell-section .fee-card strong { font-size: 36px; }
  #sellGate { padding: 28px 22px; }
  #enquiryForm { gap: 12px; }
}

/* ---- Footer ---- */
@media (max-width: 760px) {
  footer { padding: 24px 16px; }
  .footer-legal-links { gap: 16px; flex-wrap: wrap; }
}

/* ---- Listing detail dialog (gallery, info chips, contact) ---- */
@media (max-width: 480px) {
  .detail-info-row { gap: 8px; }
  .info-chip { min-width: calc(50% - 4px); padding: 10px 12px; }
  .contact-actions .button { min-width: 100%; }
}

/* ---- Admin two-factor (Google Authenticator) dialog ---- */
#mfaDialog { max-width: 420px; }
.mfa-qr-wrap { display: grid; justify-items: center; gap: 10px; margin: 18px 0 22px; padding: 18px; border: 1px solid var(--line); background: var(--cream); }
.mfa-qr-wrap img { width: 180px; height: 180px; background: #fff; padding: 8px; border: 1px solid var(--line); }
.mfa-secret { margin: 0; font-size: 12px; color: var(--muted); text-align: center; line-height: 1.6; }
.mfa-secret code { display: inline-block; margin-top: 4px; padding: 3px 8px; background: #fff; border: 1px solid var(--line); font: 700 12px 'DM Mono'; letter-spacing: .5px; word-break: break-all; }
#mfaForm input { text-align: center; letter-spacing: 4px; font: 700 18px 'DM Mono'; }

/* ---- Category-specific posting form (Software & Services / Maintenance & Repairs) ---- */
.sell-section .multi-check-group { display: flex; flex-wrap: wrap; gap: 8px 14px; margin: 2px 0 4px; }
.sell-section .inline-check-row { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 2px 0 4px; }
.sell-section .multi-check-item { display: inline-flex; align-items: center; gap: 6px; font: 500 12px Manrope; color: #c6d0cc; letter-spacing: 0; }
.sell-section .multi-check-item input[type="checkbox"] { width: 15px; height: 15px; margin: 0; accent-color: var(--orange); cursor: pointer; flex-shrink: 0; }
@media (max-width: 480px) {
  .sell-section .multi-check-group, .sell-section .inline-check-row { gap: 8px 14px; }
}
.visually-hidden-select { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.listing-type-toggle { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.listing-type-btn { border: 1px solid #53625d; background: transparent; color: #c6d0cc; padding: 13px 10px; font: 700 13px Manrope; letter-spacing: 0; cursor: pointer; transition: .18s; text-align: center; }
.listing-type-btn:hover { border-color: var(--navy-light); color: #fff; }
.listing-type-btn.is-active { background: var(--navy-light); border-color: var(--navy-light); color: var(--ink); }

/* SEO landing page content (category & location pages) */
.seo-content { max-width: 920px; margin: 0 auto; padding: 28px 5vw 0; }
.seo-breadcrumb { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font: 500 11px 'DM Mono'; color: var(--muted); margin-bottom: 18px; }
.seo-breadcrumb a { color: var(--orange); }
.seo-breadcrumb span[aria-current] { color: var(--ink); font-weight: 700; }
.seo-intro h1 { font-size: clamp(26px,3.2vw,40px); letter-spacing: -1.4px; line-height: 1.1; margin: 0 0 14px; }
.seo-intro p { font-size: 15px; line-height: 1.7; color: var(--muted); max-width: 760px; }
.seo-content h2 { font-size: 20px; letter-spacing: -.5px; margin: 32px 0 12px; }
.seo-list { margin: 0 0 8px; padding-left: 20px; display: grid; gap: 6px; font-size: 14px; line-height: 1.6; color: var(--ink); }
.seo-crosslinks { margin-top: 28px; }
.seo-link-row { display: flex; flex-wrap: wrap; gap: 10px; }
.seo-link-row a { display: inline-block; padding: 8px 14px; border: 1px solid var(--line); border-radius: 20px; font: 600 12px Manrope; color: var(--ink); background: #fff; transition: .15s; }
.seo-link-row a:hover { border-color: var(--orange); color: var(--orange); }
.seo-faq { margin-top: 28px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.seo-faq-item { margin-bottom: 16px; }
.seo-faq-item h3 { font-size: 14.5px; margin: 0 0 4px; }
.seo-faq-item p { font-size: 13.5px; color: var(--muted); line-height: 1.65; margin: 0; }
@media (max-width: 760px) { .seo-content { padding: 22px 7vw 0; } }

/* Auth loading (login / signup) */
.button.is-loading { position: relative; color: transparent !important; pointer-events: none; opacity: .85; }
.button.is-loading::after {
  content: '';
  position: absolute;
  left: 50%; top: 50%;
  width: 16px; height: 16px;
  margin: -8px 0 0 -8px;
  border: 2px solid rgba(255,255,255,.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: authSpin .7s linear infinite;
}
@keyframes authSpin { to { transform: rotate(360deg); } }

.auth-loading-overlay {
  position: fixed; inset: 0; z-index: 999;
  display: flex; align-items: center; justify-content: center;
  background: rgba(26,29,35,.94);
  backdrop-filter: blur(2px);
}
.auth-loading-box { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.auth-spinner {
  width: 40px; height: 40px;
  border: 3px solid rgba(255,255,255,.25);
  border-top-color: var(--navy-light);
  border-radius: 50%;
  animation: authSpin .8s linear infinite;
}
.auth-loading-box p { margin: 0; color: #fff; font: 700 14px Manrope; letter-spacing: -.2px; }

