/* ==========================================================================
   Transport Tycoon / Transport Empire Manager
   Core Design System & Theme Stylesheet
   ========================================================================== */

:root {
    --bg-dark: #0f1224;
    --bg-surface: #171c36;
    --bg-card: #1f2547;
    --bg-card-hover: #262e57;
    --border-color: rgba(255, 255, 255, 0.08);
    --border-glow: rgba(0, 210, 255, 0.3);

    --primary: #00d2ff;
    --primary-hover: #38dcff;
    --secondary: #3a4474;
    --secondary-hover: #4a5694;

    --gold: #ffb703;
    --green: #00e676;
    --danger: #ff4d6d;
    --warning: #fb8500;
    --purple: #8338ec;

    --text-main: #f1f5f9;
    --text-muted: #94a3b8;
    --text-dark: #0b0e1b;

    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-full: 9999px;

    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.35);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 15px rgba(0, 210, 255, 0.25);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.5;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Scrollbars */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
    background: var(--secondary);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* Layout Container */
.app-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* ==========================================================================
   TOP BAR & HUD
   ========================================================================== */
.site-header {
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.95) 0%, rgba(15, 23, 42, 0.86) 55%, rgba(15, 23, 42, 0.96) 100%),
                url('../img/fejlec.png') center right / cover no-repeat;
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(0, 210, 255, 0.25);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.45);
}

.header-inner {
    max-width: 1700px;
    margin: 0 auto;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
}

.brand-section {
    display: flex;
    align-items: center;
    gap: 14px;
}

.brand-logo-img {
    height: 48px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 10px rgba(0, 210, 255, 0.45));
    transition: transform 0.25s ease, filter 0.25s ease;
}

.brand-logo-img:hover {
    transform: scale(1.06);
    filter: drop-shadow(0 4px 16px rgba(0, 210, 255, 0.7));
}

.brand-logo-icon {
    font-size: 1.8rem;
    background: linear-gradient(135deg, #00d2ff, #7928ca);
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-glow);
}

.brand-text h1 {
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    background: linear-gradient(90deg, #ffffff, #00d2ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.2;
}

.brand-text .brand-subtitle {
    font-size: 0.75rem;
    color: var(--text-muted);
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* HUD METRICS STRIP */
.hud-strip {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.hud-item {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    padding: 6px 14px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.88rem;
}

/* Interactive Clickable HUD Items */
.hud-clickable {
    cursor: pointer !important;
    user-select: none;
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}

.hud-clickable:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
    border-color: rgba(0, 210, 255, 0.5);
    background: rgba(255, 255, 255, 0.08);
}

.hud-clickable:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.hud-item.hud-cash {
    border-color: rgba(255, 183, 3, 0.35);
    background: rgba(255, 183, 3, 0.08);
}

.hud-item.hud-cash.hud-clickable:hover {
    border-color: rgba(255, 183, 3, 0.7);
    box-shadow: 0 4px 16px rgba(255, 183, 3, 0.3);
    background: rgba(255, 183, 3, 0.16);
}

.hud-item.hud-pp {
    border-color: rgba(255, 215, 0, 0.35);
    background: rgba(255, 215, 0, 0.06);
}

.hud-item.hud-pp.hud-clickable:hover {
    border-color: rgba(255, 215, 0, 0.75);
    box-shadow: 0 4px 16px rgba(255, 215, 0, 0.3);
    background: rgba(255, 215, 0, 0.15);
}

.hud-item.hud-xp.hud-clickable:hover {
    border-color: rgba(0, 230, 118, 0.55);
    box-shadow: 0 4px 16px rgba(0, 230, 118, 0.25);
    background: rgba(0, 230, 118, 0.08);
}

.hud-item.hud-fuel.hud-clickable:hover {
    border-color: rgba(255, 107, 53, 0.6);
    box-shadow: 0 4px 16px rgba(255, 107, 53, 0.28);
    background: rgba(255, 107, 53, 0.1);
}

.hud-item.hud-fleet.hud-clickable:hover {
    border-color: rgba(79, 172, 254, 0.65);
    box-shadow: 0 4px 16px rgba(79, 172, 254, 0.28);
    background: rgba(79, 172, 254, 0.1);
}

.hud-item.hud-active.hud-clickable:hover {
    border-color: rgba(255, 193, 7, 0.65);
    box-shadow: 0 4px 16px rgba(255, 193, 7, 0.28);
    background: rgba(255, 193, 7, 0.12);
}

.hud-val-cash {
    color: var(--gold);
    font-weight: 700;
    font-size: 1.1rem;
}

.hud-item.hud-xp {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    min-width: 160px;
}

.hud-xp-meta {
    width: 100%;
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
}

.xp-bar-wrap {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.xp-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #00d2ff, #00e676);
    border-radius: var(--radius-full);
    transition: width 0.3s ease;
}

.hud-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* PWA App Install Button */
.btn-pwa-install {
    background: linear-gradient(135deg, #00d2ff 0%, #0077ff 100%) !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    border: 1px solid rgba(0, 210, 255, 0.7) !important;
    box-shadow: 0 0 14px rgba(0, 210, 255, 0.45) !important;
    animation: pwaPulse 2.5s infinite ease-in-out;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    letter-spacing: 0.3px;
}

.btn-pwa-install:hover {
    background: linear-gradient(135deg, #38bdf8 0%, #0284c7 100%) !important;
    transform: translateY(-1px);
    box-shadow: 0 0 20px rgba(0, 210, 255, 0.7) !important;
}

@keyframes pwaPulse {
    0%, 100% {
        box-shadow: 0 0 10px rgba(0, 210, 255, 0.4);
    }
    50% {
        box-shadow: 0 0 22px rgba(0, 210, 255, 0.8), 0 0 6px rgba(255, 255, 255, 0.6);
    }
}

/* Standalone PWA adjustments (Mobile & Desktop App Mode) */
@media all and (display-mode: standalone) {
    #btnFullscreenToggle {
        display: none !important;
    }
    #btnPwaInstall {
        display: none !important;
    }
    body {
        padding-top: env(safe-area-inset-top);
        padding-bottom: env(safe-area-inset-bottom);
        padding-left: env(safe-area-inset-left);
        padding-right: env(safe-area-inset-right);
    }
}

/* ==========================================================================
   NAVIGATION BAR TABS
   ========================================================================== */
.nav-bar {
    background: #141830;
    border-bottom: 1px solid var(--border-color);
}

/* A fülek több sorba törnek (asztalon 2 sor), így nincs szükség vízszintes csúszkára */
.nav-bar-inner {
    max-width: 1700px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2px 4px;
}

.nav-tab {
    flex-shrink: 0;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 0.92rem;
    font-weight: 600;
    padding: 12px 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 3px solid transparent;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.nav-tab:hover {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.03);
}

.nav-tab.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
    background: rgba(0, 210, 255, 0.06);
}

.tab-badge {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 2px 7px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    color: var(--text-muted);
}

.nav-tab.active .tab-badge {
    background: var(--primary);
    color: var(--text-dark);
    font-weight: bold;
}

/* ==========================================================================
   MAIN CONTENT AREA & VIEWS
   ========================================================================== */
.main-view-container {
    max-width: 1700px;
    margin: 0 auto;
    padding: 20px;
    flex: 1;
    width: 100%;
}

.view-panel {
    display: none;
    animation: fadeIn 0.25s ease forwards;
}

.view-panel.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

.view-header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.view-header-bar h2 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #ffffff;
}

.section-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: #e2e8f0;
}

/* ==========================================================================
   BUTTONS & BADGES
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 9px 18px;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
    text-decoration: none;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed !important;
}

.btn-primary {
    background: linear-gradient(135deg, #00d2ff, #0088cc);
    color: #0b1124;
}

.btn-primary:hover:not(:disabled) {
    background: linear-gradient(135deg, #38dcff, #0099e6);
    box-shadow: var(--shadow-glow);
    transform: translateY(-1px);
}

.btn-secondary {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-main);
}

.btn-secondary:hover:not(:disabled) {
    background: var(--bg-card-hover);
    border-color: rgba(255, 255, 255, 0.2);
}

.btn-danger {
    background: #e63946;
    color: #ffffff;
}
.btn-danger:hover:not(:disabled) {
    background: #d62828;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 0.82rem;
}

.btn-block {
    width: 100%;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.badge-success { background: rgba(0, 230, 118, 0.15); color: var(--green); border: 1px solid rgba(0, 230, 118, 0.3); }
.badge-warning { background: rgba(251, 133, 0, 0.15); color: var(--warning); border: 1px solid rgba(251, 133, 0, 0.3); }
.badge-danger { background: rgba(255, 77, 109, 0.15); color: var(--danger); border: 1px solid rgba(255, 77, 109, 0.3); }
.badge-urgent { background: rgba(255, 77, 109, 0.25); color: #ff6b8b; border: 1px solid var(--danger); animation: pulseUrgent 1.5s infinite; }
.badge-locked { background: rgba(255, 255, 255, 0.08); color: var(--text-muted); }

.mode-road { background: rgba(255, 159, 28, 0.15); color: #ff9f1c; border: 1px solid rgba(255, 159, 28, 0.3); }
.mode-rail { background: rgba(0, 210, 255, 0.15); color: #00d2ff; border: 1px solid rgba(0, 210, 255, 0.3); }
.mode-sea { background: rgba(6, 214, 160, 0.15); color: #06d6a0; border: 1px solid rgba(6, 214, 160, 0.3); }
.mode-air { background: rgba(255, 209, 102, 0.15); color: #ffd166; border: 1px solid rgba(255, 209, 102, 0.3); }

.badge-specialty { background: rgba(131, 56, 236, 0.2); color: #c77dff; border: 1px solid rgba(131, 56, 236, 0.4); }
.badge-bonus { background: rgba(255, 183, 3, 0.2); color: #ffb703; border: 1px solid rgba(255, 183, 3, 0.45); font-weight: bold; }
.badge-route-tier { background: rgba(56, 189, 248, 0.18); color: #38bdf8; border: 1px solid rgba(56, 189, 248, 0.4); font-weight: 600; }
.badge-body-req { background: rgba(239, 68, 68, 0.18); color: #fca5a5; border: 1px solid rgba(239, 68, 68, 0.45); font-weight: 600; }

.v-spec-pill {
    color: #c77dff;
    font-size: 0.8rem;
    font-weight: 600;
}

.specialized-match {
    border-color: rgba(255, 183, 3, 0.4) !important;
    background: rgba(255, 183, 3, 0.05) !important;
}

.d-title-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.d-v-header-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: wrap;
}

@keyframes pulseUrgent {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

/* ==========================================================================
   VIEW 1: RADAR / MAP VIEW
   ========================================================================== */
.map-layout-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 20px;
}

@media (max-width: 1100px) {
    .map-layout-grid {
        grid-template-columns: 1fr;
    }
}

.map-viewport-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow-md);
}

/* Map controls and overlays are defined in assets/css/map.css */

.map-zoom-overlay {
    position: absolute;
    bottom: 20px;
    right: 20px;
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.zoom-btn {
    width: 36px;
    height: 36px;
    background: rgba(23, 28, 54, 0.9);
    border: 1px solid var(--border-color);
    color: #ffffff;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.zoom-btn:hover {
    background: var(--primary);
    color: var(--text-dark);
}

.map-sidebar-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    box-shadow: var(--shadow-md);
    max-height: 720px;
}

.map-sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
}

.active-transports-scroll {
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

.active-job-chip {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.chip-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
}

.chip-route {
    font-size: 0.82rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.chip-payout {
    color: var(--gold);
    font-weight: bold;
}

.chip-meta-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.76rem;
    margin-top: 1px;
}

.chip-speed-badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    background: rgba(255, 183, 3, 0.16);
    border: 1px solid rgba(255, 183, 3, 0.45);
    color: #ffd700;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.74rem;
    letter-spacing: 0.2px;
}

.chip-road-badge {
    color: #94a3b8;
    font-size: 0.72rem;
}

.chip-progress-bar {
    width: 100%;
    height: 5px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.chip-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #ff9f1c, #00d2ff);
    transition: width 0.5s ease;
}

/* ==========================================================================
   VIEW 2: JOBS (FUVARBÖRZE) & RESPONSIVE FREIGHT MARKET
   ========================================================================== */
.jobs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
    gap: 18px;
}

.job-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 16px 18px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    box-shadow: var(--shadow-sm);
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.job-card:hover {
    border-color: rgba(0, 210, 255, 0.45);
    transform: translateY(-3px);
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.45), 0 0 16px rgba(0, 210, 255, 0.15);
}

.job-card.urgent-border {
    border-color: rgba(255, 77, 109, 0.5);
    background: linear-gradient(180deg, rgba(255, 77, 109, 0.04) 0%, var(--bg-surface) 100%);
    box-shadow: 0 0 14px rgba(255, 77, 109, 0.12);
}

.job-card.urgent-border:hover {
    border-color: rgba(255, 77, 109, 0.8);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45), 0 0 20px rgba(255, 77, 109, 0.25);
}

.job-card.home-route-card {
    border-color: rgba(0, 210, 255, 0.4);
    background: linear-gradient(180deg, rgba(0, 210, 255, 0.04) 0%, var(--bg-surface) 100%);
}

.job-card.home-route-card:hover {
    border-color: rgba(0, 210, 255, 0.7);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45), 0 0 20px rgba(0, 210, 255, 0.25);
}

.job-top {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}

.job-top .badge {
    white-space: nowrap;
    font-size: 0.72rem;
    padding: 3px 8px;
    letter-spacing: 0.3px;
}

.job-route-display {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(10, 14, 28, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.06);
    padding: 12px 14px;
    border-radius: var(--radius-md);
    gap: 8px;
}

.route-point {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    text-align: center;
}

.r-flag {
    font-size: 1.45rem;
    line-height: 1;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}

.r-city {
    font-size: 0.84rem;
    font-weight: 600;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    text-align: center;
    line-height: 1.25;
    word-break: break-word;
    width: 100%;
}

.r-city strong {
    color: #00e676;
    font-size: 0.72rem;
    font-weight: 700;
    text-shadow: 0 0 8px rgba(0, 230, 118, 0.4);
    display: block;
}

.r-city small {
    font-size: 0.7rem;
    color: var(--text-muted);
    font-weight: 500;
    display: block;
}

.route-line-wrap {
    flex: 0 1 85px;
    min-width: 48px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 0 6px;
}

.r-dist {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 600;
    white-space: nowrap;
}

.r-line {
    width: 100%;
    height: 2px;
    background: repeating-linear-gradient(90deg, #00d2ff 0, #00d2ff 4px, transparent 4px, transparent 8px);
    position: relative;
}

.r-line::after {
    content: '▶';
    position: absolute;
    right: -2px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 8px;
    color: #00d2ff;
    line-height: 1;
}

.r-line.r-line-home {
    background: repeating-linear-gradient(90deg, #00e676 0, #00e676 4px, transparent 4px, transparent 8px);
}

.r-line.r-line-home::after {
    color: #00e676;
}

/* Job Card Company Route Badges */
.job-company-badges {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 8px;
    padding: 7px 10px;
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-sm);
    font-size: 0.78rem;
}

.company-badge {
    display: flex;
    flex-direction: column;
    flex: 1 1 0;
    min-width: 0;
    line-height: 1.25;
}

.company-badge.sender-company {
    text-align: left;
}

.company-badge.receiver-company {
    text-align: right;
}

.c-badge-type {
    font-size: 0.68rem;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.c-badge-name {
    font-weight: 700;
    color: #f1f5f9;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 0.82rem;
}

.sender-company .c-badge-name {
    color: #38bdf8;
}

.receiver-company .c-badge-name {
    color: #ffd700;
}

.company-badge-arrow {
    flex: 0 0 auto;
    font-size: 0.85rem;
    color: var(--primary);
    font-weight: 700;
    opacity: 0.85;
}

.job-details-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    background: rgba(10, 14, 28, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.06);
    padding: 10px 12px;
    border-radius: var(--radius-md);
}

.j-detail {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 3px;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.04);
    padding: 7px 10px;
    border-radius: var(--radius-sm);
    min-width: 0;
}

.j-detail .label {
    font-size: 0.68rem;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.j-detail .val {
    font-size: 0.88rem;
    font-weight: 700;
    line-height: 1.25;
    word-break: break-word;
}

.job-actions {
    margin-top: auto;
}

.job-actions .btn {
    padding: 11px 16px;
    font-size: 0.92rem;
    font-weight: 700;
    letter-spacing: 0.3px;
    box-shadow: 0 4px 14px rgba(0, 210, 255, 0.25);
    transition: all 0.2s ease;
}

.job-actions .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 210, 255, 0.45);
}

.jobs-header-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}

/* ==========================================================================
   VIEW 3: FLEET (JÁRMŰPARK)
   ========================================================================== */
.fleet-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 18px;
}

.vehicle-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    box-shadow: var(--shadow-sm);
}

.vehicle-card.in-transit {
    border-color: rgba(255, 183, 3, 0.35);
}

.v-card-media {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: radial-gradient(ellipse at 50% 85%, rgba(74, 163, 255, 0.18), transparent 65%), linear-gradient(180deg, #121a33, #080b18);
    border: 1px solid var(--border-color);
    cursor: pointer;
}

.v-card-media::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(0,0,0,0) 80%, rgba(8,11,24,0.35) 100%);
}

.v-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.35s ease;
}

.vehicle-card:hover .v-card-img {
    transform: scale(1.05);
}

.v-media-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(15, 18, 36, 0.85);
    backdrop-filter: blur(4px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 3px 8px;
    font-size: 1.1rem;
    box-shadow: 0 2px 6px rgba(0,0,0,0.4);
    z-index: 2;
}



.v-card-top {
    display: flex;
    align-items: center;
    gap: 12px;
}

.v-type-icon {
    font-size: 2rem;
    background: var(--bg-card);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.v-title-wrap {
    flex: 1;
}

.v-title-wrap h4 {
    font-size: 1.05rem;
    font-weight: 700;
}

.v-model-name {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.v-metrics {
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: var(--bg-card);
    padding: 10px 14px;
    border-radius: var(--radius-md);
}

.metric-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.82rem;
}

.meter-bar {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.meter-fill {
    height: 100%;
    border-radius: var(--radius-full);
}

.fuel-fill {
    background: linear-gradient(90deg, #ffb703, #fb8500);
}

.fuel-fill.low {
    background: linear-gradient(90deg, #ef4444, #dc2626) !important;
}

.cond-fill {
    background: linear-gradient(90deg, #00e676, #00d2ff);
}

.cond-fill.low {
    background: #ff4d6d;
}

.v-specs-summary {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: rgba(10, 14, 28, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    padding: 10px 12px;
    backdrop-filter: blur(8px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 4px 12px rgba(0, 0, 0, 0.2);
}

.v-spec-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 8px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.035);
    font-size: 0.81rem;
    line-height: 1.35;
    transition: background 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
}

.v-spec-row:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(0, 210, 255, 0.22);
}

.v-spec-lbl {
    color: #94a3b8;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.v-spec-lbl .v-spec-ico {
    font-size: 0.9rem;
    display: inline-block;
    width: 18px;
    text-align: center;
}

.v-spec-val {
    color: #f1f5f9;
    font-weight: 600;
    text-align: right;
    display: flex;
    align-items: center;
    gap: 4px;
}

.v-spec-val .v-sub {
    color: #64748b;
    font-size: 0.73rem;
    font-weight: 400;
}

/* Specific Accent Highlighting */
.v-spec-val.power-val {
    color: #fbbf24;
    text-shadow: 0 0 12px rgba(251, 191, 36, 0.25);
}

.v-spec-val.weight-val {
    color: #cbd5e1;
}

.v-spec-val.cargo-val {
    color: #38bdf8;
    font-weight: 700;
}

.v-spec-val.pax-val {
    color: #34d399;
    font-weight: 700;
    background: rgba(16, 185, 129, 0.15);
    padding: 1px 8px;
    border-radius: 4px;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.v-spec-val.fuel-val {
    color: #fb923c;
    font-weight: 600;
}

.v-spec-val.speed-val {
    color: #60a5fa;
    font-weight: 600;
}

.v-spec-val.location-val {
    color: #e2e8f0;
    font-weight: 600;
}

.v-spec-val.trips-val {
    color: #f8fafc;
}

/* Specialty Bodywork Highlight Box */
.v-spec-specialty-box {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.12), rgba(168, 85, 247, 0.12));
    border: 1px solid rgba(245, 158, 11, 0.35);
    border-radius: 8px;
    padding: 7px 10px;
    margin: 3px 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.v-spec-specialty-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

.v-spec-specialty-name {
    color: #fde68a;
    font-size: 0.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 5px;
}

.v-spec-specialty-badge {
    background: rgba(245, 158, 11, 0.25);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.45);
    font-size: 0.72rem;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 4px;
    white-space: nowrap;
}

.v-spec-specialty-cargos {
    color: #cbd5e1;
    font-size: 0.72rem;
    opacity: 0.9;
    padding-left: 20px;
}

/* Upgrades container inside specs */
.v-spec-upgrades-box {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 6px 8px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.035);
}

.v-spec-upgrades-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.v-spec-upgrades-items {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    align-items: center;
}

/* DEALERSHIP SPEC LIST */
.d-specs-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: rgba(10, 14, 28, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 8px 10px;
    margin: 8px 0;
}

.d-spec-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 6px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.02);
    font-size: 0.79rem;
}

.d-spec-row:hover {
    background: rgba(255, 255, 255, 0.05);
}

.d-spec-lbl {
    color: #94a3b8;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 5px;
}

.d-spec-val {
    font-weight: 600;
    color: #f1f5f9;
}

.v-card-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* ==========================================================================
   VIEW 4: HQ & LICENSES
   ========================================================================== */
.hq-banner-card {
    background: linear-gradient(135deg, #1b2144, #121630);
    border: 1px solid rgba(0, 210, 255, 0.25);
    border-radius: var(--radius-lg);
    padding: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
    box-shadow: var(--shadow-glow);
}

.hq-badge {
    background: rgba(255, 183, 3, 0.15);
    color: var(--gold);
    border: 1px solid rgba(255, 183, 3, 0.3);
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-size: 0.82rem;
    font-weight: 700;
}

.hq-perks-list {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 12px;
    font-size: 0.9rem;
}

.hq-upgrade-box {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    padding: 16px 20px;
    border-radius: var(--radius-md);
    text-align: right;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.licenses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 18px;
}

.license-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: all 0.2s ease;
}

.license-card:hover {
    border-color: rgba(0, 210, 255, 0.35);
    transform: translateY(-2px);
}

.license-card.owned {
    border-color: rgba(0, 230, 118, 0.3);
    background: rgba(0, 230, 118, 0.03);
}

.lic-head {
    display: flex;
    align-items: center;
    gap: 12px;
}

.lic-icon {
    font-size: 1.8rem;
    background: var(--bg-card);
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    flex-shrink: 0;
}

.lic-head h4 {
    flex: 1;
    font-size: 1.02rem;
    font-weight: 700;
    line-height: 1.25;
}

.lic-status {
    flex-shrink: 0;
    align-self: flex-start;
}

.lic-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.45;
    margin: 0;
}

.lic-benefit {
    font-size: 0.82rem;
    line-height: 1.45;
    color: var(--text-main, #e2e8f0);
    background: rgba(0, 210, 255, 0.06);
    border-left: 3px solid var(--primary);
    border-radius: 6px;
    padding: 8px 10px;
}

.lic-benefit-label {
    display: block;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 2px;
}

.lic-footer {
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.lic-price {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.lic-cost {
    font-size: 1.05rem;
    font-weight: 700;
    color: #f8fafc;
}

.lic-req {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.lic-req-low {
    color: #fbbf24;
}

.lic-owned {
    font-size: 0.85rem;
    font-weight: 600;
}

/* ==========================================================================
   VIEW 5: CORPORATIONS & PROJECTS
   ========================================================================== */
.alliances-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
}

.corp-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.corp-card.joined {
    box-shadow: 0 0 15px rgba(0, 210, 255, 0.2);
}

.corp-top {
    display: flex;
    align-items: center;
    gap: 12px;
}

.corp-icon {
    font-size: 2rem;
}

.corp-perk-box {
    background: var(--bg-card);
    padding: 10px 14px;
    border-radius: var(--radius-md);
    font-size: 0.85rem;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(420px, 1fr));
    gap: 20px;
}

.project-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.proj-header {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.proj-icon {
    font-size: 2.2rem;
}

.proj-perk {
    font-size: 0.85rem;
    color: var(--gold);
    background: rgba(255, 183, 3, 0.08);
    padding: 8px 12px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 183, 3, 0.2);
}

.proj-progress-info {
    display: flex;
    justify-content: space-between;
    font-size: 0.82rem;
    margin-bottom: 6px;
}

.proj-actions {
    display: flex;
    gap: 10px;
}

/* ==========================================================================
   VIEW 6: BANKING
   ========================================================================== */
.finance-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
    margin-bottom: 30px;
}

.fin-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.fin-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
}

.fin-val {
    font-size: 1.4rem;
    font-weight: 800;
}

.active-loans-box {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.active-loan-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-card);
    padding: 12px 16px;
    border-radius: var(--radius-md);
}

.loans-packages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 18px;
}

.loan-pkg-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.pkg-amount {
    font-size: 1.4rem;
    font-weight: 800;
}

.pkg-meta {
    font-size: 0.82rem;
    color: var(--text-muted);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/* ==========================================================================
   VIEW 7: LEADERBOARD & ACHIEVEMENTS
   ========================================================================== */
.modern-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-surface);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.modern-table th,
.modern-table td {
    padding: 14px 18px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.92rem;
}

.modern-table th {
    background: var(--bg-card);
    font-size: 0.8rem;
    text-transform: uppercase;
    color: var(--text-muted);
}

.modern-table tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

.player-row {
    background: rgba(0, 210, 255, 0.08) !important;
    border-left: 4px solid var(--primary);
}

.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 16px;
}

.ach-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 14px;
    opacity: 0.6;
    transition: all 0.2s;
}

.ach-card.unlocked {
    opacity: 1;
    border-color: rgba(255, 183, 3, 0.35);
    background: rgba(255, 183, 3, 0.04);
}

.ach-icon {
    font-size: 2rem;
    background: var(--bg-card);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
}

.ach-info h4 {
    font-size: 0.98rem;
    font-weight: 700;
}

.ach-info p {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.ach-reward {
    font-size: 0.78rem;
    color: var(--gold);
    font-weight: 600;
}

/* ==========================================================================
   MODAL DIALOGS
   ========================================================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(10, 14, 28, 0.8);
    backdrop-filter: blur(8px);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-overlay.active {
    display: flex;
    animation: fadeIn 0.2s ease;
}

.game-dialog-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10, 14, 28, 0.75);
    backdrop-filter: blur(6px);
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.15s ease;
}

.game-dialog {
    background: var(--bg-surface);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 420px;
    padding: 20px;
}

.game-dialog-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #f8fafc;
    margin-bottom: 10px;
}

.game-dialog-message {
    color: #cbd5e1;
    line-height: 1.5;
    margin-bottom: 16px;
}

.game-dialog-input {
    width: 100%;
    box-sizing: border-box;
    padding: 10px 12px;
    margin-bottom: 16px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-md, 8px);
    color: #f8fafc;
    font: inherit;
}

.game-dialog-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.modal-window {
    background: var(--bg-surface);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 680px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
}

.modal-header h3 {
    font-size: 1.15rem;
    font-weight: 700;
}

.modal-close {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
}

.modal-close:hover {
    color: #ffffff;
}

.modal-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 16px 20px;
    border-top: 1px solid var(--border-color);
}

.recruitment-confirmation {
    margin: auto;
    padding: 28px;
    width: min(480px, calc(100vw - 32px));
    max-height: calc(100dvh - 32px);
    overflow-y: auto;
    color: var(--text-main);
    background: linear-gradient(145deg, var(--bg-card), var(--bg-surface));
    border: 1px solid var(--border-glow);
    border-radius: 20px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6), var(--shadow-glow);
}

.recruitment-confirmation::backdrop {
    background: rgba(10, 14, 28, 0.8);
    backdrop-filter: blur(8px);
}

.recruitment-confirmation-heading {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 22px;
}

.recruitment-confirmation-icon {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    flex-shrink: 0;
    border-radius: 14px;
    background: rgba(0, 210, 255, 0.12);
    font-size: 26px;
}

.recruitment-confirmation-eyebrow {
    font-size: 10px;
    letter-spacing: 2px;
    color: var(--primary);
    font-weight: 700;
}

.recruitment-confirmation h3 { font-size: 1.15rem; }
.recruitment-confirmation-heading .modal-close { margin-left: auto; padding: 8px; }
.recruitment-confirmation p { color: var(--text-muted); line-height: 1.7; }
.recruitment-confirmation-cost {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin: 22px 0;
    padding: 16px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 183, 3, 0.2);
    background: rgba(255, 183, 3, 0.06);
}
.recruitment-confirmation-cost strong { color: var(--gold); font-size: 1.45rem; white-space: nowrap; }
.recruitment-confirmation-actions { display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }
.recruitment-confirmation button:focus-visible { outline: 2px solid var(--primary); outline-offset: 4px; }

/* Dispatch modal elements */
.job-summary-box {
    background: var(--bg-card);
    padding: 14px;
    border-radius: var(--radius-md);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    font-size: 0.88rem;
}

.dispatch-vehicles-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 250px;
    overflow-y: auto;
    margin-top: 8px;
}

.dispatch-v-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}

.dispatch-v-item:hover {
    border-color: var(--primary);
}

.dispatch-v-item.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.dispatch-v-item input[type="radio"] {
    accent-color: var(--primary);
    width: 18px;
    height: 18px;
}

.dispatch-v-thumb {
    width: 68px;
    height: 44px;
    border-radius: var(--radius-sm);
    object-fit: contain;
    border: 1px solid var(--border-color);
    background: #0c0f20;
    flex-shrink: 0;
}

.d-v-body {
    display: flex;
    flex-direction: column;
}

.d-v-name {
    font-weight: 700;
    font-size: 0.92rem;
}

.d-v-spec {
    font-size: 0.78rem;
    color: var(--text-muted);
}

/* Dealership Modal */
.dealership-filter-tabs {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
}

.dealership-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 450px;
    overflow-y: auto;
    padding-right: 5px;
}

.d-item-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 14px;
    display: flex;
    align-items: center;
    gap: 14px;
}

.d-media {
    position: relative;
    width: 160px;
    aspect-ratio: 16 / 9;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: #0c0f20;
    border: 1px solid var(--border-color);
    flex-shrink: 0;
}

.d-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.25s ease;
}

.d-item-card:hover .d-thumb-img {
    transform: scale(1.04);
}

.d-icon-badge {
    position: absolute;
    bottom: 4px;
    right: 4px;
    background: rgba(15, 18, 36, 0.85);
    backdrop-filter: blur(4px);
    border-radius: 4px;
    padding: 2px 5px;
    font-size: 0.85rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.d-icon {
    font-size: 2.2rem;
    width: 55px;
    height: 55px;
    background: var(--bg-surface);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    flex-shrink: 0;
}

.d-info {
    flex: 1;
    min-width: 0; /* enélkül a hosszú szöveg kitolja a kártyát (vízszintes görgetés) */
}

.d-info h4 {
    overflow-wrap: anywhere;
}

/* ---- Járműkereskedés telefonon: függőleges kártyák, tördelt szűrők ---- */
@media (max-width: 640px) {
    .modal-window {
        overflow-x: hidden;
    }

    .dealership-filter-tabs {
        flex-wrap: wrap;
        overflow-x: visible;
        gap: 5px;
    }

    .dealership-filter-tabs .d-tab {
        flex: 0 0 auto;
        padding: 5px 9px;
        font-size: 0.74rem;
        white-space: nowrap;
        line-height: 1.2;
    }

    .dealership-grid {
        max-height: none;
        overflow: visible;
        padding-right: 0;
        gap: 10px;
    }

    .d-item-card {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        padding: 10px;
    }

    .d-media {
        width: 100%;
        max-height: 190px;
    }

    .d-title-line {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 6px;
    }

    .d-title-line h4 {
        font-size: 1rem;
        margin: 0;
    }

    .d-info > p.text-muted {
        font-size: 0.8rem;
        line-height: 1.4;
        margin: 6px 0 0;
    }

    .d-specs-list {
        padding: 6px 8px;
    }

    .d-spec-row {
        gap: 8px;
    }

    .d-spec-lbl {
        min-width: 0;
    }

    .d-spec-val {
        text-align: right;
        white-space: nowrap;
    }

    .d-price {
        font-size: 0.95rem;
    }

    .d-buy-action {
        width: 100%;
    }

    .d-buy-action .btn {
        width: 100%;
        padding: 10px;
        font-size: 0.9rem;
    }

    .d-buy-action .badge {
        display: block;
        width: 100%;
        padding: 8px;
        text-align: center;
    }
}

.d-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin: 6px 0;
}

/* City Details Modal */
.city-modal-stats {
    background: var(--bg-card);
    padding: 14px;
    border-radius: var(--radius-md);
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 0.88rem;
}

.depot-build-banner {
    background: rgba(0, 210, 255, 0.05);
    border: 1px dashed var(--primary);
    border-radius: var(--radius-md);
    padding: 16px;
    text-align: center;
}

/* ==========================================================================
   TOAST NOTIFICATIONS
   ========================================================================== */
.toast-container {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.toast-item {
    background: rgba(23, 28, 54, 0.95);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    padding: 12px 18px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(10px);
    font-size: 0.88rem;
    font-weight: 500;
    pointer-events: auto;
    animation: toastSlideIn 0.3s ease;
    max-width: 420px;
}

.toast-item.toast-success {
    border-color: rgba(0, 230, 118, 0.5);
    background: rgba(14, 34, 30, 0.95);
}

.toast-item.toast-primary {
    border-color: rgba(0, 210, 255, 0.5);
    background: rgba(13, 30, 48, 0.95);
}

.toast-item.toast-error {
    border-color: rgba(255, 77, 109, 0.5);
    background: rgba(38, 16, 24, 0.95);
}

.toast-item.fade-out {
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.4s ease;
}

@keyframes toastSlideIn {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Utilities */
.text-gold { color: var(--gold); }
.text-cyan { color: var(--primary); }
.text-green { color: var(--green); }
.text-danger { color: var(--danger); }
.text-muted { color: var(--text-muted); }
.empty-state { text-align: center; padding: 40px; color: var(--text-muted); }
.empty-state-sm { text-align: center; padding: 20px; color: var(--text-muted); font-size: 0.85rem; }


/* ==========================================================================
   AUTH & USER ACCOUNT SYSTEM STYLING (REGISZTRÁCIÓ & TELEPHELYVÁLASZTÓ)
   ========================================================================== */
.hud-auth-area {
    display: flex;
    align-items: center;
    gap: 8px;
}

.user-profile-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 210, 255, 0.1);
    border: 1px solid rgba(0, 210, 255, 0.35);
    padding: 5px 12px;
    border-radius: var(--radius-md);
    font-size: 0.82rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.user-profile-badge:hover {
    background: rgba(0, 210, 255, 0.18);
    border-color: var(--primary);
}

.user-profile-badge .up-company {
    font-weight: 700;
    color: #ffffff;
}

.user-profile-badge .up-hq {
    color: var(--primary);
    font-weight: 600;
}

.btn-auth-trigger {
    background: linear-gradient(135deg, #00d2ff, #0088cc);
    color: #0b0e1b;
    font-weight: 700;
    border: none;
    padding: 6px 14px;
    border-radius: var(--radius-md);
    cursor: pointer;
    box-shadow: 0 0 14px rgba(0, 210, 255, 0.4);
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
    font-size: 0.82rem;
}

.btn-auth-trigger:hover {
    transform: translateY(-1px);
    box-shadow: 0 0 20px rgba(0, 210, 255, 0.6);
}

/* Auth Modal Tabs & Layout */
.auth-nav-tabs {
    display: flex;
    border-bottom: 1px solid var(--border-color);
    background: rgba(15, 18, 36, 0.6);
    border-radius: var(--radius-md) var(--radius-md) 0 0;
    overflow: hidden;
    margin: -4px -4px 14px -4px;
}

.auth-nav-tab {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 12px 16px;
    font-size: 0.92rem;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s ease;
    border-bottom: 2px solid transparent;
}

.auth-nav-tab:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.04);
}

.auth-nav-tab.active {
    color: var(--primary);
    background: rgba(0, 210, 255, 0.08);
    border-bottom-color: var(--primary);
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.auth-form-row {
    display: flex;
    gap: 12px;
}

@media (max-width: 600px) {
    .auth-form-row {
        flex-direction: column;
    }
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}

.form-label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-light);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.form-label .label-tag {
    font-size: 0.72rem;
    color: var(--text-muted);
    font-weight: normal;
}

.form-control {
    background: rgba(15, 18, 36, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-md);
    color: #ffffff;
    padding: 10px 14px;
    font-size: 0.92rem;
    font-family: inherit;
    transition: all 0.2s ease;
    outline: none;
    width: 100%;
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 10px rgba(0, 210, 255, 0.35);
    background: rgba(20, 26, 50, 0.98);
}

.form-select {
    cursor: pointer;
}

.form-select optgroup {
    background: #0f1424;
    color: var(--primary);
    font-weight: 700;
    padding: 6px;
}

.form-select option {
    background: #141a30;
    color: #f1f5f9;
    padding: 8px;
}

.form-hint {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Telephely / HQ Preview Box */
.hq-preview-box {
    background: linear-gradient(135deg, rgba(0, 210, 255, 0.08), rgba(15, 23, 48, 0.95));
    border: 1px solid rgba(0, 210, 255, 0.35);
    border-radius: var(--radius-md);
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.hq-preview-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
}

.hq-preview-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.05rem;
    font-weight: 700;
    color: #ffffff;
}

.hq-preview-specialty {
    font-size: 0.82rem;
    color: #ffb703;
    font-weight: 600;
    background: rgba(255, 183, 3, 0.12);
    border: 1px solid rgba(255, 183, 3, 0.3);
    padding: 2px 8px;
    border-radius: var(--radius-full);
}

.hq-preview-desc {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.4;
}

.hq-perks-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    font-size: 0.78rem;
    margin-top: 4px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 8px;
}

@media (max-width: 550px) {
    .hq-perks-list {
        grid-template-columns: 1fr;
    }
}

.hq-perk-item {
    color: #00e676;
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: 500;
}

/* Alert Boxes */
.auth-alert {
    padding: 10px 14px;
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.auth-alert-error {
    background: rgba(239, 68, 68, 0.18);
    border: 1px solid rgba(239, 68, 68, 0.45);
    color: #fca5a5;
}

.auth-alert-success {
    background: rgba(16, 185, 129, 0.18);
    border: 1px solid rgba(16, 185, 129, 0.45);
    color: #6ee7b7;
}

/* ==========================================================================
   STRICT AUTH GATE (ZÁROLT BELÉPŐKAPU RENDSZER)
   ========================================================================== */
.auth-gate-screen {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow-y: auto;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.35s;
}

.auth-gate-screen.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.auth-gate-backdrop {
    position: fixed;
    inset: 0;
    background: radial-gradient(circle at 50% 30%, rgba(15, 23, 42, 0.78) 0%, rgba(8, 12, 24, 0.97) 80%),
                url('../img/fejlec.png') center / cover no-repeat;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    z-index: 1;
}

.auth-gate-modal {
    position: relative;
    width: 100%;
    max-width: 620px;
    background: rgba(15, 23, 42, 0.97);
    border: 1px solid rgba(0, 210, 255, 0.35);
    border-radius: 20px;
    box-shadow: 0 25px 65px rgba(0, 0, 0, 0.85), 0 0 50px rgba(0, 210, 255, 0.18);
    padding: 28px 26px;
    z-index: 2;
    margin: auto;
    animation: gatePopIn 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
}

.auth-gate-hero-banner {
    width: calc(100% + 52px);
    margin: -28px -26px 18px -26px;
    border-radius: 20px 20px 0 0;
    overflow: hidden;
    border-bottom: 2px solid rgba(0, 210, 255, 0.35);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.6);
    max-height: 180px;
    position: relative;
}

.auth-gate-hero-banner .gate-hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
    display: block;
}

.auth-gate-brand {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 14px;
}

.gate-logo-img {
    height: 58px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 3px 12px rgba(0, 210, 255, 0.55));
    flex-shrink: 0;
    transition: transform 0.25s ease;
}

.gate-logo-img:hover {
    transform: scale(1.05);
}

.gate-logo-badge {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: linear-gradient(135deg, #00d2ff, #0077b6);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    box-shadow: 0 0 20px rgba(0, 210, 255, 0.5);
    flex-shrink: 0;
}

.gate-brand-meta h2 {
    font-family: 'Ubuntu', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 1px;
    margin: 0;
    line-height: 1.2;
}

.gate-subtitle {
    font-size: 0.82rem;
    color: #38bdf8;
    margin: 3px 0 0;
    font-weight: 500;
}

.gate-security-notice {
    background: rgba(0, 210, 255, 0.08);
    border: 1px solid rgba(0, 210, 255, 0.25);
    border-radius: var(--radius-md);
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.82rem;
    color: #94a3b8;
    margin-bottom: 16px;
    line-height: 1.35;
}

.gate-security-notice .sec-icon {
    font-size: 1.1rem;
    color: #00d2ff;
    flex-shrink: 0;
}

.auth-gate-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    background: rgba(11, 15, 30, 0.8);
    padding: 4px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 16px;
}

.gate-nav-tab {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.88rem;
    padding: 10px 12px;
    border-radius: 9px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.gate-nav-tab:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.05);
}

.gate-nav-tab.active {
    background: var(--primary);
    color: #080d1a;
    font-weight: 700;
    box-shadow: 0 0 16px rgba(0, 210, 255, 0.5);
}

.gate-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.gate-input, .gate-select {
    background: rgba(11, 15, 30, 0.9) !important;
    border: 1px solid rgba(255, 255, 255, 0.16) !important;
    color: #ffffff !important;
    font-size: 0.92rem !important;
    padding: 10px 14px !important;
    border-radius: var(--radius-md) !important;
}

.gate-input:focus, .gate-select:focus {
    border-color: #00d2ff !important;
    box-shadow: 0 0 12px rgba(0, 210, 255, 0.35) !important;
}

.gate-btn-submit {
    padding: 13px !important;
    font-size: 1rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.5px !important;
    margin-top: 6px !important;
    box-shadow: 0 4px 18px rgba(0, 210, 255, 0.4) !important;
}

.gate-quick-login {
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.gate-quick-title {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-bottom: 8px;
    font-weight: 600;
}

.gate-quick-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.gate-quick-actions button {
    flex: 1;
    min-width: 150px;
    font-size: 0.8rem;
}

.gate-hq-preview {
    background: linear-gradient(135deg, rgba(0, 210, 255, 0.1), rgba(15, 23, 48, 0.95));
    border: 1px solid rgba(0, 210, 255, 0.35);
    border-radius: var(--radius-md);
    padding: 12px 14px;
    margin-top: -4px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.auth-gate-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.74rem;
    color: var(--text-muted);
}

.footer-sec {
    color: #10b981;
}

/* User profile button in HUD strip */
.hud-user-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(0, 210, 255, 0.35);
    padding: 4px 10px;
    border-radius: 8px;
    transition: all 0.22s ease;
    box-sizing: border-box;
    max-width: 100%;
}

.hud-user-pill:hover {
    background: rgba(15, 23, 42, 0.98);
    border-color: rgba(0, 210, 255, 0.7);
    box-shadow: 0 4px 14px rgba(0, 210, 255, 0.25);
    transform: translateY(-1px);
}

.hud-user-company {
    font-weight: 700;
    color: #ffffff;
    font-size: 0.84rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hud-user-hq {
    font-size: 0.76rem;
    color: #38bdf8;
    padding: 2px 6px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.hud-user-hq:hover {
    background: rgba(56, 189, 248, 0.15);
    color: #ffffff;
}

.hud-logout-btn {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: #fca5a5;
    padding: 3px 8px;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-left: 4px;
}

.hud-logout-btn:hover {
    background: rgba(239, 68, 68, 0.35);
    color: #ffffff;
}

/* Cloud sync & offline status badge in HUD */
.hud-sync-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.22s ease;
    user-select: none;
    border: 1px solid transparent;
    line-height: 1.2;
}

.hud-sync-badge.synced {
    background: rgba(16, 185, 129, 0.15);
    border-color: rgba(16, 185, 129, 0.45);
    color: #34d399;
}
.hud-sync-badge.synced:hover {
    background: rgba(16, 185, 129, 0.28);
    border-color: rgba(16, 185, 129, 0.7);
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.25);
}

.hud-sync-badge.pending {
    background: rgba(245, 158, 11, 0.18);
    border-color: rgba(245, 158, 11, 0.55);
    color: #fbbf24;
    animation: syncPulse 2.2s ease-in-out infinite;
}
.hud-sync-badge.pending:hover {
    background: rgba(245, 158, 11, 0.3);
    border-color: rgba(245, 158, 11, 0.8);
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.3);
}

.hud-sync-badge.syncing {
    background: rgba(14, 165, 233, 0.2);
    border-color: rgba(14, 165, 233, 0.55);
    color: #38bdf8;
    animation: syncPulse 1.2s ease-in-out infinite;
}

.hud-sync-badge.offline {
    background: rgba(100, 116, 139, 0.22);
    border-color: rgba(148, 163, 184, 0.4);
    color: #cbd5e1;
}
.hud-sync-badge.offline:hover {
    background: rgba(100, 116, 139, 0.35);
    border-color: rgba(148, 163, 184, 0.7);
}

@keyframes syncPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(0.98); }
}

/* ==========================================================================
   PASSWORD TOGGLE & REMEMBER ME CHECKBOX STYLES
   ========================================================================== */
.password-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 4px;
}

.password-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.password-input-wrap .gate-input {
    width: 100%;
    padding-right: 44px !important;
}

.btn-toggle-password {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: #94a3b8;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.15rem;
    transition: all 0.2s ease;
    z-index: 3;
}

.btn-toggle-password:hover {
    color: #00d2ff;
    background: rgba(0, 210, 255, 0.12);
}

.btn-toggle-password.active {
    color: #00d2ff;
}

/* Telefonon: nagyobb érintési felület, a mező fölött, dupla koppintásos zoom nélkül */
.btn-toggle-password {
    z-index: 2;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

@media (pointer: coarse) {
    .btn-toggle-password {
        width: 42px;
        height: 42px;
        right: 2px;
        font-size: 1.1rem;
    }

    .password-input-wrap .gate-input {
        padding-right: 50px !important;
    }
}

.remembered-badge {
    font-size: 0.72rem;
    color: #10b981;
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.35);
    padding: 2px 8px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
}

.btn-clear-saved {
    background: transparent;
    border: none;
    color: #fca5a5;
    cursor: pointer;
    font-size: 0.7rem;
    padding: 0;
    text-decoration: underline;
}

.btn-clear-saved:hover {
    color: #ef4444;
}

/* Remember Me Checkbox */
.gate-checkbox-row {
    margin-top: 6px;
    margin-bottom: 4px;
    padding: 6px 10px;
    background: rgba(11, 15, 30, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
}

.gate-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    user-select: none;
}

.gate-checkbox {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.gate-checkbox-custom {
    width: 18px;
    height: 18px;
    border-radius: 5px;
    background: rgba(11, 15, 30, 0.9);
    border: 1px solid rgba(0, 210, 255, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
    transition: all 0.2s ease;
}

.gate-checkbox:checked + .gate-checkbox-custom {
    background: #00d2ff;
    border-color: #00d2ff;
    box-shadow: 0 0 10px rgba(0, 210, 255, 0.5);
}

.gate-checkbox:checked + .gate-checkbox-custom::after {
    content: '✓';
    color: #0b0e1b;
    font-size: 0.8rem;
    font-weight: 800;
}

.gate-checkbox-text {
    font-size: 0.82rem;
    color: #cbd5e1;
    line-height: 1.35;
}

.gate-checkbox-text strong {
    color: #ffffff;
    display: block;
}

/* ==========================================================================
   SEARCHABLE COMBOBOX DROPDOWN (TELEPHELY KERESŐ)
   ========================================================================== */
.gate-hq-search-group {
    position: relative;
}

.gate-combobox-wrap {
    position: relative;
    width: 100%;
}

.combobox-input-inner {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.combobox-search-icon {
    position: absolute;
    left: 12px;
    font-size: 1rem;
    pointer-events: none;
    z-index: 2;
    opacity: 0.8;
}

.combobox-input {
    padding-left: 38px !important;
    padding-right: 42px !important;
    cursor: text;
    text-overflow: ellipsis;
    font-weight: 500;
}

.combobox-toggle-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: #94a3b8;
    width: 30px;
    height: 30px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    z-index: 2;
}

.combobox-toggle-btn:hover {
    color: #00d2ff;
    background: rgba(0, 210, 255, 0.12);
}

.combobox-toggle-btn.open i {
    transform: rotate(180deg);
}

.combobox-toggle-btn i {
    transition: transform 0.2s ease;
    display: inline-block;
}

.combobox-clear-btn {
    position: absolute;
    right: 38px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: #94a3b8;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.2s ease;
    z-index: 3;
}

.combobox-clear-btn:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.15);
}

/* Dropdown Menu Container */
.gate-combobox-menu {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: rgba(13, 20, 38, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(0, 210, 255, 0.4);
    border-radius: var(--radius-md);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.8), 0 0 20px rgba(0, 210, 255, 0.2);
    z-index: 100;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: cbMenuFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes cbMenuFadeIn {
    0% { opacity: 0; transform: translateY(-6px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* Quick Filter Tabs inside Combobox */
.combobox-tabs {
    display: flex;
    gap: 4px;
    padding: 8px;
    background: rgba(8, 12, 24, 0.95);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    overflow-x: auto;
}

.cb-tab {
    background: transparent;
    border: 1px solid transparent;
    color: #94a3b8;
    font-size: 0.74rem;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 6px;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.15s ease;
}

.cb-tab:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.06);
}

.cb-tab.active {
    background: rgba(0, 210, 255, 0.15);
    border-color: rgba(0, 210, 255, 0.4);
    color: #00d2ff;
    font-weight: 700;
}

/* Scrollable Items List */
.combobox-items-scroll {
    max-height: 250px;
    overflow-y: auto;
    padding: 6px;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.combobox-items-scroll::-webkit-scrollbar {
    width: 6px;
}
.combobox-items-scroll::-webkit-scrollbar-thumb {
    background: rgba(0, 210, 255, 0.3);
    border-radius: 3px;
}

/* Individual settlement item */
.cb-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 10px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s ease;
    border: 1px solid transparent;
    gap: 8px;
}

.cb-item:hover, .cb-item.highlighted {
    background: rgba(0, 210, 255, 0.12);
    border-color: rgba(0, 210, 255, 0.3);
}

.cb-item.selected {
    background: rgba(0, 210, 255, 0.2);
    border-color: #00d2ff;
}

.cb-item-main {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    flex: 1;
}

.cb-flag {
    font-size: 1.15rem;
    flex-shrink: 0;
}

.cb-name-wrap {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.cb-name {
    font-weight: 700;
    font-size: 0.88rem;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cb-country {
    font-size: 0.72rem;
    color: #94a3b8;
    font-weight: normal;
    margin-left: 4px;
}

.cb-spec {
    font-size: 0.74rem;
    color: #94a3b8;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cb-badges-wrap {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.cb-badge {
    font-size: 0.68rem;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 4px;
    white-space: nowrap;
}

.cb-badge-village {
    background: rgba(16, 185, 129, 0.2);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.4);
}

.cb-badge-major {
    background: rgba(255, 183, 3, 0.2);
    color: #fbbf24;
    border: 1px solid rgba(255, 183, 3, 0.4);
}

.cb-badge-small {
    background: rgba(56, 189, 248, 0.2);
    color: #38bdf8;
    border: 1px solid rgba(56, 189, 248, 0.4);
}

.cb-selected-check {
    color: #00d2ff;
    font-weight: bold;
    font-size: 0.88rem;
    margin-left: 4px;
}

/* Empty search result */
.cb-empty-state {
    padding: 18px 12px;
    text-align: center;
    color: #94a3b8;
    font-size: 0.82rem;
}

.highlight-match {
    color: #00d2ff;
    font-weight: bold;
    background: rgba(0, 210, 255, 0.18);
    border-radius: 2px;
    padding: 0 1px;
}

/* ==========================================================================
   COMPREHENSIVE RESPONSIVE ENHANCEMENTS (FUVARBÖRZE, HUD & NAV)
   ========================================================================== */

/* TIER 1: LAPTOP & MEDIUM SCREENS (max-width: 1200px) */
@media (max-width: 1200px) {
    .jobs-grid {
        grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
        gap: 16px;
    }

    .header-inner {
        padding: 10px 16px;
        gap: 10px;
    }

    .hud-strip {
        gap: 8px;
    }
}

/* TIER 2: TABLETS & IPAD (max-width: 1024px) */
@media (max-width: 1024px) {
    .jobs-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }

    .view-header-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .jobs-header-actions {
        width: 100%;
        justify-content: flex-start;
    }

    .job-card {
        padding: 14px 16px;
    }
}

/* TIER 3: MOBILE PHONES & TABLET PORTRAIT (max-width: 768px) */
@media (max-width: 768px) {
    .site-header {
        position: relative;
    }

    .header-inner {
        padding: 6px 10px;
        gap: 6px;
    }

    .brand-section {
        gap: 6px;
    }

    .brand-logo-img {
        height: 32px;
    }

    .brand-text h1 {
        font-size: 0.98rem;
        letter-spacing: 0.3px;
    }

    .brand-text .brand-subtitle {
        font-size: 0.62rem;
    }

    /* Clean 2-column + full-width rows for mobile HUD metrics */
    .hud-strip {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 5px;
        width: 100%;
    }

    .hud-item {
        padding: 4px 6px;
        font-size: 0.73rem;
        justify-content: center;
        box-sizing: border-box;
    }

    .hud-item.hud-cash {
        grid-column: 1;
    }

    .hud-item.hud-pp {
        grid-column: 2;
    }

    .hud-item.hud-xp {
        grid-column: 1 / -1;
        width: 100%;
        min-width: 100%;
        padding: 4px 8px;
    }

    .hud-item.hud-fuel {
        grid-column: 1;
    }

    .hud-item.hud-fleet {
        grid-column: 2;
    }

    .hud-item.hud-active {
        grid-column: 1 / -1;
        width: 100%;
        justify-content: center;
    }

    /* Actions & User Card full width */
    .hud-actions {
        grid-column: 1 / -1;
        width: 100%;
        display: flex;
        flex-wrap: wrap;
        gap: 5px;
        margin-top: 3px;
    }

    .hud-actions .hud-auth-area {
        width: 100%;
        flex: 1 1 100%;
    }

    .hud-user-pill {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 4px 10px;
        box-sizing: border-box;
        gap: 6px;
    }

    .hud-user-company {
        font-size: 0.82rem;
        font-weight: 700;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 140px;
    }

    .hud-user-hq {
        font-size: 0.74rem;
        white-space: nowrap;
    }

    .hud-logout-btn {
        font-size: 0.72rem;
        padding: 2px 7px;
        flex-shrink: 0;
    }

    .hud-actions .btn {
        flex: 1 1 auto;
        min-width: 62px;
        font-size: 0.72rem;
        padding: 5px 6px;
        text-align: center;
        justify-content: center;
        white-space: nowrap;
    }

    #btnFullscreenToggle {
        display: none !important;
    }

    .nav-bar-inner {
        padding: 0 6px;
        gap: 2px;
    }

    .nav-tab {
        padding: 7px 9px;
        font-size: 0.76rem;
        flex-shrink: 0;
    }

    .main-view-container {
        padding: 10px 8px;
    }

    .view-header-bar {
        margin-bottom: 12px;
        gap: 8px;
    }

    .view-header-bar h2 {
        font-size: 1.2rem;
    }

    .view-header-bar .text-muted {
        font-size: 0.82rem;
        line-height: 1.4;
    }

    .jobs-header-actions {
        width: 100%;
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
    }

    .jobs-header-actions .vignette-status-badge {
        flex: 1 1 100%;
        justify-content: center;
        text-align: center;
    }

    .jobs-header-actions .btn {
        flex: 1 1 auto;
        justify-content: center;
        text-align: center;
        padding: 7px 12px;
        font-size: 0.82rem;
    }

    .jobs-filter-container {
        padding: 8px 10px;
        margin-bottom: 14px;
    }

    .job-filter-pill {
        padding: 6px 12px;
        font-size: 0.8rem;
    }

    .jobs-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .job-card {
        padding: 14px;
        gap: 12px;
    }

    .job-top {
        gap: 5px;
    }

    .job-top .badge {
        font-size: 0.7rem;
        padding: 2px 7px;
    }

    .job-route-display {
        padding: 10px 12px;
        gap: 6px;
    }

    .r-flag {
        font-size: 1.35rem;
    }

    .r-city {
        font-size: 0.8rem;
    }

    .route-line-wrap {
        flex: 0 1 70px;
        min-width: 42px;
        padding: 0 4px;
    }

    .r-dist {
        font-size: 0.72rem;
    }

    .job-details-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
        padding: 8px 10px;
    }

    .j-detail {
        padding: 6px 8px;
    }

    .j-detail .label {
        font-size: 0.65rem;
    }

    .j-detail .val {
        font-size: 0.84rem;
    }

    .job-actions .btn {
        padding: 10px 14px;
        font-size: 0.88rem;
        min-height: 42px;
    }

    /* Modal responsiveness */
    .modal-overlay {
        padding: 10px;
    }

    .modal-window, .modal-container, .auth-gate-modal {
        max-width: 95vw !important;
        max-height: 94vh;
        margin: 10px auto;
        border-radius: var(--radius-md);
    }

    .job-summary-box {
        grid-template-columns: 1fr;
        gap: 6px;
        font-size: 0.82rem;
        padding: 10px;
    }

    .dispatch-v-item {
        padding: 8px 10px;
        gap: 10px;
    }

    .dispatch-v-thumb {
        width: 58px;
        height: 38px;
    }
}

/* TIER 4: COMPACT SMARTPHONES (max-width: 480px) */
@media (max-width: 480px) {
    .main-view-container {
        padding: 4px;
    }

    .brand-text h1 {
        font-size: 0.92rem;
    }

    .brand-logo-img {
        height: 28px;
    }

    .hud-strip {
        gap: 4px;
    }

    .hud-item {
        padding: 4px 5px;
        font-size: 0.71rem;
    }

    .hud-actions {
        gap: 4px;
    }

    .hud-actions .btn {
        font-size: 0.70rem;
        padding: 5px 4px;
        min-width: 56px;
    }

    .hud-user-company {
        max-width: 120px;
    }

    .hud-user-pill {
        padding: 3px 8px;
    }

    .view-header-bar h2 {
        font-size: 1.15rem;
    }

    .jobs-header-actions .btn {
        flex: 1 1 100%;
        width: 100%;
    }

    .jobs-filter-container {
        padding: 6px 8px;
        border-radius: var(--radius-md);
    }

    .job-filter-pill {
        padding: 5px 10px;
        font-size: 0.75rem;
    }

    .job-card {
        padding: 12px;
        border-radius: var(--radius-md);
        gap: 10px;
    }

    .job-top {
        gap: 4px;
    }

    .job-top .badge {
        font-size: 0.66rem;
        padding: 2px 5px;
    }

    .job-route-display {
        padding: 8px 10px;
        gap: 4px;
    }

    .r-flag {
        font-size: 1.2rem;
    }

    .r-city {
        font-size: 0.76rem;
    }

    .r-city strong {
        font-size: 0.66rem;
    }

    .r-city small {
        font-size: 0.64rem;
    }

    .route-line-wrap {
        flex: 0 1 50px;
        min-width: 32px;
        padding: 0 2px;
    }

    .r-dist {
        font-size: 0.66rem;
    }

    .job-details-row {
        grid-template-columns: 1fr 1fr;
        padding: 6px 8px;
        gap: 4px;
    }

    .j-detail {
        padding: 5px 6px;
    }

    .j-detail .label {
        font-size: 0.62rem;
    }

    .j-detail .val {
        font-size: 0.8rem;
    }

    .job-actions .btn {
        padding: 9px 12px;
        font-size: 0.84rem;
    }
}

/* ==========================================================================
   FREIGHT MARKET (FUVARBÖRZE) TELEPHELY & KATEGÓRIA SZŰRŐ RENDSZER
   ========================================================================== */
.jobs-filter-container {
    margin-bottom: 20px;
    background: rgba(13, 17, 34, 0.88);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: 10px 14px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.4);
}

.jobs-filter-scroll {
    display: flex;
    align-items: center;
    gap: 8px;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 210, 255, 0.5) transparent;
    padding: 2px 0 8px;
    cursor: grab;
    overscroll-behavior-x: contain;
}

.jobs-filter-scroll.dragging {
    cursor: grabbing;
    user-select: none;
}

.jobs-filter-scroll::-webkit-scrollbar {
    height: 6px;
}

.jobs-filter-scroll::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 999px;
}

.jobs-filter-scroll::-webkit-scrollbar-thumb {
    background: rgba(0, 210, 255, 0.45);
    border-radius: 999px;
}

.jobs-filter-scroll::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 210, 255, 0.75);
}

.job-filter-pill.pill-own {
    background: rgba(34, 197, 94, 0.12);
    border-color: rgba(34, 197, 94, 0.4);
    color: #4ade80;
}

.job-filter-pill.pill-own.active {
    background: #22c55e;
    border-color: #22c55e;
    color: #06240f;
}

/* ---- Achievements (Mérföldkövek) ---- */
.btn-achievements .ach-count {
    margin-left: 2px;
    padding: 1px 7px;
    border-radius: 999px;
    background: rgba(255, 215, 0, 0.15);
    border: 1px solid rgba(255, 215, 0, 0.45);
    color: #ffd700;
    font-size: 0.72rem;
    font-weight: 800;
}

.ach-modal-body {
    max-height: 72vh;
    overflow-y: auto;
}

.ach-summary {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 12px;
    padding: 12px 14px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 215, 0, 0.3);
    background: linear-gradient(135deg, rgba(120, 90, 0, 0.25), rgba(15, 23, 42, 0.8));
}

.ach-summary-count {
    font-size: 1.6rem;
    font-weight: 800;
    color: #ffd700;
    line-height: 1.1;
}

.ach-summary-bar {
    position: relative;
    flex: 1;
    height: 14px;
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden;
}

.ach-summary-bar div {
    height: 100%;
    background: linear-gradient(90deg, #f59e0b, #ffd700);
}

.ach-summary-bar span {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 800;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

.ach-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 8px;
}

.ach-chip {
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-muted);
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
}

.ach-chip small {
    opacity: 0.75;
    margin-left: 2px;
}

.ach-chip.active {
    background: rgba(255, 215, 0, 0.16);
    border-color: rgba(255, 215, 0, 0.6);
    color: #ffd700;
}

.ach-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 10px;
    margin-top: 10px;
}

.ach-card {
    display: flex;
    gap: 10px;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(15, 23, 42, 0.7);
    opacity: 0.85;
}

.ach-card.done {
    opacity: 1;
    border-color: rgba(255, 215, 0, 0.5);
    background: linear-gradient(135deg, rgba(120, 90, 0, 0.28), rgba(15, 23, 42, 0.85));
}

.ach-card-icon {
    font-size: 1.7rem;
    line-height: 1;
    filter: grayscale(0.85);
}

.ach-card.done .ach-card-icon {
    filter: none;
}

.ach-card-body {
    flex: 1;
    min-width: 0;
}

.ach-card-title {
    font-weight: 800;
    color: #f8fafc;
    font-size: 0.9rem;
}

.ach-card.done .ach-card-title {
    color: #ffd700;
}

.ach-card-desc {
    color: #94a3b8;
    font-size: 0.76rem;
    line-height: 1.35;
    margin: 2px 0 6px;
}

.ach-card-bar {
    height: 6px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden;
}

.ach-card-bar div {
    height: 100%;
    background: linear-gradient(90deg, #00d2ff, #10b981);
}

.ach-card.done .ach-card-bar div {
    background: linear-gradient(90deg, #f59e0b, #ffd700);
}

.ach-card-meta {
    display: flex;
    justify-content: space-between;
    gap: 6px;
    margin-top: 4px;
    font-size: 0.72rem;
    color: #cbd5e1;
}

.ach-card-reward {
    color: #10b981;
    font-weight: 700;
    white-space: nowrap;
}

/* ---- New depot: settlement search ---- */
.depot-search-wrap {
    position: relative;
    width: 100%;
}

.depot-search-results {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    max-height: 280px;
    overflow-y: auto;
    z-index: 50;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    background: #0f172a;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.5);
}

.depot-search-results.open {
    display: block;
}

.depot-search-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 8px 12px;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    background: transparent;
    color: #e2e8f0;
    text-align: left;
    cursor: pointer;
    font-size: 0.85rem;
}

.depot-search-item:hover:not(:disabled) {
    background: rgba(0, 210, 255, 0.1);
}

.depot-search-item small {
    color: #94a3b8;
    font-size: 0.74rem;
    white-space: nowrap;
}

.depot-search-item.owned {
    opacity: 0.5;
    cursor: default;
}

.depot-search-empty {
    padding: 10px 12px;
    color: #94a3b8;
    font-size: 0.82rem;
}

/* ---- Road accidents & detours ---- */
.transport-incident-banner {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin-top: 12px;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(239, 68, 68, 0.45);
    background: linear-gradient(135deg, rgba(127, 29, 29, 0.45), rgba(120, 53, 15, 0.35));
    color: #fecaca;
    font-size: 0.82rem;
    line-height: 1.45;
}

.transport-incident-banner strong {
    color: #fff;
    font-size: 0.9rem;
}

.transport-incident-banner .incident-icon {
    font-size: 1.8rem;
    line-height: 1;
}

.transport-incident-banner .incident-cost {
    margin-top: 4px;
    color: #fbbf24;
    font-weight: 700;
}

.chip-incident-badge {
    margin-top: 5px;
    padding: 3px 8px;
    border-radius: 6px;
    border: 1px solid rgba(239, 68, 68, 0.45);
    background: rgba(127, 29, 29, 0.4);
    color: #fca5a5;
    font-size: 0.72rem;
    font-weight: 700;
}

.custom-incident-divicon {
    background: transparent;
    border: none;
}

.incident-map-marker {
    position: relative;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(127, 29, 29, 0.92);
    border: 2px solid #ef4444;
    box-shadow: 0 0 14px rgba(239, 68, 68, 0.7);
}

.incident-map-marker .incident-emoji {
    position: relative;
    font-size: 1.05rem;
    z-index: 1;
}

.incident-map-marker .incident-pulse {
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 2px solid rgba(239, 68, 68, 0.8);
    animation: incidentPulse 1.6s ease-out infinite;
}

.incident-map-marker.shared {
    width: 30px;
    height: 30px;
    background: rgba(120, 53, 15, 0.9);
    border-color: #f59e0b;
    box-shadow: 0 0 12px rgba(245, 158, 11, 0.6);
}

.incident-map-marker.shared .incident-pulse {
    border-color: rgba(245, 158, 11, 0.8);
}

/* Other players' vehicles on the map (live.js) */
.custom-remote-divicon {
    background: transparent;
    border: none;
}

.remote-vehicle-marker {
    --company-color: #8b5cf6;
    position: relative;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.9);
    border: 3px solid var(--company-color);
    box-shadow: 0 0 10px var(--company-color);
    opacity: 0.95;
    cursor: pointer;
}

.company-color-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.6);
    vertical-align: middle;
}

/* Registration: company colour picker */
.gate-color-picker {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.gate-color-swatch {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.25);
    background: var(--swatch);
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.gate-color-swatch:hover {
    transform: scale(1.1);
}

.gate-color-swatch.active {
    border-color: #ffffff;
    box-shadow: 0 0 0 3px var(--swatch), 0 0 12px var(--swatch);
}

.gate-color-custom {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 10px 3px 4px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #cbd5e1;
    font-size: 0.8rem;
    cursor: pointer;
}

.gate-color-custom input[type="color"] {
    width: 24px;
    height: 24px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: none;
    cursor: pointer;
}

.remote-vehicle-marker .rv-emoji {
    font-size: 0.95rem;
}

.remote-vehicle-marker .rv-label {
    position: absolute;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    max-width: 120px;
    padding: 1px 6px;
    border-radius: 6px;
    background: rgba(15, 23, 42, 0.88);
    border: 1px solid var(--company-color);
    color: #f1f5f9;
    font-size: 0.62rem;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    pointer-events: none;
}

@keyframes incidentPulse {
    0% { transform: scale(0.7); opacity: 1; }
    100% { transform: scale(1.6); opacity: 0; }
}

.job-filter-pill.pill-fleet {
    background: rgba(245, 158, 11, 0.12);
    border-color: rgba(245, 158, 11, 0.45);
    color: #fbbf24;
}

.job-filter-pill.pill-fleet.active {
    background: #f59e0b;
    border-color: #f59e0b;
    color: #2a1a02;
}

.filter-divider {
    width: 1px;
    height: 22px;
    background: rgba(255, 255, 255, 0.15);
    margin: 0 4px;
    flex-shrink: 0;
}

.job-filter-pill {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--text-muted);
    font-size: 0.82rem;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
    user-select: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.job-filter-pill:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-1px);
}

.job-filter-pill.active {
    background: var(--primary);
    color: #0b0e1b;
    border-color: var(--primary);
    font-weight: 700;
    box-shadow: 0 0 12px rgba(0, 210, 255, 0.45);
}

/* Home Telephely Filter Pills */
.job-filter-pill.pill-home-primary {
    background: rgba(0, 210, 255, 0.12);
    border-color: rgba(0, 210, 255, 0.4);
    color: #00d2ff;
    font-weight: 700;
}

.job-filter-pill.pill-home-primary:hover {
    background: rgba(0, 210, 255, 0.22);
    border-color: var(--primary);
    color: #ffffff;
}

.job-filter-pill.pill-home-primary.active {
    background: linear-gradient(135deg, #00d2ff, #0088cc);
    color: #0b0e1b;
    border-color: #00d2ff;
    box-shadow: 0 0 16px rgba(0, 210, 255, 0.6);
}

.job-filter-pill.pill-home-origin {
    border-color: rgba(0, 230, 118, 0.35);
    color: #00e676;
}

.job-filter-pill.pill-home-origin.active {
    background: #00e676;
    color: #0b0e1b;
    border-color: #00e676;
    box-shadow: 0 0 14px rgba(0, 230, 118, 0.5);
}

.job-filter-pill.pill-home-dest {
    border-color: rgba(255, 183, 3, 0.35);
    color: #ffb703;
}

.job-filter-pill.pill-home-dest.active {
    background: #ffb703;
    color: #0b0e1b;
    border-color: #ffb703;
    box-shadow: 0 0 14px rgba(255, 183, 3, 0.5);
}

/* Home Telephely Badges & Highlights on Job Cards */
.badge-hq-origin {
    background: rgba(0, 230, 118, 0.16) !important;
    border: 1px solid rgba(0, 230, 118, 0.45) !important;
    color: #00e676 !important;
    font-weight: 700 !important;
}

.badge-hq-dest {
    background: rgba(255, 183, 3, 0.16) !important;
    border: 1px solid rgba(255, 183, 3, 0.45) !important;
    color: #ffb703 !important;
    font-weight: 700 !important;
}

.badge-hq-route {
    background: rgba(0, 210, 255, 0.16) !important;
    border: 1px solid rgba(0, 210, 255, 0.45) !important;
    color: #00d2ff !important;
    font-weight: 700 !important;
}

.home-route-card {
    border-color: rgba(0, 210, 255, 0.38) !important;
    background: linear-gradient(135deg, rgba(23, 28, 54, 0.95), rgba(16, 26, 56, 0.95)) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4), 0 0 15px rgba(0, 210, 255, 0.15) !important;
}

.route-point-home .r-city {
    color: #00d2ff !important;
}

.r-line-home {
    background: linear-gradient(90deg, #00e676, #00d2ff) !important;
    box-shadow: 0 0 8px rgba(0, 210, 255, 0.5);
}

/* Map Quick HQ Jump Button in Toolbar */
.btn-hq-jump {
    background: rgba(0, 210, 255, 0.14) !important;
    border: 1px solid rgba(0, 210, 255, 0.4) !important;
    color: #00d2ff !important;
    font-weight: 700 !important;
}

.btn-hq-jump:hover {
    background: rgba(0, 210, 255, 0.25) !important;
    color: #ffffff !important;
    box-shadow: 0 0 12px rgba(0, 210, 255, 0.4);
}

.zoom-btn-home {
    background: rgba(0, 210, 255, 0.22) !important;
    border-color: rgba(0, 210, 255, 0.5) !important;
    color: #00d2ff !important;
}

.zoom-btn-home:hover, .zoom-btn-home.active {
    background: var(--primary) !important;
    color: #0b0e1b !important;
    box-shadow: 0 0 14px rgba(0, 210, 255, 0.7) !important;
}

/* ==========================================================================
   Vehicle Detail Modal & Interactive Photo Picker
   ========================================================================== */
.v-detail-modal-body {
    padding: 20px;
}

.v-detail-hero {
    position: relative;
    width: 100%;
    height: 250px;
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: 18px;
    background: radial-gradient(ellipse at 50% 85%, rgba(74, 163, 255, 0.18), transparent 65%), linear-gradient(180deg, #121a33, #080b18);
    border: 1px solid var(--border-color);
    box-shadow: 0 8px 24px rgba(0,0,0,0.5);
}

.v-detail-hero-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    transition: transform 0.4s ease;
}

.v-detail-hero:hover .v-detail-hero-img {
    transform: scale(1.03);
}

.v-detail-hero-overlay {
    position: absolute;
    bottom: 12px;
    left: 12px;
    right: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(10, 14, 28, 0.85);
    backdrop-filter: blur(8px);
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.v-detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 14px;
    margin-bottom: 12px;
}

.v-detail-box {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 0.9rem;
}

.v-detail-box h5 {
    color: var(--primary);
    margin: 0 0 4px 0;
    font-size: 0.95rem;
    font-weight: 700;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Photo Presets & Custom Input */











/* ==========================================================================
   REALISTIC FREIGHT DISTANCE BRACKETS & MOTORWAY VIGNETTE SYSTEM
   ========================================================================== */

/* Vignette Status Badge in Header */
.vignette-status-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    transition: all 0.2s ease;
}

.vignette-status-badge.vignette-ok {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.45);
    color: #10b981;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.2);
}

.vignette-status-badge.vignette-missing {
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.45);
    color: #f59e0b;
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.15);
}

/* Distance Bracket Badges on Job Cards */
.badge-bracket-close {
    background: rgba(6, 182, 212, 0.18) !important;
    color: #22d3ee !important;
    border: 1px solid rgba(6, 182, 212, 0.5) !important;
    font-weight: 600;
}

.badge-bracket-medium {
    background: rgba(245, 158, 11, 0.18) !important;
    color: #fbbf24 !important;
    border: 1px solid rgba(245, 158, 11, 0.5) !important;
    font-weight: 600;
}

.badge-bracket-long {
    background: rgba(168, 85, 247, 0.18) !important;
    color: #c084fc !important;
    border: 1px solid rgba(168, 85, 247, 0.5) !important;
    font-weight: 600;
}

/* Distance Bracket Filter Pills */
.job-filter-pill.pill-bracket-close.active {
    background: rgba(6, 182, 212, 0.25);
    border-color: #06b6d4;
    color: #22d3ee;
    box-shadow: 0 0 8px rgba(6, 182, 212, 0.35);
}

.job-filter-pill.pill-bracket-medium.active {
    background: rgba(245, 158, 11, 0.25);
    border-color: #f59e0b;
    color: #fbbf24;
    box-shadow: 0 0 8px rgba(245, 158, 11, 0.35);
}

.job-filter-pill.pill-bracket-long.active {
    background: rgba(168, 85, 247, 0.25);
    border-color: #a855f7;
    color: #c084fc;
    box-shadow: 0 0 8px rgba(168, 85, 247, 0.35);
}

/* Travel Time Estimation Callouts */
.time-est-highlight {
    color: #38bdf8;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
    line-height: 1.35;
}

.time-est-warning {
    color: #fbbf24;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
    line-height: 1.35;
}

/* Motorway Vignette Dispatch Modal Banners */
.vignette-modal-banner {
    display: flex;
    gap: 14px;
    align-items: center;
    padding: 14px 16px;
    border-radius: 10px;
    margin-bottom: 18px;
    line-height: 1.45;
}

.vignette-modal-banner.banner-active {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.14) 0%, rgba(6, 182, 212, 0.08) 100%);
    border: 1px solid rgba(16, 185, 129, 0.4);
    box-shadow: 0 0 14px rgba(16, 185, 129, 0.15);
}

.vignette-modal-banner.banner-active .vmb-title {
    color: #10b981;
    font-size: 0.96rem;
    font-weight: 700;
    margin-bottom: 3px;
}

.vignette-modal-banner.banner-missing {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.14) 0%, rgba(245, 158, 11, 0.10) 100%);
    border: 1px solid rgba(239, 68, 68, 0.45);
    box-shadow: 0 0 14px rgba(239, 68, 68, 0.15);
}

.vignette-modal-banner.banner-missing .vmb-title {
    color: #f87171;
    font-size: 0.96rem;
    font-weight: 700;
    margin-bottom: 3px;
}

.vignette-modal-banner .vmb-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.vignette-modal-banner .vmb-content {
    flex: 1;
    min-width: 200px;
}

.vignette-modal-banner .vmb-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.vignette-modal-banner .vmb-action {
    margin-top: 8px;
}

/* Dispatch Vehicle Duration Est Badge */
.badge-duration-est {
    background: rgba(0, 210, 255, 0.16) !important;
    color: #00d2ff !important;
    border: 1px solid rgba(0, 210, 255, 0.45) !important;
    font-weight: 600;
    font-size: 0.78rem;
    padding: 2px 8px;
    border-radius: 4px;
}

/* ==========================================================================
   DEPOTS & MODULAR FACILITIES (TELEPHELYEK & MODULOK)
   ========================================================================== */
.depots-list-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(480px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

@media (max-width: 600px) {
    .depots-list-grid {
        grid-template-columns: 1fr;
    }
}

.depot-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.depot-card:hover {
    border-color: rgba(0, 210, 255, 0.4);
    transform: translateY(-2px);
}

.depot-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 12px;
}

.depot-title-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
}

.depot-flag {
    font-size: 1.8rem;
    line-height: 1;
}

.depot-title-wrap h4 {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 700;
    color: #fff;
}

.depot-region {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.depot-facilities-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

@media (max-width: 500px) {
    .depot-facilities-grid {
        grid-template-columns: 1fr;
    }
}

.facility-box {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-md);
    padding: 12px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 8px;
}

.fac-top {
    display: flex;
    align-items: center;
    gap: 8px;
}

.fac-icon {
    font-size: 1.3rem;
}

.fac-meta {
    display: flex;
    flex-direction: column;
}

.fac-meta strong {
    font-size: 0.88rem;
    color: #fff;
}

.fac-level {
    font-size: 0.75rem;
    color: var(--primary);
    font-weight: 600;
}

.fac-desc {
    font-size: 0.8rem;
    color: var(--text-secondary);
    min-height: 34px;
}

.fac-desc strong {
    color: #00e676;
}

.fac-action {
    margin-top: 4px;
}

.fac-action .btn {
    width: 100%;
}

.new-depot-card {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.7), rgba(15, 23, 42, 0.8));
    border: 1px dashed rgba(0, 210, 255, 0.35);
    border-radius: var(--radius-lg);
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 20px;
    margin-bottom: 30px;
}

.new-depot-info {
    display: flex;
    align-items: center;
    gap: 16px;
    max-width: 550px;
}

.new-depot-icon {
    font-size: 2.2rem;
}

.new-depot-info h4 {
    margin: 0 0 6px 0;
    color: #fff;
}

.new-depot-info p {
    margin: 0;
    font-size: 0.88rem;
}

.new-depot-form {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.new-depot-form select {
    min-width: 260px;
}

/* ==========================================================================
   DRIVERS VIEW & RECRUITMENT AGENCY (SOFŐRBÖRZE & SZEMÉLYZET)
   ========================================================================== */
.driver-market-timer-card {
    background: linear-gradient(135deg, #182240, #0f172a);
    border: 1px solid rgba(0, 210, 255, 0.3);
    border-radius: var(--radius-lg);
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 26px;
    box-shadow: 0 4px 20px rgba(0, 210, 255, 0.08);
}

.timer-info {
    display: flex;
    align-items: center;
    gap: 14px;
}

.timer-icon {
    font-size: 2rem;
    animation: pulse 2s infinite ease-in-out;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.85; }
}

.timer-title {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.timer-countdown {
    font-size: 1.4rem;
    font-weight: 800;
    color: #00d2ff;
    letter-spacing: 1px;
    font-family: monospace;
}

.candidates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
}

.candidate-card {
    background: linear-gradient(145deg, rgba(16, 23, 42, 0.95), rgba(11, 15, 29, 0.98));
    border: 1px solid rgba(0, 210, 255, 0.18);
    border-radius: var(--radius-lg);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    position: relative;
    overflow: hidden;
}

.candidate-card:hover {
    transform: translateY(-4px);
    border-color: rgba(0, 210, 255, 0.55);
    box-shadow: 0 10px 30px rgba(0, 210, 255, 0.18);
}

.cand-header {
    display: flex;
    align-items: center;
    gap: 14px;
}

.cand-avatar {
    width: 62px;
    height: 62px;
    min-width: 62px;
    min-height: 62px;
    max-width: 62px;
    max-height: 62px;
    background: #0f172a;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(0, 210, 255, 0.45);
    box-shadow: 0 0 14px rgba(0, 210, 255, 0.25);
    overflow: hidden;
    flex-shrink: 0;
    position: relative;
}

.driver-portrait,
.cand-avatar img,
.drv-avatar img,
.v-driver-avatar img,
.dpi-avatar img {
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    display: block !important;
    object-fit: cover !important;
    object-position: center 25% !important;
    border-radius: inherit !important;
}

.cand-identity {
    flex: 1;
    min-width: 0;
}

.cand-identity h4 {
    margin: 0;
    font-size: 1.05rem;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cand-nick {
    font-size: 0.85rem;
    color: var(--gold);
    font-style: italic;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cand-meta {
    font-size: 0.78rem;
    color: var(--text-secondary);
    margin-top: 2px;
}

.cand-quote {
    font-size: 0.82rem;
    font-style: italic;
    color: var(--text-secondary);
    background: rgba(0, 0, 0, 0.2);
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    border-left: 3px solid var(--primary);
}

.cand-traits-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.trait-badge {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 8px 10px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.trait-badge .t-icon {
    font-size: 1.15rem;
    line-height: 1;
}

.trait-badge .t-text {
    display: flex;
    flex-direction: column;
    font-size: 0.82rem;
}

.trait-badge .t-desc {
    font-size: 0.76rem;
    color: var(--text-secondary);
    margin-top: 2px;
}

/* Trait Color Variations */
.trait-speed {
    border-color: rgba(0, 210, 255, 0.4) !important;
    background: rgba(0, 210, 255, 0.08) !important;
    color: #00d2ff !important;
}

.trait-eco {
    border-color: rgba(0, 230, 118, 0.4) !important;
    background: rgba(0, 230, 118, 0.08) !important;
    color: #00e676 !important;
}

.trait-wear {
    border-color: rgba(99, 102, 241, 0.4) !important;
    background: rgba(99, 102, 241, 0.08) !important;
    color: #818cf8 !important;
}

.trait-profit {
    border-color: rgba(255, 183, 3, 0.4) !important;
    background: rgba(255, 183, 3, 0.08) !important;
    color: #ffb703 !important;
}

.trait-rural {
    border-color: rgba(251, 146, 60, 0.4) !important;
    background: rgba(251, 146, 60, 0.08) !important;
    color: #fb923c !important;
}

.trait-adr {
    border-color: rgba(192, 132, 252, 0.4) !important;
    background: rgba(192, 132, 252, 0.08) !important;
    color: #c084fc !important;
}

.trait-mechanic {
    border-color: rgba(45, 212, 191, 0.4) !important;
    background: rgba(45, 212, 191, 0.08) !important;
    color: #2dd4bf !important;
}

.trait-overtime {
    border-color: rgba(147, 197, 253, 0.4) !important;
    background: rgba(147, 197, 253, 0.08) !important;
    color: #93c5fd !important;
}

.cand-financials {
    display: flex;
    justify-content: space-between;
    padding: 8px 12px;
    background: rgba(15, 23, 42, 0.5);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
}

.cand-fin-item {
    display: flex;
    flex-direction: column;
}

/* HIRED DRIVERS ROSTER */
.hired-drivers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 20px;
}

.driver-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    box-shadow: var(--shadow-sm);
}

.drv-card-top {
    display: flex;
    align-items: center;
    gap: 12px;
}

.drv-avatar {
    width: 56px;
    height: 56px;
    min-width: 56px;
    min-height: 56px;
    max-width: 56px;
    max-height: 56px;
    background: #0f172a;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(0, 230, 118, 0.45);
    box-shadow: 0 0 12px rgba(0, 230, 118, 0.2);
    overflow: hidden;
    flex-shrink: 0;
    position: relative;
}

.drv-identity {
    flex: 1;
}

.drv-identity h4 {
    margin: 0;
    font-size: 1.1rem;
    color: #fff;
}

.drv-level-badge {
    margin-top: 4px;
}

.driver-nick {
    color: var(--gold);
    font-style: italic;
    font-weight: 600;
    font-size: 0.85rem;
    margin-left: 6px;
}

.drv-xp-bar-wrap {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.drv-xp-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.78rem;
    color: var(--text-secondary);
}

.drv-traits-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.trait-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
}

.trait-pill.trait-level {
    background: rgba(0, 210, 255, 0.15);
    border-color: rgba(0, 210, 255, 0.45);
    color: #38bdf8;
    font-weight: 700;
}

.trait-badge.trait-level-bonus {
    background: rgba(0, 210, 255, 0.08);
    border-color: rgba(0, 210, 255, 0.35);
}
.trait-badge.trait-level-bonus strong {
    color: #38bdf8;
}

/* Driver Level Bonus Strip in Hired Cards */
.drv-level-bonus-strip {
    background: rgba(15, 23, 42, 0.75);
    border: 1px solid rgba(0, 210, 255, 0.25);
    border-radius: var(--radius-sm);
    padding: 8px 10px;
    margin: 8px 0;
}

.drv-level-bonus-header {
    font-size: 0.75rem;
    font-weight: 700;
    color: #38bdf8;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.drv-level-bonus-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.drv-bonus-tag {
    font-size: 0.72rem;
    font-weight: 600;
    padding: 2px 7px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.drv-bonus-tag.speed {
    background: rgba(245, 158, 11, 0.15);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.35);
}

.drv-bonus-tag.fuel {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.35);
}

.drv-bonus-tag.wear {
    background: rgba(59, 130, 246, 0.15);
    color: #60a5fa;
    border: 1px solid rgba(59, 130, 246, 0.35);
}

.drv-bonus-tag.payout {
    background: rgba(168, 85, 247, 0.15);
    color: #c084fc;
    border: 1px solid rgba(168, 85, 247, 0.35);
}

.drv-stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 10px 12px;
    background: rgba(15, 23, 42, 0.5);
    border-radius: var(--radius-md);
    font-size: 0.82rem;
    color: var(--text-secondary);
}

.drv-stats-grid strong {
    color: #fff;
}

.drv-assigned-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    background: rgba(0, 0, 0, 0.25);
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.drv-assigned-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
}

.drv-unassigned-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
}

.status-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.status-indicator.online {
    background: #00e676;
    box-shadow: 0 0 6px #00e676;
}

.status-indicator.offline {
    background: #94a3b8;
}

.drv-assigned-actions {
    display: flex;
    gap: 6px;
}

/* ==========================================================================
   FLEET VEHICLE DRIVER ROW & UPGRADES ROW
   ========================================================================== */
.v-driver-section {
    background: rgba(15, 23, 42, 0.6);
    border-radius: var(--radius-md);
    padding: 10px 12px;
    margin: 8px 0;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.v-driver-assigned {
    display: flex;
    align-items: center;
    gap: 10px;
}

.v-driver-avatar {
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    max-width: 44px;
    max-height: 44px;
    background: #0f172a;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid rgba(0, 210, 255, 0.35);
    overflow: hidden;
    flex-shrink: 0;
    position: relative;
}

.v-driver-details {
    flex: 1;
}

.v-driver-name {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.88rem;
}

.v-driver-traits-row {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 4px;
}

.v-driver-empty {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.v-upgrades-row {
    margin-top: 6px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

.v-upgrades-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.upgrade-tag {
    background: rgba(0, 210, 255, 0.12);
    color: #00d2ff;
    border: 1px solid rgba(0, 210, 255, 0.3);
    padding: 2px 7px;
    border-radius: var(--radius-sm);
    font-size: 0.72rem;
    font-weight: 600;
}

.btn-danger-outline {
    background: transparent;
    color: #ff5252;
    border: 1px solid rgba(255, 82, 82, 0.4);
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-danger-outline:hover:not(:disabled) {
    background: rgba(255, 82, 82, 0.15);
    border-color: #ff5252;
}

/* ==========================================================================
   PICKER & TUNING MODALS
   ========================================================================== */
.driver-picker-list, .vehicle-picker-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 420px;
    overflow-y: auto;
    padding-right: 6px;
}

.driver-pick-item, .vehicle-pick-item {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 14px;
    transition: all 0.2s ease;
}

.driver-pick-item.selected, .vehicle-pick-item.selected {
    border-color: #00e676;
    background: rgba(0, 230, 118, 0.05);
}

.dpi-avatar {
    width: 48px;
    height: 48px;
    min-width: 48px;
    min-height: 48px;
    max-width: 48px;
    max-height: 48px;
    background: #0f172a;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid rgba(0, 210, 255, 0.4);
    overflow: hidden;
    flex-shrink: 0;
    position: relative;
}

.dpi-info, .vpi-info {
    flex: 1;
}

.vpi-media img {
    width: 60px;
    height: 44px;
    object-fit: cover;
    border-radius: var(--radius-sm);
}

.vehicle-upgrade-hero {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: rgba(15, 23, 42, 0.7);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.v-tuning-img {
    width: 100px;
    height: 70px;
    object-fit: contain;
    background: #0c0f20;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.v-tuning-meta h4 {
    margin: 0 0 6px 0;
    color: #fff;
}

.upgrades-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.upgrade-card {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 14px 18px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all 0.2s ease;
}

.upgrade-card.installed {
    border-color: rgba(0, 230, 118, 0.4);
    background: rgba(0, 230, 118, 0.04);
}

.up-icon {
    font-size: 2rem;
}

.up-info {
    flex: 1;
}

.up-info h4 {
    margin: 0 0 4px 0;
    color: #fff;
    font-size: 1rem;
}

.up-desc {
    margin: 0 0 4px 0;
    font-size: 0.82rem;
    color: var(--text-secondary);
}

.up-cost {
    font-size: 0.85rem;
}

/* ==========================================================================
   HQ PANORAMIC HERO BANNER (TRANSIT DYNASTY BÁZIS FEJLÉC)
   ========================================================================== */
.hq-panoramic-hero {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 24px;
    border: 1px solid rgba(0, 210, 255, 0.3);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6), 0 0 25px rgba(0, 210, 255, 0.15);
    max-height: 220px;
}

.hq-panoramic-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    object-position: center 30%;
    display: block;
    filter: brightness(0.92);
}

.hq-panoramic-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.94) 0%, rgba(15, 23, 42, 0.72) 45%, rgba(15, 23, 42, 0.25) 100%);
    display: flex;
    align-items: center;
    gap: 22px;
    padding: 24px 30px;
}

.hq-panoramic-logo {
    height: 96px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 4px 16px rgba(0, 210, 255, 0.6));
    animation: logoGlow 3s infinite alternate ease-in-out;
    flex-shrink: 0;
}

@keyframes logoGlow {
    0% { filter: drop-shadow(0 4px 14px rgba(0, 210, 255, 0.5)); }
    100% { filter: drop-shadow(0 4px 22px rgba(255, 183, 3, 0.65)); }
}

.hq-panoramic-text h3 {
    margin: 0 0 6px 0;
    font-size: 1.45rem;
    font-weight: 800;
    color: #fff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
    font-family: 'Ubuntu', sans-serif;
}

.hq-panoramic-text p {
    margin: 0;
    color: #38bdf8;
    font-size: 0.92rem;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
}

@media (max-width: 768px) {
    .hq-panoramic-hero {
        max-height: 160px;
    }
    .hq-panoramic-img {
        height: 160px;
    }
    .hq-panoramic-logo {
        height: 64px;
    }
    .hq-panoramic-text h3 {
        font-size: 1.15rem;
    }
}
/* Realtime HUD Metric Glow Pulses on Live Update */
@keyframes hudProfitPulse {
    0% { transform: scale(1); filter: brightness(1); }
    35% { transform: scale(1.18); filter: brightness(1.7) drop-shadow(0 0 12px #00e676); color: #00e676 !important; }
    100% { transform: scale(1); filter: brightness(1); }
}

.hud-pulse-green {
    animation: hudProfitPulse 1.1s cubic-bezier(0.2, 0.8, 0.2, 1);
    display: inline-block;
}

@keyframes hudXpPulse {
    0% { transform: scale(1); filter: brightness(1); }
    35% { transform: scale(1.18); filter: brightness(1.7) drop-shadow(0 0 12px #00d2ff); color: #00d2ff !important; }
    100% { transform: scale(1); filter: brightness(1); }
}

.hud-pulse-cyan {
    animation: hudXpPulse 1.1s cubic-bezier(0.2, 0.8, 0.2, 1);
    display: inline-block;
}

/* Generated driver portraits share the avatar container sizing in every view. */
.driver-portrait { width: 100%; height: 100%; display: block; object-fit: cover; object-position: center 35%; border-radius: inherit; }
.cand-avatar, .drv-avatar, .v-driver-avatar, .dpi-avatar { overflow: hidden; flex-shrink: 0; }

/* Passenger Transport & Seat Capacity Styling */
.text-info { color: #38bdf8 !important; }
.text-gold { color: #f59e0b !important; }
.text-cyan { color: #06b6d4 !important; }
.badge-passenger {
    background: rgba(56, 189, 248, 0.16);
    color: #38bdf8;
    border: 1px solid rgba(56, 189, 248, 0.35);
}

/* ==========================================================================
   DEPOT FLEET MANAGEMENT & RELOCATION
   ========================================================================== */
.depot-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.depot-stationed-box {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.depot-stationed-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}

.depot-stationed-empty {
    padding: 10px 14px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    color: var(--text-muted);
    font-style: italic;
}

.depot-fleet-chips-row {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 10px;
}

.depot-vehicle-chip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
}

.depot-vehicle-chip:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.15);
}

.chip-main {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.chip-icon {
    font-size: 1.25rem;
}

.chip-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.chip-info strong {
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.chip-plate {
    display: inline-block;
    padding: 2px 5px;
    background: #000;
    color: #fff;
    border: 1px solid #444;
    border-radius: 3px;
    font-family: monospace;
    font-weight: 700;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
    width: fit-content;
}

.chip-meters {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
}

.chip-actions {
    flex-shrink: 0;
}

/* Relocate Modal Options */
.relocate-info-card {
    padding: 14px;
    background: rgba(0, 210, 255, 0.08);
    border: 1px solid rgba(0, 210, 255, 0.2);
    border-radius: var(--radius-sm);
}

.relocate-depot-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.relocate-depot-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
}

.relocate-depot-row:hover {
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.05);
}

.reloc-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.reloc-flag {
    font-size: 1.5rem;
}

.reloc-right {
    display: flex;
    align-items: center;
    gap: 14px;
}

.reloc-cost {
    font-weight: 700;
    font-size: 1rem;
}

/* ==========================================================================
   CORPORATE SUPPORT STAFF (IRODAI SZEMÉLYZET)
   ========================================================================== */
.staff-roles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 18px;
    margin-bottom: 24px;
}

.staff-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: all 0.2s ease;
}

.staff-card.hired {
    border-color: rgba(0, 230, 118, 0.35);
    background: linear-gradient(180deg, rgba(0, 230, 118, 0.05) 0%, rgba(10, 14, 28, 0.8) 100%);
}

.staff-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.staff-icon {
    font-size: 2rem;
}

.staff-identity h4 {
    margin: 0 0 4px 0;
    font-size: 1.05rem;
    font-weight: 700;
}

.staff-desc {
    margin: 0;
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.4;
}

.staff-perk-box {
    padding: 8px 12px;
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.25);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    color: var(--warning);
}

.staff-financials {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.staff-actions-row {
    display: flex;
    gap: 8px;
    margin-top: auto;
}

/* ==========================================================================
   DRIVER MORALE, TRAINING ACADEMY & ACTIONS
   ========================================================================== */
.drv-morale-wrap {
    margin: 8px 0;
}

.drv-morale-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    margin-bottom: 4px;
}

.training-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    background: rgba(0, 210, 255, 0.12);
    border: 1px solid rgba(0, 210, 255, 0.3);
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #38bdf8;
}

.drv-extra-actions {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.driver-training-profile {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
}

.training-options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 14px;
}

.training-item-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: all 0.2s ease;
}

.training-item-card.completed {
    border-color: rgba(0, 230, 118, 0.35);
    background: rgba(0, 230, 118, 0.04);
}

.train-top {
    display: flex;
    gap: 10px;
}

.train-icon {
    font-size: 1.8rem;
    flex-shrink: 0;
}

.train-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin: 2px 0 0 0;
}

.train-perk {
    font-size: 0.85rem;
    color: var(--warning);
    background: rgba(245, 158, 11, 0.08);
    padding: 6px 10px;
    border-radius: 4px;
}

.train-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.train-cost {
    font-weight: 700;
    color: var(--warning);
}

/* ==========================================================================
   P&L STATEMENT & FINANCIAL LEDGER
   ========================================================================== */
.pnl-container-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: 24px;
}

.pnl-columns-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1px;
    background: rgba(255, 255, 255, 0.08);
}

.pnl-col {
    background: var(--bg-card);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.pnl-col h4 {
    margin: 0 0 8px 0;
    font-size: 1.05rem;
    font-weight: 700;
}

.pnl-line {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    padding: 4px 0;
}

.pnl-total-row {
    display: flex;
    justify-content: space-between;
    font-size: 1rem;
    font-weight: 700;
    padding-top: 12px;
    margin-top: auto;
    border-top: 2px solid rgba(255, 255, 255, 0.12);
}

.pnl-bottom-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: rgba(0, 0, 0, 0.25);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.ledger-filter-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 14px;
}

.ledger-table-wrap {
    overflow-x: auto;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
}

.ledger-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
}

.ledger-table th {
    padding: 12px 14px;
    background: rgba(0, 0, 0, 0.3);
    font-weight: 600;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border-color);
    text-align: left;
}

.ledger-table td {
    padding: 12px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.ledger-table tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

.ledger-time {
    color: var(--text-muted);
    font-family: monospace;
    font-size: 0.8rem;
}

.ledger-cat-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.cat-job { background: rgba(0, 230, 118, 0.15); color: #00e676; border: 1px solid rgba(0, 230, 118, 0.3); }
.cat-fuel { background: rgba(255, 71, 87, 0.15); color: #ff4757; border: 1px solid rgba(255, 71, 87, 0.3); }
.cat-repair { background: rgba(245, 158, 11, 0.15); color: #f59e0b; border: 1px solid rgba(245, 158, 11, 0.3); }
.cat-salary { background: rgba(236, 72, 153, 0.15); color: #ec4899; border: 1px solid rgba(236, 72, 153, 0.3); }
.cat-loan { background: rgba(14, 165, 233, 0.15); color: #0ea5e9; border: 1px solid rgba(14, 165, 233, 0.3); }
.cat-depot { background: rgba(168, 85, 247, 0.15); color: #a855f7; border: 1px solid rgba(168, 85, 247, 0.3); }
.cat-staff { background: rgba(59, 130, 246, 0.15); color: #3b82f6; border: 1px solid rgba(59, 130, 246, 0.3); }
.cat-training { background: rgba(20, 184, 166, 0.15); color: #14b8a6; border: 1px solid rgba(20, 184, 166, 0.3); }
.cat-license { background: rgba(234, 179, 8, 0.15); color: #eab308; border: 1px solid rgba(234, 179, 8, 0.3); }

.ledger-amt {
    font-weight: 700;
    font-family: monospace;
    font-size: 0.95rem;
    text-align: right;
}

.amt-pos { color: #00e676; }
.amt-neg { color: #ff4757; }

/* ==========================================================================
   JOB HISTORY & LOGBOOK (FUVAR ELŐZMÉNYEK)
   ========================================================================== */
.history-kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    margin-bottom: 24px;
}

.kpi-stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 14px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.kpi-icon {
    font-size: 1.8rem;
}

.kpi-info {
    display: flex;
    flex-direction: column;
}

.kpi-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.kpi-val {
    font-size: 1.15rem;
    font-weight: 700;
}

.history-controls-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.history-filter-pills {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.history-search-wrap {
    min-width: 280px;
}

.history-logbook-container {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.history-table-responsive {
    overflow-x: auto;
}

.history-log-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
}

.history-log-table th {
    padding: 12px 14px;
    background: rgba(0, 0, 0, 0.35);
    font-weight: 600;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border-color);
    text-align: left;
}

.history-log-table td {
    padding: 12px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    vertical-align: middle;
}

.history-log-table tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

.route-display {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
}

.route-arrow {
    color: var(--primary);
    font-weight: 700;
}

.certificate-badge-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px;
    background: rgba(0, 230, 118, 0.06);
    border: 1px solid rgba(0, 230, 118, 0.25);
    border-radius: var(--radius-sm);
}

.cert-seal {
    padding: 6px 12px;
    background: #00e676;
    color: #051b11;
    font-weight: 900;
    border-radius: 4px;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

.cert-code {
    font-family: monospace;
    font-weight: 700;
    font-size: 1.05rem;
    color: #fff;
}

.cert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
}

.cert-box {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.cert-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
}

.cert-financial-table {
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 14px;
}

.cert-row {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    font-size: 0.9rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.cert-row-total {
    font-size: 1.05rem;
    font-weight: 700;
    padding-top: 10px;
    margin-top: 6px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    border-bottom: none;
}

/* ==========================================================================
   Cross-Platform Notification System (Mobile & Desktop)
   ========================================================================== */
.btn-notifications-toggle {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
}

.notif-badge {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    padding: 0 5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.6);
    animation: pulseNotif 2s infinite ease-in-out;
    pointer-events: none;
}

@keyframes pulseNotif {
    0%, 100% { transform: scale(1); box-shadow: 0 0 8px rgba(239, 68, 68, 0.5); }
    50% { transform: scale(1.12); box-shadow: 0 0 14px rgba(239, 68, 68, 0.85); }
}

.notif-center-modal-body {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-height: 75vh;
    overflow-y: auto;
}

.notif-status-banner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    background: linear-gradient(135deg, rgba(0, 210, 255, 0.08), rgba(0, 80, 160, 0.12));
    border: 1px solid rgba(0, 210, 255, 0.25);
    border-radius: var(--radius-md);
    padding: 14px 16px;
}

.notif-status-info {
    flex: 1;
    min-width: 200px;
}

.notif-settings-section {
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 14px 16px;
}

.notif-toggles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 10px;
}

.notif-toggle-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.04);
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.07);
    cursor: pointer;
    font-size: 0.85rem;
    transition: background var(--transition-fast), border-color var(--transition-fast);
}

.notif-toggle-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(0, 210, 255, 0.3);
}

.notif-toggle-item input[type="checkbox"] {
    width: 17px;
    height: 17px;
    accent-color: var(--primary-color);
    cursor: pointer;
}

.notif-feed-section {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.notif-feed-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.notif-feed-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 280px;
    overflow-y: auto;
    padding-right: 4px;
}

.notif-card-item {
    display: flex;
    gap: 12px;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-left: 4px solid #00d2ff;
    border-radius: var(--radius-sm);
    padding: 10px 12px;
    transition: transform var(--transition-fast), background var(--transition-fast);
}

.notif-card-item:hover {
    background: rgba(255, 255, 255, 0.06);
    transform: translateX(2px);
}

.notif-card-item.success {
    border-left-color: #10b981;
}

.notif-card-item.warning {
    border-left-color: #f59e0b;
}

.notif-card-item.danger {
    border-left-color: #ef4444;
}

.notif-card-item.unread-highlight {
    background: linear-gradient(135deg, rgba(0, 210, 255, 0.12), rgba(0, 80, 160, 0.18)) !important;
    border: 1px solid rgba(0, 210, 255, 0.5) !important;
    border-left: 4px solid #00d2ff !important;
    box-shadow: 0 0 16px rgba(0, 210, 255, 0.28);
}

.notif-new-badge {
    background: linear-gradient(135deg, #00d2ff, #0077ff);
    color: #ffffff;
    font-size: 0.64rem;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 6px;
    letter-spacing: 0.5px;
    box-shadow: 0 0 8px rgba(0, 210, 255, 0.6);
    display: inline-flex;
    align-items: center;
}

.notif-action-btn {
    font-size: 0.74rem;
    padding: 3px 9px;
    font-weight: 600;
}

.notif-card-icon {
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.notif-card-content {
    flex: 1;
}

.notif-card-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 2px;
}

.notif-card-header strong {
    font-size: 0.9rem;
    color: #ffffff;
}

.notif-card-time {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.notif-card-body {
    font-size: 0.82rem;
    color: #cbd5e1;
    line-height: 1.4;
}

@media (max-width: 600px) {
    .notif-btn-label {
        display: none;
    }
    .notif-status-banner {
        flex-direction: column;
        align-items: stretch;
    }
    .notif-toggles-grid {
        grid-template-columns: 1fr;
    }
}
/* Shared, scalable cargo category badges. */
.cargo-type-logo {
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    object-fit: contain;
    vertical-align: middle;
}
.cargo-type-value {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

@media (max-width: 480px) {
    .v-specs-summary {
        padding: 8px 10px;
        gap: 4px;
    }
    .v-spec-row {
        padding: 4px 6px;
        font-size: 0.77rem;
    }
    .v-spec-lbl {
        gap: 4px;
    }
    .v-spec-lbl .v-spec-ico {
        font-size: 0.82rem;
        width: 15px;
    }
    .v-spec-val {
        font-size: 0.78rem;
    }
    .d-spec-row {
        font-size: 0.76rem;
        padding: 3px 5px;
    }
}


/* Járműkép nagyítása (lightbox) */
.d-thumb-img, .driver-portrait { cursor: zoom-in; }
.img-lightbox {
    position: fixed; inset: 0; z-index: 3000;
    display: none; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
    padding: 24px; background: rgba(5, 8, 18, 0.92); backdrop-filter: blur(6px); cursor: zoom-out;
}
.img-lightbox.active { display: flex; animation: fadeIn 0.2s ease; }
.img-lightbox img { max-width: min(92vw, 1400px); max-height: 82vh; object-fit: contain; border-radius: 10px; box-shadow: 0 20px 60px rgba(0, 0, 0, .6); }
.img-lightbox-cap { margin: 0; color: #fff; font-weight: 600; }
.img-lightbox-close { position: absolute; top: 16px; right: 20px; background: none; border: 0; color: #fff; font-size: 2.4rem; line-height: 1; cursor: pointer; }

/* ===== Üzletkötés & cégfelvásárlás ===== */
.biz-summary { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 18px 0 26px; }
.biz-summary > div { background: rgba(15, 23, 42, 0.7); border: 1px solid var(--border-color); border-radius: var(--radius-md); padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; }
.biz-summary span { font-size: .78rem; color: var(--text-muted, #94a3b8); text-transform: uppercase; letter-spacing: .06em; }
.biz-summary strong { font-size: 1.25rem; }
.biz-filters { display: flex; gap: 12px; margin: 12px 0 16px; flex-wrap: wrap; }
.biz-filters input { flex: 1 1 280px; }
.biz-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 16px; }
.biz-card { background: rgba(15, 23, 42, 0.75); border: 1px solid var(--border-color); border-radius: var(--radius-md); padding: 16px; display: flex; flex-direction: column; gap: 9px; }
.biz-card.is-owned { border-color: rgba(34, 197, 94, .55); box-shadow: 0 0 0 1px rgba(34, 197, 94, .2) inset; }
.biz-contract { border-color: rgba(0, 210, 255, .45); }
.biz-card-top { display: flex; gap: 12px; align-items: center; }
.biz-card-top h4 { margin: 0; font-size: .98rem; }
.biz-icon { font-size: 1.8rem; line-height: 1; }
.biz-row { display: flex; justify-content: space-between; gap: 10px; font-size: .86rem; }
.biz-row span { color: var(--text-muted, #94a3b8); }
.biz-tags { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; font-size: 1.05rem; }
.biz-tag { font-size: .72rem; font-weight: 700; padding: 2px 8px; border-radius: 20px; border: 1px solid var(--border-color); }
.biz-tag.owned { color: #4ade80; border-color: rgba(74, 222, 128, .5); }
.biz-tag.contract { color: #67e8f9; border-color: rgba(103, 232, 249, .5); }
.biz-progress { height: 8px; border-radius: 6px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.biz-progress.thin { height: 4px; }
.biz-progress span { display: block; height: 100%; background: linear-gradient(90deg, #00d2ff, #4ade80); }
.biz-actions { display: flex; gap: 8px; margin-top: auto; }
.biz-actions .btn { flex: 1; }
.biz-history { display: flex; flex-direction: column; gap: 6px; }
.biz-hist-row { display: grid; grid-template-columns: 1fr auto auto; gap: 16px; padding: 9px 14px; background: rgba(15, 23, 42, .6); border: 1px solid var(--border-color); border-radius: var(--radius-sm); font-size: .88rem; }
.biz-hist-row.fulfilled strong { color: #4ade80; }
.biz-hist-row.failed strong { color: #fb7185; }
.biz-choice { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 14px 0; }
.biz-choice.small { grid-template-columns: repeat(3, 1fr); }
.biz-choice button { text-align: left; padding: 12px; border-radius: var(--radius-md); border: 1px solid var(--border-color); background: rgba(15, 23, 42, .7); color: inherit; cursor: pointer; display: flex; flex-direction: column; gap: 4px; font: inherit; }
.biz-choice button span { font-size: .78rem; color: var(--text-muted, #94a3b8); }
.biz-choice button.active { border-color: #00d2ff; background: rgba(0, 210, 255, .12); }
.biz-terms { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 18px; margin: 14px 0; }
.biz-terms > div { display: flex; justify-content: space-between; gap: 10px; font-size: .88rem; padding: 6px 0; border-bottom: 1px solid rgba(255, 255, 255, .06); }
.biz-terms span { color: var(--text-muted, #94a3b8); }
@media (max-width: 820px) { .biz-summary { grid-template-columns: 1fr 1fr; } .biz-choice, .biz-terms { grid-template-columns: 1fr; } }

/* ===== Cégek a térképen & lapozó ===== */
.biz-filters select { flex: 0 1 200px; }
.biz-pager { display: flex; gap: 14px; align-items: center; justify-content: center; margin-top: 16px; color: var(--text-muted, #94a3b8); font-size: .88rem; flex-wrap: wrap; }
.co-pin-wrap { background: none; border: 0; }
.co-pin { width: 32px; height: 32px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: #6d28d9; border: 2px solid #fff; box-shadow: 0 3px 8px rgba(0, 0, 0, .45); display: flex; align-items: center; justify-content: center; }
.co-pin span { transform: rotate(45deg); font-size: 15px; line-height: 1; }
.co-pin.co-owned { background: #16a34a; }
.co-pin.co-contract { background: #0891b2; }
.co-popup { min-width: 220px; font-family: inherit; color: #0f172a; }
.co-popup-head { display: flex; gap: 10px; align-items: center; margin-bottom: 8px; }
.co-popup-head > span { font-size: 1.6rem; }
.co-popup-head strong { display: block; font-size: .95rem; line-height: 1.2; }
.co-popup-head small { color: #64748b; }
.co-popup-row { display: flex; justify-content: space-between; gap: 12px; font-size: .84rem; padding: 3px 0; border-bottom: 1px solid #e2e8f0; }
.co-popup-actions { display: flex; gap: 6px; margin-top: 10px; }
.co-popup-actions button { flex: 1; padding: 7px 8px; border-radius: 8px; border: 1px solid #cbd5e1; background: #f1f5f9; color: #0f172a; font-weight: 600; font-size: .8rem; cursor: pointer; }
.co-popup-actions button.primary { background: #16a34a; border-color: #16a34a; color: #fff; }
.co-popup-actions button:disabled { opacity: .5; cursor: not-allowed; }

/* ==========================================================================
   VÁLLALATI PROFIL (részletes nézet)
   ========================================================================== */
.modal-window:has(.profile-wide) { max-width: 920px; }
.pf-identity { font-size: 0.9rem; margin-top: 8px; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 6px 18px; }
.pf-progress { margin-top: 14px; padding: 14px 16px; background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius-md); }
.pf-progress-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.pf-progress-row small { display: block; color: var(--text-muted); font-size: 0.78rem; margin-top: 2px; }
.pf-progress-pct { font-weight: 700; color: var(--primary); }
.pf-bar { height: 8px; margin-top: 8px; background: rgba(255,255,255,0.08); border-radius: 999px; overflow: hidden; }
.pf-bar span { display: block; height: 100%; background: linear-gradient(90deg, #00d2ff, #00e676); border-radius: 999px; }
.pf-section { margin-top: 18px; }
.pf-section-head h4 { font-size: 1rem; margin: 0; }
.pf-section-head p { margin: 2px 0 8px; font-size: 0.78rem; color: var(--text-muted); }
.pf-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.pf-tile { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius-md); }
.pf-tile-icon { font-size: 1.3rem; line-height: 1.2; flex-shrink: 0; }
.pf-tile-body { display: flex; flex-direction: column; min-width: 0; }
.pf-tile-label { font-size: 0.72rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.04em; }
.pf-tile-value { font-size: 1rem; color: #f8fafc; }
.pf-tile-hint { font-size: 0.72rem; color: var(--text-muted); margin-top: 1px; line-height: 1.3; }

.pf-details { margin-top: 8px; background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius-md); }
.pf-details summary { cursor: pointer; padding: 10px 14px; display: flex; justify-content: space-between; align-items: center; font-weight: 600; list-style: none; }
.pf-details summary::-webkit-details-marker { display: none; }
.pf-details summary::after { content: '▾'; margin-left: 10px; color: var(--text-muted); transition: transform 0.2s; }
.pf-details[open] summary::after { transform: rotate(180deg); }
.pf-details summary > span:first-child { flex: 1; }
.pf-count { background: rgba(0,210,255,0.15); color: var(--primary); font-size: 0.75rem; padding: 1px 8px; border-radius: 999px; }
.pf-list { max-height: 260px; overflow-y: auto; padding: 0 10px 10px; display: flex; flex-direction: column; gap: 6px; }
.pf-row { display: flex; align-items: center; gap: 10px; padding: 8px 10px; background: rgba(255,255,255,0.03); border-radius: 8px; }
.pf-row-icon { font-size: 1.2rem; flex-shrink: 0; }
.pf-row-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.pf-row-main strong { font-size: 0.88rem; }
.pf-row-main small { font-size: 0.74rem; color: var(--text-muted); }
.pf-row-right { font-size: 0.8rem; font-weight: 600; color: var(--primary); white-space: nowrap; }
.pf-locked { opacity: 0.5; }
.pf-empty { color: var(--text-muted); font-size: 0.82rem; padding: 6px 4px; }

/* Jelentés modal */
.rp-tabs { display: flex; gap: 8px; margin-bottom: 14px; }
.rp-tab { flex: 1; padding: 9px 12px; background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius-md); color: var(--text-muted); cursor: pointer; font: inherit; font-weight: 600; }
.rp-tab.active { color: #fff; border-color: var(--primary); background: rgba(0,210,255,0.1); }
.rp-label { display: block; margin: 12px 0 4px; font-size: 0.82rem; font-weight: 600; }
#reportMessage { resize: vertical; }
.rp-item { padding: 12px 14px; margin-bottom: 10px; background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius-md); }
.rp-item-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.rp-item-head strong { flex: 1; min-width: 120px; }
.rp-item-msg { margin: 8px 0; font-size: 0.88rem; color: var(--text-muted); line-height: 1.5; word-break: break-word; }
.rp-status { font-size: 0.72rem; font-weight: 700; padding: 2px 9px; border-radius: 999px; }
.rp-st-new { background: rgba(0,210,255,0.15); color: #00d2ff; }
.rp-st-prog { background: rgba(245,158,11,0.18); color: #fbbf24; }
.rp-st-done { background: rgba(0,230,118,0.15); color: #00e676; }
.rp-st-rej { background: rgba(239,68,68,0.15); color: #f87171; }
.rp-reply { margin-top: 10px; padding: 10px 12px; border-left: 3px solid var(--primary); background: rgba(0,210,255,0.06); border-radius: 6px; font-size: 0.86rem; line-height: 1.5; }

.biz-activity { margin: 6px 0 2px; font-size: 0.78rem; line-height: 1.4; color: var(--text-muted); }
.co-popup-activity { font-size: 0.75rem; line-height: 1.35; opacity: 0.85; margin: 4px 0 6px; }

.board-timer { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; font-size: 0.8rem; color: var(--text-muted); background: rgba(255,255,255,0.05); border: 1px solid var(--border-color); border-radius: var(--radius-md); }
.board-timer strong { color: var(--primary); font-variant-numeric: tabular-nums; }
