*{box-sizing:border-box;font-family:Inter,system-ui}
body{margin:0;background:#8acbe545;color:#1f2937}
main {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}
.topbar {
    width: 100%;
    background: #fff;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    position: sticky;
    top: 0;
    z-index: 100;
}

.topbar a{color:#fff;text-decoration:none;margin-left:15px}

.page{padding:30px}

.cars-table{
background:#fff;
border-radius:10px;
overflow:hidden;
box-shadow:0 10px 30px rgba(0,0,0,.05)
}

.cars-head,.cars-row{
display:grid;
grid-template-columns:2fr 2fr 2fr 2fr 1fr 1fr;
padding:14px 18px;
align-items:center
}

.cars-head{
background:#f1f5f9;
font-weight:600;
}

.cars-row{
border-top:1px solid #eee;
}

.badge{
background:#e0f2fe;
color:#0369a1;
padding:4px 10px;
border-radius:20px;
font-size:13px;
}

.btn-sm{
background:#2563eb;
color:#fff;
padding:6px 12px;
border-radius:6px;
text-decoration:none;
}

.form-grid{
display:grid;
grid-template-columns:repeat(2,1fr);
gap:15px;
max-width:800px
}

.form-grid textarea,
.form-grid input{
padding:10px;
border:1px solid #ddd;
border-radius:8px
}

.form-grid textarea{grid-column:1/-1;height:120px}

.btn{
grid-column:1/-1;
background:#111827;
color:#fff;
border:0;
padding:12px;
border-radius:8px;
cursor:pointer
}

.detail-grid{
display:grid;
grid-template-columns:repeat(2,1fr);
gap:20px
}

.box{
background:#fff;
padding:20px;
border-radius:10px;
box-shadow:0 10px 20px rgba(0,0,0,.05)
}

.full{grid-column:1/-1}

.login-body{
height:100vh;
display:flex;
align-items:center;
justify-content:center;
background:#111827
}

.login-card{
background:#fff;
padding:30px;
width:340px;
border-radius:12px;
display:flex;
flex-direction:column;
gap:12px
}

.login-card input{
padding:10px;
border-radius:8px;
border:1px solid #ddd
}

.login-card button{
background:#2563eb;
color:#fff;
border:0;
padding:10px;
border-radius:8px
}

.error{color:#dc2626;font-size:14px}
.docs-grid{
display:grid;
grid-template-columns:1fr;
gap:12px;
}

.doc-row{
display:grid;
grid-template-columns:2fr 1fr 3fr;
align-items:center;
gap:10px;
padding:10px;
border-bottom:1px solid #eee;
}

.upload-form{
display:flex;
gap:8px;
align-items:center;
}

.upload-form input[type=file]{
font-size:13px;
}

.doc-ok{
color:#16a34a;
font-weight:600;
}

.doc-missing{
color:#dc2626;
font-weight:600;
}
.tabs{
display:flex;
gap:10px;
margin-bottom:15px
}

.tab-btn{
border:0;
padding:8px 16px;
border-radius:8px;
background:#e5e7eb;
cursor:pointer
}

.tab-btn.active{
background:#111827;
color:#fff
}

.tab-content{
display:none
}

.tab-content.active{
display:block
}

.image-upload{
margin-bottom:15px;
display:flex;
gap:10px;
align-items:center
}

.image-grid{
display:grid;
grid-template-columns:repeat(auto-fill,minmax(140px,1fr));
gap:10px
}

.image-grid img{
width:100%;
height:110px;
object-fit:cover;
border-radius:8px;
box-shadow:0 4px 10px rgba(0,0,0,.1)
}
/* ================= HEADER ================= */


.topbar-inner {
    width: 100%;
    height: 72px;
    padding: 0 32px;

    display: flex;
    align-items: center;
    justify-content: space-between;
}
.logo img { 
    width:200px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 18px;
    color: #222;
}

.logo i {
    color: #2563eb;
    font-size: 22px;
}

.nav {
    display: flex;
    align-items: center;
    gap: 18px;
}

.nav a {
    display: flex;
    align-items: center;
    gap: 6px;

    padding: 8px 12px;
    border-radius: 8px;

    text-decoration: none;
    color: #333;
    font-size: 14px;
    font-weight: 500;

    transition: background 0.2s, color 0.2s;
}

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

.nav a:hover {
    background: #f1f5f9;
}

.nav a.logout {
    color: #dc2626;
}

.nav a.logout:hover {
    background: #fee2e2;
}

/* ================= HAMBURGER ================= */

.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;

    flex-direction: column;
    gap: 4px;
}

.hamburger span {
    width: 22px;
    height: 2px;
    background: #333;
    display: block;
}

/* ================= MOBILE ================= */

@media (max-width: 900px) {

    .hamburger {
        display: flex;
    }

    .nav {
        position: absolute;
        top: 72px;
        right: 0;
        left: 0;

        background: #fff;
        box-shadow: 0 10px 30px rgba(0,0,0,0.08);

        flex-direction: column;
        align-items: stretch;

        padding: 10px 20px;
        gap: 8px;

        display: none;
    }

    .nav.open {
        display: flex;
    }

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

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

.page {
    padding: 30px 20px;
}
.nav-right {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 12px;
}

/* ================= HEADER SEARCH ================= */

.header-search {
    width: 100%;
    max-width: 420px;
    margin: 0 40px;

    display: flex;
    align-items: center;
    gap: 10px;

    background: #f1f5f9;
    border-radius: 999px;
    padding: 8px 14px;
}


.header-search i {
    color: #64748b;
    font-size: 14px;
}

.header-search input {
    border: none;
    outline: none;
    background: transparent;
    width: 100%;

    font-size: 14px;
    color: #111;
}

.header-search input::placeholder {
    color: #94a3b8;
}

/* MOBILE – скриваме search (по желание) */
@media (max-width: 900px) {
    .header-search {
        display: none;
    }
}
.car-title {
    text-transform: uppercase;
}
.car-title a {
    color: #111;
    font-weight: 600;
    text-decoration: none;
}

.car-title a:hover {
    text-decoration: underline;
}

.car-thumb img {
    transition: transform .2s ease;
}

.car-thumb img:hover {
    transform: scale(1.03);
}
/* ================= CAR LIST ================= */

.cars-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.car-card {
    display: flex;
    gap: 20px;
    padding: 20px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.05);
    text-decoration: none;
    color: inherit;
    transition: .2s ease;
}

.car-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.car-image {
    width: 160px;
    flex-shrink: 0;
}

.car-image img {
    width: 100%;
    height: 110px;
    object-fit: cover;
    border-radius: 8px;
}

.car-data {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.car-title {
    font-size: 18px;
    font-weight: 700;
    margin: 0;
}

.car-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 18px 24px;
}


.label {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    color: #6b7280;
    margin-bottom: 4px;
}

.value {
    font-size: 14px;
    font-weight: 600;
}

/* STATUS COLORS */

.status-badge {
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    display: inline-block;
}

.status-in_transit {
    background: #dbeafe;
    color: #1d4ed8;
}

.status-arrived {
    background: #e0f2fe;
    color: #0369a1;
}

.status-delivered {
    background: #dcfce7;
    color: #166534;
}

.status-pending {
    background: #fef9c3;
}
.page-header{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:20px;
}

.btn-sync{
    background:#22c55e;
    color:#fff;
    padding:10px 18px;
    border-radius:6px;
    text-decoration:none;
    font-weight:600;
    transition:0.2s;
}

.btn-sync:hover{
    background:#16a34a;
}
.sync-container{
    display:flex;
    gap:40px;
    margin-top:30px;
}

.sync-form{
    width:350px;
    display:flex;
    flex-direction:column;
    gap:15px;
}

.sync-form input{
    padding:10px;
    border:1px solid #ddd;
    border-radius:6px;
}

.sync-buttons button{
    padding:10px;
    border:none;
    border-radius:6px;
    cursor:pointer;
    font-weight:600;
    background:#0469cf;
    color:#fff;
    margin-bottom:10px;
    transition:0.2s;
}

.sync-buttons button:hover{
    opacity:0.9;
}

.sync-log{
    flex:1;
    background:#111;
    color:#0f0;
    padding:20px;
    border-radius:8px;
    height:400px;
    overflow:auto;
    font-family:monospace;
}

.log-content{
    white-space:pre-wrap;
}
.loader{
    border:4px solid #333;
    border-top:4px solid #22c55e;
    border-radius:50%;
    width:40px;
    height:40px;
    animation:spin 1s linear infinite;
    margin:auto;
}

@keyframes spin{
    0%{ transform:rotate(0deg);}
    100%{ transform:rotate(360deg);}
}
.car-card{
    position:relative;
}

.car-edit-btn{
    position:absolute;
    bottom:15px;
    right:15px;
    width:38px;
    height:38px;
    background:#334155;
    color:#fff;
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius:50%;
    cursor:pointer;
    transition:0.2s;
    font-size:15px;
    box-shadow:0 4px 12px rgba(0,0,0,0.25);
}

.car-edit-btn:hover{
    background:#0469cf;
    transform:rotate(20deg) scale(1.1);
}
.edit-form{
    max-width:1000px;
}

.form-grid{
    display:grid;
    grid-template-columns:repeat(auto-fill, minmax(250px, 1fr));
    gap:20px;
    margin-top:20px;
}

.edit-form label{
    display:block;
    font-weight:600;
    margin-bottom:5px;
}

.edit-form input,
.edit-form select{
    width:100%;
    padding:8px;
    border:1px solid #ddd;
    border-radius:6px;
}

.btn-save{
    margin-top:30px;
    padding:12px 25px;
    background:#0469cf;
    color:#fff;
    border:none;
    border-radius:6px;
    cursor:pointer;
}

.success-box{
    background:#22c55e;
    color:#fff;
    padding:10px;
    border-radius:6px;
    margin-bottom:15px;
}
.assigned-clients{
    margin-top:20px;
}

.client-badge{
    display:inline-block;
    background:#e2e8f0;
    padding:6px 12px;
    border-radius:20px;
    margin:5px;
    font-size:13px;
}

.remove-client{
    margin-left:8px;
    color:#dc2626;
    text-decoration:none;
    font-weight:bold;
}
/* ============================= */
/* MOBILE RESPONSIVE */
/* ============================= */

@media (max-width: 768px) {

    .page-header{
        flex-direction:column;
        align-items:flex-start;
        gap:10px;
    }

    .cars-list{
        display:flex;
        flex-direction:column;
        gap:20px;
    }

    .car-card{
        display:flex;
        flex-direction:column;
        padding:15px;
    }

    .car-image{
        width:100%;
        height:auto;
        margin-bottom:15px;
    }

    .car-image img{
        width:100%;
        height:auto;
        border-radius:10px;
    }

    .car-data{
        width:100%;
    }

    .car-title{
        font-size:18px;
        margin-bottom:15px;
    }

    .car-grid{
        display:grid;
        grid-template-columns:1fr;
        gap:12px;
    }

    .car-grid div{
        display:flex;
        justify-content:space-between;
        font-size:14px;
    }

    .label{
        font-weight:600;
        color:#555;
    }

    .value{
        text-align:right;
    }

    .status-badge{
        padding:4px 8px;
        font-size:12px;
    }

    .car-edit-btn{
        bottom:10px;
        right:10px;
        width:34px;
        height:34px;
        font-size:14px;
    }

    .btn-sync{
        width:100%;
        text-align:center;
    }
}
/* ============================= */
/* CAR TOP LAYOUT */
/* ============================= */

.car-top-layout{
    display:grid;
    grid-template-columns: 350px 1fr;
    gap:30px;
    margin-bottom:30px;
    align-items:start;
}

.car-main-image img{
    width:100%;
    border-radius:12px;
    box-shadow:0 6px 20px rgba(0,0,0,0.08);
}

.car-side-info{
    display:flex;
    flex-direction:column;
    gap:20px;
}

.car-side-info .box{
    padding:20px;
}

@media (max-width: 768px){

    .car-top-layout{
        grid-template-columns: 1fr;
        gap:20px;
    }

    .car-main-image img{
        width:100%;
        height:auto;
    }
    

}
@media (max-width: 768px){

    .doc-row{
        display:flex;
        flex-direction:column;
        gap:8px;
        padding:12px 0;
    }

    .doc-row > div{
        width:100%;
    }

    .upload-form{
        display:flex;
        flex-direction:column;
        gap:8px;
    }

    .upload-form input[type=file]{
        width:100%;
    }

    .btn-sm{
        width:100%;
        text-align:center;
    }

}
@media (max-width: 768px){

    .image-grid{
        display:grid;
        grid-template-columns: repeat(2, 1fr);
        gap:10px;
    }

    .image-grid img{
        width:100%;
        height:auto;
        border-radius:8px;
    }

}
@media (max-width: 768px){

    .tabs{
        display:flex;
        width:100%;
        margin-bottom:15px;
    }

    .tab-btn{
        flex:1;
        padding:10px;
        font-size:14px;
    }

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

.car-title {
    margin: 0;
}

.copy-link-btn {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #0469cf;
    transition: 0.2s ease;
}

.copy-link-btn:hover {
    color: #023e7d;
    transform: scale(1.1);
}

.section-box {
    background: #ffffff;
    border: 1px solid #e6e9ef;
    border-radius: 12px;
    padding: 20px;
}

.section-box h2 {
    font-size: 20px;
    margin-bottom: 20px;
    color: #222;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}
.form-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 20px;
}
@media (max-width: 768px) {
    .form-grid {
        grid-template-columns: 1fr !important;
    }
}
input,
select,
textarea {
    width: 100%;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid #dcdcdc;
    background: #f9fafb;
    font-size: 14px;
    appearance: none;
}
select {
    background-image: url("data:image/svg+xml;utf8,<svg fill='%23666' height='20' viewBox='0 0 20 20' width='20' xmlns='http://www.w3.org/2000/svg'><path d='M5.5 7l4.5 5 4.5-5z'/></svg>");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 16px;
    padding-right: 35px;
}
input:focus,
select:focus,
textarea:focus {
    border-color: #4a90e2;
    outline: none;
    box-shadow: 0 0 0 2px rgba(74,144,226,0.15);
}
label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
    color: #555;
}

.sections-grid {
    column-count: 2;
    column-gap: 25px;
}
@media (max-width: 900px) {
    .sections-grid {
        column-count: 1;
    }
}
.section-box.full {
    grid-column: span 2;
}
.section-box:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,0.04);
    transition: 0.2s;
}
.section-box {
    display: inline-block;
    width: 100%;
    margin-bottom: 25px;
}
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}
.floating-save {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 999;
}
.btn-primary {
    background: #48bf72;
    color: #fff;
    padding: 12px 20px;
    border-radius: 10px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 6px 15px rgba(0,0,0,0.15);
}

.btn-primary:hover {
    background: #36af60;
}
.floating-save button {
    padding: 14px 22px;
    font-size: 15px;
}
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #2ecc71;
    color: #fff;
    padding: 14px 20px;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    font-weight: 600;
    z-index: 9999;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.dropzone-box {
    border: 2px dashed #ccc;
    padding: 30px;
    text-align: center;
    cursor: pointer;
    border-radius: 10px;
    background: #fafafa;
    transition: 0.2s;
}

.dropzone-box.dragover {
    border-color: #007bff;
    background: #f0f8ff;
}

#preview-container {
    display: flex;
    flex-wrap: wrap;
    margin-top: 10px;
}

#preview-container img {
    width: 80px;
    margin: 5px;
    border-radius: 6px;
}
.img-wrapper {
    position: relative;
    display: inline-block;
    margin: 5px;
}

.img-wrapper img {
    width: 80px;
    border-radius: 6px;
}

.remove-img {
    position: absolute;
    top: -6px;
    right: -6px;
    background: red;
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    cursor: pointer;
    font-size: 14px;
    line-height: 20px;
}
.car-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.car-card-link * {
    text-decoration: none !important;
    color: inherit !important;
}
.car-top-layout {
    display: grid;
    grid-template-columns: 40% 60%;
    gap: 20px;
}

.car-main-image img {
    width: 100%;
    border-radius: 10px;
    cursor: pointer;
}

.car-thumbs {
    display: flex;
    gap: 10px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.car-thumbs img {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
    cursor: pointer;
}

.car-columns {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.box {
    background: #fff;
    padding: 12px;
    border-radius: 10px;
}

.box h3 {
    margin-bottom: 10px;
    font-size: 16px;
}

.box .label {
    display: block;
    font-size: 12px;
    color: #888;
}

.box .value {
    font-weight: 500;
}
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.95);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.lightbox img {
    max-width: 90%;
    max-height: 85%;
    border-radius: 8px;
}

/* CLOSE */
.lightbox-close {
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 32px;
    color: #fff;
    cursor: pointer;
}

/* ARROWS */
.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 40px;
    color: #fff;
    cursor: pointer;
    padding: 10px;
    user-select: none;
}

.lightbox-nav.left {
    left: 20px;
}

.lightbox-nav.right {
    right: 20px;
}

/* MOBILE */
@media (max-width: 768px) {
    .lightbox-nav {
        font-size: 28px;
    }

    .lightbox-close {
        font-size: 28px;
    }
}
.car-info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px 20px;
}

.car-info-box .row-item {
    margin-bottom: 6px;
}
.car-info-box {
    padding: 16px;
}

.car-info-box h3 {
    margin-bottom: 15px;
}
.title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.title-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}


.btn-edit {
    background: #0469cf;
    color: #fff;
    padding: 6px 12px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-edit:hover {
    background: #0353a4;
}
.btn-share {
    background: #2c2c2c;
    color: #fff;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
    border: 1px solid #3a3a3a;
    cursor: pointer;
}

.btn-share:hover {
    background: #1a1a1a;
}
.btn-delete {
    background: #8b0000;
    color: #fff;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
    border: 1px solid #a30000;
    cursor: pointer;
}

.btn-delete:hover {
    background: #5e0000;
}
.btn-file {
    background: #0469cf;
    color: #fff;
    border: none;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
}

.btn-file:hover {
    background: #0353a4;
}
.car-tabs-box {
    margin-top: 20px;
}

/* ---------- TABS ---------- */
.tabs-header {
    display: flex;
    gap: 10px;
    border-bottom: 1px solid #e5e5e5;
    margin-bottom: 20px;
}

.tab-btn {
    padding: 8px 14px;
    border-radius: 6px 6px 0 0;
    background: #f5f5f5;
    border: 1px solid #e5e5e5;
    border-bottom: none;
    cursor: pointer;
    color: #555;
}

.tab-btn.active {
    background: #fff;
    color: #000;
    font-weight: 500;
}

/* ---------- CONTENT ---------- */
.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* ---------- GRID ---------- */
.payment-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

/* responsive */
@media (max-width: 900px) {
    .payment-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .payment-grid {
        grid-template-columns: 1fr;
    }
}

/* ---------- FORM ---------- */
.form-row {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.form-row label {
    font-size: 13px;
    color: #666;
}

/* 🔥 ВАЖНО – стил като останалите */
.form-row input,
.form-row select {
    padding: 10px;
    border-radius: 6px;
    border: 1px solid #ddd;
    background: #fff;
    color: #000;
    font-size: 14px;
}

/* readonly */
.form-row.total input,
.form-row.balance input {
    background: #f7f7f7;
    font-weight: 600;
}

/* balance червено */
.form-row.balance input {
    color: #d32f2f;
}

/* бутон */
#paymentForm button {
    margin-top: 15px;
}
.custom-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.file-inline {
    display: flex;
    gap: 10px;
}

.file-inline input {
    flex: 1;
}

.btn-view {
    background: #2d7ef7;
    color: #fff;
    padding: 6px 12px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.btn-view:hover {
    background: #1a5fd0;
}

.file-row {
    grid-column: span 2;
}
.custom-docs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

/* tablet */
@media (max-width: 900px) {
    .custom-docs-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* mobile */
@media (max-width: 600px) {
    .custom-docs-grid {
        grid-template-columns: 1fr;
    }
}
.custom-docs-grid .file-row {
    grid-column: span 1;
}
.total-payment {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    max-width: 600px;     
    margin: 30px auto;  
    text-align: center; 
}
.total-payment .form-row label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 6px;
    color: #666;
}

.total-payment input {
    width: 100%;
    padding: 12px;

    font-size: 20px;   
    font-weight: 700; 
    text-align: center;

    border: 2px solid #e0e0e0;
    border-radius: 8px;

    background: #f9fafc;
}
.img-wrapper {
    position: relative;
    display: inline-block;
    margin: 5px;
}

.img-wrapper img {
    width: 100px;
    border-radius: 6px;
}

/* ????????? ?? ???????? */
.img-actions {
    position: absolute;
    top: 5px;
    right: 5px;

    display: flex;
    gap: 6px; /* ?????????? ????? ???????? */
}

/* ??? ???? */
.img-actions button {
    width: 24px;
    height: 24px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: none;
    border-radius: 50%;
    cursor: pointer;

    font-size: 13px;
}

/* eye */
.view-img {
    background: rgba(0,0,0,0.65);
    color: #fff;
}

/* delete */
.remove-img {
    background: #ff3b3b;
    color: #fff;
    position: static !important;
}
.login-body {
    margin: 0;
    padding: 0;
    height: 100vh;
    font-family: Arial, sans-serif;

    background: url('/assets/img/login-bg.jpg') no-repeat center center/cover;
    position: relative;
}

/* ????? overlay ?? ??-????? ???????? */
.login-body::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
}

/* ?????????? */
.login-card {
    position: relative;
    z-index: 2;

    width: 360px;
    padding: 30px;
    border-radius: 12px;

    background: rgba(255,255,255,0.95);
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);

    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* inputs */
.login-card input {
    width: 100%;
    padding: 12px;
    margin-bottom: 12px;

    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
}

/* ????? */
.login-card button {
    width: 100%;
    padding: 12px;

    border: none;
    border-radius: 8px;
    background: #111;
    color: #fff;
    font-weight: bold;
    cursor: pointer;

    transition: 0.3s;
}

.login-card button:hover {
    background: #333;
}

/* error */
.error {
    margin-top: 10px;
    color: #fff;
    background: #e74c3c;
    padding: 10px;
    border-radius: 6px;
    text-align: center;
}
.login-logo {
    display: block;
    margin: 0 auto 15px;
    width: 70px;
    height: 70px;

    border-radius: 50%;
    padding: 8px;
    background: #fff;

    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}
.logo a { 
    color:#0092c6;
}
.vin-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.btn-vin-check {
    font-size: 12px;
    padding: 4px 8px;
    background: #0d6efd;
    color: #fff;
    border-radius: 6px;
    text-decoration: none;
    transition: 0.2s;
}

.btn-vin-check:hover {
    background: #0b5ed7;
}
.vin-warning {
    color: #dc3545;
    font-size: 12px;
    margin-top: 5px;
    display: block;
}

input.vin-error {
    border-color: #dc3545;
}
@media (max-width: 768px) {

    .car-top-layout {
        display: flex;
        flex-direction: column;
    }

    .car-right {
        order: 1;
        width: 100%;
    }

    .car-left {
        order: 2;
        width: 100%;
        margin-top: 20px;
    }

    .car-info-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px 15px;
    }

    .car-info-grid .row-item {
        display: block !important;
    }

    .car-info-grid .row-item .label {
        display: block;
        margin-bottom: 4px;
        font-size: 12px;
        opacity: 0.6;
    }

    .car-info-grid .row-item .value {
        display: block;
        font-size: 14px;
        font-weight: 500;
        text-align: left;
    }

    .car-main-image img {
        width: 100%;
        height: auto;
        border-radius: 10px;
    }
.vin-row a {
    display: block;
    margin-top: 5px;
}

    .car-thumbs {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 6px;
        margin-top: 10px;
    }

    .car-thumbs img {
        width: 100%;
        height: 70px;
        object-fit: cover;
        border-radius: 6px;
    }

    .car-info-box {
        margin-bottom: 15px;
    }

}