body {
    /* do not overflow: hidden here, always prefer to solve others issues */
}

a {
    color: #fff;
}

a:hover {
    color: #f5a623;
}

a.r {
    color: #f5a623;
}

a.r:hover {
    color: #fff;
}

/** GENERAL **/

.home-background {
    position: fixed;
    top: 0;
    left: 0;
    background-image: url("../img/truck.jpg");
    background-size: 100%;
    min-height: 100vh;
    z-index: 1;
}

.home-background-tainted {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0.7;
    background-color: #000;
    z-index: 2;
    min-height: 100vh;
}

.home-speech {
    z-index: 5;
    position: relative;
    margin-top: 20vh;
    border: 1px solid #f5a623;
    border-radius: 3px;
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 50px 25px;
}

.home-play-button {
    z-index: 5;
    position: relative;
    margin-top: 20vh;
    /*margin-left: 40vw;*/
    text-align: center;
}

.home-play-button a {
    color: #f5a623;
    font-size: 52px;
    background: #111;
    padding: 10px 40px;
}

.home-play-button a:hover,
.home-play-button a:active,
.home-play-button a:focus {
    color: #ffd761;
    background: #111;
}

.btn-truckster {
    color: #f5a623;
    background: #111;
    height: 50px;
    font-size: 18px;
}

.btn-truckster:hover,
.btn-truckster:active,
.btn-truckster:focus {
    color: #ffd761;
    background: #111;
}

/* !important set to override form classes .auth-form input */
.btn-truckster-n {
    color: #111 !important;
    background: #f5a623 !important;
    height: 40px !important;
    font-size: 18px !important;
}

.btn-truckster-n:hover,
.btn-truckster-n:active,
.btn-truckster-n:focus {
    color: #111 !important;
    background: #ffd761 !important;
}

.btn-stay-clicked {
    transform: translate(0, 0);
    transition: all .35s;
}

.btn-stay-clicked > span {
    position: relative;
    z-index: 2;
}

.btn-stay-clicked:after{
    position: absolute;
    content: "";
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: #222;
    transition: all 2.35s;
}

.btn-stay-clicked-event:focus:after{
    width: 100%;
}

/* Login */
.login-area {
    margin-top: 30vh;
    z-index: 5;
    position: relative;
}

.auth-form p {
    text-align: center;
    color: #fff;
}

.auth-form a,
.auth-form p a {
    color: #f5a623;
}

.auth-form label {
    color: #fff;
    font-size: 18px;
    font-weight: bold;
}

.auth-form input,
.auth-form input:focus,
.trucksters-form input,
.trucksters-form input:focus {
    background: #111;
    border: 1px solid #f5a623;
    outline: none;
    box-shadow: none;
    color: #fff;
    height: 50px;
}

.input-group-text {
    background: #111;
    border: 1px solid #f5a623;
    outline: none;
    box-shadow: none;
    color: #fff;
    height: 50px;
}

.input-error,
.input-error:focus {
    border: 1px solid #cc0000 !important;
}

/* END Login */

.dashboard-container {
    position: relative;
    z-index: 4;
    color: #fff;
}

/** DASHBOARD MENU **/
.dashboard-menu {
    padding-top: 15px;
    text-align: center;
}

.dashboard-menu-item {
    text-align: center;
    display: inline-block;
    padding-left: 15px;
    padding-right: 15px;
}

.dashboard-menu-item-active a {
    color: #f5a623 !important;
}

.dashboard-menu-item a {
    color: #fff;
    text-decoration: none;
}

.dashboard-menu-item a:hover,
.dashboard-menu-item:hover a {
    color: #f5a623;
}

.dashboard-menu-item .menu-icon {
    font-size: 35px;
    text-align: center;
}

.dashboard-menu-item .menu-text {
    font-size: 18px;
    font-weight: 600;
}

.dashboard-menu-item:hover {
    color: #f5a623;
    cursor: pointer;
}

.dashboard-panel {
    margin-top: 20px;
}

/** TABS **/
.tab-bonus-label {
    width: 10%;
    vertical-align: middle;
}

/** LVL & NEWS & CREDITS **/
.lvl-container {
    background: rgba(0, 0, 0, 0.75);
    min-height: 67px;
    padding: 10px 20px;
    border-radius: 3px;
    border: 1px solid #f5a623;
}

.news-container {
    background: rgba(0, 0, 0, 0.75);
    min-height: 67px;
    padding: 17px 20px;
    border-radius: 3px;
    border: 1px solid #f5a623;
    overflow: hidden;
}

.credits-container {
    background: rgba(0, 0, 0, 0.75);
    text-align: right;
    min-height: 67px;
    padding: 17px 20px;
    border-radius: 3px;
    border: 1px solid #f5a623;
}

.lvl-display,
.lvl-display-icon {
    font-weight: 600;
    color: #f5a623;
}

.credits-icon {
    float: left;
    color: #f5a623;
    font-size: 28px;
}

.credits-display {
    color: #f5a623;
    font-weight: 600;
    vertical-align: middle;
}

.fuel-separator {
    border-top: 1px solid rgba(255, 200, 0, 0.25);
    margin: 8px 0 6px;
}

.fuel-display-row {
    text-align: right;
}

.fuel-icon {
    float: left;
    color: #f5a623;
    font-size: 18px;
    margin-top: 1px;
}

.fuel-price-display {
    color: #f5a623;
    font-weight: 600;
    font-size: 15px;
    vertical-align: middle;
}

.fuel-trend {
    font-size: 20px;
    font-weight: bold;
    margin-left: 3px;
    vertical-align: middle;
    line-height: 1;
}

.fuel-trend-up     { color: #e05252; }
.fuel-trend-down   { color: #4caf7d; }
.fuel-trend-stable { color: #888; }

/** PANEL **/
.panel-container {
    background: rgba(0, 0, 0, 0.75);
    border: 1px solid #f5a623;
    scrollbar-color: #f5a623 #000;
    height: 80vh;
    margin-top: 25px;
    border-radius: 3px;
    padding: 10px;
    overflow-y: scroll;
}

.panel-title {
    margin-top: 20px;
    margin-bottom: 10px;
    font-family: monospace;
    font-weight: 700;
    letter-spacing: .03em;
    text-transform: uppercase;
}

.panel-subtitle {
    margin-top: 20px;
    margin-bottom: 10px;
    font-family: monospace;
    font-weight: 700;
    font-size: 1.75em;
    letter-spacing: .03em;
    text-transform: uppercase;
}

.panel-table {
    color: #ffffff;
}

.panel-table tr,
.panel-table td,
.panel-table tbody {
    border: 0 none;
    vertical-align: middle;
}

.panel-table tbody > tr:hover {
    color: #f5a623;
}

.panel-table-icon {
    font-size: 20px;
    margin-right: 10px;
}
.t-btn .panel-table-icon {
    font-size: inherit;
    margin-right: 0;
}

.panel-table-icon:hover {
    cursor: pointer;
}

.table-rank-1 {
    font-size: 24px;
}

.table-rank-2 {
    font-size: 20px;
}

.table-rank-3 {
    font-size: 18px;
}

tr.garage-truck-unavailable {
    color: #666;
}

tr.garage-truck-unavailable:hover {
    color: #666 !important;
}

.icon-disabled {
    color: #666;
}

.icon-disabled:hover {
    cursor: not-allowed;
}

/** NOTIFICATION BELL **/
.notif-bell-container {
    position: relative;
    cursor: pointer;
    user-select: none;
}

.notif-bell-icon {
    position: relative;
    display: inline-block;
}

.notif-pill {
    position: absolute;
    top: -4px;
    right: -12px;
    background: #cc0000;
    color: #fff;
    border-radius: 50%;
    font-size: 11px;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    line-height: 18px;
    text-align: center;
    padding: 0 3px;
}

.notif-panel {
    display: none;
    position: absolute;
    top: 75px;
    right: -10px;
    width: 360px;
    max-height: 420px;
    overflow-y: auto;
    background: rgba(0, 0, 0, 0.97);
    border: 1px solid #f5a623;
    border-radius: 3px;
    z-index: 99999;
    text-align: left;
    scrollbar-color: #f5a623 #000;
}

.notif-panel-header {
    padding: 10px 15px;
    border-bottom: 1px solid #333;
    color: #f5a623;
    font-weight: 600;
    font-size: 14px;
    position: sticky;
    top: 0;
    background: #000;
}

.notif-item {
    padding: 10px 15px;
    border-bottom: 1px solid #1a1a1a;
    font-size: 13px;
    color: #777;
    line-height: 1.5;
}

.notif-item:last-child {
    border-bottom: none;
}

.notif-item-unread {
    color: #fff;
    background: rgba(255, 200, 0, 0.07);
    border-left: 3px solid #f5a623;
}

.notif-item-unread .notif-item-time {
    color: #999;
}

.notif-item-time {
    color: #444;
    font-size: 11px;
    margin-bottom: 4px;
}

.notif-item-dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #f5a623;
    margin-right: 6px;
    vertical-align: middle;
    flex-shrink: 0;
}

.notif-empty {
    color: #555;
    font-style: italic;
    text-align: center;
    padding: 20px;
}

/** CARGO TYPE BADGES **/
.cargo-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 3px;
    letter-spacing: 0.3px;
    vertical-align: middle;
}

.cargo-fridge  { background: #0d6efd22; color: #5bc0de; border: 1px solid #5bc0de; }
.cargo-hazmat  { background: #f5a62322; color: #f5a623; border: 1px solid #f5a623; }
.cargo-express { background: #ff850022; color: #ff8500; border: 1px solid #ff8500; }

.speciality-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 3px;
    margin-left: 5px;
    vertical-align: middle;
}

/** DRIVERS **/
.link-driver {
    display: inline-block;
}

tr {
    position: relative;
}

.card-driver,
.card-truck {
    position: absolute;
    border: 1px solid #f5a623;
    border-radius: 3px;
    background: #000;
    display: none;
    padding: 10px 15px;
    pointer-events: none;
    margin-left: 25px;
    color: #ffffff;
    z-index: 99999999999;
    min-width: 200px;
}

/* Card driver/truck style v2 */
.d-card .card-driver,
.d-card .card-truck,
.dr-card .card-driver,
.dr-card .card-truck,
.t-card .card-driver,
.t-card .card-truck,
.dp-truck-block .card-driver,
.dp-truck-block .card-truck {
    background: rgba(0,0,0,0.9);
    border: 1px solid #f5a623;
    border-radius: 6px;
    padding: 16px 18px;
    min-width: 240px;
    margin-left: 12px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.6);
}

.d-card .card-driver-photo,
.d-card .card-truck-photo,
.dr-card .card-driver-photo,
.dr-card .card-truck-photo,
.t-card .card-driver-photo,
.t-card .card-truck-photo,
.dp-truck-block .card-driver-photo,
.dp-truck-block .card-truck-photo {
    text-align: center;
    margin-bottom: 14px;
}

.d-card .card-driver-photo img,
.d-card .card-truck-photo img,
.dr-card .card-driver-photo img,
.dr-card .card-truck-photo img,
.t-card .card-driver-photo img,
.t-card .card-truck-photo img,
.dp-truck-block .card-driver-photo img,
.dp-truck-block .card-truck-photo img {
    border-radius: 4px;
    border: 1px solid #2e3135;
    max-width: 80px;
}

.d-card .card-driver p,
.d-card .card-truck p,
.dr-card .card-driver p,
.dr-card .card-truck p,
.t-card .card-driver p,
.t-card .card-truck p,
.dp-truck-block .card-driver p,
.dp-truck-block .card-truck p {
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.d-card .card-truck .cd-row,
.d-card .card-driver .cd-row,
.dr-card .card-truck .cd-row,
.dr-card .card-driver .cd-row,
.t-card .card-truck .cd-row,
.t-card .card-driver .cd-row,
.dp-truck-block .card-truck .cd-row,
.dp-truck-block .card-driver .cd-row,
#modal-assign-contract .card-driver .cd-row,
#modal-assign-contract .card-truck .cd-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 8px;
}

.d-card .card-truck .cd-label,
.d-card .card-driver .cd-label,
.dr-card .card-truck .cd-label,
.dr-card .card-driver .cd-label,
.t-card .card-truck .cd-label,
.t-card .card-driver .cd-label,
.dp-truck-block .card-truck .cd-label,
.dp-truck-block .card-driver .cd-label,
#modal-assign-contract .card-driver .cd-label,
#modal-assign-contract .card-truck .cd-label {
    font-family: monospace;
    font-size: 9px;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: #8a8f96;
    flex-shrink: 0;
}

.d-card .card-truck .cd-val,
.d-card .card-driver .cd-val,
.dr-card .card-truck .cd-val,
.dr-card .card-driver .cd-val,
.t-card .card-truck .cd-val,
.t-card .card-driver .cd-val,
.dp-truck-block .card-truck .cd-val,
.dp-truck-block .card-driver .cd-val,
#modal-assign-contract .card-driver .cd-val,
#modal-assign-contract .card-truck .cd-val {
    font-size: 12px;
    font-weight: 500;
    color: #fff8e7;
    text-align: right;
}

.d-card .card-truck .cd-badges,
.d-card .card-driver .cd-badges,
.dr-card .card-truck .cd-badges,
.dr-card .card-driver .cd-badges,
.t-card .card-truck .cd-badges,
.t-card .card-driver .cd-badges,
#modal-assign-contract .card-driver .cd-badges,
#modal-assign-contract .card-truck .cd-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #2e3135;
}

.card-driver-photo,
.card-truck-photo {
    text-align: center;
    margin-bottom: 10px;
}


/** MODALS **/
.modal-content {
    background-color: rgba(0, 0, 0, 0.9);
    border: 1px solid #f5a623;
    color: #fff;
}

.modal-footer {
    border-top: 0;
}

.modal-footer {
    text-align: center;
    display: block;
}

.modal-header {
    border-bottom: 0;
}

/* Modal style v2 */
.modal-v2 { font-family: monospace; }
.modal-v2-title { font-weight: 700; font-size: 1.25rem; text-transform: uppercase; letter-spacing: .03em; color: #fff8e7; }
.select-v2 {
    width: 100%;
    background: #000;
    color: #f5a623;
    border: 1px solid #f5a623;
    border-radius: 4px;
    padding: 8px 12px;
    font-family: monospace;
    font-size: 13px;
    appearance: none;
    -webkit-appearance: none;
    outline: none;
    cursor: pointer;
}
.select-v2:focus { border-color: #f5a623; box-shadow: 0 0 0 2px rgba(245,166,35,.2); }
.select-v2 option { background: #000; color: #f5a623; }

.modal-buy-truck {
    z-index: 999;
}

.modal-tutorial-beginner {
    top: 150px;
}

.modal-tutorial-beginner > .modal-dialog {
    max-width: 900px;
}

/** BUTTONS **/
.btn-ok {
    background-color: #111;
    color: #f5a623;
    border-color: #111;
}

.btn-ok:hover,
.btn-ok:active,
.btn-ok:focus {
    color: #ffd761;
    background-color: #111;
    border-color: #111;
}

.pulse-button {
    border: none;
    background: #f5a623;
    cursor: pointer;
    box-shadow: 0 0 0 0 rgba(255, 200, 0, .5);
    -webkit-animation: pulse 1.5s infinite;
}

@-webkit-keyframes pulse {
    0% {
    @include transform(scale(.9));
    }
    70% {
    @include transform(scale(1));
        box-shadow: 0 0 0 25px rgba(255, 200, 0, 0);
    }
    100% {
    @include transform(scale(.9));
        box-shadow: 0 0 0 0 rgba(255, 200, 0, 0);
    }
}

/** PROGRESS BARS **/
.progress {
    background: #000;
    font-weight: 700;
    text-align: center;
    color: #333;
    margin-top: 5px;
}

/** TABS **/
.nav-tabs-panel {
    border-bottom-color: #f5a623;
}

.nav-tabs-panel .nav-link {
    color: #f5a623;
}

.nav-tabs-panel .nav-link:hover {
    border-color: #f5a623;
}

.nav-tabs-panel .nav-link.active {
    background: #f5a623;
    color: #000;
    border-color: #f5a623;
}

/** TOOLS **/
.bold-highlight {
    color: #f5a623;
    font-weight: 600;
}

.bold-red-highlight {
    color: #cc0000;
    font-weight: 600;
}

.italic-bonus {
    font-style: italic;
    color: #0acd0a;
}

/** DRIVER BONUS BADGES **/
.driver-bonus-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    padding: 2px 7px;
    border-radius: 3px;
    margin: 2px 0;
    border: 1px solid;
    white-space: nowrap;
    font-style: italic;
}

.driver-bonus-badge em {
    font-style: italic;
    font-weight: 400;
}

.bonus-value {
    font-weight: 700;
    font-style: normal;
    margin-left: 2px;
}

.driver-bonus-speed       { color: #5bc0de; background: rgba(91,192,222,0.08); border-color: #5bc0de44; }
.driver-bonus-fuel        { color: #5cb85c; background: rgba(92,184,92,0.08);  border-color: #5cb85c44; }
.driver-bonus-reliability { color: #f0ad4e; background: rgba(240,173,78,0.08); border-color: #f0ad4e44; }
.driver-bonus-eco         { color: #f5a623; background: rgba(255,200,0,0.08);  border-color: #f5a62344; }
.driver-bonus-fridge      { color: #a8d8ea; background: rgba(168,216,234,0.08);border-color: #a8d8ea44; }
.driver-bonus-hazmat      { color: #ff8500; background: rgba(255,133,0,0.08);  border-color: #ff850044; }
.driver-bonus-express     { color: #ffd700; background: rgba(255,215,0,0.08);  border-color: #ffd70044; }
.driver-bonus-default     { color: #aaa;    background: rgba(170,170,170,0.08);border-color: #aaa4; }

.highlight {
    color: #f5a623;
}

.bold {
    font-weight: 600;
}

.block-hint {
    color: #666;
    font-style: italic;
}

.notif-spacer {
    padding-right: 25px;
}

.icon-spacer {
    padding-right: 20px;
}

/** SCROLLING TEXT PROPS **/
#scroll-text {
    /* animation properties */
    -moz-transform: translateX(100%);
    -webkit-transform: translateX(100%);
    transform: translateX(100%);

    -moz-animation: my-animation 15s linear 1;
    -webkit-animation: my-animation 15s linear 1;
    animation: my-animation 15s linear 1;

    white-space: nowrap;
}

.no-margin {
    margin-left: 0;
    margin-right: 0;
}

/* for Firefox */
@-moz-keyframes my-animation {
    from { -moz-transform: translateX(100%); }
    to { -moz-transform: translateX(-100%); }
}

/* for Chrome */
@-webkit-keyframes my-animation {
    from { -webkit-transform: translateX(100%); }
    to { -webkit-transform: translateX(-100%); }
}

@keyframes my-animation {
    from {
        -moz-transform: translateX(100%);
        -webkit-transform: translateX(100%);
        transform: translateX(100%);
    }
    to {
        -moz-transform: translateX(-100%);
        -webkit-transform: translateX(-100%);
        transform: translateX(-100%);
    }
}

/** DELIVERY CARDS v2 **/
.delivery-cards { display: flex; flex-direction: column; gap: 0; }

.d-card {
    border-bottom: 1px solid #5e6268;
    border-left: 3px solid transparent;
    padding: 12px 16px;
    transition: background .15s;
}
.d-card.standard { border-left-color: #9aa0b0; }
.d-card.urgent   { border-left-color: #e0a020; }
.d-card.fridge   { border-left-color: #5ba3e0; }
.d-card.hazmat   { border-left-color: #e05252; }
.d-card:hover { background: rgba(245,166,35,0.04); }
.d-card:last-child { border-bottom: none; }

.d-card-top {
    display: grid;
    grid-template-columns: 36px 1fr auto auto;
    gap: 10px;
    align-items: center;
    margin-bottom: 8px;
}

.d-avatar {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: #2e3135;
    display: flex; align-items: center; justify-content: center;
    font-weight: 900; font-size: 13px;
    color: #f5a623;
    border: 1px solid #3a3d42;
    flex-shrink: 0;
}
.d-avatar.rarity-rare      { background: #1a3a5c; border-color: #2a5a8c; color: #5ba3e0; }
.d-avatar.rarity-epic      { background: #2d1a4a; border-color: #5a3a8c; color: #a070e0; }
.d-avatar.rarity-legendary { background: #4a2a00; border-color: #a06b10; color: #f5a623; }

.d-driver-name { font-weight: 600; font-size: 13px; color: #fff8e7; }
.d-driver-lvl  { font-size: 10px; color: #8a8f96; font-weight: 400; }
.d-truck-name  { font-family: monospace; font-size: 10px; color: #8a8f96; margin-top: 1px; }
.d-cargo       { display: flex; flex-direction: row; align-items: center; gap: 7px; min-width: 0; align-self: end; }
.d-cargo .cargo-badge { flex-shrink: 0; }

.d-revenue-net    { font-weight: 700; font-size: 18px; color: #4caf7d; text-align: right; }
.d-revenue-net.incident { color: #e08060; }
.d-revenue-detail { font-size: 11px; color: #8a8f96; text-align: right; margin-top: 1px; }

.d-route { display: flex; align-items: center; gap: 8px; position: relative; }
.d-city  { font-weight: 700; font-size: 14px; text-transform: uppercase; letter-spacing: .03em; white-space: nowrap; color: #fff8e7; flex-shrink: 0; }

.d-route-line  { flex: 1; display: flex; align-items: center; gap: 3px; }
.d-route-dot   { width: 5px; height: 5px; border-radius: 50%; background: #2e3135; border: 1px solid #8a8f96; flex-shrink: 0; }
.d-route-dash  { flex: 1; height: 1px; background: repeating-linear-gradient(to right, #2e3135 0, #2e3135 4px, transparent 4px, transparent 8px); }
.d-route-check { font-size: 13px; color: #4caf7d; flex-shrink: 0; }
.d-route-truck { font-size: 13px; color: #f5a623; flex-shrink: 0; }

.d-prog-bar  { flex: 1; height: 4px; background: #2e3135; border-radius: 2px; overflow: hidden; }
.d-prog-fill { height: 100%; background: #4caf7d; border-radius: 2px; }
.d-prog-fill.chargement { background: #f5a623; }

/* Barre de progression avec camion positionné au ratio */
.d-prog-wrap   { flex: 1; position: relative; height: 4px; margin: 0 4px; }
.d-prog-track  { position: absolute; inset: 0; background: #2e3135; border-radius: 2px; }
.d-prog-fill   { position: absolute; top: 0; left: 0; bottom: 0; background: #4caf7d; border-radius: 2px; transition: width .9s linear; }
.d-prog-fill.chargement { background: #f5a623; }
.d-prog-truck  { position: absolute; top: 50%; transform: translateY(-50%) translateX(-50%); font-size: 13px; color: #f5a623; transition: left .9s linear; }

/* Route ligne avec icône centrée absolument (terminées / annulées) */
.d-route-line--icon {
    flex: 1;
    height: 1px;
    background: repeating-linear-gradient(to right, #2e3135 0, #2e3135 4px, transparent 4px, transparent 8px);
}
.d-route-center-icon {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-size: 13px;
    line-height: 1;
}

.d-meta  { display: flex; align-items: center; gap: 8px; margin-top: 6px; flex-wrap: wrap; }
.d-time  { font-size: 11px; color: #8a8f96; margin-left: auto; }

.d-badge        { font-family: monospace; font-size: 9px; letter-spacing: .08em; text-transform: uppercase; padding: 2px 8px; border-radius: 3px; }
.d-badge.livre  { background: #0d2e1a; color: #4caf7d; border: 1px solid #1a5a32; }
.d-badge.annule { background: #2e0f0f; color: #e05252; border: 1px solid #6b2020; }
.d-badge.route  { background: #0d2e1a; color: #4caf7d; border: 1px solid #1a5a32; }
.d-badge.charge { background: #2a2000; color: #f5a623; border: 1px solid #a06b10; }

.d-cancel-btn { background: none; border: none; color: #8a8f96; cursor: pointer; font-size: 12px; padding: 2px 6px; }
.d-cancel-btn:hover { color: #e05252; }

/** CONTRACT CARDS v2 **/
.contract-cards { display: flex; flex-direction: column; gap: 0; }

.c-card {
    border-bottom: 1px solid #5e6268;
    padding: 16px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 16px;
    align-items: center;
    transition: background .15s;
    cursor: pointer;
}
.c-card:hover { background: rgba(245,166,35,0.04); }
.c-card:last-child { border-bottom: none; }
.c-card.standard{ border-left: 3px solid #9aa0b0; }
.c-card.urgent  { border-left: 3px solid #e0a020; }
.c-card.fridge  { border-left: 3px solid #5ba3e0; }
.c-card.hazmat  { border-left: 3px solid #e05252; }

.c-top { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; flex-wrap: wrap; }
.c-cargo { font-weight: 600; font-size: 13px; text-transform: uppercase; letter-spacing: .03em; color: #fff8e7; }

.cargo-badge { font-family: monospace; font-size: 9px; letter-spacing: .08em; text-transform: uppercase; padding: 2px 7px; border-radius: 3px; }
.cargo-standard{ background: rgba(220,225,235,.07); color: #d8dce6; border: 1px solid #9aa0b0; }
.cargo-express { background: #2a1e00; color: #e0a020; border: 1px solid #6b4a00; }
.cargo-fridge  { background: #0d1e3a; color: #5ba3e0; border: 1px solid #1a3a6b; }
.cargo-hazmat  { background: #2e0f0f; color: #e05252; border: 1px solid #6b2020; }

.c-route { display: flex; align-items: center; gap: 8px; position: relative; }
.c-city  { font-weight: 700; font-size: 14px; text-transform: uppercase; letter-spacing: .03em; white-space: nowrap; color: #fff8e7; flex-shrink: 0; }
.c-route-line  { flex: 1; height: 1px; background: repeating-linear-gradient(to right, #2e3135 0, #2e3135 4px, transparent 4px, transparent 8px); min-width: 60px; }
.c-route-arrow { position: absolute; left: 50%; transform: translateX(-50%); font-size: 12px; color: #8a8f96; }

.c-meta       { display: flex; align-items: center; gap: 18px; margin-top: 10px; flex-wrap: wrap; }
.c-meta-item  { display: flex; flex-direction: column; gap: 1px; }
.c-meta-label { font-family: monospace; font-size: 9px; letter-spacing: .1em; text-transform: uppercase; color: #8a8f96; }
.c-meta-val   { font-size: 11px; font-weight: 500; color: #fff8e7; }

.c-right   { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.c-reward  { font-weight: 700; font-size: 18px; color: #f5a623; }
.c-expires { font-family: monospace; font-size: 11px; color: #8a8f96; text-align: right; }
.c-expires.soon { color: #e05252; }
.c-btn {
    background: transparent; border: 1px solid #f5a623; color: #f5a623;
    font-family: monospace; font-size: 10px; letter-spacing: .1em; text-transform: uppercase;
    padding: 7px 14px; border-radius: 5px; cursor: pointer; transition: all .15s; white-space: nowrap;
    text-decoration: none; display: inline-block;
}
.c-btn:hover { background: #f5a623; color: #1a1200; }

/** GARAGE CARDS v2 **/
.truck-cards { display: flex; flex-direction: column; }

.panel-header-v2 {
    display: flex; align-items: center; justify-content: space-between;
    padding: 12px 16px; border-bottom: 1px solid #2e3135;
}

.t-card {
    border-bottom: 1px solid #5e6268;
    display: grid;
    grid-template-columns: 100px 1fr auto;
    transition: background .15s;
}
.t-card:hover { background: rgba(245,166,35,0.03); }
.t-card:last-child { border-bottom: none; }
.t-card:has(+ .t-alert) { border-bottom: none; }
.dr-card:has(+ .t-alert) { border-bottom: none; }
.t-card.warn    { border-left: 3px solid #a06b10; }
.t-card.danger  { border-left: 3px solid #e05252; }
.t-card.mission { border-left: 3px solid #4caf7d; }

.t-photo {
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    gap: 6px; border-right: 1px solid #2e3135;
    padding: 12px 8px;
}
.t-photo img { width: 72px; height: 50px; object-fit: contain; filter: brightness(.85); }
.t-photo-placeholder {
    width: 72px; height: 50px; background: #2e3135; border-radius: 4px;
    display: flex; align-items: center; justify-content: center;
    color: #8a8f96; font-size: 22px;
}
.t-km { font-family: monospace; font-size: 9px; color: #8a8f96; text-align: center; }

.t-body { padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.t-top  { display: flex; align-items: baseline; gap: 8px; }
.t-name { font-weight: 700; font-size: 16px; text-transform: uppercase; letter-spacing: .03em; color: #fff8e7; }
.t-name a { transition: color .15s; }
.t-name a:hover { color: #f5a623; }
.t-brand { font-family: monospace; font-size: 10px; color: #8a8f96; }

.t-meta       { display: flex; gap: 18px; flex-wrap: wrap; }
.t-meta-item  { display: flex; flex-direction: column; gap: 2px; }
.t-meta-label { font-family: monospace; font-size: 9px; letter-spacing: .1em; text-transform: uppercase; color: #8a8f96; }
.t-meta-val   { font-size: 13px; font-weight: 500; color: #fff8e7; }
.t-meta-val.go    { color: #4caf7d; }
.t-meta-val.red   { color: #e05252; }
.t-meta-val.amber { color: #f5a623; }

.t-etat-row  { display: flex; align-items: center; gap: 8px; }
.t-etat-bar  { width: 120px; height: 5px; background: #2e3135; border-radius: 3px; overflow: hidden; flex-shrink: 0; }
.t-etat-fill { height: 100%; border-radius: 3px; }
.t-etat-fill.go   { background: #4caf7d; }
.t-etat-fill.warn { background: #f5a623; }
.t-etat-fill.red  { background: #e05252; }
.t-etat-badge { font-family: monospace; font-size: 9px; padding: 2px 7px; border-radius: 3px; white-space: nowrap; }
.t-etat-badge.go   { background: #0d2e1a; color: #4caf7d; border: 1px solid #1a5a32; }
.t-etat-badge.warn { background: #2a2000; color: #f5a623; border: 1px solid #a06b10; }
.t-etat-badge.red  { background: #2e0f0f; color: #e05252; border: 1px solid #6b2020; }

.t-mission { background: #0a1e0f; border: 1px solid #1a3a20; border-radius: 5px; padding: 8px 10px; display: flex; flex-direction: column; gap: 4px; }
.t-mission-label { font-family: monospace; font-size: 9px; letter-spacing: .1em; text-transform: uppercase; color: #4caf7d; margin-bottom: 2px; }
.t-mission-route { font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: .03em; color: #fff8e7; }
.t-prog-bar  { height: 4px; background: #1a3a20; border-radius: 2px; overflow: hidden; margin-top: 2px; }
.t-prog-fill { height: 100%; background: #4caf7d; border-radius: 2px; transition: width .5s linear; }
.t-prog-meta { display: flex; justify-content: space-between; font-family: monospace; font-size: 9px; color: #8a8f96; margin-top: 3px; }

.t-alert { background: #2a2000; border-top: none; border-bottom: 1px solid #4a4f56; padding: 6px 16px; font-size: 11px; color: #f5a623; display: flex; align-items: center; gap: 6px; }
.t-alert.red { background: #1e0f0f; border-color: #4a4f56; color: #e05252; }

.t-actions { padding: 12px; display: flex; flex-direction: column; justify-content: center; gap: 6px; border-left: 1px solid #2e3135; width: 130px; flex-shrink: 0; }
.t-action-btn {
    background: transparent; border: 1px solid #f5a623; color: #f5a623;
    font-family: monospace; font-size: 10px; letter-spacing: .08em; text-transform: uppercase;
    padding: 5px 10px; border-radius: 5px; cursor: pointer; transition: all .15s;
    white-space: nowrap; display: block; text-align: center; text-decoration: none;
}
.t-action-btn.amber         { border-color: #f5a623; color: #f5a623; }
.t-action-btn.amber:hover   { background: #f5a623; color: #1a1200; }
.t-action-btn-filled        { background: #f5a623 !important; color: #1a1200 !important; }
.t-action-btn-filled:hover  { background: #d4891a !important; border-color: #d4891a !important; }
.t-action-btn.red         { border-color: #e05252; color: #e05252; }
.t-action-btn.red:hover   { background: #e05252; color: #fff; }
.t-action-btn.green       { border-color: #4caf7d; color: #4caf7d; }
.t-action-btn.green:hover { background: #4caf7d; color: #0a1e0f; }
.t-action-btn.disabled    { border-color: #2e3135; color: #4a4f56; cursor: not-allowed; opacity: .45; }

/* ============================================================
   DRIVERS — vue liste chauffeurs
   ============================================================ */

/* Mes chauffeurs */
.driver-cards { display: flex; flex-direction: column; gap: 0; }

.dr-card {
    border-bottom: 1px solid #2e3135;
    padding: 12px 16px;
    display: grid;
    grid-template-columns: auto 1fr auto auto;
    gap: 12px;
    align-items: center;
    transition: background .15s;
}
.dr-card:hover { background: rgba(245,166,35,0.04); }
.dr-card:last-child { border-bottom: none; }
.dr-card.on-mission { border-left: 3px solid #f5a623; }

.dr-avatar-wrap { position: relative; flex-shrink: 0; width: 50px; display: flex; flex-direction: column; align-items: center; gap: 5px; }
.dr-avatar-dot { position: absolute; bottom: 2px; right: 2px; width: 10px; height: 10px; border-radius: 50%; border: 2px solid #1a1c1e; }
.dr-avatar-dot.available { background: #4caf7d; }
.dr-avatar-dot.mission   { background: #f5a623; }

.dr-avatar-placeholder {
    position: relative;
    width: 50px; height: 50px; border-radius: 50%; background: #2e3135;
    display: flex; align-items: center; justify-content: center;
    font-weight: 900; font-size: 18px;
    color: #f5a623; border: 2px solid #3a3d42;
}
.dr-avatar-placeholder.rarity-rare      { background: #1a3a5c; border-color: #2a5a8c; color: #5ba3e0; }
.dr-avatar-placeholder.rarity-epic      { background: #2d1a4a; border-color: #5a3a8c; color: #a070e0; }
.dr-avatar-placeholder.rarity-legendary { background: #4a2a00; border-color: #a06b10; color: #f5a623; }

.dr-body   { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.dr-top    { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; position: relative; }
.dr-name   { font-weight: 700; font-size: 18px; text-transform: uppercase; letter-spacing: .03em; color: #fff8e7; text-decoration: none; }
.dr-name:hover { color: #f5a623; }
.dr-cargo-icon { position: absolute; bottom: -2px; left: -2px; width: 16px; height: 16px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 8px; border: 1.5px solid #1a1c1e; }
.dr-cargo-icon.hazmat  { background: #e05252; color: #fff; }
.dr-cargo-icon.fridge  { background: #38bdf8; color: #fff; }
.dr-cargo-icon.express { background: #f5a623; color: #1a1200; }
.dr-lvl    { font-family: monospace; font-size: 9px; color: #f5a623; background: #2a2000; border: 1px solid #a06b10; padding: 1px 5px; border-radius: 3px; white-space: nowrap; }

.dr-status { font-family: monospace; font-size: 10px; padding: 2px 8px; border-radius: 3px; }
.dr-status.available { background: #0d2e1a; color: #4caf7d; border: 1px solid #1a5a32; }
.dr-status.mission   { background: #2a2000; color: #f5a623; border: 1px solid #a06b10; }

.dr-meta       { display: flex; gap: 14px; flex-wrap: wrap; }
.dr-meta-item  { display: flex; flex-direction: column; gap: 1px; }
.dr-meta-label { font-family: monospace; font-size: 9px; letter-spacing: .1em; text-transform: uppercase; color: #8a8f96; }
.dr-meta-val   { font-size: 12px; font-weight: 500; color: #fff8e7; }
.dr-meta-val.go    { color: #4caf7d; }
.dr-meta-val.amber { color: #f5a623; }

.dr-bonuses { display: flex; gap: 5px; flex-wrap: wrap; align-items: center; }
.dr-badge   { font-family: monospace; font-size: 10px; padding: 2px 8px; border-radius: 3px; }
.dr-badge.pos { background: #0d2e1a; color: #4caf7d; border: 1px solid #1a5a32; }
.dr-badge.neg { background: #2e0f0f; color: #e05252; border: 1px solid #6b2020; }
.dr-badge.neu { background: #2a2000; color: #f5a623; border: 1px solid #a06b10; }

.dr-bars-col { display: flex; flex-direction: column; gap: 6px; align-items: flex-end; }
.dr-xp-col   { display: flex; flex-direction: column; justify-content: center; align-items: center; }
.dr-xp-bar   { width: 80px; height: 3px; background: #2e3135; border-radius: 2px; overflow: hidden; }
.dr-xp-fill  { height: 100%; background: #f5a623; border-radius: 2px; }
.dr-xp-label { font-family: monospace; font-size: 9px; color: #8a8f96; text-align: right; white-space: nowrap; }
.dr-fire-btn {
    background: transparent; border: 1px solid #e05252; color: #e05252;
    font-family: monospace; font-size: 10px; letter-spacing: .1em; text-transform: uppercase;
    padding: 5px 10px; border-radius: 5px; cursor: pointer; transition: all .15s; white-space: nowrap;
    display: inline-block;
}
.dr-fire-btn:hover { background: #e05252; color: #fff; }
.dr-fire-btn.disabled { border-color: #3a3f45; color: #4a4f56; cursor: not-allowed; }
.dr-fire-btn.disabled:hover { background: transparent; color: #4a4f56; }
.dr-rest-btn {
    background: transparent; border: 1px solid #f5a623; color: #f5a623;
    font-family: monospace; font-size: 10px; letter-spacing: .1em; text-transform: uppercase;
    padding: 5px 10px; border-radius: 5px; cursor: pointer; transition: all .15s; white-space: nowrap;
    display: inline-block; margin-top: 6px; width: 100%; text-align: center;
}
.dr-rest-btn:hover { background: #f5a623; color: #1a1200; }
.dr-fire-btn { width: 100%; text-align: center; }

/* Embaucher */
.hire-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(175px, 1fr)); gap: 10px; }

.h-card { background: #1c1e21; display: flex; flex-direction: column; transition: background .15s; border: 1px solid #2e3135; }
.h-card:hover { background: #242729; }

.h-photo {
    height: 80px; background: #1a1c1e;
    display: flex; align-items: center; justify-content: center;
    position: relative; border-bottom: 1px solid #2e3135;
}
.h-photo-placeholder {
    position: relative;
    width: 58px; height: 58px; border-radius: 50%; background: #2e3135;
    display: flex; align-items: center; justify-content: center;
    font-weight: 900; font-size: 20px;
    color: #f5a623; border: 2px solid #3a3d42;
}
.h-photo-placeholder.rarity-rare      { background: #1a3a5c; border-color: #2a5a8c; color: #5ba3e0; }
.h-photo-placeholder.rarity-epic      { background: #2d1a4a; border-color: #5a3a8c; color: #a070e0; }
.h-photo-placeholder.rarity-legendary { background: #4a2a00; border-color: #a06b10; color: #f5a623; }
.h-lvl { position: absolute; top: 6px; right: 6px; background: #f5a623; color: #1a1200; font-family: monospace; font-size: 9px; font-weight: 700; padding: 1px 6px; border-radius: 3px; }
.h-rarity { position: absolute; top: 6px; left: 6px; }

.h-body   { padding: 10px 12px; flex: 1; display: flex; flex-direction: column; gap: 5px; }
.h-name   { font-weight: 700; font-size: 16px; text-transform: uppercase; letter-spacing: .03em; color: #fff8e7; }
.h-salary { font-family: monospace; font-size: 10px; color: #8a8f96; }
.h-salary span { color: #4caf7d; }
.h-bonuses { display: flex; flex-wrap: wrap; gap: 3px; margin-top: 2px; }

.h-footer { padding: 8px 12px; border-top: 1px solid #2e3135; }

/* Modal driver picker */
.modal-driver-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
    max-height: 65vh;
    overflow-y: auto;
    padding: 2px;
    scrollbar-width: thin;
    scrollbar-color: #f5a623 #1a1c1e;
}
.modal-driver-grid::-webkit-scrollbar { width: 6px; }
.modal-driver-grid::-webkit-scrollbar-track { background: #1a1c1e; border-radius: 3px; }
.modal-driver-grid::-webkit-scrollbar-thumb { background: #f5a623; border-radius: 3px; }
.modal-driver-grid::-webkit-scrollbar-thumb:hover { background: #d4891a; }
.modal-driver-card { background: #1c1e21; border: 1px solid #2e3135; border-radius: 6px; overflow: hidden; cursor: pointer; transition: all .15s; }
.modal-driver-card:hover { background: #242729; }
.modal-driver-card.selected { background: #2a2000; border-color: #f5a623; }
.h-btn {
    display: block; width: 100%; background: transparent;
    border: 1px solid #f5a623; color: #f5a623;
    font-family: monospace; font-size: 10px; letter-spacing: .1em; text-transform: uppercase;
    padding: 6px; border-radius: 4px; cursor: pointer;
    transition: all .15s; text-align: center; text-decoration: none;
}
.h-btn:hover { background: #f5a623; color: #1a1200; }

/* ============================================================
   DASHBOARD — vue générale
   ============================================================ */

.db-title  { font-weight: 900; font-size: 22px; text-transform: uppercase; letter-spacing: .04em; color: #fff8e7; }
.db-date   { font-family: monospace; font-size: 10px; color: #8a8f96; margin-top: 2px; }
.db-header { margin-bottom: 14px; }

.db-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }

.db-section      { background: rgba(0,0,0,0.8); border: 1px solid #2e3135; border-radius: 8px; overflow: hidden; display: flex; flex-direction: column; }
.db-section-head { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px; border-bottom: 1px solid #2e3135; }
.db-section-title { font-family: monospace; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: #8a8f96; }
.db-section-link  { font-family: monospace; font-size: 9px; letter-spacing: .1em; text-transform: uppercase; color: #f5a623; text-decoration: none; opacity: .7; }
.db-section-link:hover { opacity: 1; }

/* Flotte */
.fleet-item { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid #2e3135; transition: background .15s; }
.fleet-item:hover { background: rgba(245,166,35,0.04); }
.fleet-item:last-child { border-bottom: none; }

.fleet-avatar { width: 32px; height: 32px; border-radius: 50%; background: #2e3135; display: flex; align-items: center; justify-content: center; font-weight: 900; font-size: 12px; color: #f5a623; border: 1px solid #3a3d42; flex-shrink: 0; }
.fleet-avatar.rarity-rare      { background: #1a3a5c; border-color: #2a5a8c; color: #5ba3e0; }
.fleet-avatar.rarity-epic      { background: #2d1a4a; border-color: #5a3a8c; color: #a070e0; }
.fleet-avatar.rarity-legendary { background: #4a2a00; border-color: #a06b10; color: #f5a623; }
.fleet-avatar.go   { color: #4caf7d; border-color: #1a5a32; background: #0d2e1a; }
.fleet-avatar.idle { color: #8a8f96; border-color: #2e3135; background: #1c1e21; }
.fleet-avatar.warn { color: #e05252; border-color: #6b2020; background: #1e0f0f; }

.fleet-info { flex: 1; min-width: 0; }
.fleet-name { font-size: 13px; font-weight: 600; color: #fff8e7; }
.fleet-sub  { font-family: monospace; font-size: 10px; color: #8a8f96; margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.fleet-eta  { font-family: monospace; font-size: 10px; color: #4caf7d; text-align: right; }
.fleet-prog { width: 60px; height: 3px; background: #2e3135; border-radius: 2px; overflow: hidden; margin-top: 4px; margin-left: auto; }
.fleet-prog-fill { height: 100%; border-radius: 2px; background: #4caf7d; }

.fleet-action { font-family: monospace; font-size: 9px; text-transform: uppercase; letter-spacing: .08em; color: #f5a623; text-decoration: none; border: 1px solid #a06b10; padding: 3px 8px; border-radius: 3px; white-space: nowrap; }
.fleet-action:hover { background: #f5a623; color: #1a1200; }
.fleet-action.red { border-color: #6b2020; color: #e05252; }
.fleet-action.red:hover { background: #e05252; color: #fff; }

/* KPIs */
.kpi-grid  { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: #2e3135; }
.kpi-cell  { background: rgba(0,0,0,0.8); padding: 12px 14px; }
.kpi-label { font-family: monospace; font-size: 9px; letter-spacing: .12em; text-transform: uppercase; color: #8a8f96; margin-bottom: 4px; }
.kpi-val   { font-weight: 700; font-size: 22px; color: #fff8e7; }
.kpi-val.go    { color: #4caf7d; }
.kpi-val.amber { color: #f5a623; }
.kpi-sub   { font-size: 11px; color: #8a8f96; margin-top: 2px; }

/* Événements */
.event-item { display: flex; align-items: flex-start; gap: 10px; padding: 10px 14px; border-bottom: 1px solid #2e3135; }
.event-item:last-child { border-bottom: none; }
.event-dot  { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; margin-top: 4px; }
.event-dot.go    { background: #4caf7d; }
.event-dot.amber { background: #f5a623; }
.event-dot.red   { background: #e05252; }
.event-dot.gray  { background: #2e3135; border: 1px solid #8a8f96; }
.event-text { font-size: 12px; color: #fff8e7; line-height: 1.4; flex: 1; }
.event-time { font-family: monospace; font-size: 9px; color: #8a8f96; margin-top: 2px; }

/* Actions rapides */
.actions-grid { flex: 1; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 8px; padding: 14px; }
.qa-btn { display: flex; align-items: center; gap: 10px; background: rgba(0,0,0,0.8); border: 1px solid #2e3135; border-radius: 6px; padding: 10px 12px; text-decoration: none; transition: all .15s; height: 100%; box-sizing: border-box; }
.qa-btn:hover { border-color: #f5a623; background: rgba(245,166,35,0.06); }
.qa-btn.alert { border-color: #a06b10; background: rgba(245,166,35,0.06); }
.qa-icon  { font-size: 18px; color: #f5a623; flex-shrink: 0; width: 24px; text-align: center; }
.qa-label { font-weight: 700; font-size: 14px; text-transform: uppercase; letter-spacing: .04em; color: #fff8e7; }
.qa-sub   { font-size: 11px; color: #8a8f96; margin-top: 1px; }
.qa-pill  { background: #f5a623; color: #1a1200; font-family: monospace; font-size: 9px; font-weight: 700; padding: 1px 6px; border-radius: 10px; margin-left: auto; flex-shrink: 0; }

/* ============================================================
   SETTINGS
   ============================================================ */
.settings-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.settings-section { background: #1c1e21; border: 1px solid #2e3135; border-radius: 8px; overflow: hidden; }
.settings-section-head { padding: 12px 16px; border-bottom: 1px solid #2e3135; display: flex; align-items: center; }
.settings-section-title { font-family: 'Roboto Mono', monospace; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: #8a8f96; }
.settings-body { padding: 24px 20px; display: flex; flex-direction: column; gap: 20px; }

.settings-field { display: flex; flex-direction: column; gap: 5px; padding-top: 8px; }
.settings-label { font-family: 'Roboto Mono', monospace; font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: #f5a623; }
.settings-input { background: #252729; border: 1px solid #2e3135; border-radius: 5px; color: #fff8e7; font-family: 'Barlow', sans-serif; font-size: 14px; padding: 9px 12px; transition: border-color .15s; width: 100%; box-sizing: border-box; }
.settings-input:focus { outline: none; border-color: #f5a623; }
.settings-input::placeholder { color: #8a8f96; }

.settings-checkbox-row { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: #252729; border: 1px solid #2e3135; border-radius: 5px; cursor: pointer; }
.settings-checkbox-row input[type="checkbox"] { width: 16px; height: 16px; accent-color: #f5a623; cursor: pointer; flex-shrink: 0; }
.settings-checkbox-label { font-size: 13px; color: #fff8e7; }
.settings-checkbox-sub { font-size: 11px; color: #8a8f96; margin-top: 1px; }

.settings-submit { background: #f5a623; color: #1a1200; font-family: 'Roboto Mono', monospace; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; padding: 10px 20px; border: none; border-radius: 5px; cursor: pointer; font-weight: 500; transition: background .15s; }
.settings-submit:hover { background: #ffbe45; }

.settings-danger { padding: 16px; }
.settings-logout { display: inline-flex; align-items: center; gap: 10px; background: transparent; border: 1px solid #6b2020; color: #e05252; font-family: 'Roboto Mono', monospace; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; padding: 10px 16px; border-radius: 5px; text-decoration: none; transition: all .15s; }
.settings-logout:hover { background: #2e0f0f; color: #e05252; }

.settings-hint { font-size: 11px; color: #8a8f96; font-style: italic; margin-top: 4px; }

/* ============================================================
   GARAGE — ACHAT (buy.php)
   ============================================================ */
.buy-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.buy-back-btn { font-family: 'Roboto Mono', monospace; font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: #8a8f96; text-decoration: none; border: 0.5px solid #2e3135; padding: 6px 12px; border-radius: 5px; }
.buy-back-btn:hover { background: #2e3135; color: #fff8e7; }
.buy-credits-bar { font-family: 'Roboto Mono', monospace; font-size: 11px; color: #8a8f96; margin-bottom: 16px; }
.buy-credits-bar strong { color: #f5a623; }

.truck-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.truck-card { background: #1c1e21; border: 0.5px solid #2e3135; border-radius: 12px; overflow: hidden; transition: border-color .15s; }
.truck-card:not(.truck-card-disabled):hover { border-color: #f5a623; }
.truck-card-disabled { opacity: .55; }
.truck-img { background: #252729; display: flex; align-items: center; justify-content: center; height: 90px; padding: 12px; border-bottom: 0.5px solid #2e3135; }
.truck-img img { max-height: 66px; max-width: 100%; object-fit: contain; }
.truck-body { padding: 12px; }
.truck-brand { font-family: 'Roboto Mono', monospace; font-size: 9px; letter-spacing: .12em; text-transform: uppercase; color: #8a8f96; margin-bottom: 2px; }
.truck-model { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 15px; color: #fff8e7; line-height: 1.2; margin-bottom: 8px; }
.truck-meta { display: flex; gap: 8px; margin-bottom: 10px; flex-wrap: wrap; }
.truck-badge { font-family: 'Roboto Mono', monospace; font-size: 9px; color: #8a8f96; background: #1a1c1e; border: 0.5px solid #2e3135; padding: 2px 6px; border-radius: 4px; }
.truck-footer { display: flex; align-items: center; justify-content: space-between; }
.truck-price { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 18px; color: #f5a623; }
.truck-no-funds { font-family: 'Roboto Mono', monospace; font-size: 9px; color: #d97706; margin-top: 3px; display: block; }
.buy-btn { font-family: 'Roboto Mono', monospace; font-size: 9px; letter-spacing: .1em; text-transform: uppercase; border: none; padding: 6px 10px; border-radius: 5px; cursor: pointer; transition: all .15s; white-space: nowrap; }
.buy-btn-active { background: #f5a623; color: #1a1200; }
.buy-btn-active:hover { background: #ffbe45; }
.buy-btn-locked { background: #252729; color: #8a8f96; border: 0.5px solid #2e3135; cursor: not-allowed; }

/* Cargo type badge (drivers) */
.dr-cargo { font-family: 'Roboto Mono', monospace; font-size: 9px; letter-spacing: .08em; text-transform: uppercase; padding: 2px 7px; border-radius: 3px; font-weight: 600; white-space: nowrap; }
.dr-cargo.standard { background: rgba(138,143,150,.15); color: #8a8f96; border: 0.5px solid #3a3f45; }
.dr-cargo.fridge   { background: rgba(56,189,248,.12);  color: #38bdf8; border: 0.5px solid #1e6a8a; }
.dr-cargo.hazmat   { background: rgba(224,82,82,.12);   color: #e05252; border: 0.5px solid #7a2020; }
.dr-cargo.express  { background: rgba(245,166,35,.12);  color: #f5a623; border: 0.5px solid #8a5a00; }

/* ============================================================
   FATIGUE DRIVERS
   ============================================================ */
.driver-fatigue-bar { margin: 0; }
.fatigue-label { display: flex; justify-content: space-between; font-family: 'Roboto Mono', monospace; font-size: 9px; color: #8a8f96; margin-bottom: 3px; }
.fatigue-value { color: #fff8e7; }
.fatigue-track { width: 80px; height: 3px; background: #2e3135; border-radius: 2px; overflow: hidden; }
.fatigue-fill  { height: 100%; border-radius: 2px; transition: width .3s; }
.fatigue-good   { background: #f5a623; }
.fatigue-warn   { background: #f5a623; opacity: .6; }
.fatigue-danger { background: #e05252; }
.btn-rest { font-family: 'Roboto Mono', monospace; font-size: 9px; letter-spacing: .08em; text-transform: uppercase; background: transparent; border: 1px solid #2e3135; color: #8a8f96; padding: 4px 10px; border-radius: 4px; cursor: pointer; transition: all .15s; margin-top: 4px; display: inline-block; }
.btn-rest:hover { border-color: #f5a623; color: #f5a623; }

/* ===== QUÊTES ===== */
.q-tabs { display: flex; gap: 0; border-bottom: 1px solid #2e3135; margin-bottom: 16px; }
.q-tab { font-family: 'Roboto Mono', monospace; font-size: 10px; letter-spacing: .1em; text-transform: uppercase; padding: 10px 20px; color: #8a8f96; cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; transition: all .15s; display: flex; align-items: center; gap: 6px; }
.q-tab.active { color: #f5a623; border-bottom-color: #f5a623; }
.q-tab-count { background: rgba(245,166,35,0.15); color: #f5a623; border-radius: 10px; font-size: 9px; padding: 1px 6px; }
.q-panel { display: none; }
.q-panel.active { display: block; }
.q-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; font-family: 'Roboto Mono', monospace; font-size: 10px; color: #8a8f96; }
.q-header-hl { color: #fff8e7; }
.q-grid { display: flex; flex-direction: column; gap: 10px; }
.q-card { background: #1c1e21; border: 1px solid #2e3135; border-radius: 8px; padding: 14px 16px; display: flex; align-items: flex-start; gap: 14px; transition: border-color .15s; }
.q-card:hover { border-color: #3a3d42; }
.q-card.q-done { opacity: .6; }
.q-card.q-done .q-name { text-decoration: line-through; color: #8a8f96; }
.q-icon { width: 36px; height: 36px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 16px; flex-shrink: 0; }
.q-icon.amber { background: rgba(245,166,35,0.1); color: #f5a623; }
.q-icon.green  { background: rgba(76,175,125,0.1); color: #4caf7d; }
.q-icon.blue   { background: rgba(55,138,221,0.1); color: #378add; }
.q-icon.red    { background: rgba(224,82,82,0.1);  color: #e05252; }
.q-body { flex: 1; min-width: 0; }
.q-name { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 15px; color: #fff8e7; margin-bottom: 2px; text-transform: uppercase; letter-spacing: .03em; }
.q-desc { font-size: 12px; color: #8a8f96; margin-bottom: 8px; line-height: 1.4; }
.q-prog-row { display: flex; align-items: center; gap: 8px; }
.q-prog-track { flex: 1; height: 4px; background: #2e3135; border-radius: 2px; overflow: hidden; }
.q-prog-fill { height: 100%; border-radius: 2px; transition: width .3s; }
.q-prog-fill.amber { background: #f5a623; }
.q-prog-fill.green  { background: #4caf7d; }
.q-prog-fill.blue   { background: #378add; }
.q-prog-fill.red    { background: #e05252; }
.q-prog-label { font-family: 'Roboto Mono', monospace; font-size: 10px; color: #8a8f96; white-space: nowrap; }
.q-rewards { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.q-reward { font-family: 'Roboto Mono', monospace; font-size: 9px; letter-spacing: .08em; padding: 3px 8px; border-radius: 4px; border: 1px solid; }
.q-reward.xp      { background: rgba(55,138,221,0.08); border-color: #185fa5; color: #378add; }
.q-reward.credits { background: rgba(245,166,35,0.08); border-color: #a06b10; color: #f5a623; }
.q-reward.item    { background: rgba(76,175,125,0.08); border-color: #1a5a32; color: #4caf7d; }
.q-check { width: 20px; height: 20px; border-radius: 50%; border: 1px solid #2e3135; display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 2px; font-size: 11px; }
.q-check.done { background: #4caf7d; border-color: #4caf7d; color: #fff; }
.week-bar { background: #1c1e21; border: 1px solid #2e3135; border-radius: 8px; padding: 12px 16px; margin-bottom: 14px; display: flex; align-items: center; gap: 16px; }
.week-label { font-family: 'Roboto Mono', monospace; font-size: 9px; letter-spacing: .1em; text-transform: uppercase; color: #8a8f96; white-space: nowrap; }
.week-track { flex: 1; height: 6px; background: #2e3135; border-radius: 3px; overflow: hidden; }
.week-fill  { height: 100%; background: #f5a623; border-radius: 3px; transition: width .3s; }
.week-count { font-family: 'Roboto Mono', monospace; font-size: 11px; color: #f5a623; white-space: nowrap; }

/* ===== CONTRATS CADRES ===== */
.framework-badge { font-family: 'Roboto Mono', monospace; font-size: 9px; letter-spacing: .08em; text-transform: uppercase; background: rgba(163,77,217,0.1); border: 1px solid #6b2090; color: #a34dd9; padding: 2px 8px; border-radius: 4px; white-space: nowrap; }

/* ===== RARITÉ CHAUFFEURS ===== */
.rarity-badge { font-family: 'Roboto Mono', monospace; font-size: 8px; letter-spacing: .1em; text-transform: uppercase; padding: 2px 8px; border-radius: 4px; border: 1px solid; white-space: nowrap; }
.rarity-badge.common    { background: #2a2d31; border-color: #3a3d42; color: #9aa0a8; }
.rarity-badge.rare      { background: #1a3a5c; border-color: #2a5a8c; color: #5ba3e0; }
.rarity-badge.epic      { background: #2d1a4a; border-color: #5a3a8c; color: #a070e0; }
.rarity-badge.legendary { background: #4a2a00; border-color: #a06b10; color: #f5a623; }

.driver-stat-row   { display: flex; align-items: center; gap: 6px; margin-top: 5px; }
.driver-stat-label { font-family: 'Roboto Mono', monospace; font-size: 9px; color: #8a8f96; width: 60px; flex-shrink: 0; }
.driver-stat-track { flex: 1; height: 3px; background: #2e3135; border-radius: 2px; overflow: hidden; }
.driver-stat-fill  { height: 100%; border-radius: 2px; }
.driver-stat-fill.common    { background: #9aa0a8; }
.driver-stat-fill.rare      { background: #5ba3e0; }
.driver-stat-fill.epic      { background: #a070e0; }
.driver-stat-fill.legendary { background: #f5a623; }
.driver-stat-val   { font-family: 'Roboto Mono', monospace; font-size: 9px; color: #fff8e7; width: 24px; text-align: right; }

/* ===== PROFIL CHAUFFEUR (/drivers/*) ===== */
.dp-back { margin-bottom: 16px; display: flex; }
.dp-hero { display: flex; gap: 20px; align-items: flex-start; background: rgba(0,0,0,0.75); border: 1px solid #2e3135; border-radius: 10px; padding: 20px 24px; margin-bottom: 20px; }
.dp-avatar { width: 64px; height: 64px; border-radius: 12px; background: #252729; display: flex; align-items: center; justify-content: center; font-family: 'Roboto Mono', monospace; font-size: 22px; font-weight: 700; color: #f5a623; border: 1.5px solid #3a3d42; position: relative; }
.dp-avatar.rarity-rare      { background: #1a3a5c; border-color: #2a5a8c; color: #5ba3e0; }
.dp-avatar.rarity-epic      { background: #2d1a4a; border-color: #5a3a8c; color: #a070e0; }
.dp-avatar.rarity-legendary { background: #4a2a00; border-color: #a06b10; color: #f5a623; }
.dp-avatar-dot { position: absolute; bottom: -4px; right: -4px; width: 14px; height: 14px; border-radius: 50%; border: 2px solid #1a1c1e; }
.dp-avatar-dot.mission  { background: #4caf7d; }
.dp-avatar-dot.available { background: #8a8f96; }
.dp-avatar-wrap { display: flex; flex-direction: column; align-items: center; gap: 8px; flex-shrink: 0; }
.dp-hero-body { flex: 1; min-width: 0; }
.dp-name { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 28px; color: #fff8e7; line-height: 1.1; margin-bottom: 8px; }
.dp-badges { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.dp-lvl-badge { font-family: 'Roboto Mono', monospace; font-size: 9px; letter-spacing: .1em; text-transform: uppercase; background: rgba(245,166,35,.15); border: 1px solid #a06b10; color: #f5a623; padding: 3px 10px; border-radius: 4px; }
.dp-status-badge { font-family: 'Roboto Mono', monospace; font-size: 9px; letter-spacing: .08em; text-transform: uppercase; padding: 3px 10px; border-radius: 4px; }
.dp-status-badge.mission   { background: rgba(76,175,125,.15); border: 1px solid #1a5a32; color: #4caf7d; }
.dp-status-badge.available { background: rgba(138,143,150,.1);  border: 1px solid #3a3d42;  color: #8a8f96; }
.dp-xp-wrap { }
.dp-xp-track { height: 6px; background: #2e3135; border-radius: 3px; overflow: hidden; }
.dp-xp-fill  { height: 100%; background: #f5a623; border-radius: 3px; transition: width .3s; }
.dp-xp-label { font-family: 'Roboto Mono', monospace; font-size: 9px; color: #8a8f96; margin-top: 5px; display: block; }

.dp-panel { background: rgba(0,0,0,0.75); border: 1px solid #2e3135; border-radius: 10px; padding: 18px 20px; }
.dp-panel-title { font-family: 'Roboto Mono', monospace; font-size: 9px; letter-spacing: .15em; text-transform: uppercase; color: #8a8f96; border-bottom: 1px solid #2e3135; padding-bottom: 10px; margin-bottom: 14px; }
.dp-stat-row { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.dp-stat-icon { width: 30px; height: 30px; border-radius: 7px; background: #1c1e21; border: 1px solid #2e3135; display: flex; align-items: center; justify-content: center; font-size: 12px; color: #8a8f96; flex-shrink: 0; }
.dp-stat-body { flex: 1; }
.dp-stat-label { font-family: 'Roboto Mono', monospace; font-size: 9px; color: #8a8f96; }
.dp-stat-val { font-family: 'Barlow Condensed', sans-serif; font-size: 16px; font-weight: 600; color: #fff8e7; line-height: 1.2; }
.dp-stat-val.amber { color: #f5a623; }

.dp-truck-block { display: flex; gap: 14px; align-items: center; }
.dp-truck-img { width: 80px; flex-shrink: 0; text-align: center; }
.dp-truck-img img { max-height: 52px; max-width: 80px; object-fit: contain; }
.dp-truck-name { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 18px; color: #fff8e7; }
.dp-truck-name a:hover { color: #f5a623; }
.dp-truck-meta { font-family: 'Roboto Mono', monospace; font-size: 10px; color: #8a8f96; margin-top: 5px; }
.dp-truck-none { text-align: center; padding: 16px 0; font-family: 'Roboto Mono', monospace; font-size: 10px; color: #8a8f96; }

.dp-bonuses { display: flex; flex-wrap: wrap; gap: 8px; }
.dp-bonus-empty { font-family: 'Roboto Mono', monospace; font-size: 10px; color: #8a8f96; font-style: italic; }

/* ===== MODAL RÉSUMÉ CONTRAT ===== */
.mc-summary { background: rgba(0,0,0,0.5); border: 1px solid #2e3135; border-radius: 8px; padding: 16px 20px; margin-bottom: 20px; }
.mc-route { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.mc-city { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 18px; color: #fff8e7; text-transform: uppercase; letter-spacing: .03em; }
.mc-route-line { flex: 1; height: 1px; background: #3a3d42; }
.mc-arrow { color: #f5a623; font-size: 12px; }
.mc-cargo-row { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.mc-cargo-label { font-family: 'Roboto Mono', monospace; font-size: 11px; color: #8a8f96; }
.mc-stats { display: flex; gap: 24px; flex-wrap: wrap; }
.mc-stat { }
.mc-stat-label { font-family: 'Roboto Mono', monospace; font-size: 9px; letter-spacing: .1em; text-transform: uppercase; color: #8a8f96; margin-bottom: 2px; }
.mc-stat-val { font-family: 'Barlow Condensed', sans-serif; font-size: 17px; font-weight: 600; color: #fff8e7; }
.mc-stat-val.amber { color: #f5a623; }
.mc-stat-val.red   { color: #e05252; }

.mc-truck-label { font-family: 'Roboto Mono', monospace; font-size: 9px; letter-spacing: .15em; text-transform: uppercase; color: #8a8f96; margin-bottom: 10px; }
.mc-truck-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.mc-truck-card { background: #1c1e21; border: 1px solid #2e3135; border-radius: 6px; padding: 12px 10px; cursor: pointer; transition: all .15s; }
.mc-truck-card:hover:not(.mc-no-driver) { background: #242729; border-color: #3a3d42; }
.mc-truck-card.selected { background: #2a2000; border-color: #f5a623; }
.mc-truck-card.mc-no-driver { cursor: default; opacity: .45; }
.mc-truck-photo { text-align: center; margin-bottom: 8px; height: 44px; display: flex; align-items: center; justify-content: center; }
.mc-truck-photo img { max-height: 44px; max-width: 110px; object-fit: contain; }
.mc-truck-name { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 9px; color: #fff8e7; text-transform: uppercase; letter-spacing: .02em; line-height: 1.2; margin-bottom: 2px; }
.mc-truck-km { font-family: 'Roboto Mono', monospace; font-size: 9px; color: #8a8f96; margin-bottom: 4px; }
.mc-truck-card .t-etat-bar { height: 3px; margin-bottom: 6px; }
.mc-driver-name { font-size: 12px; color: #fff8e7; display: flex; align-items: baseline; gap: 5px; }
.mc-driver-lvl { font-family: 'Roboto Mono', monospace; font-size: 9px; color: #f5a623; }
.mc-bonuses { display: flex; flex-wrap: wrap; gap: 3px; margin-top: 6px; }
.mc-no-driver-msg { font-family: 'Roboto Mono', monospace; font-size: 9px; color: #e05252; margin-top: 4px; }

/* ===== CARD DRIVER POPUP v2 ===== */
.cd2-header { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.cd2-info { flex: 1; min-width: 0; }
.cd2-name { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 15px; color: #fff8e7; text-transform: uppercase; letter-spacing: .02em; line-height: 1.2; }
.cd2-sub  { font-family: 'Roboto Mono', monospace; font-size: 9px; color: #8a8f96; margin-top: 2px; }

/* ===== CARD TRUCK POPUP v2 ===== */
.ct2-photo { text-align: center; margin-bottom: 10px; height: 48px; display: flex; align-items: center; justify-content: center; }
.ct2-photo img { max-height: 48px; max-width: 130px; object-fit: contain; }
.ct2-name  { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 16px; color: #fff8e7; text-transform: uppercase; letter-spacing: .03em; line-height: 1.2; }
.ct2-brand { font-family: 'Roboto Mono', monospace; font-size: 9px; color: #8a8f96; margin-bottom: 6px; }
.ct2-status { font-family: 'Roboto Mono', monospace; font-size: 9px; letter-spacing: .08em; text-transform: uppercase; padding: 2px 0; margin-bottom: 4px; }
.ct2-status.mission { color: #4caf7d; }
.ct2-status.idle    { color: #8a8f96; }
