/* ═══════════════════════════════════════════════════════════════════════════════
   VELORIA LIFE — UI · MW Tactical Style
   ═══════════════════════════════════════════════════════════════════════════════ */

/* ── Root variables ─────────────────────────────────────────────────────────── */
:root {
    --fn:  'Rajdhani', 'Tahoma', Arial, sans-serif;
    --fnm: 'Rajdhani', 'Consolas', 'Courier New', monospace;

    --bg0:  rgba(0, 0, 0, .82);
    --bg1:  rgba(4, 5, 4, .96);
    --bg2:  rgba(0, 0, 0, .72);
    --bg3:  rgba(255, 255, 255, .03);
    --bg4:  rgba(0, 0, 0, .88);

    --bd0:  rgba(255, 255, 255, .07);
    --bd1:  rgba(255, 255, 255, .16);
    --bd2:  rgba(255, 255, 255, .42);

    --t0:   rgba(255, 255, 255, .82);
    --t1:   rgba(255, 255, 255, .50);
    --t2:   rgba(255, 255, 255, .28);
    --t3:   rgba(255, 255, 255, .68);
    --t4:   #ffffff;

    --gold: rgba(255, 255, 255, .92);
    --gn:   rgba(255, 255, 255, .45);
    --gn2:  rgba(255, 255, 255, .60);
    --rd:   rgba(200, 55, 55, .80);
    --rd2:  #f87171;
}

/* ── Animations ─────────────────────────────────────────────────────────────── */
@keyframes vl-spin        { to { transform: rotate(360deg); } }
@keyframes vl-notif-fade  { 0%, 60% { opacity: 1; } 100% { opacity: 0; } }
@keyframes vl-pulse-bd    { 0%, 100% { border-color: var(--bd1); } 50% { border-color: var(--bd2); } }


/* ═══════════════════════════════════════════════════════════════════════════════
   SHARED PANEL STYLES
   Used by: Trade, Inventory, Trunk, Fuel Station, Purchase, Garage
   ═══════════════════════════════════════════════════════════════════════════════ */

#vl-trade, #vl-inventory, #vl-trunk,
#vl-fuel-station, #vl-buy-vehicle, #vl-garage {
    position: fixed;
    inset: 0;
    z-index: 1500;
    display: none;
    align-items: center;
    justify-content: center;
    background: var(--bg0);
}

.vl-tr-panel {
    background: var(--bg1);
    border: 1px solid var(--bd1);
    border-top: 2px solid rgba(255, 255, 255, .55);
    font-family: var(--fn);
    color: var(--t0);
    display: flex;
    flex-direction: column;
    max-height: 85vh;
    overflow: hidden;
    box-shadow: 0 24px 80px rgba(0, 0, 0, .92);
}

/* Panel title bar */
.vl-tr-title {
    padding: 10px 17px 9px;
    background: var(--bg2);
    border-bottom: 1px solid var(--bd1);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .22em;
    color: var(--t3);
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}
.vl-tr-title::before {
    content: '';
    display: inline-block;
    width: 2px;
    height: 13px;
    background: rgba(255, 255, 255, .55);
    flex-shrink: 0;
}

/* Column layout */
.vl-tr-cols {
    display: flex;
    flex: 1;
    overflow: hidden;
    min-height: 0;
}

.vl-tr-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    border-right: 1px solid var(--bd0);
    overflow: hidden;
}
.vl-tr-col:last-child { border-right: none; }

.vl-tr-col-head {
    padding: 5px 12px;
    background: var(--bg3);
    border-bottom: 1px solid var(--bd0);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .18em;
    color: var(--t2);
    text-transform: uppercase;
    flex-shrink: 0;
}

/* Scrollable list */
.vl-tr-list {
    flex: 1;
    overflow-y: auto;
    list-style: none;
    padding: 3px 0;
    margin: 0;
    scrollbar-width: thin;
    scrollbar-color: var(--bd1) transparent;
}
.vl-tr-list::-webkit-scrollbar       { width: 4px; }
.vl-tr-list::-webkit-scrollbar-track { background: transparent; }
.vl-tr-list::-webkit-scrollbar-thumb { background: var(--bd1); }

/* List rows */
.vl-tr-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, .04);
    cursor: pointer;
    font-size: 12px;
    font-family: var(--fn);
    color: var(--t0);
    transition: background .08s;
}
.vl-tr-item:hover    { background: rgba(255, 255, 255, .06); }
.vl-tr-item.selected {
    background: rgba(255, 255, 255, .10);
    border-bottom-color: rgba(255, 255, 255, .12);
}

.vl-tr-price { color: var(--t4); font-weight: 700; font-size: 11px; }
.vl-tr-qty   { color: var(--t1); font-size: 11px; }
.vl-tr-empty {
    padding: 10px 12px;
    font-size: 11px;
    color: var(--t2);
    font-style: italic;
}

/* Panel footer */
.vl-tr-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 7px 12px;
    background: var(--bg4);
    border-top: 1px solid var(--bd0);
    gap: 8px;
    flex-shrink: 0;
}
.vl-tr-foot-left { display: flex; gap: 6px; align-items: center; }

/* Qty input in footer */
.vl-tr-qty-inp {
    width: 56px;
    padding: 5px 7px;
    background: var(--bg4);
    border: 1px solid var(--bd1);
    color: var(--t4);
    font-size: 12px;
    font-family: var(--fnm);
    text-align: center;
    outline: none;
    border-radius: 0;
    transition: border-color .12s;
    -moz-appearance: textfield;
}
.vl-tr-qty-inp::-webkit-outer-spin-button,
.vl-tr-qty-inp::-webkit-inner-spin-button { -webkit-appearance: none; }
.vl-tr-qty-inp:focus { border-color: var(--bd2); }

/* Panel buttons */
.vl-tr-btn {
    padding: 6px 12px;
    background: transparent;
    border: 1px solid var(--bd1);
    color: var(--t1);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    cursor: pointer;
    border-radius: 0;
    transition: background .1s, border-color .1s, color .1s;
    font-family: var(--fn);
    white-space: nowrap;
    clip-path: polygon(6px 0%, 100% 0%, calc(100% - 6px) 100%, 0% 100%);
}
.vl-tr-btn:hover:not(:disabled) {
    background: rgba(255, 255, 255, .10);
    border-color: var(--bd2);
    color: var(--t4);
}
.vl-tr-btn:disabled { opacity: .28; cursor: not-allowed; }

.vl-tr-btn-buy {
    border-color: rgba(255, 255, 255, .10);
    color: var(--t2);
    opacity: .45;
    cursor: not-allowed;
}
.vl-tr-btn-sell {
    border-color: var(--bd1);
    color: var(--t3);
}
.vl-tr-btn-sell:hover {
    background: rgba(255, 255, 255, .10);
    border-color: var(--bd2);
    color: var(--t4);
}
.vl-tr-btn-close {
    background: rgba(80, 10, 10, .60);
    border-color: rgba(200, 55, 55, .40);
    color: var(--rd2);
    padding: 6px 15px;
}
.vl-tr-btn-close:hover {
    background: rgba(120, 18, 18, .72);
    border-color: rgba(220, 80, 80, .62);
    color: #fca5a5;
}

/* Inventory locked column overlay */
.vl-inv-bag-col { position: relative; }
.vl-inv-locked-overlay {
    position: absolute;
    inset: 0;
    background: rgba(4, 5, 4, .92);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.vl-inv-lock-icon { font-size: 26px; opacity: .3; }
.vl-inv-lock-text {
    color: var(--t2);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
    font-family: var(--fn);
}
.vl-inv-stats { color: var(--t1); font-size: 11px; font-family: var(--fn); }


/* ═══════════════════════════════════════════════════════════════════════════════
   PROGRESS BAR — Harvest / Process / Sell
   ═══════════════════════════════════════════════════════════════════════════════ */

#vl-progress {
    display: none;
    position: fixed;
    bottom: 130px;
    left: 50%;
    transform: translateX(-50%);
    width: 340px;
    background: var(--bg1);
    border: 1px solid var(--bd1);
    border-top: 2px solid rgba(255, 255, 255, .50);
    padding: 11px 16px 10px;
    font-family: var(--fn);
    pointer-events: none;
    z-index: 1400;
    box-shadow: 0 8px 32px rgba(0,0,0,.80);
}
#vl-pg-name {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--t3);
    margin-bottom: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
#vl-pg-sub {
    font-size: 10px;
    color: var(--t1);
    margin-bottom: 9px;
    letter-spacing: .08em;
}
#vl-pg-track {
    height: 5px;
    background: rgba(255, 255, 255, .06);
    border: 1px solid var(--bd0);
    overflow: hidden;
}
#vl-pg-fill {
    height: 100%;
    width: 0%;
    background: rgba(255, 255, 255, .75);
    transition: width .08s linear;
}
#vl-pg-fill.illegal { background: #c0392b; }
#vl-pg-time {
    margin-top: 5px;
    font-size: 10px;
    color: var(--t2);
    text-align: right;
    font-family: var(--fnm);
    letter-spacing: .06em;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   ATM / BANK TERMINAL
   ═══════════════════════════════════════════════════════════════════════════════ */

#vl-atm {
    position: fixed;
    inset: 0;
    z-index: 1500;
    display: none;
    align-items: center;
    justify-content: center;
    background: var(--bg0);
}

.vl-atm-panel {
    width: 430px;
    background: var(--bg1);
    border: 1px solid var(--bd1);
    border-top: 2px solid rgba(255, 255, 255, .55);
    font-family: var(--fn);
    color: var(--t0);
    box-shadow: 0 24px 80px rgba(0, 0, 0, .92);
}

.vl-atm-header {
    padding: 10px 18px;
    background: var(--bg2);
    border-bottom: 1px solid var(--bd1);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.vl-atm-header-title {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .22em;
    color: var(--t3);
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 9px;
}
.vl-atm-header-title::before {
    content: '';
    display: inline-block;
    width: 2px;
    height: 13px;
    background: rgba(255, 255, 255, .55);
}
.vl-atm-header-sub {
    font-size: 9px;
    color: var(--t2);
    letter-spacing: .10em;
}

.vl-atm-balances {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-bottom: 1px solid var(--bd0);
}
.vl-atm-bal-block { padding: 14px 18px 12px; }
.vl-atm-bal-block:first-child { border-right: 1px solid var(--bd0); }

.vl-atm-bal-label {
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .18em;
    color: var(--t2);
    text-transform: uppercase;
    margin-bottom: 5px;
}
.vl-atm-bal-value {
    font-size: 20px;
    font-weight: 700;
    color: var(--t4);
    font-family: var(--fnm);
    letter-spacing: .04em;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}
.vl-atm-bal-currency {
    font-size: 11px;
    font-weight: 400;
    color: var(--t1);
    margin-left: 3px;
    font-family: var(--fn);
}

.vl-atm-section-label {
    padding: 6px 18px 4px;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .18em;
    color: var(--t2);
    text-transform: uppercase;
    border-bottom: 1px solid var(--bd0);
    background: var(--bg3);
}

.vl-atm-actions {
    padding: 12px 18px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    border-bottom: 1px solid var(--bd0);
}
.vl-atm-action-block { display: flex; flex-direction: column; gap: 7px; }
.vl-atm-action-label {
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .16em;
    color: var(--t1);
    text-transform: uppercase;
}

.vl-atm-input {
    width: 100%;
    padding: 6px 0;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--bd1);
    color: var(--t4);
    font-size: 13px;
    font-family: var(--fnm);
    outline: none;
    border-radius: 0;
    transition: border-color .12s, color .12s;
    -moz-appearance: textfield;
}
.vl-atm-input::-webkit-outer-spin-button,
.vl-atm-input::-webkit-inner-spin-button { -webkit-appearance: none; }
.vl-atm-input:focus { border-bottom-color: var(--bd2); }
.vl-atm-input::placeholder { color: var(--t2); font-style: italic; }

.vl-atm-btn {
    padding: 7px 10px;
    background: transparent;
    border: 1px solid var(--bd1);
    color: var(--t1);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    cursor: pointer;
    border-radius: 0;
    transition: background .1s, border-color .1s, color .1s;
    font-family: var(--fn);
    clip-path: polygon(6px 0%, 100% 0%, calc(100% - 6px) 100%, 0% 100%);
}
.vl-atm-btn:hover:not(:disabled) {
    background: rgba(255, 255, 255, .10);
    border-color: var(--bd2);
    color: var(--t4);
}
.vl-atm-btn:disabled { opacity: .28; cursor: not-allowed; }

.vl-atm-footer {
    padding: 8px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    background: var(--bg4);
}
.vl-atm-status { font-size: 11px; color: var(--t2); min-height: 14px; letter-spacing: .05em; flex: 1; }
.vl-atm-status.ok  { color: var(--t3); }
.vl-atm-status.err { color: var(--rd2); }

.vl-atm-close {
    padding: 5px 14px;
    background: rgba(80, 10, 10, .60);
    border: 1px solid rgba(200, 55, 55, .40);
    color: var(--rd2);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    cursor: pointer;
    border-radius: 0;
    font-family: var(--fn);
    transition: background .1s, border-color .1s, color .1s;
    white-space: nowrap;
    clip-path: polygon(6px 0%, 100% 0%, calc(100% - 6px) 100%, 0% 100%);
}
.vl-atm-close:hover {
    background: rgba(120, 18, 18, .72);
    border-color: rgba(220, 80, 80, .62);
    color: #fca5a5;
}


/* ═══════════════════════════════════════════════════════════════════════════════
   HUD — HEALTH / HUNGER / THIRST
   ═══════════════════════════════════════════════════════════════════════════════ */

#vl-hud {
    position: fixed;
    bottom: 20px;
    left: 20px;
    display: none;
    flex-direction: column;
    gap: 5px;
    pointer-events: none;
    z-index: 500;
    background: rgba(0, 0, 0, .72);
    border: 1px solid var(--bd0);
    border-left: 2px solid rgba(255, 255, 255, .40);
    padding: 9px 12px;
    min-width: 120px;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}
.vl-hud-item {
    display: flex;
    align-items: center;
    gap: 7px;
}
.vl-hud-icon  { width: 16px; height: 16px; opacity: .65; flex-shrink: 0; }
.vl-hud-val   {
    color: var(--t3);
    font-size: 11px;
    font-weight: 700;
    font-family: var(--fn);
    text-shadow: 0 1px 3px rgba(0, 0, 0, .9);
    min-width: 34px;
    letter-spacing: .06em;
}

#vl-fs-btn {
    position: fixed;
    top: 12px;
    right: 12px;
    z-index: 600;
    display: none;
    background: rgba(0,0,0,.55);
    border: 1px solid rgba(255,255,255,.22);
    color: rgba(255,255,255,.75);
    font-size: 16px;
    line-height: 1;
    padding: 5px 7px;
    cursor: pointer;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border-radius: 4px;
    user-select: none;
}
#vl-fs-btn:hover { color: #fff; border-color: rgba(255,255,255,.5); }
body.vl-mobile #vl-fs-btn { display: none !important; }


/* ═══════════════════════════════════════════════════════════════════════════════
   FPS COUNTER
   ═══════════════════════════════════════════════════════════════════════════════ */

#vl-fps {
    position: fixed;
    top: 10px;
    left: 10px;
    display: none;
    font-family: var(--fn);
    font-size: 11px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.70);
    text-shadow: 0 1px 3px rgba(0, 0, 0, .9);
    pointer-events: none;
    z-index: 500;
    letter-spacing: 0.08em;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   WALLET / ECONOMY BAR
   ═══════════════════════════════════════════════════════════════════════════════ */

#vl-wallet {
    position: fixed;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, .78);
    border: 1px solid var(--bd0);
    border-top: 2px solid rgba(255, 255, 255, .50);
    padding: 5px 18px;
    color: var(--t4);
    font-size: 14px;
    font-weight: 700;
    font-family: var(--fn);
    pointer-events: none;
    z-index: 800;
    letter-spacing: .08em;
}


/* ═══════════════════════════════════════════════════════════════════════════════
   INTERACTION PROMPTS
   ═══════════════════════════════════════════════════════════════════════════════ */

#vl-prompt {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    display: none;
    align-items: center;
    gap: 10px;
    background: rgba(0, 0, 0, .82);
    border: 1px solid var(--bd0);
    border-left: 2px solid rgba(255, 255, 255, .45);
    padding: 7px 16px;
    color: var(--t0);
    font-size: 12px;
    font-family: var(--fn);
    pointer-events: none;
    z-index: 800;
    white-space: nowrap;
    letter-spacing: .05em;
}
.vl-prompt-key {
    background: rgba(255, 255, 255, .90);
    color: rgba(0, 0, 0, .88);
    font-weight: 800;
    padding: 1px 7px;
    font-size: 11px;
    font-family: var(--fn);
    letter-spacing: .04em;
}

/* Vehicle-specific prompts (slightly higher position) */
.vl-vehicle-prompt {
    position: fixed;
    bottom: 112px;
    left: 50%;
    transform: translateX(-50%);
    display: none;
    align-items: center;
    gap: 10px;
    background: rgba(0, 0, 0, .82);
    border: 1px solid var(--bd0);
    border-left: 2px solid rgba(255, 255, 255, .45);
    padding: 7px 16px;
    color: var(--t0);
    font-size: 12px;
    font-family: var(--fn);
    pointer-events: none;
    z-index: 800;
    white-space: nowrap;
    letter-spacing: .05em;
}


/* ═══════════════════════════════════════════════════════════════════════════════
   HARVEST / PROCESS PROGRESS BAR
   ═══════════════════════════════════════════════════════════════════════════════ */

#vl-harvest-progress {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    width: 280px;
    background: rgba(0, 0, 0, .88);
    border: 1px solid var(--bd1);
    border-top: 2px solid rgba(255, 255, 255, .50);
    padding: 11px 14px;
    pointer-events: none;
    z-index: 800;
}
.vl-prog-label {
    color: var(--t3);
    font-size: 11px;
    font-family: var(--fn);
    letter-spacing: .08em;
    text-transform: uppercase;
    font-weight: 700;
}
.vl-prog-track {
    width: 100%;
    height: 5px;
    background: rgba(255, 255, 255, .06);
    overflow: hidden;
}
.vl-prog-fill {
    height: 100%;
    width: 0%;
    background: rgba(255, 255, 255, .75);
    transition: width .1s linear;
}
.vl-prog-hint {
    color: var(--t2);
    font-size: 10px;
    font-family: var(--fn);
    letter-spacing: .06em;
}


/* ═══════════════════════════════════════════════════════════════════════════════
   NOTIFICATION TOAST
   ═══════════════════════════════════════════════════════════════════════════════ */

#vl-notif {
    position: fixed;
    bottom: 170px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, .88);
    border: 1px solid var(--bd0);
    border-left: 2px solid rgba(255, 255, 255, .45);
    padding: 6px 16px;
    color: var(--t3);
    font-size: 12px;
    font-family: var(--fn);
    pointer-events: none;
    z-index: 800;
    white-space: nowrap;
    opacity: 0;
    letter-spacing: .05em;
}
.vl-notif-show { animation: vl-notif-fade 3s ease forwards; }


/* ═══════════════════════════════════════════════════════════════════════════════
   VEHICLE HUD — SPEED + FUEL GAUGE
   ═══════════════════════════════════════════════════════════════════════════════ */

#vl-fuel-gauge {
    position: fixed;
    top: 16px;
    left: 16px;
    background: rgba(0, 0, 0, .78);
    border: 1px solid var(--bd0);
    border-left: 2px solid rgba(255, 255, 255, .40);
    padding: 9px 14px 11px;
    pointer-events: none;
    z-index: 800;
    min-width: 150px;
    display: none;
}
.vl-fg-speed {
    color: var(--t4);
    font-size: 20px;
    font-weight: 700;
    font-family: var(--fn);
    text-shadow: 0 1px 4px rgba(0, 0, 0, .8);
    letter-spacing: .04em;
    line-height: 1;
}
.vl-fg-label {
    color: var(--t2);
    font-size: 10px;
    font-family: var(--fn);
    margin: 4px 0 6px;
    letter-spacing: .06em;
    text-transform: uppercase;
}
.vl-fg-track {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, .06);
    overflow: hidden;
}
.vl-fg-bar {
    height: 100%;
    width: 100%;
    background: rgba(255, 255, 255, .70);
    transition: width .25s ease, background .5s;
}


/* ═══════════════════════════════════════════════════════════════════════════════
   MAIN MENU
   ═══════════════════════════════════════════════════════════════════════════════ */

#vl-mainmenu {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        repeating-linear-gradient(
            0deg,
            rgba(255, 255, 255, .022) 0px, rgba(255, 255, 255, .022) 1px,
            transparent 1px, transparent 44px
        ),
        repeating-linear-gradient(
            90deg,
            rgba(255, 255, 255, .022) 0px, rgba(255, 255, 255, .022) 1px,
            transparent 1px, transparent 44px
        ),
        rgba(4, 5, 4, 1);
}

.vl-mm-card {
    width: 100%;
    max-width: 420px;
    background: var(--bg1);
    border: 1px solid var(--bd1);
    border-top: 2px solid rgba(255, 255, 255, .55);
    font-family: var(--fn);
    color: var(--t0);
    box-shadow: 0 28px 80px rgba(0, 0, 0, .92);
}

/* Logo / header */
.vl-mm-logo {
    text-align: center;
    padding: 26px 36px 18px;
    background: var(--bg2);
    border-bottom: 1px solid var(--bd1);
    margin-bottom: 0;
}
.vl-mm-logo h1 {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: .28em;
    color: var(--t3);
    font-family: var(--fn);
    background: none;
    -webkit-text-fill-color: initial;
}
.vl-mm-logo p {
    color: var(--t2);
    font-size: 9px;
    letter-spacing: .18em;
    margin-top: 5px;
    text-transform: uppercase;
}

/* Inner content padding */
#vl-mm-welcome,
#vl-mm-auth {
    padding: 20px 28px 24px;
}

/* Tabs */
.vl-mm-tabs {
    display: flex;
    border-bottom: 1px solid var(--bd0);
    margin-bottom: 16px;
}
.vl-mm-tab {
    flex: 1;
    padding: 9px 0;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    color: var(--t2);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
    cursor: pointer;
    font-family: var(--fn);
    transition: color .12s, border-color .12s;
}
.vl-mm-tab:hover      { color: var(--t0); }
.vl-mm-tab.active     { color: var(--t3); border-bottom-color: rgba(255, 255, 255, .55); }

/* Inputs */
.vl-mm-input {
    width: 100%;
    padding: 8px 11px;
    background: var(--bg4);
    border: 1px solid var(--bd0);
    border-bottom-color: var(--bd1);
    color: var(--t4);
    font-size: 12px;
    font-family: var(--fn);
    outline: none;
    border-radius: 0;
    transition: border-color .12s, box-shadow .12s;
    margin-bottom: 8px;
    display: block;
}
.vl-mm-input:focus {
    border-color: var(--bd2);
    box-shadow: 0 0 0 2px rgba(255, 255, 255, .06);
}
.vl-mm-input::placeholder { color: var(--t2); }

/* Password strength */
.vl-pw-strength-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: -3px 0 8px;
}
.vl-pw-strength-bar { flex: 1; height: 2px; background: var(--bd0); overflow: hidden; }
#vl-pw-fill  { height: 100%; width: 0%; transition: width .25s, background .25s; }
#vl-pw-label { font-size: 10px; min-width: 40px; text-align: right; font-weight: 700; font-family: var(--fn); }

/* Primary button */
.vl-mm-btn-primary {
    width: 100%;
    padding: 10px;
    background: transparent;
    border: 1px solid var(--bd2);
    color: var(--t3);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
    border-radius: 0;
    cursor: pointer;
    transition: background .12s, color .12s, border-color .12s;
    margin-top: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    font-family: var(--fn);
    clip-path: polygon(8px 0%, 100% 0%, calc(100% - 8px) 100%, 0% 100%);
}
.vl-mm-btn-primary:hover:not(:disabled) {
    background: rgba(255, 255, 255, .10);
    border-color: var(--bd2);
    color: var(--t4);
}
.vl-mm-btn-primary:active:not(:disabled) { background: rgba(255, 255, 255, .06); }
.vl-mm-btn-primary:disabled { opacity: .38; cursor: default; }

/* Secondary button */
.vl-mm-btn-secondary {
    width: 100%;
    padding: 8px;
    background: transparent;
    border: 1px solid var(--bd0);
    color: var(--t2);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    border-radius: 0;
    cursor: pointer;
    transition: border-color .12s, color .12s;
    margin-top: 8px;
    font-family: var(--fn);
}
.vl-mm-btn-secondary:hover { border-color: var(--bd1); color: var(--t1); }

/* Error message */
.vl-mm-error {
    color: var(--rd2);
    font-size: 11px;
    text-align: center;
    min-height: 16px;
    margin-top: 6px;
    font-family: var(--fn);
}

/* Divider */
.vl-mm-divider {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--t2);
    font-size: 9px;
    letter-spacing: .12em;
    text-transform: uppercase;
    margin: 12px 0;
    font-family: var(--fn);
}
.vl-mm-divider::before,
.vl-mm-divider::after { content: ''; flex: 1; height: 1px; background: var(--bd0); }

/* Welcome-back section */
#vl-mm-welcome { text-align: center; }
.vl-mm-welcome-title {
    font-size: 15px;
    color: var(--t4);
    font-weight: 700;
    font-family: var(--fn);
    margin-bottom: 4px;
    letter-spacing: .08em;
}
.vl-mm-welcome-sub {
    font-size: 11px;
    color: var(--t1);
    margin-bottom: 20px;
    letter-spacing: .06em;
    font-family: var(--fn);
}

/* Role badges */
.vl-role-badge {
    display: inline-block;
    padding: 1px 6px;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .28);
    color: rgba(255, 255, 255, .65);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .10em;
    vertical-align: middle;
    margin-left: 6px;
    font-family: var(--fn);
    border-radius: 0;
    text-transform: uppercase;
}
.vl-role-badge.admin     { color: var(--t4); border-color: rgba(255, 255, 255, .55); }
.vl-role-badge.moderator { color: var(--t2); border-color: rgba(255, 255, 255, .22); }

/* Loading state */
#vl-mm-loading {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    padding: 22px 0 10px;
}
.vl-mm-loading-text {
    color: var(--t1);
    font-size: 11px;
    letter-spacing: .12em;
    font-family: var(--fn);
    text-transform: uppercase;
}

/* Spinners */
.vl-mm-spinner {
    width: 30px;
    height: 30px;
    border: 2px solid rgba(255, 255, 255, .12);
    border-top-color: rgba(255, 255, 255, .70);
    border-radius: 50%;
    animation: vl-spin .75s linear infinite;
}
.vl-spinner-sm {
    width: 11px;
    height: 11px;
    border: 2px solid rgba(255, 255, 255, .18);
    border-top-color: rgba(255, 255, 255, .80);
    border-radius: 50%;
    animation: vl-spin .6s linear infinite;
    flex-shrink: 0;
}


/* ═══════════════════════════════════════════════════════════════════════════════
   PAUSE MENU
   ═══════════════════════════════════════════════════════════════════════════════ */

#vl-pause {
    display: none;
    position: fixed;
    inset: 0;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.68);
    user-select: none;
    z-index: 900;
    cursor: default;
    opacity: 0;
    transition: opacity 0.28s ease;
}
#vl-pause.vl-pause-visible {
    opacity: 1;
}


/* ═══════════════════════════════════════════════════════════════════════════════
   PORTRAIT-WARNUNG (nur Mobile)
   ═══════════════════════════════════════════════════════════════════════════════ */

#vl-rotate-warn {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: #000;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 18px;
    pointer-events: none;
}
#vl-rotate-warn .rw-icon { font-size: 52px; animation: vl-spin 2s linear infinite; }
#vl-rotate-warn .rw-text {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.72);
    text-align: center;
    line-height: 1.8;
}


/* ═══════════════════════════════════════════════════════════════════════════════
   MOBILE TOUCH-STEUERUNG
   ═══════════════════════════════════════════════════════════════════════════════ */

/* Haupt-Overlay — fängt alle Touches auf, liegt unter UI-Panels (z-index <900) */
#vl-mob {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 410;
    touch-action: none;
    user-select: none;
    -webkit-user-select: none;
    pointer-events: all;
}

/* ── Joystick ─────────────────────────────────────────────────────────────── */

#vl-mob-joy {
    position: absolute;
    left:   66px;
    bottom: 58px;
    width:  128px;
    height: 128px;
    border-radius: 50%;
    background: rgba(255,255,255,0.06);
    border: 2px solid rgba(255,255,255,0.22);
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

#vl-mob-joy-knob {
    width:  50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255,255,255,0.22);
    border: 2px solid rgba(255,255,255,0.55);
    pointer-events: none;
    /* kein transition: damit der Knob direkt am Finger klebt */
}

/* ── Buttons (gemeinsam) ────────────────────────────────────────────────────── */

.vl-mob-btn {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(0,0,0,0.52);
    border: 1.5px solid rgba(255,255,255,0.28);
    color: rgba(255,255,255,0.88);
    font-family: 'Rajdhani', sans-serif;
    font-size: 20px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    transition: background 0.08s, border-color 0.08s;
    /* Standard-Größe */
    width:  52px;
    height: 52px;
}
.vl-mob-btn:active  { background: rgba(255,255,255,0.20); border-color: rgba(255,255,255,0.72); }
.vl-mob-btn-active  { background: rgba(255,255,255,0.18) !important; border-color: rgba(255,255,255,0.70) !important; }

/* Größen-Varianten */
.vl-mob-btn-lg { width: 68px; height: 68px; font-size: 26px; }
.vl-mob-btn-sm { width: 44px; height: 44px; font-size: 16px; }

/* ── Button-Positionen ────────────────────────────────────────────────────── */

/* Sprint: rechts neben dem Joystick */
#vl-mob-sprint  { right: 58px; bottom: 140px; }

/* Sprung: groß, unten rechts */
#vl-mob-jump    { right: 58px;  bottom: 44px; }

/* Interagieren: links vom Sprung, etwas höher */
#vl-mob-e       { right: 142px; bottom: 94px; }

/* Kamera-Toggle: links vom Sprung, etwas tiefer */
#vl-mob-v       { right: 142px; bottom: 34px; }

/* Karte, Inventar, Pause: oben rechts */
#vl-mob-m       { right:  14px; top: 14px; }
#vl-mob-i       { right:  66px; top: 14px; }
#vl-mob-pause   { right: 118px; top: 14px; }


/* ── Minimap auf Mobile: oben links, kleiner ──────────────────────────────── */

body.vl-mobile #vl-minimap {
    bottom:     auto !important;
    right:      auto !important;
    top:        14px !important;
    left:       14px !important;
    width:      110px !important;
    height:     110px !important;
    opacity:    0.92;
}

/* ── HUD neben der Minimap (oben links) ──────────────────────────────────── */

body.vl-mobile #vl-hud {
    bottom:    auto !important;
    top:       14px;
    left:      132px;
    min-width: 86px;
    padding:   7px 10px;
    gap:       3px;
}
body.vl-mobile .vl-hud-val  { font-size: 10px; }
body.vl-mobile .vl-hud-icon { width: 13px; height: 13px; }

/* Spieler-State-Emoji ausblenden (redundant mit Touch-Controls) */
body.vl-mobile #vl-player-state {
    display: none !important;
}

/* Stamina-Bar weg vom Joystick-Bereich */
body.vl-mobile #vl-stamina-bar {
    bottom: 14px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: 120px !important;
}

/* Prompts nach oben schieben damit sie nicht von den Buttons verdeckt werden */
body.vl-mobile #vl-prompt,
body.vl-mobile .vl-vehicle-prompt {
    bottom: 170px;
}

body.vl-mobile #vl-harvest-progress {
    bottom: 170px;
}

/* FPS-Counter auf Mobile kleiner */
body.vl-mobile #vl-fps {
    font-size: 9px;
    top: 14px;
    left: 14px;
}

/* ── Pause-Menü: kompakt für Landscape-Mobile ────────────────────────────── */

body.vl-mobile #vl-pause .mm-card {
    padding:    8px !important;
    max-height: 95vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}
body.vl-mobile #vl-pause .mm-card-inner {
    padding: 14px 20px 12px !important;
}
body.vl-mobile #vl-pause .mm-btn {
    padding: 9px 12px !important;
    font-size: 0.78rem !important;
}

/* ── Auth-Card / Main-Menü-Card: kompakt + scrollbar ─────────────────────── */

body.vl-mobile #screen-auth .mm-card {
    padding:    8px !important;
    max-height: 94vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}
body.vl-mobile #screen-auth .mm-card-inner {
    padding: 20px 22px 14px !important;
}
body.vl-mobile #screen-auth .mm-input {
    padding: 7px 3px !important;
    font-size: 0.88rem !important;
}
/* Abstände zwischen Formular-Feldern reduzieren */
body.vl-mobile #screen-auth [style*="margin-bottom:20px"],
body.vl-mobile #screen-auth [style*="margin-bottom:26px"] {
    margin-bottom: 10px !important;
}
body.vl-mobile #screen-auth [style*="margin-bottom:16px"] {
    margin-bottom: 8px !important;
}

/* ── Einstellungs-Screen: kompakt für Landscape-Mobile ───────────────────── */

body.vl-mobile #vl-settings {
    align-items:     flex-start !important;
    justify-content: center;
    padding:         8px 0;
    overflow-y:      auto;
    -webkit-overflow-scrolling: touch;
}
body.vl-mobile #vl-settings > .stt-panel {
    zoom:      0.58;
    margin:    0 auto;
    max-height: none;
}

/* ── Inventar: auf Mobile skalieren ──────────────────────────────────────── */

body.vl-mobile #vl-inventory {
    /* Nicht zentrieren — von oben starten, Scrollfallback bei überlangen Inhalten */
    align-items: flex-start !important;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding-top: 4px;
}
body.vl-mobile #vl-inv-wrap {
    zoom: 0.62;
    margin: 0 auto;
}
/* Tastatur-Hint im Footer ausblenden, nur Schließen-Button */
body.vl-mobile .vl-inv-footer-hint {
    display: none !important;
}
/* Wallet oben links, verkleinert */
body.vl-mobile #vl-wallet {
    font-size: 11px !important;
    top: 12px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    bottom: auto !important;
}

/* ── Interaktive Panels: Mobile-Skalierung ───────────────────────────────── */

/* Truhe (Chest) */
body.vl-mobile #vl-chest-overlay {
    align-items: flex-start !important;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding-top: 8px;
}
body.vl-mobile #vl-chest-wrap {
    zoom: 0.60;
    margin: 0 auto;
    min-width: unset !important;
}

/* ATM / Bank */
body.vl-mobile #vl-atm {
    align-items: flex-start !important;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding-top: 8px;
}
body.vl-mobile .vl-atm-panel {
    zoom: 0.72;
    margin: 0 auto;
}

/* Handel, Kofferraum, Tankstelle, Fahrzeugkauf, Garage */
body.vl-mobile #vl-trade,
body.vl-mobile #vl-trunk,
body.vl-mobile #vl-fuel-station,
body.vl-mobile #vl-buy-vehicle,
body.vl-mobile #vl-garage {
    align-items: flex-start !important;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding-top: 8px;
}
body.vl-mobile #vl-trade .vl-tr-panel,
body.vl-mobile #vl-trunk .vl-tr-panel,
body.vl-mobile #vl-fuel-station .vl-tr-panel,
body.vl-mobile #vl-buy-vehicle .vl-tr-panel,
body.vl-mobile #vl-garage .vl-tr-panel {
    zoom: 0.72;
    margin: 0 auto;
}

/* ── Karten-Ansicht: alle HUD-Elemente ausblenden ────────────────────────── */

body.vl-map-open #vl-hud,
body.vl-map-open #vl-wallet,
body.vl-map-open #vl-minimap,
body.vl-map-open #vl-stamina-bar,
body.vl-map-open #vl-fps,
body.vl-map-open #vl-prompt,
body.vl-map-open #vl-notif,
body.vl-map-open #vl-wp-hud,
body.vl-map-open #vl-fuel-gauge,
body.vl-map-open #vl-player-state,
body.vl-map-open #vl-progress,
body.vl-map-open #vl-harvest-progress,
body.vl-map-open #vl-bldg-prompt,
body.vl-map-open #vl-bldg-furni-prompt,
body.vl-map-open #vl-bldg-status,
body.vl-map-open #vl-crosshair,
body.vl-map-open #vl-mob {
    display: none !important;
}


/* ═══════════════════════════════════════════════════════════════════════════════
   KFZ-HÄNDLER TABS
   ═══════════════════════════════════════════════════════════════════════════════ */

.vl-kfz-tab-active {
    color: rgba(255, 255, 255, 0.90) !important;
    border-bottom-color: rgba(255, 255, 255, 0.55) !important;
    background: rgba(255, 255, 255, 0.04) !important;
}
