/* =========================================================
   Vargline A/S - driver.css
   Path: /static/css/driver.css
   Optimized for:
   - driver.html
   - dashboard.html

   Includes:
   - right sidebar dashboard layout
   - dedicated tab/content workspace styling
   - welcome hero area
   - latest news section on scroll
   - improved responsive behavior
   ========================================================= */

:root {
    color-scheme: dark;

    --bg-1: #04070c;
    --bg-2: #09111b;
    --bg-3: #0d1825;
    --bg-4: #142131;

    --surface-1: rgba(8, 13, 19, 0.78);
    --surface-2: rgba(14, 20, 29, 0.88);
    --surface-3: rgba(255, 255, 255, 0.035);
    --surface-4: rgba(255, 255, 255, 0.055);
    --surface-accent: rgba(217, 168, 58, 0.08);
    --surface-accent-strong: rgba(217, 168, 58, 0.12);

    --border: rgba(255, 255, 255, 0.085);
    --border-soft: rgba(255, 255, 255, 0.05);
    --border-accent: rgba(217, 168, 58, 0.28);
    --border-accent-strong: rgba(240, 193, 92, 0.45);
    --border-info: rgba(137, 183, 255, 0.24);

    --text: #f6f8fb;
    --text-soft: rgba(232, 238, 246, 0.84);
    --text-muted: rgba(198, 208, 221, 0.62);
    --text-dim: rgba(175, 187, 202, 0.48);

    --accent: #b68424;
    --accent-2: #d9a83a;
    --accent-3: #f0c15c;
    --accent-glow: rgba(217, 168, 58, 0.2);

    --success: #bfe48f;
    --success-2: #7df5c7;
    --success-glow: rgba(191, 228, 143, 0.12);

    --info: #89b7ff;
    --info-glow: rgba(137, 183, 255, 0.12);

    --danger: #ff9f9f;
    --danger-glow: rgba(255, 159, 159, 0.14);

    --shadow-page: 0 30px 90px rgba(0, 0, 0, 0.42);
    --shadow-card: 0 20px 60px rgba(0, 0, 0, 0.3);
    --shadow-soft: 0 14px 34px rgba(0, 0, 0, 0.2);

    --radius-xl: 30px;
    --radius-lg: 24px;
    --radius-md: 18px;
    --radius-sm: 14px;
    --radius-xs: 10px;

    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 20px;
    --space-6: 24px;
    --space-7: 28px;
    --space-8: 32px;

    --transition-fast: 180ms ease;
    --transition-normal: 280ms ease;
    --transition-slow: 420ms ease;

    --sidebar-width: 360px;
    --content-max: 1540px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

html,
body {
    min-height: 100%;
}

body {
    font-family: "Inter", sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at 15% 0%, rgba(255, 255, 255, 0.04), transparent 24%),
        radial-gradient(circle at 88% 6%, rgba(217, 168, 58, 0.13), transparent 22%),
        radial-gradient(circle at 50% 100%, rgba(55, 94, 154, 0.18), transparent 28%),
        linear-gradient(135deg, var(--bg-1) 0%, var(--bg-2) 30%, var(--bg-3) 68%, var(--bg-4) 100%);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

img {
    display: block;
    max-width: 100%;
}

button,
input,
a {
    font: inherit;
    -webkit-tap-highlight-color: transparent;
}

button {
    border: 0;
    background: none;
}

a {
    color: inherit;
    text-decoration: none;
}

::selection {
    background: rgba(217, 168, 58, 0.22);
    color: #fff;
}

/* =========================================================
   MAIN PAGE LAYOUT
   ========================================================= */

.driver-access {
    position: relative;
    min-height: 100vh;
    padding: 32px;
    display: grid;
    place-items: center;
    isolation: isolate;
    overflow: hidden;
}

.driver-shell {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1220px;
    display: grid;
    grid-template-columns: minmax(360px, 470px) minmax(320px, 1fr);
    gap: 28px;
    align-items: stretch;
}

.driver-shell--single {
    max-width: 540px;
    grid-template-columns: 1fr;
}

.dashboard-page {
    align-items: start;
}

.dashboard-shell,
.dashboard-layout {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: var(--content-max);
    display: grid;
    gap: 28px;
    align-items: start;
}

.dashboard-shell {
    grid-template-columns: minmax(0, 1fr);
}

.dashboard-layout {
    grid-template-columns: minmax(0, 1fr) var(--sidebar-width);
}

.dashboard-main,
.dashboard-sidebar {
    display: grid;
    gap: 28px;
    min-width: 0;
}

.dashboard-main--full {
    gap: 28px;
}

.dashboard-sidebar {
    position: sticky;
    top: 32px;
    align-self: start;
}

.dashboard-sidebar--right {
    width: 100%;
}

.dashboard-content-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) var(--sidebar-width);
    gap: 28px;
    align-items: start;
}

.dashboard-content-column {
    display: grid;
    gap: 28px;
    min-width: 0;
}

/* =========================================================
   BACKGROUND
   ========================================================= */

.bg-logo-wrap {
    position: absolute;
    inset: 0;
    z-index: 0;
    display: grid;
    place-items: center;
    pointer-events: none;
    overflow: hidden;
}

.bg-logo {
    width: min(1080px, 86vw);
    opacity: 0.26;
    filter: blur(20px) saturate(1.02) brightness(0.68);
    transform: scale(1.03);
    user-select: none;
    -webkit-user-drag: none;
}

.bg-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(17, 24, 34, 0.08), rgba(5, 8, 13, 0.74) 56%, rgba(2, 4, 8, 0.96) 100%);
}

.bg-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 36px 36px;
    opacity: 0.22;
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 1));
    -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 1));
}

/* =========================================================
   CARD SYSTEM
   ========================================================= */

.access-panel,
.hud-card,
.hero-highlight-card,
.sidebar-tab {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-xl);
    border: 1px solid var(--border);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.018) 100%),
        linear-gradient(145deg, rgba(12, 17, 24, 0.94) 0%, rgba(18, 25, 35, 0.82) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow:
        var(--shadow-page),
        inset 0 1px 0 rgba(255, 255, 255, 0.055);
}

.access-panel::before,
.hud-card::before,
.hero-highlight-card::before,
.sidebar-tab::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.06), transparent 35%, transparent 68%, rgba(217, 168, 58, 0.06));
}

.access-panel::after,
.hud-card::after,
.hero-highlight-card::after,
.sidebar-tab::after {
    content: "";
    position: absolute;
    inset: 0;
    padding: 1px;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(217, 168, 58, 0.24), rgba(255, 255, 255, 0.03), rgba(217, 168, 58, 0.08));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.access-panel {
    z-index: 1;
    min-height: 640px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hud-card {
    padding: 28px;
    box-shadow:
        var(--shadow-card),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* =========================================================
   HEADER / LABELS
   ========================================================= */

.panel-topbar,
.hud-card-header,
.hero-highlight-head,
.news-item-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.panel-topbar {
    margin-bottom: 28px;
}

.hud-card-header {
    margin-bottom: 22px;
}

.eyebrow,
.status-pill,
.hud-label,
.hud-tag,
.news-badge,
.news-date,
.live-indicator {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 34px;
    padding: 0 14px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    white-space: nowrap;
}

.eyebrow,
.hud-label {
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid rgba(255, 255, 255, 0.055);
    color: rgba(255, 255, 255, 0.76);
}

.eyebrow::before,
.hud-label::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--accent-3), var(--accent));
    box-shadow: 0 0 14px rgba(217, 168, 58, 0.4);
}

.status-pill,
.hud-tag,
.news-badge,
.news-date {
    background: rgba(182, 132, 36, 0.12);
    border: 1px solid rgba(217, 168, 58, 0.2);
    color: rgba(246, 225, 175, 0.92);
}

.section-heading {
    color: #fff;
    font-size: clamp(1.2rem, 1.9vw, 1.55rem);
    line-height: 1.2;
    margin-top: 8px;
}

/* =========================================================
   TYPOGRAPHY
   ========================================================= */

.access-header {
    margin-bottom: 28px;
}

.access-header h1 {
    font-family: "Orbitron", sans-serif;
    font-size: clamp(2rem, 3vw, 2.9rem);
    line-height: 1.05;
    letter-spacing: 0.03em;
    color: #fff;
    margin-bottom: 12px;
    text-shadow: 0 0 18px rgba(255, 255, 255, 0.05), 0 0 30px rgba(217, 168, 58, 0.08);
}

.subtitle {
    max-width: 58ch;
    color: var(--text-soft);
    font-size: 0.98rem;
    line-height: 1.8;
}

.profile-meta h2,
.download-item h3,
.news-item h3 {
    color: #fff;
}

.profile-meta p,
.download-item p,
.activity-item span,
.panel-footer,
.stat-name,
.progress-row,
.detail-key,
.news-item p {
    color: var(--text-soft);
}

/* =========================================================
   FORMS / INTERACTION
   ========================================================= */

.access-form {
    display: grid;
    gap: 16px;
}

.input-wrap {
    position: relative;
}

.input {
    width: 100%;
    height: 60px;
    padding: 0 18px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(217, 168, 58, 0.55);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.012)),
        rgba(8, 12, 18, 0.84);
    color: #fff;
    outline: none;
    transition:
        border-color var(--transition-fast),
        box-shadow var(--transition-normal),
        transform var(--transition-fast),
        background var(--transition-fast);
}

.input::placeholder {
    color: rgba(255, 255, 255, 0.68);
}

.input:focus {
    border-color: var(--accent-3);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.014)),
        rgba(10, 14, 22, 0.92);
    box-shadow: 0 0 0 4px rgba(217, 168, 58, 0.1), 0 18px 36px rgba(0, 0, 0, 0.22);
    transform: translateY(-1px);
}

.discord-button,
.download-btn,
.sidebar-anchor,
.dashboard-tab,
.sidebar-tab {
    transition:
        transform var(--transition-fast),
        background var(--transition-fast),
        box-shadow var(--transition-normal),
        border-color var(--transition-fast),
        color var(--transition-fast);
}

.discord-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    min-height: 60px;
    margin-top: 4px;
    border-radius: var(--radius-md);
    cursor: pointer;
    color: #fff;
    font-weight: 700;
    letter-spacing: 0.01em;
    background:
        linear-gradient(135deg, rgba(217, 168, 58, 0.12) 0%, rgba(217, 168, 58, 0.04) 100%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
    border: 1px solid rgba(217, 168, 58, 0.22);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22), 0 0 28px rgba(217, 168, 58, 0.08);
}

.discord-button:hover,
.download-btn:hover,
.sidebar-anchor:hover,
.dashboard-tab:hover,
.sidebar-tab:hover {
    transform: translateY(-2px);
}

.discord-button:hover {
    border-color: rgba(240, 193, 92, 0.36);
    background:
        linear-gradient(135deg, rgba(217, 168, 58, 0.16) 0%, rgba(217, 168, 58, 0.06) 100%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.03));
    box-shadow: 0 20px 44px rgba(0, 0, 0, 0.28), 0 0 34px rgba(217, 168, 58, 0.12);
}

.discord-icon {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

.panel-footer {
    margin-top: 22px;
    font-size: 0.92rem;
    line-height: 1.8;
}

.panel-footer strong {
    color: rgba(255, 255, 255, 0.86);
}

/* =========================================================
   DASHBOARD HERO
   ========================================================= */

.dashboard-hero {
    min-height: auto;
    justify-content: flex-start;
    gap: 0;
}

.dashboard-status-group {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}

.dashboard-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.8fr);
    gap: 24px;
    align-items: stretch;
}

.dashboard-hero-copy {
    margin-bottom: 0;
}

.hero-cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 22px;
}

.hero-button {
    width: auto;
    min-width: 180px;
    margin-top: 0;
}

.hero-button--secondary {
    min-height: 60px;
    padding: 0 18px;
    border-radius: var(--radius-md);
    font-weight: 700;
}

.hero-highlight-card {
    padding: 24px;
    display: grid;
    gap: 18px;
    align-self: stretch;
}

.hero-highlight-body {
    display: grid;
    gap: 14px;
}

.hero-highlight-item {
    padding: 16px 18px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-soft);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.012)),
        rgba(8, 12, 18, 0.58);
    box-shadow: var(--shadow-soft);
}

.hero-highlight-item .detail-key {
    margin-bottom: 8px;
}

.hero-highlight-item .detail-value {
    font-size: 1rem;
}

/* =========================================================
   DASHBOARD NAVIGATION
   ========================================================= */

.dashboard-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 8px;
}

.dashboard-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 18px;
    border-radius: 999px;
    color: var(--text-soft);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.055);
}

.dashboard-tab:hover {
    color: #fff;
    border-color: rgba(217, 168, 58, 0.24);
    background: rgba(217, 168, 58, 0.08);
}

.dashboard-tab.active {
    color: #fff;
    background: linear-gradient(135deg, rgba(217, 168, 58, 0.16), rgba(217, 168, 58, 0.05));
    border-color: rgba(217, 168, 58, 0.3);
    box-shadow: 0 0 24px rgba(217, 168, 58, 0.08);
}

/* =========================================================
   DASHBOARD SECTIONS
   ========================================================= */

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
}

.dashboard-entry-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.dashboard-content-card,
.dashboard-news-card,
.dashboard-welcome-card {
    scroll-margin-top: 30px;
}

.dashboard-content-frame {
    display: grid;
    gap: 18px;
    min-height: 300px;
}

.dashboard-content-frame > *:first-child {
    margin-top: 0;
}

.dashboard-content-frame > *:last-child {
    margin-bottom: 0;
}

.downloads-list,
.sidebar-links,
.activity-list,
.feed-list,
.sidebar-tab-list,
.news-list {
    display: grid;
    gap: 14px;
}

.download-item,
.activity-item,
.detail-item,
.stat-box,
.feed-item,
.news-item {
    position: relative;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.05);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.012)),
        rgba(8, 12, 18, 0.6);
    box-shadow: var(--shadow-soft);
}

.download-item,
.activity-item,
.feed-item,
.news-item {
    padding: 16px 18px;
}

.download-item:hover,
.activity-item:hover,
.detail-item:hover,
.stat-box:hover,
.feed-item:hover,
.news-item:hover {
    border-color: rgba(217, 168, 58, 0.16);
}

.download-meta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    color: var(--text-muted);
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.download-item h3,
.activity-item strong,
.feed-item strong,
.news-item h3 {
    display: block;
    font-size: 1rem;
    line-height: 1.45;
    margin-bottom: 6px;
}

.download-item p,
.activity-item span,
.feed-item span,
.news-item p {
    font-size: 0.93rem;
    line-height: 1.7;
}

.download-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}

.download-btn,
.sidebar-anchor {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 16px;
    border-radius: 999px;
    color: #fff;
    background: linear-gradient(135deg, rgba(217, 168, 58, 0.16), rgba(217, 168, 58, 0.05));
    border: 1px solid rgba(217, 168, 58, 0.24);
}

.download-btn:hover,
.sidebar-anchor:hover {
    border-color: rgba(240, 193, 92, 0.36);
    box-shadow: 0 0 24px rgba(217, 168, 58, 0.08);
}

.sidebar-profile {
    display: grid;
    gap: 18px;
}

.mini-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

/* =========================================================
   RIGHT SIDEBAR TABS
   ========================================================= */

.dashboard-side-tabs {
    display: grid;
    gap: 0;
}

.sidebar-tab-list {
    gap: 12px;
}

.sidebar-tab {
    display: grid;
    gap: 6px;
    padding: 16px 18px;
    border-radius: var(--radius-md);
    border-color: rgba(255, 255, 255, 0.06);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.014)),
        rgba(10, 14, 21, 0.66);
}

.sidebar-tab:hover {
    border-color: rgba(217, 168, 58, 0.24);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.018)),
        rgba(11, 16, 24, 0.76);
}

.sidebar-tab.active {
    border-color: rgba(217, 168, 58, 0.34);
    background:
        linear-gradient(135deg, rgba(217, 168, 58, 0.12), rgba(217, 168, 58, 0.04)),
        rgba(10, 14, 21, 0.78);
    box-shadow: 0 0 24px rgba(217, 168, 58, 0.08);
}

.sidebar-tab-title {
    color: #fff;
    font-size: 0.98rem;
    font-weight: 700;
    line-height: 1.3;
}

.sidebar-tab-meta {
    color: var(--text-muted);
    font-size: 0.86rem;
    line-height: 1.55;
}

/* =========================================================
   PROFILE
   ========================================================= */

.profile-row {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 24px;
}

.profile-avatar {
    width: 74px;
    height: 74px;
    border-radius: 22px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    font-family: "Orbitron", sans-serif;
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: #fff;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.03)),
        linear-gradient(135deg, #7e93bc 0%, #3f5f9c 45%, #223861 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.25), 0 0 22px var(--info-glow);
}

.profile-meta {
    min-width: 0;
}

.profile-meta h2 {
    font-size: 1.3rem;
    line-height: 1.22;
    margin-bottom: 6px;
    word-break: break-word;
}

.profile-meta p {
    font-size: 0.95rem;
    line-height: 1.7;
}

.profile-details {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.detail-item {
    padding: 16px 14px;
}

.detail-key {
    display: block;
    font-size: 0.76rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.detail-value {
    display: block;
    color: #fff;
    font-weight: 600;
    line-height: 1.45;
}

.detail-value.online {
    color: var(--success);
    text-shadow: 0 0 16px var(--success-glow);
}

/* =========================================================
   METRICS / STATS / REALTIME
   ========================================================= */

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.stat-box {
    padding: 18px 16px;
}

.stat-value,
.signal-value {
    display: block;
    font-family: "Orbitron", sans-serif;
    font-size: clamp(1.3rem, 2.1vw, 1.7rem);
    line-height: 1.08;
    color: #fff;
    margin-bottom: 8px;
    text-shadow: 0 0 20px rgba(217, 168, 58, 0.1);
    word-break: break-word;
}

.stat-name {
    display: block;
    font-size: 0.92rem;
}

.stat-subtext,
.signal-subtext {
    display: block;
    margin-top: 6px;
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.55;
}

.realtime-box {
    overflow: hidden;
}

.realtime-box::after {
    content: "";
    position: absolute;
    inset: 0;
    transform: translateX(-100%);
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
    animation: realtimeSweep 3.8s linear infinite;
    pointer-events: none;
}

.live-indicator {
    background: rgba(20, 255, 171, 0.12);
    color: var(--success-2);
    border: 1px solid rgba(125, 245, 199, 0.25);
    padding-right: 16px;
}

.live-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 0 0 currentColor;
    animation: livePulse 1.6s infinite;
}

.live-indicator.offline {
    background: rgba(255, 90, 90, 0.12);
    color: var(--danger);
    border-color: rgba(255, 159, 159, 0.25);
}

.live-indicator.offline .live-dot {
    animation: none;
    box-shadow: 0 0 16px rgba(255, 159, 159, 0.18);
}

.signal-meta-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 18px;
}

.hud-progress-block + .hud-progress-block {
    margin-top: 20px;
}

.progress-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    font-size: 0.93rem;
    margin-bottom: 10px;
}

.progress-row span:last-child {
    font-weight: 700;
    color: #fff;
}

.progress-bar {
    position: relative;
    width: 100%;
    height: 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.progress-bar span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--accent) 0%, var(--accent-2) 52%, var(--accent-3) 100%);
    box-shadow: 0 0 18px rgba(217, 168, 58, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

/* =========================================================
   NEWS
   ========================================================= */

.news-list {
    gap: 16px;
}

.news-item {
    padding: 18px 20px;
}

.news-item-top {
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.news-date {
    background: rgba(137, 183, 255, 0.1);
    border-color: rgba(137, 183, 255, 0.2);
    color: #d7e7ff;
}

.news-item h3 {
    font-size: 1.06rem;
    line-height: 1.4;
}

.news-link {
    margin-top: 14px;
    width: fit-content;
}

/* =========================================================
   OPTIONAL REALTIME STATES
   ========================================================= */

.live-badge,
.data-badge,
.connection-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 34px;
    padding: 0 14px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    border: 1px solid rgba(137, 183, 255, 0.22);
    background: rgba(137, 183, 255, 0.1);
    color: #d7e7ff;
}

.live-badge::before,
.connection-pill::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #9bd27d;
    box-shadow: 0 0 10px rgba(155, 210, 125, 0.5);
}

.connection-pill.is-offline,
.live-badge.is-offline {
    border-color: rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.72);
}

.connection-pill.is-offline::before,
.live-badge.is-offline::before {
    background: #c99292;
    box-shadow: 0 0 10px rgba(201, 146, 146, 0.35);
}

.metric-trend {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    font-size: 0.78rem;
    color: var(--text-muted);
}

.metric-trend.is-up {
    color: var(--success);
}

.metric-trend.is-neutral {
    color: var(--info);
}

.metric-trend.is-down {
    color: #ffb2a8;
}

.skeleton,
.loading-value {
    position: relative;
    overflow: hidden;
    color: transparent !important;
    background: rgba(255, 255, 255, 0.05) !important;
    border-radius: 10px;
}

.skeleton::after,
.loading-value::after {
    content: "";
    position: absolute;
    inset: 0;
    transform: translateX(-100%);
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
    animation: shimmer 1.4s linear infinite;
}

/* =========================================================
   KEYFRAMES
   ========================================================= */

@keyframes shimmer {
    100% {
        transform: translateX(100%);
    }
}

@keyframes realtimeSweep {
    100% {
        transform: translateX(100%);
    }
}

@keyframes livePulse {
    0% {
        box-shadow: 0 0 0 0 rgba(125, 245, 199, 0.45);
    }

    70% {
        box-shadow: 0 0 0 8px rgba(125, 245, 199, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(125, 245, 199, 0);
    }
}

/* =========================================================
   ACCESSIBILITY
   ========================================================= */

:focus-visible {
    outline: 2px solid var(--border-accent-strong);
    outline-offset: 3px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    white-space: nowrap;
    border: 0;
    clip: rect(0, 0, 0, 0);
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1320px) {
    .dashboard-content-layout {
        grid-template-columns: minmax(0, 1fr) 320px;
    }

    .dashboard-hero-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1180px) {
    .dashboard-layout,
    .dashboard-content-layout {
        grid-template-columns: 1fr;
        max-width: 1000px;
    }

    .dashboard-sidebar {
        position: static;
    }

    .dashboard-entry-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 1080px) {
    .driver-shell {
        grid-template-columns: 1fr;
        max-width: 780px;
    }

    .access-panel {
        min-height: auto;
    }

    .bg-logo {
        width: min(900px, 118vw);
    }
}

@media (max-width: 820px) {
    .dashboard-grid,
    .signal-meta-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-entry-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 720px) {
    .driver-access {
        padding: 18px;
    }

    .access-panel,
    .hud-card,
    .hero-highlight-card,
    .sidebar-tab {
        padding: 22px;
        border-radius: 24px;
    }

    .panel-topbar,
    .hud-card-header,
    .profile-row,
    .news-item-top {
        flex-direction: column;
        align-items: flex-start;
    }

    .dashboard-status-group,
    .hero-cta-row {
        width: 100%;
        justify-content: flex-start;
    }

    .profile-details,
    .stats-grid,
    .mini-stats,
    .dashboard-entry-grid {
        grid-template-columns: 1fr;
    }

    .input,
    .discord-button,
    .hero-button--secondary {
        height: 56px;
        min-height: 56px;
    }

    .bg-logo {
        width: min(760px, 145vw);
        opacity: 0.26;
        filter: blur(18px) saturate(1) brightness(0.6);
    }

    .dashboard-nav,
    .download-actions {
        flex-direction: column;
    }

    .dashboard-tab,
    .download-btn,
    .sidebar-anchor,
    .hero-button {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .driver-access {
        padding: 14px;
    }

    .access-panel,
    .hud-card,
    .hero-highlight-card,
    .sidebar-tab {
        padding: 18px;
        border-radius: 22px;
    }

    .eyebrow,
    .status-pill,
    .hud-label,
    .hud-tag,
    .live-badge,
    .data-badge,
    .connection-pill,
    .news-badge,
    .news-date,
    .live-indicator {
        min-height: 32px;
        padding: 0 12px;
        font-size: 10px;
    }

    .access-header h1 {
        font-size: 1.78rem;
    }

    .profile-avatar {
        width: 62px;
        height: 62px;
        border-radius: 18px;
        font-size: 1.15rem;
    }

    .section-heading {
        font-size: 1.08rem;
    }

    .stat-value,
    .signal-value {
        font-size: 1.2rem;
    }
}

/* =========================================================
   REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }
}
