
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: #f3f5f8;
    color: #17212b;
    font: 16px/1.55 Arial, Tahoma, sans-serif;
}

.top {
    min-height: 70px;
    background: #fff;
    border-bottom: 1px solid #e5e9ee;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px max(5%, calc((100% - 1100px) / 2));
    gap: 20px;
}

.brand {
    font-weight: 900;
    letter-spacing: 1px;
    color: #17212b;
    text-decoration: none;
    font-size: 21px;
}

.brand span {
    color: #d43b32;
}

.top nav {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.top nav a,
.hint a {
    color: #34495e;
    text-decoration: none;
}

.top nav a:hover,
.hint a:hover {
    color: #d43b32;
}

.wrap {
    max-width: 1140px;
    margin: 38px auto;
    padding: 0 20px;
    min-height: 70vh;
}

.hero {
    background: #fff;
    border: 1px solid #e6eaf0;
    border-radius: 22px;
    padding: 55px 6%;
    text-align: center;
    box-shadow: 0 12px 35px #1a2b3a0a;
}

.eyebrow {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2px;
    color: #d43b32;
}

.hero h1 {
    font-size: clamp(30px, 5vw, 48px);
    line-height: 1.12;
    margin: 12px 0;
}

.hero p {
    color: #697786;
    max-width: 650px;
    margin: 0 auto 25px;
}

.search {
    display: flex;
    gap: 10px;
    max-width: 650px;
    margin: auto;
}

.search input {
    flex: 1;
}

.form {
    display: grid;
    gap: 15px;
}

input,
select,
textarea {
    width: 100%;
    padding: 13px 14px;
    border: 1px solid #d7dee6;
    border-radius: 10px;
    background: #fff;
    font: inherit;
    color: #17212b;
}

label {
    display: grid;
    gap: 6px;
    font-weight: 700;
    font-size: 14px;
}

button,
.button {
    border: 0;
    border-radius: 10px;
    background: #d43b32;
    color: white;
    padding: 13px 20px;
    font: 700 15px Arial, sans-serif;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

button:hover,
.button:hover {
    background: #b92f28;
    color: #fff;
}

.search button {
    white-space: nowrap;
}

.hint {
    font-size: 13px;
    color: #718091;
    margin-top: 18px;
}

.grid3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 20px;
}

.tile,
.panel {
    background: #fff;
    border: 1px solid #e6eaf0;
    border-radius: 18px;
    padding: 24px;
}

.tile p,
.muted {
    color: #718091;
}

.narrow {
    max-width: 680px;
    margin: 0 auto;
}

.panel h1 {
    margin-top: 6px;
}

.two {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.alert {
    background: #fff4e5;
    border: 1px solid #f1d5a9;
    padding: 14px;
    border-radius: 10px;
    margin: 15px 0;
}

.secret {
    font-size: 28px;
    letter-spacing: 4px;
    font-weight: 900;
    text-align: center;
    padding: 16px;
    background: #fff;
    border-radius: 8px;
    margin: 10px 0;
    overflow-wrap: anywhere;
}

.successmark {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #e1f5e9;
    color: #16834b;
    display: grid;
    place-items: center;
    font-size: 28px;
}

.row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.km {
    background: #f2f5f8;
    border-radius: 12px;
    padding: 14px 18px;
    display: grid;
}

.km small,
.record span,
.record small {
    color: #718091;
}

.km b {
    font-size: 23px;
}

.record {
    border-top: 1px solid #e8edf1;
    padding: 16px 0;
    display: grid;
    gap: 5px;
}

.record p {
    margin: 4px 0;
}

.notice {
    background: #eef5fb;
    border-radius: 10px;
    padding: 12px;
    color: #52687b;
    font-size: 13px;
}

.footer {
    text-align: center;
    color: #82909d;
    font-size: 12px;
    padding: 30px 15px;
}

.panel h2 {
    margin-top: 28px;
}

/* =========================================
   ŞƏXSİ KABİNET - YENİ DİZAYN
========================================= */

.dashboard {
    width: 100%;
}

.vehicle-card {
    background: #fff;
    border: 1px solid #e6eaf0;
    border-radius: 20px;
    padding: 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 25px;
    box-shadow: 0 8px 28px rgba(25, 45, 65, 0.035);
}

.vehicle-main {
    min-width: 0;
}

.vehicle-main h1 {
    font-size: clamp(25px, 4vw, 34px);
    line-height: 1.2;
    margin: 10px 0 13px;
    color: #172b40;
}

.vehicle-details {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 9px;
    color: #718091;
    font-size: 15px;
}

.vehicle-plate {
    font-weight: 800;
    color: #34495e;
    letter-spacing: 0.5px;
}

.detail-separator {
    color: #d43b32;
}

.add-service-button {
    margin-top: 23px;
    padding: 14px 22px;
    border-radius: 10px;
}

.plus-icon {
    font-size: 19px;
    margin-right: 5px;
}

.mileage-card {
    min-width: 190px;
    background: #f2f5f8;
    border: 1px solid #edf0f4;
    border-radius: 15px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.mileage-icon {
    width: 32px;
    height: 32px;
    border-radius: 9px;
    background: #fff;
    color: #d43b32;
    display: grid;
    place-items: center;
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 5px;
}

.mileage-card small {
    color: #718091;
    font-size: 12px;
}

.mileage-card strong {
    font-size: 25px;
    color: #172b40;
    white-space: nowrap;
}

.mileage-card strong span {
    font-size: 15px;
}

.history-section {
    margin-top: 34px;
}

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

.history-heading h2 {
    margin: 7px 0 3px;
    font-size: 25px;
    color: #172b40;
}

.history-heading p {
    margin: 0;
    color: #718091;
    font-size: 14px;
}

.service-count {
    min-width: 105px;
    background: #fff;
    border: 1px solid #e6eaf0;
    border-radius: 13px;
    padding: 12px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.service-count strong {
    font-size: 24px;
    color: #d43b32;
    line-height: 1.2;
}

.service-count span {
    font-size: 11px;
    color: #718091;
    white-space: nowrap;
}

.service-list {
    display: grid;
    gap: 15px;
}

.service-card {
    background: #fff;
    border: 1px solid #e6eaf0;
    border-radius: 16px;
    padding: 22px 24px;
    box-shadow: 0 5px 20px rgba(25, 45, 65, 0.025);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.service-card:hover {
    border-color: #d7dfe8;
    box-shadow: 0 8px 24px rgba(25, 45, 65, 0.055);
}

.service-card-top {
    display: flex;
    align-items: center;
    gap: 13px;
    margin-bottom: 18px;
}

.service-number {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    display: grid;
    place-items: center;
    border-radius: 11px;
    background: #fff0ef;
    color: #d43b32;
    font-weight: 800;
    font-size: 14px;
}

.service-title {
    min-width: 0;
}

.service-title h3 {
    margin: 0 0 4px;
    font-size: 17px;
    color: #172b40;
    line-height: 1.35;
}

.service-date {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #718091;
    font-size: 13px;
}

.info-icon {
    color: #d43b32;
}

.service-info-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 15px;
}

.service-info {
    min-width: 175px;
    background: #f5f7f9;
    border-radius: 10px;
    padding: 11px 14px;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.service-info small {
    color: #718091;
    font-size: 12px;
}

.service-info strong {
    color: #172b40;
    font-size: 17px;
}

.next-service-info {
    background: #fff7e9;
}

.next-service-info strong {
    color: #a76b12;
}

.service-products {
    border-top: 1px solid #edf0f3;
    padding-top: 14px;
    margin-top: 4px;
}

.section-label {
    color: #718091;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 8px;
}

.parts-text {
    color: #34495e;
    font-size: 14px;
    line-height: 1.8;
    overflow-wrap: anywhere;
}

.product-brand {
    margin-top: 9px;
    font-size: 13px;
    color: #718091;
}

.product-brand strong {
    color: #34495e;
}

.mechanic-info {
    display: flex;
    align-items: center;
    gap: 11px;
    border-top: 1px solid #edf0f3;
    padding-top: 14px;
    margin-top: 15px;
}

.mechanic-icon {
    width: 37px;
    height: 37px;
    flex: 0 0 37px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #eef3f8;
    color: #34495e;
    font-size: 14px;
    font-weight: 800;
}

.mechanic-info > div:last-child {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.mechanic-info small {
    color: #718091;
    font-size: 11px;
}

.mechanic-info strong {
    color: #34495e;
    font-size: 13px;
}

.mechanic-info a {
    color: #718091;
    font-size: 12px;
    text-decoration: none;
}

.mechanic-info a:hover {
    color: #d43b32;
}

.empty-history {
    background: #fff;
    border: 1px dashed #d7dee6;
    border-radius: 16px;
    padding: 38px 22px;
    text-align: center;
}

.empty-history-icon {
    font-size: 36px;
    color: #d43b32;
}

.empty-history h3 {
    margin: 10px 0 5px;
    color: #172b40;
}

.empty-history p {
    max-width: 430px;
    margin: 0 auto 18px;
    color: #718091;
    font-size: 14px;
}

/* =========================================
   PLANŞET VƏ MOBİL
========================================= */

@media (max-width: 760px) {

    .wrap {
        margin: 22px auto;
        padding: 0 15px;
    }

    .vehicle-card {
        padding: 23px 20px;
        align-items: stretch;
        flex-direction: column;
        gap: 20px;
    }

    .mileage-card {
        width: 100%;
        min-width: 0;
        display: grid;
        grid-template-columns: 38px 1fr;
        align-items: center;
        column-gap: 10px;
        padding: 13px 15px;
    }

    .mileage-icon {
        grid-row: span 2;
        margin: 0;
    }

    .mileage-card strong {
        font-size: 22px;
    }

    .add-service-button {
        width: 100%;
    }

    .history-section {
        margin-top: 27px;
    }

    .history-heading {
        align-items: flex-start;
    }

    .history-heading h2 {
        font-size: 22px;
    }

    .service-count {
        min-width: 85px;
        padding: 10px;
    }

    .service-card {
        padding: 18px 16px;
    }

    .service-info {
        flex: 1 1 145px;
        min-width: 0;
    }
}

@media (max-width: 480px) {

    .top {
        padding: 13px 16px;
        gap: 10px;
    }

    .brand {
        font-size: 19px;
    }

    .top nav {
        width: 100%;
        justify-content: space-between;
        gap: 10px;
    }

    .top nav a {
        font-size: 14px;
    }

    .wrap {
        margin: 15px auto;
        padding: 0 12px;
    }

    .vehicle-card {
        border-radius: 15px;
        padding: 20px 16px;
    }

    .vehicle-main h1 {
        font-size: 26px;
    }

    .vehicle-details {
        font-size: 14px;
    }

    .history-heading {
        gap: 10px;
    }

    .history-heading h2 {
        font-size: 20px;
    }

    .history-heading p {
        font-size: 12px;
    }

    .service-count {
        min-width: 72px;
        padding: 9px 7px;
    }

    .service-count strong {
        font-size: 21px;
    }

    .service-count span {
        font-size: 10px;
    }

    .service-card {
        padding: 16px 13px;
        border-radius: 13px;
    }

    .service-title h3 {
        font-size: 15px;
    }

    .service-info-grid {
        gap: 8px;
    }

    .service-info {
        flex-basis: 100%;
        padding: 10px 12px;
    }

    .service-info strong {
        font-size: 16px;
    }

    .footer {
        padding: 22px 12px;
    }

    .hero {
        padding: 35px 20px;
    }

    .search {
        flex-direction: column;
    }

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

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

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