:root {
    --primary-blue: #FFFFFF; /* Light header */
    --accent-red: #CC0000; /* Kafly Red */
    --text-light: #1A1A1A; /* Dark text for light theme */
    --text-dark: #000000;
    --bg-gray: #F5F5F5;
    --primary-red: #CC0000;
    --transition: all 0.3s ease;
}

/* Reset Básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    scrollbar-width: thin;
    scrollbar-color: #A01A16 transparent;
}
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #A01A16; border-radius: 3px; }

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    background-color: var(--bg-gray);
    color: var(--text-dark);
    line-height: 1.6;
}

/* Navegação */
header {
    background-color: var(--primary-blue);
    padding: 0.75rem 5%;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid var(--accent-red);
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo img {
    height: 35px;
    width: auto;
    display: block;
}

.logo span {
    color: var(--primary-red);
}

nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
    align-items: center;
}

/* Menu Toggle (Mobile) */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    z-index: 1001;
}

.menu-toggle .bar {
    width: 25px;
    height: 3px;
    background-color: var(--text-light);
    border-radius: 3px;
    transition: var(--transition);
}

.menu-toggle.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.menu-toggle.active .bar:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

nav a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    padding: 5px 10px;
    border-radius: 4px;
}

.recent-flights {
    padding: 5rem 5%;
    background: #FFFFFF;
    color: var(--text-dark);
    position: relative;
    overflow: hidden;
}

.recent-flights::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://www.transparenttextures.com/patterns/cubes.png');
    opacity: 0.05;
    pointer-events: none;
}

.recent-flights .container {
    max-width: 1100px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.recent-flights h2 {
    font-size: 2.2rem;
    margin-bottom: 3.5rem;
    text-align: center;
    font-weight: 300;
    letter-spacing: 2px;
}

.recent-flights h2 span {
    display: block;
    font-size: 0.8rem;
    color: var(--primary-red);
    text-transform: uppercase;
    letter-spacing: 5px;
    margin-top: 10px;
}

.flight-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.flight-row {
    background: #FFFFFF;
    border-left: 4px solid var(--accent-red);
    padding: 1.2rem 2.5rem;
    border-radius: 4px 12px 12px 4px;
    display: grid;
    grid-template-columns: 1.5fr 1fr 2fr 1fr 1fr;
    align-items: center;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    border: 1px solid #EAEAEA;
}

.flight-row:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: scale(1.02);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.flight-row .pilot {
    display: flex;
    align-items: center;
    gap: 15px;
}

.flight-row .pilot img {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.2);
    object-fit: cover;
}

.flight-row .pilot span {
    font-weight: 600;
    font-size: 0.95rem;
}

.flight-row .callsign {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    color: var(--primary-red);
    font-size: 1.1rem;
    letter-spacing: 1px;
}

.flight-row .route {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.flight-row .icao {
    font-weight: 800;
    padding: 4px 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    font-size: 0.9rem;
}

.flight-row .arrow {
    color: rgba(255, 255, 255, 0.3);
    font-size: 1.2rem;
    animation: flightMove 3s infinite linear;
}

@keyframes flightMove {
    0% {
        transform: translateX(-5px);
        opacity: 0.3;
    }

    50% {
        transform: translateX(5px);
        opacity: 1;
    }

    100% {
        transform: translateX(-5px);
        opacity: 0.3;
    }
}

.flight-row .aircraft {
    text-align: center;
    font-size: 0.9rem;
    opacity: 0.8;
    background: rgba(0, 0, 0, 0.2);
    padding: 3px 10px;
    border-radius: 20px;
}

.network-badge {
    text-align: right;
    font-size: 0.75rem;
    font-weight: 900;
}

.network-badge span {
    padding: 4px 12px;
    border-radius: 4px;
}

.network-badge.ivao span {
    background: #0d47a1;
    color: #fff;
    box-shadow: 0 0 10px rgba(13, 71, 161, 0.4);
}

.network-badge.vatsim span {
    background: #2e7d32;
    color: #fff;
    box-shadow: 0 0 10px rgba(46, 125, 50, 0.4);
}

.no-flights {
    text-align: center;
    padding: 3rem;
    opacity: 0.5;
    font-style: italic;
    border: 1px dashed rgba(255, 255, 255, 0.1);
    border-radius: 12px;
}

@media (max-width: 768px) {
    header {
        padding: 0.75rem 5%;
    }

    .menu-toggle {
        display: flex;
    }

    nav {
        position: fixed;
        top: 60px;
        /* Altura do header */
        left: -100%;
        width: 100%;
        height: calc(100vh - 60px);
        background-color: #FFFFFF;
        transition: var(--transition);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        z-index: 999;
    }

    nav.active {
        left: 0;
    }

    nav ul {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }

    nav a {
        font-size: 1.2rem;
    }

    .flight-row {
        grid-template-columns: 1fr 1fr;
        gap: 15px;
        padding: 1.5rem;
    }

    .flight-row .route,
    .flight-row .aircraft {
        grid-column: span 2;
    }
}

nav a:hover {
    color: var(--primary-red);
}

.btn-login {
    background-color: var(--accent-red);
    padding: 0.5rem 1.5rem;
    border-radius: 4px;
    color: #fff !important;
}

.btn-login:hover {
    background-color: #b71c1c;
}

.hero {
    height: 100vh;
    background: linear-gradient(rgba(10, 10, 10, 0.75), rgba(10, 10, 10, 0.85)), url('../img/fundo.jpeg') no-repeat center center/cover;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0 5%;
    color: #FFFFFF;
    margin-top: 60px;
    position: relative;
    text-align: center;
}

.hero-content {
    max-width: 900px;
    z-index: 2;
    margin-top: -100px; /* Move o texto para cima para não cobrir a logo da aeronave */
}


.hero h1 {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    line-height: 1.1;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Widget de Voos Hero */
.hero-flights-widget {
    position: absolute;
    top: 60px; /* Ajustado para dar mais espaço do header */
    right: 40px;
    width: 350px;
    background: rgba(10, 25, 47, 0.6);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    animation: slideInRight 1s ease-out;
    z-index: 100; /* Aumentado para garantir visibilidade */
    text-align: left;
}

@keyframes slideInRight {
    from {
        transform: translateX(50px);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.widget-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 0.6rem;
}

.widget-header h3 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.7);
}

.live-indicator {
    font-size: 0.65rem;
    font-weight: bold;
    color: var(--primary-red);
    display: flex;
    align-items: center;
    gap: 6px;
}

.pulse {
    width: 8px;
    height: 8px;
    background: var(--primary-red);
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 0 rgba(239, 68, 68, 0.4);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(211, 47, 47, 0.7);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(211, 47, 47, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(211, 47, 47, 0);
    }
}

.widget-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.widget-row {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.widget-row:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateX(5px);
}

.widget-avatar img {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.widget-info {
    flex: 1;
}

.widget-top {
    display: flex;
    justify-content: space-between;
    margin-bottom: 4px;
}

.widget-callsign {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    color: var(--primary-red);
    font-size: 0.9rem;
}

.widget-network {
    font-size: 0.65rem;
    font-weight: 900;
    padding: 2px 6px;
    border-radius: 4px;
    text-transform: uppercase;
}

.widget-network.ivao {
    background: #0d47a1;
    color: white;
}

.widget-network.vatsim {
    background: #2e7d32;
    color: white;
}

.widget-route {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
}

.widget-arrow {
    font-size: 0.7rem;
    opacity: 0.5;
}

.widget-ac {
    margin-left: auto;
    font-size: 0.7rem;
    background: rgba(0, 0, 0, 0.3);
    padding: 2px 8px;
    border-radius: 10px;
    opacity: 0.7;
}

.no-flights-mini {
    text-align: center;
    opacity: 0.5;
    font-size: 0.9rem;
    padding: 1rem;
}

/* Destaque para Voos AO VIVO */
.widget-row.is-live {
    border-left: 3px solid #00d4ff;
    background: rgba(0, 212, 255, 0.08) !important;
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.15);
}

.widget-row.is-live .widget-callsign {
    color: #00d4ff;
}

.live-tag {
    display: none;
    font-size: 0.6rem;
    background: #00d4ff;
    color: #0b1a21;
    padding: 1px 5px;
    border-radius: 3px;
    font-weight: 900;
    margin-left: 8px;
    vertical-align: middle;
    letter-spacing: 0.5px;
    box-shadow: 0 0 8px rgba(0, 212, 255, 0.4);
}

.widget-row.is-live .live-tag {
    display: inline-block;
    animation: flash 2s infinite;
}

@keyframes flash {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

@media (max-width: 992px) {
    .hero {
        flex-direction: column;
        height: auto;
        min-height: 100vh;
        padding: 8rem 5% 3rem;
        text-align: center;
    }

    .hero-content {
        margin-top: 0;
        margin-bottom: 3rem;
        max-width: 100%;
        text-align: center;
    }


    .hero h1 {
        font-size: 2.2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .hero-flights-widget {
        position: static;
        width: 100%;
        max-width: 450px;
        margin: 0 auto;
        animation: slideInUp 1s ease-out;
    }
}

@keyframes slideInUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.btn-primary {
    padding: 1rem 2.5rem;
    background-color: var(--accent-red);
    color: var(--text-light);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: bold;
    border-radius: 5px;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background-color: #b71c1c;
    transform: translateY(-2px);
}

.live-map-section {
    padding: 6rem 5% 4rem;
    background: #FFFFFF;
    text-align: center;
    position: relative;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.live-map-section .section-header {
    margin-bottom: 3.5rem;
    color: var(--text-dark);
}

.live-map-section h2 {
    font-size: 2.5rem;
    margin-bottom: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.live-map-section p {
    font-size: 1.1rem;
    opacity: 0.8;
    max-width: 600px;
    margin: 0 auto;
}

.live-indicator-map {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(211, 47, 47, 0.1);
    padding: 6px 15px;
    border-radius: 20px;
    color: var(--accent-red);
    font-size: 0.75rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(211, 47, 47, 0.2);
    letter-spacing: 2px;
}

.map-container-hero {
    width: 100%;
    height: 700px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(0, 0, 0, 0.1);
    background: #F4F4F4;
}

.map-container-hero iframe {
    width: 100%;
    height: 100%;
    display: block;
}

@media (max-width: 768px) {
    .live-map-section {
        padding: 4rem 5%;
    }
    .map-container-hero {
        height: 500px;
    }
    .live-map-section h2 {
        font-size: 1.8rem;
    }
}

/* Seção de Recursos (Features) */
.features {
    padding: 5rem 5%;
    background-color: #fff;
    text-align: center;
}

.features h2 {
    font-size: 2.5rem;
    color: var(--primary-blue);
    margin-bottom: 3rem;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.card {
    background: var(--bg-gray);
    padding: 2.5rem 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.card-icon {
    font-size: 2.5rem;
    color: var(--primary-red);
    margin-bottom: 1rem;
}

.card h3 {
    color: var(--primary-blue);
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

/* Rodapé */
footer {
    background-color: #0A0A0A;
    color: #FFFFFF;
    text-align: center;
    padding: 3rem 5% 2rem;
    border-top: 2px solid var(--accent-red);
}

.footer-networks {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.footer-networks span {
    font-weight: 600;
    color: var(--text-light);
    font-size: 1.1rem;
}

.footer-networks a {
    display: inline-block;
}

.footer-networks img {
    max-height: 40px;
    width: auto;
    opacity: 0.7;
    filter: grayscale(100%);
    transition: var(--transition);
    cursor: pointer;
}

.footer-networks img:hover {
    opacity: 1;
    filter: grayscale(0%);
    transform: scale(1.05);
}

.footer-info p {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Modal Cadastro */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: #fff;
    padding: 2rem;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    position: relative;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.modal-header h2 {
    font-size: 1.8rem;
    color: var(--primary-blue);
}

.close-btn {
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition);
}

.close-btn:hover {
    color: var(--accent-red);
}

.form-group {
    margin-bottom: 1.2rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--primary-blue);
}

.form-group input {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
}

.form-group select {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
    background-color: #fff;
}

.form-group select:focus {
    outline: none;
    border-color: var(--accent-red);
}

.captcha-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.captcha-image {
    border: 1px solid #ccc;
    border-radius: 4px;
    cursor: pointer;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-light);
    text-decoration: none;
    padding: 5px 10px;
    border-radius: 4px;
    transition: var(--transition);
}

.user-profile:hover {
    background: rgba(255, 255, 255, 0.1);
}

.user-avatar {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--accent-red);
}

.user-name {
    font-weight: 500;
    font-size: 1rem;
}

.logout-link {
    color: #aaa;
    font-size: 0.9rem;
    text-decoration: none;
    transition: var(--transition);
    padding: 5px 10px;
}

.logout-link:hover {
    color: var(--accent-red);
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

/* Dropdown da Frota no Header */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
}

.dropdown-content {
    display: none;
    position: absolute;
    background: rgba(10, 25, 47, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    min-width: 280px;
    max-height: 72vh;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: #A01A16 transparent;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    border-radius: 12px;
    z-index: 2000;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    padding: 8px 0;
    animation: fadeInSlide 0.3s ease-out;
}

/* Pseudo-elemento para criar uma ponte invisível e evitar fechamento ao mover o mouse */
.dropdown-content::after {
    content: '';
    position: absolute;
    top: -15px;
    left: 0;
    right: 0;
    height: 15px;
}

@keyframes fadeInSlide {
    from {
        opacity: 0;
        transform: translate(-50%, 10px);
    }
    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

.dropdown-content::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 12px;
    height: 12px;
    background: rgba(10, 25, 47, 0.95);
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown-item {
    color: white;
    padding: 9px 14px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.88rem;
    transition: all 0.2s ease;
    border-radius: 8px;
    margin: 0 6px;
    position: relative;
    overflow: visible;
}

.dropdown-item:hover {
    background: rgba(211, 47, 47, 0.1);
    color: var(--accent-red);
}

.dropdown-item img {
    width: 52px;
    height: 34px;
    object-fit: cover;
    border-radius: 5px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
    z-index: 1;
}

.dropdown-item:hover img {
    transform: scale(2.0);
    border-color: var(--accent-red);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
    position: relative;
    z-index: 100;
}

.dropdown-item span {
    font-weight: 600;
}

/* Responsividade Mobile para Dropdown */
@media (max-width: 768px) {
    .dropdown-content {
        position: static;
        transform: none;
        background: rgba(255, 255, 255, 0.05);
        box-shadow: none;
        min-width: 100%;
        display: none; /* Agora começa oculto e expande */
        border: none;
        padding: 0;
        animation: none;
    }
    .dropdown-content.active {
        display: block;
    }
    .dropdown-content::before {
        display: none;
    }
    .dropdown-item {
        margin: 5px 0;
        padding-left: 30px;
    }
}


/* Seção de Frota (Glassmorphism & Modern Design) */
.fleet-section {
    padding: 6rem 5%;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    text-align: center;
}

.fleet-section h2 {
    font-size: 2.8rem;
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
    font-weight: 800;
}

.fleet-subtitle {
    color: var(--accent-red);
    text-transform: uppercase;
    letter-spacing: 4px;
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 4rem;
    display: block;
}

.fleet-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.fleet-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
}

.fleet-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 0.9);
}

.fleet-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.fleet-info {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.fleet-info h3 {
    font-size: 1.4rem;
    color: var(--primary-blue);
    margin-bottom: 15px;
    font-weight: 700;
}

.btn-download {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 25px;
    background: linear-gradient(45deg, var(--accent-red), #ff5252);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.95rem;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(211, 47, 47, 0.3);
}

.btn-download:hover {
    box-shadow: 0 8px 25px rgba(211, 47, 47, 0.5);
    transform: scale(1.02);
    filter: brightness(1.1);
}

@media (max-width: 768px) {
    .fleet-grid {
        grid-template-columns: 1fr;
    }
    .fleet-section h2 {
        font-size: 2.2rem;
    }
}

/* Seção de Pilotos (Crachás) */
.pilotos-section {
    padding: 6rem 5%;
    background: #f8fafc;
    text-align: center;
}

.pilotos-section h2 {
    font-size: 2.5rem;
    color: var(--primary-blue);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.pilotos-section .subtitle {
    color: #64748b;
    margin-bottom: 3rem;
    font-size: 1.1rem;
}

.pilotos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 40px;
    justify-content: center;
}

.pilot-badge {
    background: #fff;
    width: 240px;
    min-height: 400px;
    height: auto;
    margin: 0 auto;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.08);
    overflow: hidden;
    position: relative;
    border: 1px solid #edf2f7;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
}

.pilot-badge:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 25px 50px rgba(0,0,0,0.15);
    border-color: var(--accent-red);
}

.badge-header {
    background: var(--primary-blue);
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    position: relative;
}

.badge-header::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--accent-red);
}

.badge-header img {
    height: 30px;
    filter: brightness(0) invert(1);
}

.badge-photo-container {
    padding: 25px 0 15px;
    position: relative;
    background: linear-gradient(180deg, #f1f5f9 0%, #fff 100%);
}

.badge-photo {
    width: 130px;
    height: 130px;
    margin: 0 auto;
    border-radius: 50%;
    border: 5px solid #fff;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    overflow: hidden;
    background: #e2e8f0;
}

.badge-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.badge-info {
    padding: 10px 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.pilot-name {
    font-size: 1.1rem;
    font-weight: 800;
    color: #1a202c;
    margin-bottom: 4px;
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pilot-callsign {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--accent-red);
    letter-spacing: 2px;
    margin-bottom: 8px;
    font-family: 'Inter', sans-serif;
}

.pilot-rank {
    font-size: 0.75rem;
    color: #718096;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.pilot-hours {
    font-size: 0.9rem;
    font-weight: 700;
    color: #4a5568;
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.badge-footer {
    padding: 15px 20px;
    background: #f8fafc;
    border-top: 1px solid #edf2f7;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.network-icons {
    display: flex;
    gap: 10px;
}

.net-icon {
    font-size: 0.9rem;
    color: #94a3b8;
}

.net-icon.active {
    color: var(--primary-blue);
}

.id-label {
    font-size: 0.7rem;
    font-weight: 800;
    color: #4a5568;
    background: #e2e8f0;
    padding: 2px 8px;
    border-radius: 10px;
}

/* Home v10 inspirada no prototipo novofront */
:root {
    --accent-red: #A01A16;
    --primary-red: #A01A16;
}

body.home-page {
    --kfy-black: #0A0A0A;
    --kfy-panel: rgba(15, 17, 20, 0.35);
    --kfy-footer: #050505;
    --text-light: #FFFFFF;
    --text-dark: #0A0A0A;
    --bg-gray: #0A0A0A;
}

body.home-page {
    background: var(--kfy-black);
    color: #FFFFFF;
    overflow-x: hidden;
}

.home-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 90px;
    padding: 20px 60px;
    background: transparent;
    border: 0;
    box-shadow: none;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.home-header .logo {
    position: absolute;
    left: 60px;
}

.home-header .logo img {
    height: 42px;
    width: auto;
}

.home-header nav {
    background: var(--accent-red);
    padding: 10px 30px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.home-header nav ul {
    display: flex;
    align-items: center;
    gap: 25px;
    list-style: none;
}

.home-header nav a {
    color: #FFFFFF;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: 0;
    border-radius: 0;
}

.home-header nav a:hover {
    color: #ffd7d7;
}

.auth-buttons {
    position: absolute;
    right: 60px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 8px 18px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 800;
    line-height: 1;
    border: 1px solid transparent;
    transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-outline {
    background: rgba(255, 255, 255, 0.10);
    border-color: rgba(255, 255, 255, 0.40);
    color: #FFFFFF;
}

.btn-red,
.btn-primary {
    background: var(--accent-red);
    color: #FFFFFF;
}

.btn-red:hover,
.btn-primary:hover {
    background: #861410;
}

.btn-hero {
    min-height: 54px;
    padding: 16px 40px;
    font-size: 18px;
}

.hero {
    min-height: 100vh;
    height: 100vh;
    margin-top: 0;
    padding: 0 60px 80px;
    background:
        linear-gradient(rgba(0, 0, 0, 0.10), rgba(0, 0, 0, 0.45)),
        url('../img/747_ground_gold.png') center center / cover no-repeat;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: stretch;
    position: relative;
    text-align: center;
    color: #FFFFFF;
}

.hero-content {
    max-width: 1000px;
    margin: 0 auto;
    z-index: 5;
}

.hero h1 {
    margin: 0 0 12px;
    font-size: clamp(2rem, 4.4vw, 2.8rem);
    line-height: 1.2;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.90);
}

.hero p,
.hero p.subtitle {
    max-width: 700px;
    margin: 0 auto 30px;
    color: #FFFFFF;
    font-size: 1.1rem;
    line-height: 1.6;
    opacity: 1;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.90);
}

.cta-group {
    margin-bottom: 20px;
}

.hero-flights-widget,
.live-flights-widget {
    position: absolute;
    right: 60px;
    top: calc(90px + 1.5rem);
    width: 264px;
    padding: 18px;
    background: var(--kfy-panel);
    border: 1px solid rgba(255, 255, 255, 0.20);
    border-radius: 12px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.60);
    backdrop-filter: blur(12px);
    text-align: left;
    z-index: 6;
    animation: none;
}

.widget-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.widget-header h3 {
    color: #dddddd;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.live-indicator {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #ff4d4d;
    font-size: 10px;
    font-weight: 900;
}

.pulse,
.dot {
    width: 7px;
    height: 7px;
    background: #ff4d4d;
    border-radius: 50%;
    display: inline-block;
    animation: kfyPulseOpacity 1.5s infinite;
    box-shadow: none;
}

.widget-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.widget-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    background: transparent;
    border: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0;
    box-shadow: none;
}

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

.widget-row:hover {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.08);
    transform: none;
}

.widget-avatar img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 1.5px solid var(--accent-red);
    background: rgba(50, 50, 50, 0.50);
}

.widget-info {
    min-width: 0;
    flex: 1;
}

.widget-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.widget-callsign {
    color: #FFFFFF;
    font-size: 11px;
    font-weight: 700;
}

.widget-route {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #eeeeee;
    font-size: 9px;
    min-width: 0;
}

.widget-ac {
    margin-left: 2px;
    padding: 0;
    background: transparent;
    border-radius: 0;
    color: rgba(255, 255, 255, 0.75);
    font-size: 10px;
}

.widget-arrow {
    color: rgba(255, 255, 255, 0.72);
    font-size: 10px;
    opacity: 1;
}

.widget-network {
    padding: 0;
    background: transparent;
    border-radius: 0;
    font-size: 10px;
    font-weight: 900;
    text-shadow: 0 1px 3px #000000;
}

.widget-network.ivao {
    background: transparent;
    color: #7da9d6;
}

.widget-network.vatsim {
    background: transparent;
    color: #5fb4f1;
}

.widget-row.is-live {
    background: transparent !important;
    border-left: 0;
    box-shadow: none;
}

.widget-row.is-live .widget-callsign {
    color: #FFFFFF;
}

.live-tag {
    display: none;
}

.no-flights-mini {
    padding: 16px 0 4px;
    color: rgba(255, 255, 255, 0.70);
    text-align: center;
    font-size: 0.9rem;
}

.map-section,
.live-map-section {
    padding: 80px 60px;
    background: #080808;
    border-top: 0;
    text-align: center;
}

.map-title {
    margin-bottom: 30px;
    color: #FFFFFF;
    font-size: 24px;
    font-weight: 700;
    text-transform: uppercase;
}

.map-container-hero {
    width: 100%;
    height: 600px;
    background: #111111;
    border: 1px solid #333333;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: none;
}

.map-container-hero iframe {
    width: 100%;
    height: 100%;
    display: block;
}

/* ---- Footer ---- */
.kfy-footer {
    background: #CC0000;
    color: #FFFFFF;
    padding: 20px 48px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.kfy-footer__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

/* Social icons — esquerda */
.kfy-footer__social {
    display: flex;
    gap: 8px;
    align-items: center;
}

.kfy-footer__social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    color: #FFFFFF;
    font-size: 14px;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.2s ease;
}

.kfy-footer__social a:hover {
    background: rgba(255, 255, 255, 0.28);
    transform: translateY(-2px);
}

/* Centro — logo + copyright */
.kfy-footer__center {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-align: center;
}

.kfy-footer__logo {
    height: 28px;
    width: auto;
    filter: brightness(0) invert(1);
    opacity: 0.90;
}

.kfy-footer__copy {
    font-size: 0.74rem;
    color: rgba(255, 255, 255, 0.65);
    white-space: nowrap;
}

/* Redes — direita */
.kfy-footer__networks {
    display: flex;
    align-items: center;
    gap: 14px;
}

.kfy-footer__networks img {
    height: 22px;
    width: auto;
    filter: brightness(0) invert(1);
    opacity: 0.70;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.kfy-footer__networks img:hover {
    opacity: 1;
    transform: scale(1.08);
}

/* legacy */
.footer-networks { display: none; }
.footer-info     { display: none; }

.dropdown-content {
    background: rgba(5, 5, 5, 0.96);
    border-color: rgba(255, 255, 255, 0.12);
}

.dropdown-content::before {
    background: rgba(5, 5, 5, 0.96);
}

.dropdown-item:hover {
    color: #FFFFFF;
    background: rgba(160, 26, 22, 0.18);
}

.user-profile.btn {
    gap: 8px;
    padding: 6px 12px;
}

.user-avatar {
    width: 26px;
    height: 26px;
    border: 1.5px solid #FFFFFF;
}

body.home-page .modal-content {
    color: #0A0A0A;
}

body.home-page .modal-header h2,
body.home-page .form-group label,
body.home-page #step-email h3,
body.home-page #step-verify h3,
body.home-page #step-details h3 {
    color: #0A0A0A;
}

body.home-page .form-group input,
body.home-page .form-group select {
    color: #0A0A0A;
}

@keyframes kfyPulseOpacity {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.4;
    }
}

@media (max-width: 1180px) {
    .home-header {
        padding: 18px 28px;
    }

    .home-header .logo {
        left: 28px;
    }

    .auth-buttons {
        right: 28px;
    }

    .home-header nav ul {
        gap: 16px;
    }

    .hero-flights-widget,
    .live-flights-widget {
        right: 28px;
    }
}

@media (max-width: 992px) {
    .home-header {
        justify-content: space-between;
        height: 72px;
        padding: 14px 5%;
        background: rgba(5, 5, 5, 0.92);
    }

    .home-header .logo {
        position: static;
    }

    .home-header .logo img {
        height: 36px;
    }

    .menu-toggle {
        display: flex;
        order: 3;
    }

    .menu-toggle .bar {
        background: #FFFFFF;
    }

    .home-header nav {
        position: fixed;
        top: 72px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 72px);
        padding: 36px 5%;
        background: #050505;
        border-radius: 0;
        border: 0;
        transition: var(--transition);
    }

    .home-header nav.active {
        left: 0;
    }

    .home-header nav ul {
        flex-direction: column;
        gap: 24px;
    }

    .home-header nav a {
        font-size: 1.1rem;
    }

    .auth-buttons {
        position: static;
        margin-left: auto;
        margin-right: 16px;
    }

    .auth-buttons .btn-outline {
        display: none;
    }

    .hero {
        height: auto;
        min-height: 100vh;
        padding: 120px 5% 48px;
        justify-content: flex-end;
    }

    .hero-content {
        max-width: 100%;
        margin-bottom: 32px;
    }

    .hero h1 {
        white-space: normal;
    }

    .hero-flights-widget,
    .live-flights-widget {
        position: static;
        width: min(100%, 430px);
        margin: 0 auto;
        transform: none;
    }
}

@media (max-width: 768px) {
    .home-header {
        padding: 14px 18px;
    }

    .auth-buttons {
        gap: 8px;
        margin-right: 12px;
    }

    .auth-buttons .btn-red {
        padding: 8px 12px;
        font-size: 12px;
    }

    .hero {
        padding: 110px 18px 36px;
        background-position: center;
    }

    .hero p,
    .hero p.subtitle {
        font-size: 1rem;
    }

    .btn-hero {
        min-height: 48px;
        padding: 14px 24px;
        font-size: 16px;
    }

    .map-section,
    .live-map-section {
        padding: 56px 18px;
    }

    .map-title {
        font-size: 18px;
    }

    .map-container-hero {
        height: 480px;
        border-radius: 14px;
    }

    .kfy-footer {
        padding: 20px 18px;
    }

    .kfy-footer__inner {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 16px;
    }

    .kfy-footer__copy {
        white-space: normal;
    }

    .dropdown-content {
        background: rgba(255, 255, 255, 0.06);
    }
}

/* Toggle de visibilidade de senha */
.kfy-pwd-wrap { position: relative; }
.kfy-pwd-wrap input { padding-right: 42px !important; }
.kfy-pwd-toggle {
    position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
    background: none; border: none; cursor: pointer; color: #94a3b8;
    padding: 4px; line-height: 1; font-size: 1rem; transition: color 0.2s;
}
.kfy-pwd-toggle:hover { color: #475569; }
