.vin-decoder-body {
    min-height: 100vh;
    margin: 0;
    background: #f0eff9;
    color: #1a1730;
    font-family: 'DM Sans', Arial, sans-serif;
}

.vin-decoder-page {
    width: min(100% - 48px, 1100px);
    margin: 0 auto;
    padding: 112px 0 64px;
}

.decoder-hero,
.decoder-section,
.decoder-archive-card {
    border: 1px solid #e5e3f5;
    border-radius: 20px;
    background: #fff;
}

.decoder-hero {
    padding: 36px 40px;
    margin-bottom: 20px;
}

.decoder-eyebrow {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    color: #5b4ee8;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.decoder-eyebrow::before {
    content: '';
    width: 20px;
    height: 2px;
    border-radius: 2px;
    background: #5b4ee8;
}

.decoder-hero h1 {
    max-width: 760px;
    margin: 0;
    font-family: 'Unbounded', system-ui, sans-serif;
    font-size: 34px;
    line-height: 1.14;
}

.decoder-hero p {
    max-width: 720px;
    margin: 14px 0 0;
    color: #6b6a8a;
    font-size: 16px;
    line-height: 1.65;
}

.decoder-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    margin-top: 26px;
}

.decoder-form input {
    min-height: 54px;
    border: 1px solid #cecbf6;
    border-radius: 14px;
    background: #f8f7fe;
    color: #1a1730;
    padding: 0 16px;
    font: inherit;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.decoder-form button,
.decoder-paid-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 54px;
    border: 0;
    border-radius: 14px;
    background: #5b4ee8;
    color: #fff;
    padding: 0 22px;
    font: inherit;
    font-weight: 900;
    text-decoration: none;
    cursor: pointer;
}

.decoder-form button:disabled {
    opacity: .62;
    cursor: wait;
}

.decoder-error {
    display: none;
    margin-top: 14px;
    border-radius: 12px;
    background: #faece7;
    color: #993c1d;
    padding: 12px 14px;
    font-weight: 800;
    line-height: 1.45;
}

.decoder-result {
    display: none;
}

.decoder-section {
    padding: 30px 36px;
    margin-bottom: 20px;
}

.decoder-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 24px;
}

.decoder-section h2 {
    margin: 0;
    font-family: 'Unbounded', system-ui, sans-serif;
    font-size: 18px;
    line-height: 1.2;
}

.decoder-vin-tag {
    border: 1px solid #e5e3f5;
    border-radius: 8px;
    background: #f8f7fe;
    color: #6b6a8a;
    padding: 6px 12px;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .08em;
}

.decoder-segments {
    display: flex;
    overflow: hidden;
    border: 1px solid #e5e3f5;
    border-radius: 14px;
    margin-bottom: 28px;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.decoder-segment {
    flex: 1;
    min-width: 0;
    padding: 12px 10px;
}

.decoder-segment:not(:last-child) {
    border-right: 1px solid #e5e3f5;
}

.decoder-segment-label {
    color: #9a99b5;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.decoder-segment-code {
    margin-top: 4px;
    color: #5b4ee8;
    font-size: 17px;
    font-weight: 900;
    letter-spacing: .08em;
    overflow-wrap: anywhere;
}

.decoder-segment-note {
    margin-top: 3px;
    color: #6b6a8a;
    font-family: 'DM Sans', Arial, sans-serif;
    font-size: 11px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

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

.decoder-item {
    border: 1px solid #e5e3f5;
    border-radius: 12px;
    background: #f8f7fe;
    padding: 16px 18px;
}

.decoder-key {
    margin-bottom: 6px;
    color: #9a99b5;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.decoder-val {
    color: #1a1730;
    font-size: 15px;
    font-weight: 800;
    overflow-wrap: anywhere;
}

.decoder-note {
    margin-top: 18px;
    border-top: 1px solid #e5e3f5;
    padding-top: 16px;
    color: #6b6a8a;
    font-size: 12px;
    line-height: 1.7;
}

.decoder-archive-card {
    display: none;
    grid-template-columns: 180px 1fr auto;
    gap: 22px;
    align-items: center;
    padding: 22px;
}

.decoder-archive-photo,
.decoder-archive-placeholder {
    width: 180px;
    aspect-ratio: 4 / 3;
    border-radius: 14px;
    border: 1px solid #e5e3f5;
    background: #f8f7fe;
    overflow: hidden;
}

.decoder-archive-photo {
    display: none;
    object-fit: cover;
}

.decoder-archive-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9a99b5;
    font-size: 12px;
    font-weight: 900;
}

.decoder-archive-label {
    color: #5b4ee8;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.decoder-archive-title {
    margin-top: 8px;
    font-family: 'Unbounded', system-ui, sans-serif;
    font-size: 21px;
    font-weight: 800;
    line-height: 1.2;
}

.decoder-archive-meta {
    margin-top: 7px;
    color: #6b6a8a;
    font-size: 13px;
    line-height: 1.45;
}

@media(max-width: 900px) {
    .vin-decoder-page {
        width: min(100% - 28px, 1100px);
        padding-top: 92px;
    }

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

    .decoder-archive-card {
        grid-template-columns: 150px 1fr;
    }

    .decoder-paid-link {
        grid-column: 1 / -1;
    }
}

@media(max-width: 620px) {
    .decoder-hero,
    .decoder-section {
        padding: 22px 20px;
    }

    .decoder-form,
    .decoder-grid,
    .decoder-archive-card {
        grid-template-columns: 1fr;
    }

    .decoder-segments {
        flex-direction: column;
    }

    .decoder-segment:not(:last-child) {
        border-right: 0;
        border-bottom: 1px solid #e5e3f5;
    }

    .decoder-section-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .decoder-archive-photo,
    .decoder-archive-placeholder {
        width: 100%;
    }
}
