#page-vehicles {
    display: flex;
    flex-direction: column;
    min-height: 0;
    padding: 0;
    overflow: hidden;
}

.veh-page {
    display: flex;
    flex-direction: column;
    min-height: 0;
    height: 100%;
    padding: 16px 20px 20px;
    gap: 14px;
}

.veh-hero {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.veh-hero h2 {
    margin: 0 0 4px;
    font-size: 1.35rem;
    letter-spacing: -0.02em;
}

.veh-hero .muted {
    margin: 0;
    font-size: 0.78rem;
}

.veh-hero code {
    font-size: 0.72rem;
    padding: 1px 6px;
    border-radius: 5px;
    background: var(--surface-3);
}

.veh-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.veh-stat {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.03), transparent);
    cursor: pointer;
    font: inherit;
    color: inherit;
    text-align: left;
    transition: border-color 0.2s, background 0.2s, transform 0.15s;
}

.veh-stat:hover {
    border-color: var(--border-hover);
    transform: translateY(-1px);
}

.veh-stat.active {
    border-color: rgba(var(--v-accent-rgb), 0.45);
    background: rgba(var(--v-accent-rgb), 0.1);
    box-shadow: 0 4px 20px rgba(var(--v-accent-rgb), 0.12);
}

.veh-stat-num {
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.1;
}

.veh-stat-label {
    font-size: 0.68rem;
    color: var(--muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.veh-stat--garage.active .veh-stat-num { color: var(--v-accent-hi); }
.veh-stat--out.active .veh-stat-num { color: #fcd34d; }
.veh-stat--impound.active .veh-stat-num { color: #fca5a5; }

.veh-hub-grid {
    display: grid;
    flex: 1;
    min-height: 0;
    min-width: 0;
    grid-template-columns: minmax(200px, 220px) minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr) auto;
    gap: 12px;
}

.veh-col-players {
    grid-column: 1;
    grid-row: 1 / -1;
    min-width: 0;
}

.veh-col-main {
    grid-column: 2;
    grid-row: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
    min-width: 0;
}

.veh-col-tools {
    grid-column: 2;
    grid-row: 2;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 8px;
    flex: 0 0 auto;
    align-self: start;
    min-width: 0;
    border: none;
    background: transparent;
    overflow: visible;
}

.veh-col-tools .veh-tool-section {
    flex: 1 1 240px;
    min-width: 0;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: var(--surface);
    overflow: hidden;
}

.veh-player-banner {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    margin: 8px 8px 0;
    border-radius: 12px;
    border: 1px solid rgba(var(--v-accent-rgb), 0.22);
    background: linear-gradient(135deg, rgba(var(--v-accent-rgb), 0.12), rgba(var(--v-accent-rgb), 0.04));
}

.veh-player-av.member-avatar {
    width: 36px;
    height: 36px;
    border-radius: 10px;
}

.veh-player-info { flex: 1; min-width: 0; }

.veh-player-meta {
    margin: 4px 0 0;
    font-size: 0.72rem;
    color: var(--muted);
}

.veh-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-bottom: 1px solid var(--border);
}

.veh-toolbar .veh-search { flex: 1 1 160px; min-width: 0; }
.veh-toolbar .veh-filter { flex: 0 1 150px; min-width: 120px; max-width: 180px; }

.veh-list-count {
    flex: 0 0 auto;
    font-size: 0.72rem;
    white-space: nowrap;
}

.veh-list-wrap {
    flex: 1;
    overflow-y: auto;
    padding: 8px 10px 10px;
}

.veh-card-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.veh-card {
    position: relative;
    display: flex;
    flex-direction: column;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: var(--surface-2);
    overflow: hidden;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.veh-card:hover {
    border-color: rgba(var(--v-accent-rgb), 0.35);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
}

.veh-card-status {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--accent);
    opacity: 0.75;
}

.veh-card--garage .veh-card-status { background: var(--v-accent); }
.veh-card--out .veh-card-status { background: #f59e0b; }
.veh-card--impound .veh-card-status { background: #ef4444; }

.veh-card-main {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 12px;
    min-width: 0;
}

.veh-card-icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    font-size: 1rem;
    background: rgba(var(--v-accent-rgb), 0.14);
    border: 1px solid rgba(var(--v-accent-rgb), 0.22);
    flex-shrink: 0;
}

.veh-card-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.veh-card-topline {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px 8px;
}

.veh-card-plate {
    font-family: ui-monospace, 'Cascadia Code', monospace;
    font-size: 0.88rem;
    letter-spacing: 0.04em;
    line-height: 1.25;
}

.veh-card-sub {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 8px;
    font-size: 0.72rem;
    color: var(--muted);
    line-height: 1.35;
}

.veh-card-model {
    text-transform: lowercase;
    color: var(--muted);
}

.veh-card-garage {
    color: var(--v-accent-hi);
    font-weight: 600;
}

.veh-card-model + .veh-card-garage::before {
    content: '·';
    margin-right: 8px;
    color: var(--muted);
    font-weight: 400;
}

.veh-card-tag {
    font-size: 0.65rem;
    padding: 1px 6px;
    border-radius: 999px;
    background: var(--surface-3);
    border: 1px solid var(--border);
    color: var(--muted);
}

.veh-trunk {
    margin-top: 4px;
    padding: 6px 8px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(0, 0, 0, 0.14);
}

.veh-trunk--empty,
.veh-trunk--na {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    font-size: 0.68rem;
}

.veh-trunk-label {
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.veh-trunk--items {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.veh-trunk-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.veh-trunk-meta {
    font-size: 0.65rem;
    color: var(--muted);
    white-space: nowrap;
}

.veh-trunk-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.veh-trunk-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 7px;
    border-radius: 999px;
    font-size: 0.67rem;
    line-height: 1.35;
    background: rgba(var(--v-accent-rgb), 0.1);
    border: 1px solid rgba(var(--v-accent-rgb), 0.18);
    color: var(--text);
    word-break: break-word;
}

.veh-trunk-tag.is-removable {
    cursor: pointer;
}

.veh-trunk-tag.is-removable:hover {
    border-color: rgba(239, 68, 68, 0.45);
    background: rgba(239, 68, 68, 0.12);
}

.veh-trunk-tag-x {
    font-size: 0.72rem;
    opacity: 0.75;
}

.veh-trunk-empty-label {
    font-size: 0.68rem;
}

.veh-trunk-weightbar {
    height: 4px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    overflow: hidden;
    margin-bottom: 2px;
}

.veh-trunk-weightfill {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--v-accent), var(--v-accent-hi));
    transition: width 0.2s ease;
}

.veh-trunk-manage {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin-top: 4px;
    padding-top: 6px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.veh-trunk-manage .veh-trunk-item {
    flex: 1 1 120px;
    min-width: 0;
    min-height: 30px;
    font-size: 0.72rem;
}

.veh-trunk-manage .veh-trunk-count {
    flex: 0 0 56px;
    min-height: 30px;
    font-size: 0.72rem;
    padding: 6px 8px;
}

.veh-trunk-manage .veh-trunk-give {
    flex: 0 0 auto;
    min-height: 30px;
    padding: 6px 10px;
}

.veh-trunk-live {
    display: inline-block;
    margin-left: 6px;
    padding: 1px 5px;
    border-radius: 999px;
    font-size: 0.58rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #fbbf24;
    background: rgba(251, 191, 36, 0.12);
    border: 1px solid rgba(251, 191, 36, 0.25);
    vertical-align: middle;
}

.veh-card-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 8px;
    padding: 7px 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(0, 0, 0, 0.12);
}

.veh-card-actions .veh-move-garage {
    flex: 1 1 130px;
    max-width: 180px;
    min-height: 32px;
    font-size: 0.72rem;
    padding: 6px 8px;
}

.veh-card-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-left: auto;
}

.veh-card-btn {
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 5px;
    flex: 0 1 auto;
    min-width: 0;
    min-height: 32px;
    padding: 6px 10px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--surface-3);
    color: var(--text);
    cursor: pointer;
    font-size: 0.78rem;
    transition: border-color 0.15s, background 0.15s;
}

.veh-btn-icon {
    font-size: 1rem;
    line-height: 1;
}

.veh-btn-label {
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    opacity: 0.9;
    white-space: nowrap;
}

.veh-card-btn:hover {
    border-color: rgba(var(--v-accent-rgb), 0.4);
    background: rgba(var(--v-accent-rgb), 0.1);
}

.veh-card-btn.danger:hover {
    border-color: rgba(239, 68, 68, 0.45);
    background: rgba(239, 68, 68, 0.12);
}

.veh-badge {
    font-size: 0.62rem;
    font-weight: 650;
    padding: 3px 8px;
    border-radius: 999px;
    border: 1px solid transparent;
    white-space: nowrap;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.veh-badge.garage {
    background: rgba(var(--v-accent-rgb), 0.14);
    color: var(--v-accent-hi);
    border-color: rgba(var(--v-accent-rgb), 0.25);
}

.veh-badge.out {
    background: rgba(245, 158, 11, 0.12);
    color: #fcd34d;
    border-color: rgba(245, 158, 11, 0.28);
}

.veh-badge.impound {
    background: rgba(239, 68, 68, 0.12);
    color: #fca5a5;
    border-color: rgba(239, 68, 68, 0.28);
}

.veh-tool-section {
    border-bottom: 1px solid var(--border);
}

.veh-tool-section:last-child { border-bottom: none; }

.veh-tool-head {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-bottom: 1px solid var(--border);
}

.veh-tool-head h3 {
    margin: 0;
    font-size: 0.82rem;
}

.veh-tool-head span { font-size: 0.95rem; }

.veh-side-card {
    padding: 8px 12px 10px;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 8px;
}

.veh-side-card .veh-field-label {
    display: none;
}

.veh-side-card .field,
.veh-side-card select {
    flex: 1 1 120px;
    min-width: 0;
    min-height: 32px;
    font-size: 0.75rem;
}

.veh-side-card #veh-give-model,
.veh-side-card #veh-model {
    flex: 2 1 140px;
    max-width: 180px;
}

.veh-field-label {
    display: block;
    font-size: 0.68rem;
    color: var(--muted);
    margin-bottom: 3px;
    font-weight: 600;
}

.veh-give-btn,
.veh-spawn-btn {
    flex: 0 1 auto;
    width: auto;
    min-height: 32px;
    white-space: nowrap;
}

.veh-tools {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    flex: 1 1 100%;
}

.veh-tool {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 8px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--surface-2);
    color: var(--text);
    font: inherit;
    font-size: 0.68rem;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
}

.veh-tool:hover {
    border-color: rgba(var(--v-accent-rgb), 0.35);
    background: rgba(var(--v-accent-rgb), 0.08);
}

.veh-tool.danger:hover {
    border-color: rgba(239, 68, 68, 0.4);
    background: rgba(239, 68, 68, 0.08);
}

.veh-tool span {
    font-size: 0.9rem;
    line-height: 1;
}

.veh-plate-row {
    display: flex;
    gap: 6px;
    flex: 1 1 100%;
}

.veh-plate-row .field {
    flex: 1;
    min-height: 32px;
    font-size: 0.75rem;
}

.veh-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 48px 24px;
    text-align: center;
    border: 1px dashed var(--border);
    border-radius: 16px;
    color: var(--muted);
    min-height: 200px;
}

.veh-empty-state strong {
    color: var(--text);
    font-size: 0.95rem;
}

.veh-empty-icon { font-size: 2rem; opacity: 0.55; }

.veh-empty-spinner {
    width: 28px;
    height: 28px;
    border: 3px solid var(--border);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: veh-spin 0.7s linear infinite;
}

@keyframes veh-spin {
    to { transform: rotate(360deg); }
}

.veh-col-players .logs-player-item {
    align-items: center;
}

.veh-col-players .logs-player-av-img.member-avatar {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    flex-shrink: 0;
}

.veh-col-players .staff-rp-name {
    font-size: 0.84rem;
    font-weight: 600;
}

.veh-col-players .staff-discord-name {
    font-size: 0.68rem;
}

.veh-park-banner {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 8px;
    padding: 8px 10px;
    border-radius: 10px;
    border: 1px solid var(--border);
    font-size: 0.78rem;
}

.veh-park-banner strong {
    display: block;
    font-size: 0.82rem;
}

.veh-park-banner small {
    display: block;
    margin-top: 2px;
    color: var(--muted);
    font-size: 0.7rem;
    line-height: 1.4;
    word-break: break-word;
}

.veh-park-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.veh-park-banner--garage {
    background: rgba(34, 197, 94, 0.08);
    border-color: rgba(34, 197, 94, 0.25);
}

.veh-park-banner--garage .veh-park-dot {
    background: #22c55e;
    box-shadow: 0 0 8px rgba(34, 197, 94, 0.5);
}

.veh-park-banner--out {
    background: rgba(251, 191, 36, 0.08);
    border-color: rgba(251, 191, 36, 0.25);
}

.veh-park-banner--out .veh-park-dot {
    background: #fbbf24;
    box-shadow: 0 0 8px rgba(251, 191, 36, 0.45);
}

.veh-park-banner--impound {
    background: rgba(239, 68, 68, 0.08);
    border-color: rgba(239, 68, 68, 0.25);
}

.veh-park-banner--impound .veh-park-dot {
    background: #ef4444;
}

.veh-park-banner--unknown {
    background: rgba(148, 163, 184, 0.08);
    border-color: rgba(148, 163, 184, 0.25);
}

.veh-park-banner--unknown .veh-park-dot {
    background: #94a3b8;
}

@media (max-width: 1100px) {
    .veh-stats { grid-template-columns: repeat(2, 1fr); }
    .veh-card-grid { grid-template-columns: 1fr; }
}

.player-offline-note,
.players-search-hint,
.logs-search-hint {
    font-size: 0.75rem;
    margin: 6px 0 0;
}

.player-rank-guard {
    margin: 0 0 14px;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid rgba(251, 191, 36, 0.35);
    background: rgba(251, 191, 36, 0.1);
    color: #fcd34d;
    font-size: 0.78rem;
}

.player-offline-badge {
    display: inline-block;
    margin-left: 6px;
    padding: 1px 6px;
    border-radius: 999px;
    font-size: 0.62rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    background: rgba(251, 191, 36, 0.15);
    color: #fbbf24;
    vertical-align: middle;
}

.ptag-offline {
    background: rgba(251, 191, 36, 0.12);
    color: #fbbf24;
}

/* Liquid Glass reskin */
.veh-stat,
.veh-col-tools,
.veh-player-banner,
.veh-card,
.veh-trunk,
.veh-trunk-manage,
.veh-side-card,
.veh-tool,
.veh-park-banner {
    border-color: var(--border);
    background: var(--glass-panel);
    box-shadow: var(--glass-edge), 0 12px 28px rgba(20, 10, 4, 0.18);
}

.veh-stat,
.veh-player-banner,
.veh-card,
.veh-side-card,
.veh-tool,
.veh-park-banner { border-radius: var(--radius); }

.veh-col-tools { border-radius: var(--radius-lg); }
.veh-card { background: linear-gradient(145deg, rgba(73, 54, 41, 0.88), rgba(36, 25, 17, 0.94)); }

.veh-card:hover,
.veh-stat:hover,
.veh-tool:hover {
    border-color: var(--border-hover);
    background: linear-gradient(145deg, rgba(94, 70, 54, 0.94), rgba(43, 29, 20, 0.96));
    box-shadow: var(--glass-edge), 0 16px 32px rgba(30, 16, 7, 0.26);
}

.veh-stat.active {
    border-color: rgba(var(--v-accent-hi-rgb), 0.42);
    background: linear-gradient(145deg, rgba(var(--v-accent-rgb), 0.22), rgba(255, 255, 255, 0.045));
}

.veh-card-icon,
.veh-card-btn,
.veh-trunk-tag,
.veh-list-count {
    background: var(--glass-soft);
    border-color: var(--border);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

.veh-card-btn:hover {
    border-color: var(--border-hover);
    background: rgba(var(--v-accent-rgb), 0.16);
}

.veh-give-btn,
.veh-spawn-btn {
    background: linear-gradient(135deg, var(--v-accent), var(--v-accent-lo) 58%, var(--v-accent-lo));
    border-color: rgba(var(--v-accent-hi-rgb), 0.25);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.26), 0 8px 22px rgba(var(--v-accent-lo-rgb), 0.28);
}

@media (max-width: 900px) {
    .veh-hub-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto minmax(0, 1fr) auto;
    }

    .veh-col-players {
        grid-column: 1;
        grid-row: 1;
        max-height: 180px;
    }

    .veh-col-main {
        grid-column: 1;
        grid-row: 2;
    }

    .veh-col-tools {
        grid-column: 1;
        grid-row: 3;
    }
}
