/* PRD-MVP-01 — Meu Plano de Voo */
.flight-plan {
    width: 100%;
    max-width: none;
}
.flight-plan-hero {
    padding: 28px 28px 24px;
    margin-bottom: 24px;
    border-radius: var(--radius-xl, 16px);
    border: 1px solid var(--border-card);
    background:
        radial-gradient(ellipse 70% 80% at 0% 0%, rgba(92, 154, 255, 0.12), transparent 55%),
        var(--bg-card);
}
.flight-plan-kicker {
    font-size: 11px;
    letter-spacing: 0.14em;
    color: var(--accent);
    margin-bottom: 8px;
}
.flight-plan-title {
    font-size: clamp(1.35rem, 2.2vw, 1.75rem);
    color: var(--text-main);
    margin: 0 0 10px;
}
.flight-plan-objective {
    font-size: 14px;
    line-height: 1.55;
    color: var(--text-muted);
    margin: 0 0 20px;
    max-width: 42em;
}
.flight-plan-cta {
    display: inline-flex;
}
.flight-plan-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}
.flight-plan-card {
    grid-column: span 6;
    padding: 20px;
    border-radius: var(--radius-lg, 12px);
    border: 1px solid var(--border-card);
    background: var(--bg-card);
}
.flight-plan-card--full {
    grid-column: span 12;
}
.flight-plan-card-label {
    font-size: 11px;
    letter-spacing: 0.12em;
    color: var(--text-muted);
    margin-bottom: 10px;
}
.flight-plan-license {
    display: flex;
    align-items: baseline;
    gap: 12px;
    flex-wrap: wrap;
}
.flight-plan-license-now {
    font-size: 1.35rem;
    color: var(--text-main);
}
.flight-plan-license-next {
    font-size: 12px;
    color: var(--info, #5c9aff);
}
.flight-plan-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.flight-plan-chip {
    font-size: 11px;
    letter-spacing: 0.06em;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid var(--border-card);
    color: var(--text-main);
    background: var(--bg-elevated, rgba(255,255,255,0.03));
}
.flight-plan-missions {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.flight-plan-mission {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid var(--border-card);
    background: var(--bg-base);
}
.flight-plan-mission-title {
    font-size: 13px;
    color: var(--text-main);
    margin: 0 0 4px;
}
.flight-plan-mission-meta {
    font-size: 11px;
    color: var(--text-muted);
    margin: 0;
}
.flight-plan-mission-status {
    font-size: 10px;
    letter-spacing: 0.08em;
    white-space: nowrap;
    color: var(--accent);
}
.flight-plan-history {
    list-style: none;
    margin: 0;
    padding: 0;
}
.flight-plan-history li {
    font-size: 13px;
    color: var(--text-muted);
    padding: 8px 0;
    border-bottom: 1px solid var(--border-card);
}
.flight-plan-history li:last-child { border-bottom: none; }
.flight-plan-empty {
    padding: 40px 24px;
    text-align: center;
    color: var(--text-muted);
}

/* Cockpit — vínculo ao plano */
.fp-cockpit-anchor {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin: 0 0 16px;
    padding: 10px 14px;
    border-radius: 10px;
    border: 1px solid rgba(92, 154, 255, 0.22);
    background: rgba(92, 154, 255, 0.06);
}
.fp-cockpit-anchor-text {
    font-size: 11px;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin: 0;
}
.fp-cockpit-anchor-text strong {
    color: var(--accent);
    font-weight: 600;
}
.fp-cockpit-anchor-btn {
    font-size: 11px;
    letter-spacing: 0.08em;
    background: transparent;
    border: 1px solid rgba(92, 154, 255, 0.35);
    color: var(--accent);
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-family: var(--font-ui, Oswald, sans-serif);
    text-transform: uppercase;
}
.fp-cockpit-anchor-btn:hover {
    background: rgba(92, 154, 255, 0.12);
}

body.light-mode .flight-plan-hero {
    background:
        radial-gradient(ellipse 70% 80% at 0% 0%, rgba(12, 43, 91, 0.08), transparent 55%),
        var(--bg-card);
}
body.light-mode .fp-cockpit-anchor {
    background: rgba(12, 43, 91, 0.04);
}

@media (max-width: 720px) {
    .flight-plan-card,
    .flight-plan-card--full {
        grid-column: span 12;
    }
    .flight-plan-hero { padding: 20px; }
}

body.co-calm .fp-cockpit-anchor {
    display: none !important;
}

body.co-calm .flight-plan-calm .flight-plan-chips {
    margin: 0 0 16px;
}

.fp-gauges {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin: 4px 0 18px;
    text-align: left;
}
.fp-gauge {
    padding: 12px;
    border-radius: 10px;
    border: 1px solid rgba(212, 174, 87, 0.28);
    background: rgba(12, 18, 28, 0.55);
}
.fp-gauge span {
    display: block;
    font-family: Oswald, sans-serif;
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
}
.fp-gauge strong {
    display: block;
    font-family: Cinzel, serif;
    font-size: 1.35rem;
    margin: 4px 0 8px;
}
.fp-gauge-track {
    height: 8px;
    border-radius: 99px;
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden;
}
.fp-gauge-track i {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, #5c9aff, #d4ae57);
}
.fp-gauge.is-blink {
    animation: fpAlert 1.1s ease-in-out infinite;
    border-color: #c45c5c;
}
@keyframes fpAlert {
    0%, 100% { box-shadow: 0 0 0 0 rgba(196, 92, 92, 0.15); }
    50% { box-shadow: 0 0 0 6px rgba(196, 92, 92, 0.22); }
}

.fp-map {
    margin: 8px 0 20px;
    text-align: center;
}
.fp-map-kicker {
    font-size: 11px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--accent, #d4ae57);
    margin: 0 0 4px;
}
.fp-map-copy {
    font-size: 13px;
    color: var(--text-muted);
    margin: 0 0 16px;
}
.fp-map-radar {
    position: relative;
    width: min(260px, 72vw);
    height: min(260px, 72vw);
    margin: 0 auto 12px;
    border-radius: 50%;
    border: 1px solid rgba(212, 174, 87, 0.38);
    background:
        radial-gradient(circle at 50% 50%, rgba(92, 154, 255, 0.16), transparent 62%),
        radial-gradient(circle at 50% 100%, rgba(212, 174, 87, 0.12), transparent 45%);
    overflow: hidden;
}
.fp-map-orbit {
    position: absolute;
    border-radius: 50%;
    border: 1px dashed rgba(255, 255, 255, 0.14);
    pointer-events: none;
}
.fp-map-orbit--3 { inset: 14%; }
.fp-map-orbit--2 { inset: 28%; }
.fp-map-orbit--1 { inset: 42%; }
.fp-map-pole {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin: 0;
    color: var(--text-muted);
    z-index: 2;
}
.fp-map-pole--dest { top: 10px; color: #d4ae57; }
.fp-map-pole--origin { bottom: 10px; }
.fp-map-you {
    position: absolute;
    left: 50%;
    bottom: clamp(28%, var(--fp-progress, 12%), 62%);
    transform: translate(-50%, 50%);
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}
.fp-map-you i {
    display: block;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #d4ae57;
    animation: fpYouPulse 1.7s ease-out infinite;
}
.fp-map-you span {
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #d4ae57;
    white-space: nowrap;
}
@keyframes fpYouPulse {
    0% { box-shadow: 0 0 0 0 rgba(212, 174, 87, 0.65); }
    70% { box-shadow: 0 0 0 18px rgba(212, 174, 87, 0); }
    100% { box-shadow: 0 0 0 0 rgba(212, 174, 87, 0); }
}
.fp-map-pct {
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin: 0 0 14px;
}
.fp-map-track {
    display: flex;
    justify-content: space-between;
    gap: 4px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.fp-map-node {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    position: relative;
}
.fp-map-node i {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.25);
}
.fp-map-node span {
    font-size: 11px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-muted);
    text-align: center;
}
.fp-map-node.is-done i {
    background: #5c9aff;
    border-color: #5c9aff;
}
.fp-map-node.is-here i {
    background: #d4ae57;
    border-color: #d4ae57;
    animation: fpYouPulse 1.7s ease-out infinite;
}
.fp-map-node.is-here span {
    color: #d4ae57;
}
.fp-disc {
    margin: 18px auto 8px;
    text-align: center;
    max-width: none;
    width: 100%;
}
.fp-disc .estilo-voo-hangar,
.fp-disc .ev-profile {
    margin: 0 auto;
    max-width: none;
    width: 100%;
}
.fp-share-hint {
    font-size: 11px;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    margin: 0 auto 12px;
    text-align: center;
}
.mapa-comportamental--self {
    margin-top: 8px;
}

.fp-stage {
    text-align: center;
    padding: 28px 24px 32px !important;
}

.fp-kicker {
    margin: 0 0 6px !important;
    font-size: 10px !important;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #c9a227 !important;
    line-height: 1.3 !important;
}

.fp-license {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 18px 16px;
    align-items: center;
    margin: 0 0 22px;
    padding: 24px 22px 20px;
    border-radius: 14px;
    border: 1px solid rgba(212, 174, 87, 0.38);
    background:
        radial-gradient(ellipse at 50% 0%, rgba(212, 174, 87, 0.18), transparent 58%),
        linear-gradient(180deg, #141a24 0%, #0a0e14 100%);
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28), inset 0 0 40px rgba(212, 174, 87, 0.04);
}

.fp-license.is-warn {
    border-color: rgba(224, 122, 106, 0.45);
    background:
        radial-gradient(ellipse at 50% 0%, rgba(224, 122, 106, 0.14), transparent 58%),
        linear-gradient(180deg, #1a1416 0%, #0a0e14 100%);
}

.fp-license-col { min-width: 0; }
.fp-license-col--next { text-align: right; }

.fp-license h2,
.fp-license-col--next strong {
    display: block;
    margin: 0;
    font-size: clamp(22px, 3.2vw, 32px);
    letter-spacing: 0.03em;
    color: #f2e6c8;
    text-shadow: 0 0 22px rgba(212, 174, 87, 0.22);
}

.fp-license-flag {
    display: inline-block;
    margin: 10px 0 0;
    padding: 5px 12px;
    border-radius: 99px;
    font-size: 10px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #d4ae57;
    border: 1px solid rgba(212, 174, 87, 0.35);
    background: rgba(212, 174, 87, 0.08);
}

.fp-license.is-warn .fp-license-flag {
    color: #e07a6a;
    border-color: rgba(224, 122, 106, 0.45);
    background: rgba(224, 122, 106, 0.1);
}

.fp-license-hint {
    margin: 8px 0 0 !important;
    font-size: 12px !important;
    line-height: 1.45 !important;
    color: rgba(232, 236, 241, 0.55) !important;
}

.fp-license-ring {
    width: 132px;
    height: 132px;
    border-radius: 50%;
    background: conic-gradient(#d4ae57 calc(var(--p, 0) * 1%), rgba(255, 255, 255, 0.08) 0);
    display: grid;
    place-items: center;
    box-shadow: 0 0 28px rgba(212, 174, 87, 0.22);
    animation: fpRingGlow 3.2s ease-in-out infinite;
}
@keyframes fpRingGlow {
    0%, 100% { box-shadow: 0 0 18px rgba(212, 174, 87, 0.16); }
    50% { box-shadow: 0 0 36px rgba(212, 174, 87, 0.38); }
}

.fp-license.is-warn .fp-license-ring {
    background: conic-gradient(#e07a6a calc(var(--p, 0) * 1%), rgba(255, 255, 255, 0.08) 0);
}

.fp-license-hole {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    background: #0b1018;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.fp-license-hole b {
    font-family: Cinzel, serif;
    font-size: 26px;
    line-height: 1;
    color: #f2e6c8;
}

.fp-license-hole span {
    margin-top: 4px;
    font-family: Oswald, sans-serif;
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted, #8b95a5);
}

.fp-objective {
    margin: 0 auto 18px !important;
    max-width: 42em;
    font-size: 14px !important;
    line-height: 1.55 !important;
    color: rgba(232, 236, 241, 0.62) !important;
}

.fp-license .fp-gates {
    grid-column: 1 / -1;
    margin: 6px 0 0;
    padding-top: 16px;
    border-top: 1px solid rgba(212, 174, 87, 0.18);
}

.fp-gates {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin: 0 0 22px;
}

.fp-gate {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 14px 10px 12px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(12, 18, 28, 0.7);
    color: #eef1f5;
    cursor: pointer;
    font-family: inherit;
}

.fp-gate b {
    font-family: Oswald, sans-serif;
    font-size: 10px;
    letter-spacing: 0.14em;
    color: #c9a227;
}

.fp-gate span {
    font-family: Cinzel, serif;
    font-size: 15px;
}

.fp-gate em {
    font-style: normal;
    font-size: 11px;
    color: rgba(232, 236, 241, 0.5);
}

.fp-gate.is-done {
    border-color: rgba(125, 206, 160, 0.4);
}

.fp-gate.is-here {
    border-color: rgba(212, 174, 87, 0.55);
    box-shadow: 0 0 18px rgba(212, 174, 87, 0.18);
    background: rgba(212, 174, 87, 0.1);
    animation: fpGatePulse 2.4s ease-in-out infinite;
}
@keyframes fpGatePulse {
    0%, 100% { box-shadow: 0 0 10px rgba(212, 174, 87, 0.1); }
    50% { box-shadow: 0 0 22px rgba(212, 174, 87, 0.32); }
}

.fp-gate:hover {
    border-color: rgba(212, 174, 87, 0.45);
}

.fp-cta-row {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
}

.fp-cta-hint {
    margin: 0;
    font-size: 13px;
    color: rgba(232, 236, 241, 0.58);
}

.fp-cta-row .btn-gold {
    min-width: min(280px, 92%);
}

@media (max-width: 720px) {
    .fp-license {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .fp-license-col--next { text-align: center; }
    .fp-license-ring { margin: 0 auto; }
    .fp-gates { grid-template-columns: 1fr 1fr; }
}
