/* ========== Flight Hub ========== */
.pilot-flight-hub {
    display: grid;
    gap: 18px;
    width: 100%;
    max-width: none;
    margin: 0;
    color: #c6c6c6;
    box-sizing: border-box;
}

.pilot-flight-hub *,
.pilot-flight-hub *::before,
.pilot-flight-hub *::after {
    box-sizing: border-box;
}

.pilot-flight-hub__intro {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.pilot-flight-hub__badge {
    display: inline-flex;
    align-items: center;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(58, 186, 244, 0.14);
    border: 1px solid rgba(58, 186, 244, 0.28);
    color: #7dd3fc;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.pilot-flight-hub__title {
    display: block;
    margin: 10px 0 6px;
    color: #fff !important;
    font-size: clamp(1.45rem, 2vw, 1.9rem);
    font-weight: 700;
    line-height: 1.2;
}

.pilot-flight-hub__sub {
    margin: 0;
    color: rgba(255, 255, 255, 0.62);
    font-size: 14px;
    line-height: 1.5;
    max-width: none;
}

.pilot-flight-hub__intro-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.pilot-flight-hub__cancel-form {
    display: inline;
    margin: 0;
}

.pilot-flight-hub__btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 8px;
    background: #1a2e78;
    border: 1px solid #3abaf4;
    color: #fff !important;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none !important;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.pilot-flight-hub__btn:hover {
    background: #243d8f;
    color: #fff !important;
    transform: translateY(-1px);
}

.pilot-flight-hub__btn--ghost {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.12);
}

.pilot-flight-hub__btn--ghost:hover {
    background: rgba(255, 255, 255, 0.08);
}

.pilot-flight-hub__btn--danger {
    background: rgba(239, 68, 68, 0.12);
    border-color: rgba(239, 68, 68, 0.4);
    color: #fecaca !important;
}

.pilot-flight-hub__btn--danger:hover {
    background: rgba(239, 68, 68, 0.22);
    color: #fff !important;
}

.pilot-flight-hub__board {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    border: 1px solid rgba(58, 186, 244, 0.22);
    background:
        linear-gradient(160deg, rgba(26, 46, 120, 0.55), rgba(21, 32, 51, 0.96) 42%, #121a28),
        radial-gradient(ellipse 80% 60% at 50% -10%, rgba(58, 186, 244, 0.18), transparent 60%);
    padding: 22px;
}

.pilot-flight-hub--charter .pilot-flight-hub__board {
    border-color: rgba(167, 139, 250, 0.28);
    background:
        linear-gradient(160deg, rgba(67, 56, 120, 0.45), rgba(21, 32, 51, 0.96) 42%, #121a28),
        radial-gradient(ellipse 80% 60% at 50% -10%, rgba(167, 139, 250, 0.16), transparent 60%);
}

.pilot-flight-hub__board-top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 14px;
    margin-bottom: 22px;
}

.pilot-flight-hub__kind {
    display: inline-flex;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #b8ecff;
    background: rgba(0, 191, 255, 0.14);
    border: 1px solid rgba(0, 191, 255, 0.28);
}

.pilot-flight-hub--charter .pilot-flight-hub__kind {
    color: #ddd6fe;
    background: rgba(139, 92, 246, 0.16);
    border-color: rgba(167, 139, 250, 0.35);
}

.pilot-flight-hub__flight-no {
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    color: #fff;
}

.pilot-flight-hub__booked {
    margin-left: auto;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.45);
}

.pilot-flight-hub__route {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: start;
    gap: 12px 18px;
    margin-bottom: 22px;
}

.pilot-flight-hub__airport {
    display: grid;
    justify-items: start;
    align-content: start;
    gap: 10px;
    min-width: 0;
}

.pilot-flight-hub__airport--arr {
    justify-items: end;
    text-align: right;
}

.pilot-flight-hub__status {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    margin: 0 0 6px;
    padding: 0;
    width: 100%;
    min-width: 0;
}

.pilot-flight-hub__status > span,
.pilot-flight-hub__status > a {
    margin: 0;
}

.pilot-flight-hub__status-replay {
    padding: 6px 12px;
    font-size: 12px;
}

.pilot-flight-hub__flag {
    display: block;
    width: 36px;
    height: 24px;
    margin: 0 0 2px;
    object-fit: cover;
    border-radius: 3px;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.14);
}

.pilot-flight-hub__icao {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 800;
    letter-spacing: 0.08em;
    line-height: 1.05;
    margin: 2px 0 0;
    color: #fff;
}

.pilot-flight-hub__place {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.62);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    margin-top: 2px;
}

.pilot-flight-hub__leg {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(125, 211, 252, 0.75);
    margin-top: 2px;
}

.pilot-flight-hub__path {
    position: relative;
    width: min(280px, 28vw);
    height: 40px;
    display: grid;
    place-items: center;
    justify-self: center;
    align-self: center;
}

.pilot-flight-hub__path-line {
    position: absolute;
    left: 0;
    right: 0;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, transparent, rgba(58, 186, 244, 0.85), transparent);
}

.pilot-flight-hub__path-plane {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: #061018;
    background: linear-gradient(135deg, #3abaf4, #1a6fe8);
    box-shadow: 0 6px 18px rgba(26, 111, 232, 0.35);
}

.pilot-flight-hub--charter .pilot-flight-hub__path-plane {
    background: linear-gradient(135deg, #a78bfa, #6366f1);
}

.pilot-flight-hub__stats {
    list-style: none;
    margin: 0;
    padding: 14px 0 0;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.pilot-flight-hub__stats li {
    display: grid;
    gap: 4px;
    min-width: 0;
    padding: 10px 12px;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.22);
}

.pilot-flight-hub__stats span {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(125, 211, 252, 0.7);
}

.pilot-flight-hub__stats strong {
    font-size: 14px;
    font-weight: 700;
    color: #f2f4f8;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pilot-flight-hub__callsign-hint {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 14px 0 0;
    padding: 10px 12px;
    border-radius: 10px;
    background: rgba(58, 186, 244, 0.08);
    border: 1px solid rgba(58, 186, 244, 0.16);
    color: rgba(255, 255, 255, 0.72);
    font-size: 13px;
    line-height: 1.4;
}

.pilot-flight-hub__callsign-hint i {
    color: #7dd3fc;
    flex-shrink: 0;
}

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

.pilot-flight-hub__step {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 18px;
    border-radius: 14px;
    background: #152033;
    border: 1px solid rgba(255, 255, 255, 0.06);
    min-height: 100%;
}

.pilot-flight-hub__step--focus {
    border-color: rgba(58, 186, 244, 0.35);
    background:
        linear-gradient(180deg, rgba(26, 46, 120, 0.35), transparent 55%),
        #152033;
}

.pilot-flight-hub__step-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.pilot-flight-hub__step-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    color: #7dd3fc;
    background: rgba(58, 186, 244, 0.12);
    border: 1px solid rgba(58, 186, 244, 0.2);
    font-size: 15px;
}

.pilot-flight-hub__step-no {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.28);
}

.pilot-flight-hub__step-title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff !important;
}

.pilot-flight-hub__step-text {
    margin: 0;
    flex: 1;
    color: rgba(255, 255, 255, 0.58);
    font-size: 13px;
    line-height: 1.5;
}

.pilot-flight-hub__step-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.pilot-flight-hub__footer-note {
    margin: 0;
    color: rgba(255, 255, 255, 0.4);
    font-size: 12px;
    line-height: 1.45;
    max-width: none;
}

@media (max-width: 900px) {
    .pilot-flight-hub__steps {
        grid-template-columns: 1fr;
    }

    .pilot-flight-hub__stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .pilot-flight-hub__route {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
        gap: 10px;
    }

    .pilot-flight-hub__airport,
    .pilot-flight-hub__airport--arr {
        justify-items: center;
        text-align: center;
    }

    .pilot-flight-hub__status {
        justify-content: center;
    }

    .pilot-flight-hub__path {
        width: 120px;
        transform: rotate(90deg);
    }

    .pilot-flight-hub__booked {
        margin-left: 0;
        width: 100%;
    }

    .pilot-flight-hub__intro-actions,
    .pilot-flight-hub__btn {
        width: 100%;
    }
}

/* ========== Manual PiRep form ========== */
.pilot-aev-ops-list__intro {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.pilot-aev-pirep-form {
    background: #152033 !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 14px !important;
    overflow: hidden;
}

.pilot-aev-pirep-form .card-header {
    background: rgba(8, 14, 28, 0.65);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 12px 16px;
}

.pilot-aev-pirep-form .card-header h2 {
    margin: 0;
    color: #fff;
    font-size: 1.05rem;
}

.pilot-aev-pirep-form .card-body {
    padding: 16px;
}

.pilot-aev-pirep-form__hint {
    margin: 0 0 14px;
    color: rgba(255, 255, 255, 0.58);
    font-size: 13px;
    line-height: 1.45;
}

.pilot-aev-pirep-form__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.pilot-aev-pirep-form__field {
    display: grid;
    gap: 6px;
}

.pilot-aev-pirep-form__field--full,
.pilot-aev-pirep-form__actions {
    grid-column: 1 / -1;
}

.pilot-aev-pirep-form__field label {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(125, 211, 252, 0.85);
}

.pilot-aev-pirep-form__field input,
.pilot-aev-pirep-form__field select,
.pilot-aev-pirep-form__field textarea {
    width: 100%;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(8, 14, 28, 0.75);
    color: #fff;
}

.pilot-aev-pirep-form__field small {
    color: rgba(255, 255, 255, 0.4);
    font-size: 11px;
}

.pilot-aev-pirep-form__actions {
    display: flex;
    justify-content: flex-start;
}

@media (max-width: 720px) {
    .pilot-aev-pirep-form__grid {
        grid-template-columns: 1fr;
    }
}
