.app-navigation {
    justify-content: center;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 20px auto;
    padding: 0 20px;
    max-width: 1200px;
}

.app-navigation a {
    justify-content: center;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    border-radius: 8px;
    background: #2b2b2b;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
}

.app-navigation a:hover {
    background: #3a3a3a;
}

.app-navigation a.active {
    background: #0d6efd;
}

#live-trackmap {
    display: block;
    width: 100%;
    max-width: 800px;
    height: auto;
    max-height: 600px;
    margin: 20px auto;
}

/* ==========================================================
   Layout
   ========================================================== */

.page-container {
    max-width: 1450px;
    margin: 35px auto;
    padding: 0 30px 40px;
}

.grid-2 {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 28px;
    align-items: start;
}

@media (max-width: 1000px) {

    .grid-2 {
        grid-template-columns: 1fr;
    }

}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
}

/* ==========================================================
   Cards
   ========================================================== */

body {
    margin: 0;
    background: #111827;
    color: #f3f4f6;
    font-family: Arial, Helvetica, sans-serif;
}

.card {
    background: #243244;
    border: 1px solid #405067;
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .30);
    overflow: hidden;
}

.card-header {
    margin: -20px -20px 16px;
    padding: 12px 18px;
    background: #273548;
    border-bottom: 1px solid #3f4b5c;
    border-radius: 12px 12px 0 0;
}

.card-title {
    font-size: 18px;
    font-weight: 700;
}

.card-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 20px;
}

/* ==========================================================
   Driver Cards
   ========================================================== */

.driver-card {
    background: #273548;
    border: 1px solid #3f4b5c;
    border-radius: 12px;
    padding: 16px;
    transition: .2s ease;
}

.driver-card:hover {
    border-color: #3b82f6;
    transform: translateY(-2px);
}

.driver-header {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 14px;
    color: #fff;
}

.driver-body {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
}

.driver-body div {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.driver-body div span {
    color: #bbb;
}

.driver-delta {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid #374151;
    text-align: center;
    font-size: 24px;
    font-weight: 700;
}

/* ==========================================================
   Metrics
   ========================================================== */

.metric {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 10px 0;
    border-bottom: 1px solid #374151;
}

.metric:last-child {
    border-bottom: none;
}

.metric-label {
    color: #9ca3af;
    font-weight: 500;
}

.metric-value {
    color: #ffffff;
    font-size: 16px;
}

/* ==========================================================
   Public Header
   ========================================================== */

.site-header {

    background: #1b2533;
    border-bottom: 1px solid #374151;
    margin-bottom: 30px;
    padding: 30px 20px 20px;

}

.site-brand {

    max-width: 1450px;
    margin: 0 auto 20px;
    text-align: center;

}

.site-brand h1 {

    margin: 0;
    font-size: 34px;
    color: #ffffff;

}

.site-brand p {

    margin: 10px 0 0;
    color: #9ca3af;
    font-size: 18px;

}

/* ==========================================================
   Hero
   ========================================================== */

.hero {

    max-width: 1450px;
    margin: 0 auto 30px;

    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 18px;

}

.hero-item {

    flex: 1;
    min-width: 150px;
    max-width: 180px;

    background: #243244;
    border: 1px solid #405067;
    border-radius: 12px;

    padding: 14px 18px;

    font-size: 17px;
    font-weight: 600;

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

    box-shadow: 0 6px 18px rgba(0, 0, 0, .25);

}