/* =============================================================================
   VEHICLE POPUP (Active Launch Vehicles page)
============================================================================= */

.lvm-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(2, 8, 14, .78);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    opacity: 0;
    transition: opacity .2s ease;
}

.lvm-backdrop.is-open {
    opacity: 1;
}

.lvm {
    display: flex;
    flex-direction: column;
    width: min(1440px, 96vw);
    max-height: 95vh;
    overflow: hidden;
    background: linear-gradient(145deg, #071622, #050f18);
    border: 1px solid rgba(52, 174, 239, .65);
    box-shadow:
        0 0 0 1px rgba(0, 0, 0, .55),
        0 0 35px rgba(20, 160, 230, .18),
        0 30px 80px rgba(0, 0, 0, .65);
}

/* ---------- Header ---------- */

.lvm-header {
    display: flex;
    align-items: center;
    gap: 16px;
    min-height: 58px;
    padding: 0 20px;
    border-bottom: 1px solid rgba(49, 127, 166, .28);
    background: linear-gradient(90deg, rgba(5, 20, 31, .96), rgba(9, 28, 42, .82));
}

.lvm-header-title {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    color: #38c7ff;
    font-size: .95rem;
    font-weight: 700;
    letter-spacing: .22em;
}

.lvm-sep {
    color: rgba(91, 152, 181, .45);
    font-weight: 400;
}

.lvm-header-company {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #cfe6ff;
    font-size: .78rem;
    letter-spacing: .06em;
}

.lvm-header-company .lv-logo {
    width: 30px;
    height: 30px;
}

.lvm-close {
    width: 32px;
    height: 32px;
    border: 0;
    background: transparent;
    color: #a9c2d3;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}

.lvm-close:hover {
    color: #42caff;
}

/* ---------- Variant tabs ---------- */

.lvm-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 12px 24px 0;
}

.lvm-tab {
    padding: 6px 14px;
    border: 1px solid rgba(47, 124, 163, .45);
    border-radius: 999px;
    background: rgba(7, 28, 42, .7);
    color: #9fbad0;
    font: inherit;
    font-size: .74rem;
    font-weight: 600;
    cursor: pointer;
}

.lvm-tab:hover {
    color: #dcefff;
    border-color: rgba(53, 197, 255, .7);
}

.lvm-tab.is-active {
    color: #fff;
    background: linear-gradient(90deg, rgba(33, 150, 243, .55), rgba(33, 150, 243, .2));
    border-color: rgba(53, 197, 255, .85);
}

/* ---------- Body ---------- */

.lvm-body {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: 18px 24px;
}

.lvm-loading,
.lvm-error {
    padding: 80px 0;
    text-align: center;
    font-size: .8rem;
    letter-spacing: .12em;
    color: #8fa6c2;
}

.lvm-error {
    color: #ff6b6b;
}

/* Cards */
.lvm-card {
    min-width: 0;
    padding: 14px;
    box-sizing: border-box;
    background: rgba(7, 20, 31, .82);
    border: 1px solid rgba(47, 124, 163, .42);
    border-radius: 6px;
}

.lvm-card-title {
    padding-bottom: 10px;
    margin-bottom: 12px;
    border-bottom: 1px solid rgba(47, 124, 163, .22);
    color: #35c5ff;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .12em;
}

/* Top row: picture | overview | statistics */
.lvm-top {
    display: grid;
    grid-template-columns: minmax(0, .8fr) minmax(0, 1.25fr) minmax(0, 1fr);
    gap: 18px;
}

/* ---------- Picture ---------- */

.lvm-image {
    position: relative;
    isolation: isolate;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 420px;
    padding: 14px;
}

.lvm-image::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 70%;
    height: 85%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: radial-gradient(ellipse at center,
        rgba(80, 170, 255, .28) 0%, rgba(80, 170, 255, .10) 40%, transparent 70%);
    filter: blur(12px);
    z-index: -1;
}

.lvm-image img {
    max-width: 100%;
    max-height: 460px;
    object-fit: contain;
    filter: drop-shadow(0 0 6px rgba(124, 196, 255, .25));
}

.lvm-image i {
    font-size: 48px;
    color: rgba(143, 166, 194, .4);
}

/* ---------- Overview ---------- */

.lvm-name {
    font-size: 1.35rem;
    font-weight: 700;
    color: #fff;
}

.lvm-company-line {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
    font-size: .78rem;
    color: #9fb4c8;
}

.lvm-summary {
    margin: 12px 0 14px;
    font-size: .78rem;
    line-height: 1.5;
    color: #8fa6c2;
}

.lvm-rows {
    display: flex;
    flex-direction: column;
}

.lvm-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    min-height: 32px;
    padding: 5px 0;
    border-bottom: 1px solid rgba(48, 111, 147, .18);
    font-size: .74rem;
}

.lvm-row:last-child {
    border-bottom: 0;
}

.lvm-row span {
    color: #aebbc5;
    white-space: nowrap;
}

.lvm-row strong {
    color: #35b9ff;
    font-weight: 600;
    text-align: right;
}

.lvm-subtitle {
    margin: 16px 0 6px;
    color: #6f8ca3;
    font-size: .62rem;
    font-weight: 700;
    letter-spacing: .14em;
}

/* Payload capacities */
.lvm-payloads {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 8px;
}

.lvm-payload {
    padding: 8px 10px;
    border-radius: 6px;
    border: 1px solid rgba(124, 196, 255, .14);
    background: rgba(124, 196, 255, .04);
}

.lvm-payload-orbit {
    color: #7cc4ff;
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .08em;
}

.lvm-payload-detail {
    margin-left: 4px;
    color: #6f8ca3;
    font-weight: 400;
    letter-spacing: 0;
}

.lvm-payload-value {
    margin-top: 3px;
    color: #fff;
    font-size: .8rem;
    font-weight: 600;
}

/* ---------- Statistics ---------- */

.lvm-hero {
    text-align: center;
    padding: 4px 0 12px;
    margin-bottom: 12px;
    border-bottom: 1px solid rgba(124, 196, 255, .12);
}

.lvm-hero-value {
    font-size: 38px;
    font-weight: 700;
    line-height: 1.1;
    color: #7cc4ff;
    text-shadow: 0 0 18px rgba(80, 170, 255, .45);
    font-variant-numeric: tabular-nums;
}

.lvm-hero-label {
    margin-top: 4px;
    font-size: 10px;
    letter-spacing: 1.6px;
    text-transform: uppercase;
    color: #8fa6c2;
}

.lvm-rate-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 5px;
    font-size: 11px;
    color: #8fa6c2;
}

.lvm-rate-head strong {
    font-size: 14px;
    color: #50ffa0;
}

.lvm-rate-track {
    height: 6px;
    border-radius: 999px;
    background: rgba(124, 196, 255, .1);
    overflow: hidden;
}

.lvm-rate-fill {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(80, 255, 160, .6), #50ffa0);
    box-shadow: 0 0 8px rgba(80, 255, 160, .5);
}

.lvm-tiles {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin: 14px 0;
}

.lvm-tile {
    padding: 9px 10px;
    border-radius: 8px;
    border: 1px solid rgba(124, 196, 255, .12);
    background: rgba(124, 196, 255, .04);
}

.lvm-tile strong {
    display: block;
    font-size: 19px;
    font-weight: 700;
    color: #fff;
    font-variant-numeric: tabular-nums;
}

.lvm-tile span {
    font-size: 11px;
    color: #8fa6c2;
}

.lvm-tile--success strong { color: #50ffa0; }
.lvm-tile--failure strong { color: #ff6b6b; }
.lvm-tile--partial strong { color: #ffc600; }

/* Launches per year: small bar chart */
.lvm-years {
    display: flex;
    align-items: flex-end;
    gap: 4px;
    height: 70px;
    margin-top: 8px;
}

.lvm-year {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    height: 100%;
}

.lvm-year-bar {
    width: 100%;
    min-height: 2px;
    border-radius: 2px 2px 0 0;
    background: linear-gradient(180deg, #7cc4ff, rgba(80, 170, 255, .35));
}

.lvm-year-label {
    margin-top: 3px;
    font-size: 9px;
    color: #6f8ca3;
}

/* ---------- Stages ---------- */

.lvm-section {
    margin-top: 18px;
}

.lvm-stages {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 12px;
}

.lvm-stage-title {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 8px;
    color: #fff;
    font-size: .82rem;
    font-weight: 700;
}

.lvm-stage-designation {
    color: #7cc4ff;
    font-weight: 600;
}

.lvm-chip {
    padding: 1px 7px;
    border-radius: 999px;
    border: 1px solid rgba(255, 200, 107, .4);
    color: #ffc86b;
    font-size: .58rem;
    font-weight: 700;
    letter-spacing: .08em;
}

.lvm-chip--reusable {
    border-color: rgba(124, 196, 255, .4);
    color: #7cc4ff;
}

.lvm-stage .lvm-row strong {
    color: #d5e1e8;
    font-weight: 600;
}

/* ---------- Recent launches ---------- */

.lvm-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .74rem;
}

.lvm-table th {
    padding: 8px 10px;
    text-align: left;
    color: #8297a8;
    font-size: .62rem;
    font-weight: 700;
    letter-spacing: .14em;
    background: rgba(13, 34, 48, .88);
    border-bottom: 1px solid rgba(65, 156, 208, .32);
}

.lvm-table td {
    padding: 8px 10px;
    color: #b8c5cf;
    border-bottom: 1px solid rgba(48, 111, 147, .18);
}

.lvm-table td.lvm-mission {
    color: #52cfff;
    font-weight: 600;
}

.lvm-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 700;
    font-size: .68rem;
    letter-spacing: .06em;
}

.lvm-status::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
}

.lvm-status--success { color: #50ffa0; }
.lvm-status--failure { color: #ff6b6b; }
.lvm-status--partial { color: #ffc600; }
.lvm-status--pending { color: #8fa6c2; }

/* ---------- Footer ---------- */

.lvm-footer {
    display: flex;
    justify-content: center;
    padding: 12px 24px 16px;
    border-top: 1px solid rgba(49, 127, 166, .18);
}

.lvm-close-button {
    min-width: 170px;
    height: 36px;
    border: 1px solid rgba(46, 153, 204, .45);
    border-radius: 4px;
    background: rgba(7, 28, 42, .75);
    color: #8eb4ca;
    font: inherit;
    font-size: .66rem;
    font-weight: 600;
    letter-spacing: .10em;
    cursor: pointer;
}

.lvm-close-button:hover {
    border-color: rgba(49, 190, 255, .75);
    color: #42caff;
}

/* ---------- Smaller screens ---------- */

@media (max-width: 1100px) {
    .lvm-top {
        grid-template-columns: 1fr 1fr;
    }

    .lvm-image {
        grid-row: span 2;
    }
}

@media (max-width: 700px) {
    .lvm-top {
        grid-template-columns: 1fr;
    }

    .lvm-image {
        min-height: 260px;
    }
}

/* Closed popup: completely gone, so it can't block clicks */
.lvm-backdrop[hidden] {
    display: none;
}

/* While fading in or out, it only catches clicks once it's open */
.lvm-backdrop:not(.is-open) {
    pointer-events: none;
}

/* ---------- Launches per year: number above each bar ---------- */

.lvm-year-count {
    margin-bottom: 2px;
    font-size: 9px;
    font-weight: 700;
    color: #cfe6ff;
    font-variant-numeric: tabular-nums;
}

.lvm-years {
    height: 84px;
}

/* ---------- Launch manifest ---------- */

.lvm-manifest-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.lvm-year-filter {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #8fa6c2;
    font-size: .64rem;
    letter-spacing: .1em;
}

.lvm-year-filter select {
    height: 28px;
    padding: 0 8px;
    border: 1px solid rgba(47, 124, 163, .45);
    border-radius: 4px;
    background: rgba(4, 12, 20, .8);
    color: #dce8f5;
    font: inherit;
    font-size: .74rem;
    letter-spacing: 0;
    cursor: pointer;
}

.lvm-table td.lvm-flight,
.lvm-table th:first-child {
    width: 56px;
    text-align: center;
    color: #8fd3ff;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.lvm-pager {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
}

.lvm-pager-info {
    color: #8fa6c2;
    font-size: .7rem;
    letter-spacing: .06em;
}

.lvm-pager-buttons {
    display: flex;
    align-items: center;
    gap: 6px;
}

.lvm-page-btn {
    min-width: 34px;
    height: 30px;
    padding: 0 10px;
    border: 1px solid rgba(59, 148, 198, .38);
    border-radius: 4px;
    background: rgba(12, 32, 46, .82);
    color: #8da4b5;
    font: inherit;
    font-size: .66rem;
    font-weight: 600;
    letter-spacing: .08em;
    cursor: pointer;
}

.lvm-page-btn:hover:not(:disabled) {
    border-color: rgba(73, 190, 255, .72);
    color: #d5efff;
}

.lvm-page-btn:disabled {
    opacity: .34;
    cursor: default;
}

.lvm-page-now {
    min-width: 64px;
    text-align: center;
    color: #cfe6ff;
    font-size: .72rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

/* =============================================================================
   SECTION TABS: Overview / Launch manifest
============================================================================= */

.lvm-sections {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 16px;
}

/* Tabs look like buttons, so they are clearly clickable */
.lvm-section-tab {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    height: 40px;
    padding: 0 18px;
    border: 1px solid rgba(47, 124, 163, .5);
    border-radius: 6px;
    background: rgba(7, 28, 42, .75);
    color: #9fbad0;
    font: inherit;
    font-size: .74rem;
    font-weight: 700;
    letter-spacing: .14em;
    cursor: pointer;
    transition: color .15s ease, border-color .15s ease, background .15s ease, box-shadow .15s ease;
}

.lvm-section-tab i {
    font-size: .95rem;
}

.lvm-section-tab:hover:not(:disabled) {
    color: #fff;
    border-color: rgba(53, 197, 255, .85);
    box-shadow: 0 0 14px rgba(33, 150, 243, .25);
}

.lvm-section-tab.is-active {
    color: #fff;
    background: linear-gradient(90deg, rgba(33, 150, 243, .55), rgba(33, 150, 243, .2));
    border-color: rgba(53, 197, 255, .9);
    box-shadow: 0 0 16px rgba(33, 150, 243, .3);
}

.lvm-section-tab:disabled {
    opacity: .4;
    cursor: default;
}

.lvm-section-count {
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(124, 196, 255, .18);
    color: #fff;
    font-size: .66rem;
    letter-spacing: .04em;
    font-variant-numeric: tabular-nums;
}

/* Gentle pulse on LAUNCH MANIFEST until the visitor opens it once */
.lvm-section-tab--hint:not(.is-active) {
    color: #dcefff;
    border-color: rgba(53, 197, 255, .8);
    animation: lvm-hint 2s ease-in-out infinite;
}

@keyframes lvm-hint {
    0%, 100% { box-shadow: 0 0 0 0 rgba(53, 197, 255, .0); }
    50%      { box-shadow: 0 0 0 4px rgba(53, 197, 255, .18), 0 0 18px rgba(53, 197, 255, .45); }
}

@media (prefers-reduced-motion: reduce) {
    .lvm-section-tab--hint:not(.is-active) {
        animation: none;
        box-shadow: 0 0 14px rgba(53, 197, 255, .4);
    }
}

/* "View all ... launches" link in the Statistics card */
.lvm-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 12px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #38c7ff;
    font: inherit;
    font-size: .74rem;
    font-weight: 700;
    letter-spacing: .04em;
    cursor: pointer;
}

.lvm-link:hover {
    color: #9ae7ff;
    text-decoration: underline;
}

.lvm-link i {
    transition: transform .15s ease;
}

.lvm-link:hover i {
    transform: translateX(3px);
}

.lvm-pane[hidden] {
    display: none;
}

/* =============================================================================
   LANDING PAD + EARTH behind the rocket in the popup
============================================================================= */

/* Rocket anchored to the bottom, so every rocket stands on the same line */
.lvm-image {
    container-type: inline-size;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    padding: 24px 14px 0;

    /* Earth and stars, darkened so the rocket and pad stay the focus */
    background:
        linear-gradient(180deg,
            rgba(5, 15, 24, .30) 0%,
            rgba(5, 15, 24, .55) 55%,
            rgba(5, 15, 24, .92) 100%),
        url("../images/bg/earth.webp") center 35% / cover no-repeat,
        #050f18;
}

/* The pad: full card width, at the bottom */
.lvm-image::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 6px;
    width: 100%;
    aspect-ratio: 900 / 207;
    transform: translateX(-50%);
    background: url("../images/bg/landing-pad.webp") center / contain no-repeat;
    z-index: 0;
    pointer-events: none;
}

/* The rocket stands on the centre of the pad */
.lvm-image img {
    position: relative;
    z-index: 1;
    max-height: 420px;
    margin-bottom: calc(6px + 12cqw);
}

/* =============================================================================
   BOOSTER FLEET - list on the left, selected booster on the right
============================================================================= */

.lvm-fleet-summary {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 14px;
}

.lvm-fleet-summary .lvm-tile strong {
    font-size: 17px;
}

.lvm-fleet-summary--small {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin: 12px 0 0;
}

.lvm-fleet {
    display: grid;
    grid-template-columns: minmax(300px, 360px) minmax(0, 1fr);
    gap: 16px;
    height: min(560px, calc(95vh - 330px));
    min-height: 380px;
}

/* ---------- Left: the list ---------- */

.lvm-fleet-list {
    display: flex;
    flex-direction: column;
    min-height: 0;
    padding: 12px;
    border: 1px solid rgba(47, 124, 163, .35);
    border-radius: 6px;
    background: rgba(5, 15, 24, .6);
}

.lvm-fleet-list-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    color: #9fbad0;
    font-size: .74rem;
    font-weight: 700;
    letter-spacing: .14em;
}

.lvm-fleet-search {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 34px;
    padding: 0 10px;
    border: 1px solid rgba(47, 124, 163, .4);
    border-radius: 5px;
    background: rgba(4, 12, 20, .65);
    color: #7f98ad;
}

.lvm-fleet-search input {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: #dce8f5;
    font: inherit;
    font-size: .78rem;
}

.lvm-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin: 10px 0 8px;
}

.lvm-filter {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    height: 24px;
    padding: 0 9px;
    border: 1px solid rgba(47, 124, 163, .45);
    border-radius: 999px;
    background: rgba(7, 28, 42, .7);
    color: #9fbad0;
    font: inherit;
    font-size: .58rem;
    font-weight: 700;
    letter-spacing: .08em;
    cursor: pointer;
}

.lvm-filter span {
    padding: 0 5px;
    border-radius: 999px;
    background: rgba(124, 196, 255, .14);
    color: #dcefff;
}

.lvm-filter:hover {
    color: #fff;
    border-color: rgba(53, 197, 255, .8);
}

.lvm-filter.is-active {
    color: #fff;
    background: linear-gradient(90deg, rgba(33, 150, 243, .55), rgba(33, 150, 243, .2));
    border-color: rgba(53, 197, 255, .9);
}

.lvm-fleet-rows-head {
    display: flex;
    justify-content: space-between;
    padding: 4px 10px 6px 28px;
    color: #6f8ca3;
    font-size: .6rem;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.lvm-fleet-rows {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
}

/* One booster row */
.lvm-frow {
    display: grid;
    grid-template-columns: 10px 64px minmax(0, 1fr) 28px;
    align-items: center;
    gap: 10px;
    width: 100%;
    height: 36px;
    padding: 0 10px;
    margin-bottom: 2px;
    border: 1px solid transparent;
    border-radius: 5px;
    background: transparent;
    color: #dce8f5;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.lvm-frow:hover {
    background: rgba(53, 197, 255, .06);
}

.lvm-frow.is-active {
    background: linear-gradient(90deg, rgba(33, 150, 243, .4), rgba(33, 150, 243, .1));
    border-color: rgba(53, 197, 255, .75);
    box-shadow: 0 0 12px rgba(33, 150, 243, .2);
}

.lvm-fdot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.lvm-fdot--active    { background: #35df90; box-shadow: 0 0 8px rgba(53, 223, 144, .6); }
.lvm-fdot--retired   { border: 2px solid #8fa6c2; }
.lvm-fdot--expended  { border: 2px solid #ffc86b; }
.lvm-fdot--lost,
.lvm-fdot--destroyed { border: 2px solid #ff6b6b; }

.lvm-fserial {
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .02em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.lvm-fmiddle {
    min-width: 0;
    display: flex;
    align-items: center;
}

/* One block per flight, oldest on the left */
.lvm-fbar {
    display: flex;
    gap: 2px;
    height: 10px;
}

.lvm-fseg {
    flex: 1;
    min-width: 2px;
    border-radius: 1px;
}

.lvm-fseg--landed   { background: #35df90; }
.lvm-fseg--failed   { background: #ff5c6c; }
.lvm-fseg--expended { background: #ffc86b; }
.lvm-fseg--unknown  { background: #566878; }

.lvm-fcount {
    text-align: right;
    color: #cfe6ff;
    font-size: .8rem;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

/* Status pills */
.lvm-bstatus {
    padding: 2px 8px;
    border-radius: 999px;
    border: 1px solid;
    font-size: .58rem;
    font-weight: 700;
    letter-spacing: .08em;
    white-space: nowrap;
}

.lvm-bstatus--active    { color: #50ffa0; border-color: rgba(80, 255, 160, .35);  background: rgba(80, 255, 160, .08); }
.lvm-bstatus--retired   { color: #8fa6c2; border-color: rgba(143, 166, 194, .3);  background: rgba(143, 166, 194, .06); }
.lvm-bstatus--expended  { color: #ffc86b; border-color: rgba(255, 200, 107, .35); background: rgba(255, 200, 107, .08); }
.lvm-bstatus--lost,
.lvm-bstatus--destroyed { color: #ff6b6b; border-color: rgba(255, 107, 107, .35); background: rgba(255, 107, 107, .08); }

/* ---------- Right: the selected booster ---------- */

.lvm-fleet-detail {
    display: flex;
    flex-direction: column;
    min-height: 0;
    min-width: 0;
    padding: 14px;
    border: 1px solid rgba(47, 124, 163, .35);
    border-radius: 6px;
    background: rgba(5, 15, 24, .6);
}

.lvm-booster-detail {
    display: flex;
    gap: 20px;
    align-items: center;
}

.lvm-booster-detail-img {
    width: 60px;
    flex-shrink: 0;
    display: flex;
    justify-content: center;
}

.lvm-booster-detail-img img {
    max-height: 170px;
    max-width: 100%;
    object-fit: contain;
    filter: drop-shadow(0 0 8px rgba(124, 196, 255, .3));
}

.lvm-booster-detail-img i {
    font-size: 30px;
    color: rgba(143, 166, 194, .45);
}

.lvm-booster-detail-info {
    flex: 1;
    min-width: 0;
}

.lvm-booster-head {
    display: flex;
    align-items: center;
    gap: 12px;
}

.lvm-booster-serial {
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
}

.lvm-booster-serial--big {
    font-size: 1.6rem;
}

.lvm-booster-role {
    margin-top: 3px;
    color: #8fa6c2;
    font-size: .74rem;
}

/* History scrolls inside the panel */
.lvm-fleet-history {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
}

.lvm-fleet-history thead th {
    position: sticky;
    top: 0;
    z-index: 1;
}

@media (max-width: 900px) {
    .lvm-fleet {
        grid-template-columns: 1fr;
        height: auto;
    }

    .lvm-fleet-rows,
    .lvm-fleet-history {
        max-height: 360px;
    }

    .lvm-fleet-summary,
    .lvm-fleet-summary--small {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Links under First / Last flight in the Statistics card */
.lvm-links {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    margin-top: 12px;
}

.lvm-links .lvm-link {
    margin-top: 0;
}

/* =============================================================================
   COMPACT SPACING - lets the Overview fit without a scroll bar
============================================================================= */

.lvm-body {
    padding: 14px 24px;
}

.lvm-tabs {
    padding-top: 10px;
}

.lvm-sections {
    margin-bottom: 12px;
}

.lvm-section-tab {
    height: 36px;
}

.lvm-card {
    padding: 12px 14px;
}

.lvm-card-title {
    padding-bottom: 8px;
    margin-bottom: 10px;
}

/* Rocket picture a little shorter */
.lvm-image {
    min-height: 370px;
}

.lvm-image img {
    max-height: 370px;
}

/* Stages: less space between the rows */
.lvm-section {
    margin-top: 14px;
}

.lvm-stage-title {
    margin-bottom: 4px;
}

.lvm-stage .lvm-row {
    min-height: 28px;
    padding: 3px 0;
}

.lvm-footer {
    padding: 10px 24px 12px;
}

/* Role tag after the serial (Falcon Heavy, Starship) */
.lvm-frow {
    grid-template-columns: 10px 110px minmax(0, 1fr) 28px;
}

.lvm-fserial {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.lvm-frole {
    padding: 1px 5px;
    border-radius: 3px;
    background: rgba(124, 196, 255, .12);
    color: #9fc9ee;
    font-size: .54rem;
    font-weight: 700;
    letter-spacing: .08em;
}