/* Machine.nl design foundation: public site, Partner Portal and Keetels Admin. */

:root {
    --dark: #101c25;
    --dark-light: #1b2a35;
    --orange: #f36c21;
    --orange-hover: #d85612;
    --white: #fff;
    --light: #f3f4f2;
    --grey: #586872;
    --border: #dce2e6;
    --font-sans: "Segoe UI",Arial,Helvetica,sans-serif;
    --space-sm: 12px;
    --space-md: 24px;
    --space-lg: 40px;
    --content-width: 1400px;
    --sidebar-width: 236px;
    --radius: 0;
    --shadow: none;
    --input-border: #b9c5ce;
    --logo-height: 88px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-sans);
    color: var(--dark);
    background: var(--light);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

[hidden] {
    display: none!important;
}

a {
    color: inherit;
    text-underline-offset: 4px;
}

img {
    max-width: 100%;
}

button,input,select,textarea {
    font: inherit;
}

button,a,input,select,textarea {
    -webkit-tap-highlight-color: transparent;
}

:focus-visible {
    outline: 2px solid var(--orange);
    outline-offset: 4px;
}

input,select,textarea {
    min-width: 0;
    border-radius: 0;
}

h1,h2,h3 {
    line-height: 1.15;
    letter-spacing: -.025em;
}

h1 {
    font-size: clamp(34px,4vw,54px);
}

h2 {
    font-size: clamp(28px,3vw,40px);
}

h3 {
    font-size: 20px;
}

p {
    line-height: 1.7;
}

.container {
    width: min(var(--content-width),calc(100% - 64px));
    margin-inline: auto;
}

.header {
    background: var(--white);
    border-bottom: 1px solid var(--border);
}

.navigation {
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.logo,.footer-logo,.partner-logo,.admin-logo,.recovery-brand {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
}

.brand-image {
    display: block;
    width: auto;
    height: var(--logo-height);
    max-width: 100%;
    object-fit: contain;
}

/* A plain white mount preserves the original dark logo on dark surfaces. */
.partner-logo,.admin-logo,.auth-brand,.recovery-brand {
    background: var(--white);
    padding: 10px 12px;
    border-radius: 0;
    box-shadow: none;
}

.partner-logo .brand-image,.admin-logo .brand-image,.auth-brand .brand-image,.recovery-brand .brand-image {
    height: var(--logo-height);
}

.nav-links,.nav-actions {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav-links a,.nav-actions>a:not(.button) {
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
}

.nav-links a:hover,.nav-actions>a:not(.button):hover {
    color: var(--orange-hover);
}

.button,.login-submit,.register-submit,.submit-button,.submit-machine,.dashboard-primary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 12px 22px;
    border: 1px solid var(--orange);
    background: var(--orange);
    color: var(--dark);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    border-radius: 0;
    line-height: 1.4;
    gap: 8px;
}

.button:hover,.login-submit:hover,.register-submit:hover,.submit-button:hover,.submit-machine:hover,.dashboard-primary-button:hover {
    background: var(--orange-hover);
    border-color: var(--orange-hover);
    color: white;
}

.button-small {
    min-height: 44px;
    padding: 10px 16px;
}

.button-secondary {
    background: transparent;
    border-color: #53616c;
    color: white;
}

.button-secondary:hover {
    background: white;
    color: var(--dark);
    border-color: white;
}

.button-full {
    width: 100%;
}

button:disabled {
    opacity: .6;
    cursor: wait;
}

.eyebrow,.section-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    color: var(--grey);
    margin-bottom: 18px;
}

.text-link {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.text-link:hover {
    text-decoration: underline;
}

.footer-logo .brand-image {
    height: 68px;
}
.nav-links .nav-sell {
    background: var(--orange);
    color: var(--dark);
    padding: 12px 18px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
}
.nav-links .nav-sell:hover {
    background: var(--orange-hover);
    color: white;
}
.portal-entry {
    border: 1px solid var(--border);
    padding: 11px 16px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
}
.hero-layout {
    display: grid;
    grid-template-columns: minmax(0,1fr) minmax(0,1.08fr);
    gap: 48px;
    align-items: center;
}
.hero-copy {
    min-width: 0;
}
.hero-machine {
    min-width: 0;
    background: #263641;
}
.hero-machine-link {
    display: block;
    position: relative;
    aspect-ratio: 4/3;
    text-decoration: none;
}
.hero-machine-image {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}
.hero-machine-caption {
    position: absolute;
    inset: auto 0 0;
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    background: var(--dark);
    color: white;
    font-size: 12px;
}
.hero-machine-name {
    font-weight: 600;
}
.hero-machine-empty {
    height: 100%;
    padding: 36px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 20px;
    border: 1px solid #46515b;
}
.hero-machine-empty strong {
    font-size: clamp(24px,3vw,36px);
    line-height: 1.2;
}
.hero-machine-empty .eyebrow {
    margin: 0;
}
.usp-grid strong:last-child {
    border-right: 0;
}
.seller-section {
    background: var(--dark);
    color: white;
    padding: 88px 0;
}
.sell-section-layout {
    display: grid;
    grid-template-columns: minmax(0,1fr) minmax(0,1fr);
    gap: 100px;
    align-items: start;
}
.sell-section-intro {
    max-width: 560px;
}
.seller-section .eyebrow, .seller-section .section-lead, .seller-section .process-grid p {
    color: #bbc6cf;
}
.process-grid p {
    grid-column: 2;
}
.machine-brand {
    display: block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--grey);
    margin-bottom: 7px;
}
.machine-model {
    display: block;
}
.network-partners h2 {
    font-size: clamp(24px,2.5vw,32px);
}

.network-hero {
    background: var(--dark);
    color: white;
    padding: 56px 0 48px;
}

.network-hero .eyebrow {
    color: #abb8c0;
}

.network-hero h1 {
    font-size: clamp(42px,4.25vw,64px);
    max-width: 690px;
    line-height: 1.08;
    letter-spacing: -.045em;
}

.hero-text {
    color: #c0cbd2;
    font-size: 18px;
    margin: 26px 0 30px;
    max-width: 470px;
}

.hero-buttons {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.hero-baseline {
    display: flex;
    gap: 28px;
    margin-top: 36px;
    padding: 20px 0 0;
    border-top: 1px solid #35434e;
    color: #98a8b3;
    font-size: 10px;
    letter-spacing: 1.6px;
}

.network-usps {
    border-bottom: 1px solid var(--border);
}

.usp-grid {
    display: grid;
    grid-template-columns: repeat(4,minmax(0,1fr));
    gap: 0;
    padding: 22px 0;
}

.usp-grid strong {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1.1px;
    text-align: center;
    padding: 0 12px;
    border-right: 1px solid var(--border);
}

.editorial-section,.machines-section {
    padding: 88px 0;
}

.machines-section {
    background: var(--light);
    border-block: none;
}

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

.section-heading>p {
    max-width: 400px;
    color: var(--grey);
}

.process-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    list-style: none;
    margin: 0;
}

.process-grid li {
    border-top: 1px solid #46515b;
    padding-top: 22px;
    display: grid;
    grid-template-columns: 40px minmax(0,1fr);
    column-gap: 20px;
    padding: 22px 0;
}

.process-grid span {
    color: #a7b4be;
    font-size: 13px;
    font-weight: 700;
    padding-top: 2px;
}

.process-grid h3 {
    font-size: 19px;
    margin: 0 0 8px;
}

.process-grid p,.expertise-grid p {
    color: var(--grey);
    font-size: 16px;
}

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

.machine-card {
    border: 0;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    background: transparent;
    min-width: 0;
}

.machine-info {
    padding: 22px 0 0;
    display: flex;
    flex-direction: column;
}

.machine-info h3 {
    font-size: 24px;
    margin: 0 0 12px;
    order: -1;
}

.machine-meta {
    display: flex;
    gap: 16px;
    font-size: 12px;
    font-weight: 400;
    color: var(--grey);
    letter-spacing: .5px;
}

.why-grid {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 80px;
}

.expertise-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 34px;
}

.expertise-grid article {
    border-top: 1px solid var(--border);
    padding-top: 22px;
}

.expertise-grid h3 {
    margin-bottom: 12px;
    font-size: 18px;
}

.section-lead {
    margin: 24px 0;
    max-width: 420px;
    color: var(--grey);
}

.prose p {
    margin-bottom: 24px;
    color: var(--grey);
}

.prose h3 {
    margin: 32px 0 16px;
}

.network-partners {
    background: var(--dark);
    color: white;
    padding: 44px 0;
}

.network-partners>.container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 50px;
}

.network-partners p {
    max-width: 520px;
    margin-top: 12px;
    color: #becad2;
}

.network-partners .eyebrow {
    color: #aab9c3;
}

.site-footer {
    background: var(--light);
    color: var(--dark);
    border-top: 1px solid var(--border);
    padding: 40px 0 20px;
}

.footer-main {
    display: grid;
    grid-template-columns: 1.7fr 1fr 1fr 1fr;
    gap: 32px;
    padding-bottom: 24px;
}

.footer-brand p {
    font-size: 13px;
    color: var(--grey);
    margin: 12px 0 0;
}

.footer-powered {
    font-size: 11px;
    color: #8da0ad;
}

.footer-column h3 {
    font-size: 12px;
    margin-bottom: 12px;
    letter-spacing: 0;
}

.footer-column a {
    display: block;
    color: var(--grey);
    font-size: 12px;
    text-decoration: none;
    margin: 7px 0;
}

.footer-column a:hover {
    color: var(--orange-hover);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    border-top: 1px solid var(--border);
    padding-top: 16px;
    color: var(--grey);
    font-size: 11px;
}

@media(max-width:1100px) {
    .navigation {
        gap: 20px;
        min-height: 80px;
    }

    .nav-links,.nav-actions {
        gap: 18px;
    }

    .why-grid {
        gap: 40px;
    }
}

@media(max-width:900px) {
    .hero-layout,.sell-section-layout {
        grid-template-columns: 1fr;
        gap: 36px;
    }
    .hero-copy {
        max-width: 680px;
    }
    .hero-machine-link {
        aspect-ratio: 16/9;
    }
    .navigation {
        flex-wrap: wrap;
        padding: 20px 0;
        gap: 18px;
        min-height: 80px;
    }

    .nav-links {
        order: 3;
        width: 100%;
        padding-top: 16px;
        border-top: 1px solid var(--border);
    }

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

    .process-grid {
        grid-template-columns: 1fr;
        gap: 0;
        margin: 0;
    }

    .why-grid {
        grid-template-columns: 1fr;
    }

    .section-heading {
        align-items: start;
        gap: 24px;
    }

    .network-partners>.container {
        align-items: start;
        flex-direction: column;
    }

    .footer-main {
        grid-template-columns: 1.4fr 1fr;
        gap: 24px;
        padding-bottom: 24px;
    }
}

@media(max-width:550px) {
    .seller-section {
        padding: 56px 0;
    }
    .hero-machine-link {
        aspect-ratio: 4/3;
    }
    .hero-machine-caption {
        font-size: 11px;
        padding: 12px;
    }
    .hero-machine-empty {
        padding: 24px;
    }
    .nav-links a {
        display: inline-flex;
        align-items: center;
        min-height: 44px;
    }
    .nav-links .nav-sell {
        padding: 10px;
    }
    .usp-grid strong:nth-child(2) {
        border-right: 0;
    }
    .container {
        width: calc(100% - 36px);
    }

    .navigation {
        gap: 14px;
        min-height: 80px;
    }

    .logo {
        font-size: 25px;
    }

    .nav-actions {
        margin-left: auto;
    }

    .nav-actions .button {
        display: none;
    }

    .nav-links {
        justify-content: space-between;
        gap: 12px;
    }

    .nav-links a {
        font-size: 12px;
    }

    .network-hero {
        padding: 40px 0;
    }

    .network-hero h1 {
        font-size: clamp(42px,4.25vw,64px);
        letter-spacing: -.045em;
        max-width: 690px;
        line-height: 1.08;
    }

    .hero-text {
        font-size: 16px;
        max-width: 470px;
        margin: 26px 0 30px;
    }

    .hero-baseline {
        gap: 28px;
        font-size: 8px;
        margin-top: 36px;
        padding: 20px 0 0;
    }

    .usp-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0;
        padding: 22px 0;
    }

    .usp-grid strong {
        font-size: 9px;
        letter-spacing: 1px;
        text-align: center;
        padding: 10px 8px;
        border-right: 1px solid var(--border);
    }

    .editorial-section,.machines-section {
        padding: 56px 0;
    }

    .section-heading {
        flex-direction: column;
    }

    .process-grid {
        gap: 0;
        grid-template-columns: 1fr;
        margin: 0;
    }

    .process-grid h3 {
        font-size: 19px;
        margin: 0 0 8px;
    }

    .machine-grid {
        grid-template-columns: 1fr;
    }

    .expertise-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .footer-main {
        grid-template-columns: repeat(3,minmax(0,1fr));
        gap: 20px;
        padding-bottom: 24px;
    }

    .footer-brand {
        grid-column: 1/-1;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 8px;
        padding-top: 16px;
        border-top: 1px solid var(--border);
        color: var(--grey);
    }
}

/* SELL MACHINE PAGE */

.sell-hero {
    background: #f5f6f7;
    min-height: calc(100vh - 80px);
}

.sell-hero-grid {
    display: grid;
    align-items: start;
}

.sell-intro {
    position: sticky;
}

.sell-intro h1 {
    margin: 25px 0 30px;
    color: #101922;
}

.sell-intro h1 span {
    display: block;
}

.sell-lead {
    font-size: 18px;
    line-height: 1.7;
    color: #596a79;
    max-width: 520px;
}

.sell-benefits {
    margin-top: 55px;
    border-top: 1px solid #d6dce0;
}

.sell-benefits > div {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 22px 0;
    border-bottom: 1px solid #d6dce0;
}

.sell-benefits strong {
    color: #101922;
    font-size: 16px;
}

.sell-benefits span {
    color: #647482;
    font-size: 14px;
}

/* FORM */

.form-heading {
    display: flex;
    gap: 25px;
}

.form-heading > span,
.form-section-title > span {
    color: #ff681c;
    font-weight: 800;
    font-size: 13px;
}

.form-heading h2 {
    margin: 8px 0 10px;
}

.form-heading p {
    color: #b8c2ca;
    line-height: 1.6;
    margin: 0;
}

.machine-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.form-group label {
    font-size: 13px;
    font-weight: 700;
}

.form-group input,
.form-group textarea {
    width: 100%;
    box-sizing: border-box;
    background: #17232d;
    border: 1px solid #34434f;
    color: white;
    padding: 16px 17px;
    font-family: inherit;
    font-size: 15px;
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #ff681c;
}

.form-group textarea {
    resize: vertical;
}

/* PHOTO UPLOAD */

.upload-box {
    position: relative;
    border: 1px dashed #52616d;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.upload-box input {
    margin-bottom: 10px;
}

.upload-box span {
    color: #9ba8b2;
    font-size: 13px;
}

/* CONTACT DETAILS */

.form-divider {
    height: 1px;
    margin: 20px 0;
}

.form-section-title {
    display: flex;
    gap: 25px;
    margin-bottom: 10px;
}

.form-section-title h3 {
    font-size: 25px;
    margin: 7px 0 0;
}

/* SUBMIT */

.submit-machine {
    margin-top: 15px;
    background: #ff681c;
    color: white;
    border: 0;
    padding: 19px 25px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
}

.submit-machine:hover {
    background: #e95a12;
}

.form-note {
    text-align: center;
    color: #9ba8b2;
    font-size: 12px;
    margin: 0;
}

/* MOBILE */

@media (max-width: 900px) {
    .sell-hero {
        padding: 50px 0;
    }

    .sell-hero-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .sell-intro {
        position: static;
    }

    .sell-intro h1 {
        font-size: 46px;
    }

    .machine-form-card {
        padding: 30px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }
}

.form-group select {
    width: 100%;
    box-sizing: border-box;
    background: #17232d;
    border: 1px solid #34434f;
    color: white;
    padding: 16px 17px;
    font-family: inherit;
    font-size: 15px;
    outline: none;
}

.form-group select:focus {
    border-color: #ff681c;
}

/* MACHINE SUBMISSION SUCCESS */

.submission-success {
    display: none;
    text-align: left;
}

.submission-success.is-visible {
    display: block;
}

.success-check {
    width: 58px;
    height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 35px;
}

.submission-success h2 {
    font-size: 38px;
    line-height: 1.15;
    letter-spacing: -1px;
    margin: 12px 0 20px;
    color: #ffffff;
}

.success-text {
    color: #b8c2ca;
    font-size: 16px;
    line-height: 1.7;
    max-width: 620px;
    margin-bottom: 45px;
}

.success-next {
    border-top: 1px solid #34434f;
    margin-top: 35px;
}

.success-next-title {
    color: #8f9ca6;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.5px;
    padding: 25px 0 15px;
}

.success-step {
    display: grid;
    grid-template-columns: 45px 1fr;
    gap: 15px;
    padding: 20px 0;
    border-bottom: 1px solid #34434f;
}

.success-step > span {
    color: #ff681c;
    font-size: 12px;
    font-weight: 800;
}

.success-step strong {
    display: block;
    color: #ffffff;
    font-size: 15px;
    margin-bottom: 6px;
}

.success-step p {
    color: #8f9ca6;
    font-size: 13px;
    line-height: 1.5;
    margin: 0;
}

.success-home {
    display: inline-block;
    margin-top: 35px;
    background: #ff681c;
    color: #ffffff;
    text-decoration: none;
    padding: 17px 25px;
    font-size: 14px;
    font-weight: 800;
}

.success-home:hover {
    background: #e95a12;
}

.success-brand {
    margin-top: 50px;
    padding-top: 25px;
    border-top: 1px solid #34434f;
}

.success-brand strong {
    font-size: 18px;
    letter-spacing: -0.5px;
}

.success-brand strong span {
    color: #ff681c;
}

.success-brand p {
    color: #788793;
    font-size: 12px;
    margin: 6px 0 0;
}

/* MACHINE PHOTO PREVIEW */

.photo-preview-area {
    display: none;
    margin-top: 18px;
}

.photo-preview-area.is-visible {
    display: block;
}

.photo-preview-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 12px;
}

.photo-preview-header span {
    color: #aeb9c2;
    font-size: 12px;
    font-weight: 700;
}

.clear-photos {
    border: 0;
    background: transparent;
    color: #ff681c;
    font-family: inherit;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    padding: 0;
}

.clear-photos:hover {
    text-decoration: underline;
}

.photo-preview-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.photo-preview-item {
    position: relative;
    aspect-ratio: 1 / 1;
    border: 1px solid #34434f;
    overflow: hidden;
}

.photo-preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.photo-preview-file {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 10px;
    font-size: 11px;
    line-height: 1.4;
}

.photo-preview-file strong {
    color: #ffffff;
    font-size: 20px;
    margin-bottom: 6px;
}

.remove-photo {
    position: absolute;
    top: 7px;
    right: 7px;
    width: 27px;
    height: 27px;
    border: 0;
    background: rgba(9, 20, 28, 0.88);
    color: #ffffff;
    font-size: 17px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.remove-photo:hover {
    background: #ff681c;
}

@media (max-width: 700px) {
    .photo-preview-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.website-field {
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* =========================================
   MACHINES PAGE
========================================= */

.machines-page-hero {
    background: #101c25;
    color: #ffffff;
}

.machines-page-hero h1 {
    max-width: 850px;
    margin: 14px 0 20px;
    line-height: 1.02;
}

.machines-page-hero p {
    max-width: 650px;
    margin: 0;
    color: #b9c1c7;
    font-size: 18px;
    line-height: 1.7;
}

/* MACHINE BROWSER */

.machines-browser {
    background: #f5f6f7;
}

.machine-search-bar {
    margin-bottom: 28px;
}

.machine-search-bar input {
    width: 100%;
    border: 1px solid #d7dde1;
    background: #ffffff;
    font: inherit;
    font-size: 16px;
    color: #17232c;
    outline: none;
}

.machine-search-bar input:focus {
    border-color: #ff681c;
}

.machines-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 28px;
}

.machines-toolbar strong {
    font-size: 15px;
    color: #17232c;
}

.machine-source {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.6px;
    color: #7b858c;
}

/* LISTING CARD */

.machine-listing-card {
    overflow: hidden;
    background: #ffffff;
}

.machine-listing-image {
    position: relative;
    overflow: hidden;
    background: #e9edef;
}

.machine-listing-image img {
    width: 100%;
    height: 100%;
    display: block;
    transition: transform 0.35s ease;
    object-fit: cover;
}

.machine-listing-card:hover
.machine-listing-image img {
    transform: scale(1.025);
}

.machine-no-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #8c969d;
    font-weight: 700;
    letter-spacing: 1px;
}

.machine-category-label {
    position: absolute;
    background: #101c25;
    color: #ffffff;
    font-weight: 700;
    letter-spacing: 1px;
}

.machine-listing-specs {
    margin: 18px 0;
    padding: 14px 0;
    border-top: 1px solid #e8ebed;
    border-bottom: 1px solid #e8ebed;
}

.machine-listing-specs div {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 5px 0;
    font-size: 12px;
}

.machine-listing-specs span {
    color: #7a858c;
}

.machine-listing-specs strong {
    color: #17232c;
    text-align: right;
}

.machine-listing-location {
    margin-top: 15px;
    color: #6e7980;
    font-size: 13px;
}

.machine-listing-bottom {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    margin-top: 20px;
}

.machine-price {
    color: #17232c;
}

.machine-view-link {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
}

.machine-view-link:hover {
    text-decoration: underline;
}

/* STATES */

.machines-loading,
.machines-empty,
.machines-error {
    grid-column: 1 / -1;
    padding: 60px 30px;
    background: #ffffff;
    text-align: center;
    color: #68747d;
}

.machines-error {
    margin-top: 20px;
}

/* MOBILE */

@media (max-width: 700px) {
    .machines-page-hero {
        padding: 65px 0 55px;
    }

    .machines-page-hero h1 {
        font-size: 42px;
        letter-spacing: -1px;
    }

    .machines-browser {
        padding: 35px 0 70px;
    }

    .machines-toolbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .machine-listing-image {
        height: 230px;
    }
}

/* =========================================
   MACHINE DETAIL PAGE
========================================= */

.machine-detail-loading {
    padding: 100px 0;
    min-height: 500px;
    background: #f5f6f7;
    color: #68747d;
}

/* HEADER */

.machine-detail-header {
    background: #101c25;
    color: #ffffff;
}

.machine-back-link {
    display: inline-block;
    margin-bottom: 35px;
    color: #aeb8be;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
}

.machine-back-link:hover {
    color: #ffffff;
}

.machine-detail-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 50px;
}

.machine-detail-heading h1 {
    margin: 12px 0 18px;
    line-height: 1.05;
    letter-spacing: -1.5px;
}

.machine-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.machine-detail-meta span {
    padding: 8px 11px;
    background: rgba(255, 255, 255, 0.08);
    color: #d5dade;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.7px;
}

.machine-detail-price {
    flex-shrink: 0;
    text-align: right;
}

.machine-detail-price span {
    display: block;
    margin-bottom: 7px;
    color: #9ca7ae;
    font-size: 12px;
}

.machine-detail-price strong {
    display: block;
    color: #ffffff;
    font-size: 30px;
}

/* MAIN LAYOUT */

.machine-detail-main {
    background: #f5f6f7;
}

.machine-detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    align-items: start;
}

.machine-detail-content {
    min-width: 0;
}

/* GALLERY */

.machine-gallery {
    margin-bottom: 55px;
}

.machine-main-image {
    width: 100%;
    overflow: hidden;
    background: #e5e9eb;
}

.machine-main-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    background: #ffffff;
}

.machine-thumbnails {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 8px;
    margin-top: 8px;
}

.machine-thumbnail {
    padding: 0;
    border: 2px solid transparent;
    background: #ffffff;
    cursor: pointer;
    overflow: hidden;
}

.machine-thumbnail img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.machine-thumbnail:hover {
    border-color: #aeb6bb;
}

.machine-thumbnail.active {
    border-color: #ff681c;
}

.machine-no-detail-image {
    padding: 60px 20px;
    background: #ffffff;
    color: #7b858c;
    text-align: center;
}

/* CONTENT SECTIONS */

.machine-detail-section {
    margin-top: 30px;
    background: #ffffff;
}

.machine-detail-section .section-label,
.machine-contact-card .section-label,
.machine-not-found .section-label {
    margin-bottom: 10px;
    color: #ff681c;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.5px;
}

.machine-detail-section h2 {
    margin: 0 0 28px;
    color: #17232c;
    line-height: 1.2;
}

/* SPECIFICATIONS */

.machine-specification-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 40px;
}

.machine-specification {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    padding: 14px 0;
    border-bottom: 1px solid #e8ebed;
}

.machine-specification span {
    color: #778189;
    font-size: 13px;
    line-height: 1.45;
}

.machine-specification strong {
    max-width: 55%;
    color: #17232c;
    text-align: right;
    font-size: 13px;
    line-height: 1.45;
}

/* DESCRIPTION */

.machine-description {
    color: #59656d;
    font-size: 15px;
    line-height: 1.8;
    white-space: pre-line;
}

/* CONTACT CARD */

.machine-contact-card {
    position: sticky;
    top: 25px;
    background: #101c25;
    color: #ffffff;
}

.machine-contact-card h2 {
    margin: 8px 0 15px;
    font-size: 27px;
    line-height: 1.15;
}

.machine-contact-card > p {
    margin: 0 0 28px;
    color: #b5bec4;
    font-size: 14px;
    line-height: 1.65;
}

.machine-contact-details {
    margin-bottom: 28px;
    border-top: 1px solid
        rgba(255, 255, 255, 0.1);
}

.machine-contact-details div {
    padding: 15px 0;
    border-bottom: 1px solid
        rgba(255, 255, 255, 0.1);
}

.machine-contact-details span {
    display: block;
    margin-bottom: 5px;
    color: #89959d;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.machine-contact-details strong {
    display: block;
    color: #ffffff;
    font-size: 13px;
    line-height: 1.4;
}

.machine-contact-button {
    width: 100%;
    display: flex;
    justify-content: center;
    text-align: center;
}

.machine-contact-note {
    margin-top: 14px;
    color: #829099;
    text-align: center;
    font-size: 10px;
}

/* NOT FOUND */

.machine-not-found {
    min-height: 600px;
    padding: 110px 0;
    background: #f5f6f7;
}

.machine-not-found h2 {
    max-width: 700px;
    margin: 10px 0 18px;
    color: #17232c;
    font-size: 46px;
    line-height: 1.1;
}

.machine-not-found p {
    margin: 0 0 30px;
    color: #68747d;
    font-size: 17px;
}

/* TABLET */

@media (max-width: 950px) {
    .machine-detail-layout {
        grid-template-columns: 1fr;
    }

    .machine-contact-card {
        position: static;
    }

    .machine-main-image {
        height: 500px;
    }
}

/* MOBILE */

@media (max-width: 700px) {
    .machine-detail-header {
        padding: 35px 0 45px;
    }

    .machine-back-link {
        margin-bottom: 25px;
    }

    .machine-detail-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 25px;
    }

    .machine-detail-heading h1 {
        font-size: 40px;
    }

    .machine-detail-price {
        text-align: left;
    }

    .machine-detail-price strong {
        font-size: 26px;
    }

    .machine-detail-main {
        padding: 25px 0 70px;
    }

    .machine-detail-layout {
        gap: 25px;
    }

    .machine-main-image {
        height: 330px;
    }

    .machine-thumbnails {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .machine-thumbnail {
        height: 75px;
    }

    .machine-gallery {
        margin-bottom: 25px;
    }

    .machine-detail-section {
        margin-top: 20px;
        padding: 25px 20px;
    }

    .machine-specification-grid {
        grid-template-columns: 1fr;
    }

    .machine-contact-card {
        padding: 28px 22px;
    }
}

/* =========================================
   MACHINE INQUIRY FORM
========================================= */

.machine-inquiry-form {
    margin-top: 5px;
}

.machine-inquiry-divider {
    height: 1px;
    margin: 28px 0;
    background: rgba(255, 255, 255, 0.12);
}

.machine-inquiry-form h3 {
    margin: 0 0 8px;
    color: #ffffff;
    font-size: 20px;
}

.machine-inquiry-form > p {
    margin: 0 0 22px;
    color: #aeb8be;
    font-size: 13px;
    line-height: 1.6;
}

/* FIELDS */

.machine-inquiry-field {
    margin-bottom: 15px;
}

.machine-inquiry-field label {
    display: block;
    margin-bottom: 7px;
    color: #c6cdd1;
    font-size: 11px;
    font-weight: 700;
}

.machine-inquiry-field input,
.machine-inquiry-field textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 12px 13px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 0;
    background: #ffffff;
    color: #17232c;
    font: inherit;
    font-size: 14px;
    outline: none;
}

.machine-inquiry-field textarea {
    min-height: 105px;
    resize: vertical;
}

.machine-inquiry-field input:focus,
.machine-inquiry-field textarea:focus {
    border-color: #ff681c;
}

.machine-inquiry-field textarea::placeholder {
    color: #929ba1;
}

/* BUTTON */

.machine-inquiry-submit {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 5px;
    border: 0;
    cursor: pointer;
}

.machine-inquiry-submit:disabled {
    opacity: 0.65;
    cursor: wait;
}

/* STATUS */

.machine-inquiry-status {
    margin-top: 13px;
    color: #ffb08a;
    font-size: 12px;
    line-height: 1.5;
}

/* SUCCESS */

.machine-inquiry-success {
    padding: 22px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.06);
}

.machine-inquiry-success strong {
    display: block;
    margin-bottom: 8px;
    color: #ffffff;
    font-size: 18px;
}

.machine-inquiry-success p {
    margin: 0;
    color: #b8c1c6;
    font-size: 13px;
    line-height: 1.65;
}

/* Inventory and seller pages use the same restrained design foundation. */

.machines-page-hero {
    padding: 60px 0;
}

.machines-page-hero h1 {
    font-size: clamp(34px,4.2vw,52px);
    letter-spacing: -1.4px;
}

.machines-page-hero h1 span {
    color: white;
}

.machines-page-hero .eyebrow,.machine-detail-header .eyebrow {
    color: #aab9c3;
}

.machines-browser {
    padding: 40px 0 70px;
}

.machine-listing-image {
    height: auto;
    aspect-ratio: 4/3;
}

.machine-listing-image img {
    object-fit: cover;
    background: white;
}

.machine-category-label {
    font-size: 9px;
    left: 12px;
    bottom: 12px;
    padding: 6px 10px;
}

.machine-listing-bottom {
    flex-wrap: wrap;
    align-items: center;
}

.machine-price {
    font-size: 18px;
}

.machine-view-link {
    color: var(--dark);
    border-bottom: 1px solid var(--orange);
    padding-bottom: 3px;
}

.machine-listing-location {
    min-height: 21px;
}

.machine-search-bar input {
    padding: 15px 18px;
}

.machine-search-bar input:focus {
    outline: 2px solid var(--orange);
    outline-offset: 2px;
}

.machine-detail-header {
    padding: 35px 0 40px;
}

.machine-detail-heading h1 {
    font-size: clamp(32px,4vw,48px);
}

.machine-detail-main {
    padding: 40px 0 70px;
}

.machine-detail-layout {
    gap: 28px;
}

.machine-main-image {
    height: 480px;
    border: 1px solid var(--border);
}

.machine-thumbnails {
    display: flex;
    overflow-x: auto;
    padding-bottom: 8px;
}

.machine-thumbnail {
    flex: 0 0 88px;
    height: 74px;
}

.machine-detail-section {
    padding: 28px;
    border: 1px solid var(--border);
}

.machine-detail-section h2 {
    font-size: 24px;
}

.machine-specification {
    overflow-wrap: anywhere;
}

.machine-contact-card {
    padding: 28px;
}

.machine-inquiry-field input,.machine-inquiry-field textarea {
    outline-offset: 3px;
}

.sell-hero {
    padding: 55px 0 70px;
}

.sell-hero-grid {
    grid-template-columns: minmax(0,.85fr) minmax(0,1.25fr);
    gap: 65px;
}

.sell-intro {
    padding-top: 20px;
    top: 35px;
}

.sell-intro h1 {
    font-size: clamp(34px,4vw,52px);
    line-height: 1.08;
    letter-spacing: -1.4px;
}

.sell-intro h1 span {
    color: var(--dark);
}

.machine-form-card {
    background: white;
    color: var(--dark);
    padding: 36px;
    border: 1px solid var(--border);
}

.form-heading {
    margin-bottom: 30px;
}

.form-heading h2 {
    font-size: 28px;
}

.form-heading p,.form-note,.upload-box span,.success-text,.success-step p,.photo-preview-header span {
    color: var(--grey);
}

.form-group input,.form-group select,.form-group textarea {
    color: var(--dark);
    background: white;
    border: 1px solid var(--input-border);
    padding: 12px 14px;
    outline-offset: 3px;
}

.form-group input:focus,.form-group select:focus,.form-group textarea:focus {
    outline: 2px solid var(--orange);
}

.form-divider,.success-next,.success-brand {
    border-color: var(--border);
    background: transparent;
}

.form-divider {
    background: var(--border);
}

.upload-box {
    padding: 24px 16px;
    border-color: #a6b5c0;
    background: var(--light);
}

.submission-success h2,.success-step strong,.photo-preview-file strong {
    color: var(--dark);
}

.success-step {
    border-color: var(--border);
}

.photo-preview-item {
    background: var(--light);
    border-color: var(--border);
}

.photo-preview-file {
    color: var(--grey);
}

.success-check {
    background: #e7f1eb;
    color: #296345;
}

@media(max-width:950px) {
    .sell-hero-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .sell-intro {
        position: static;
    }

    .sell-benefits {
        margin-top: 30px;
    }

    .machine-detail-layout {
        grid-template-columns: 1fr;
    }

    .machine-contact-card {
        position: static;
    }
}

@media(max-width:550px) {
    .machines-page-hero {
        padding: 42px 0;
    }

    .machine-form-card {
        padding: 24px 18px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .form-heading {
        gap: 12px;
    }

    .sell-hero {
        padding: 30px 0 45px;
    }

    .machine-main-image {
        height: 300px;
    }

    .machine-specification-grid {
        grid-template-columns: 1fr;
    }

    .machine-detail-section {
        padding: 24px 18px;
    }

    .machine-detail-heading {
        flex-direction: column;
        align-items: start;
        gap: 24px;
    }

    .machine-detail-price {
        text-align: left;
    }

    .machine-not-found h2 {
        font-size: 34px;
    }
}

.machine-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    color: #c0cbd2;
    font-size: 12px;
    margin-bottom: 30px;
}

.machine-breadcrumb a { text-decoration: none; }
.machine-breadcrumb a:hover { text-decoration: underline; }

.seller-process {
    padding-left: 20px;
    margin-top: 28px;
    color: var(--grey);
    font-size: 14px;
}

.seller-process li { padding: 5px 0; }
.success-brand .brand-image { height: var(--logo-height); }

@media (max-width: 550px) {
    :root {
        --logo-height: 80px;
    }
    .nav-links { flex-wrap: wrap; }
    .partner-logo .brand-image,.admin-logo .brand-image,.auth-brand .brand-image,.recovery-brand .brand-image {
        height: var(--logo-height);
    }
}
