: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: -20px;
    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-row.kfy-pilot-link {
    cursor: pointer;
}

.widget-row.kfy-pilot-link:hover {
    background: rgba(160, 26, 22, 0.12);
    border-color: rgba(160, 26, 22, 0.4);
    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;
    align-items: center;
    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-pilot-name {
    flex: 1;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.38);
    font-weight: 400;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 0 5px;
}

.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;
}

/* Painel de stats inline do widget */
.widget-stats-panel {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-top: none;
    border-radius: 0 0 14px 14px;
    padding: 10px 10px 12px;
    margin-top: -6px;
    margin-bottom: 4px;
    animation: wstatsFadeIn 0.22s ease;
    overflow: hidden;
}

@keyframes wstatsFadeIn {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
}

.widget-stats-panel .wsp-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5px;
    margin-bottom: 8px;
}

.widget-stats-panel .wsp-cell {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 10px;
    padding: 8px 10px 7px;
    position: relative;
    overflow: hidden;
}

.widget-stats-panel .wsp-cell-icon {
    position: absolute;
    top: 7px;
    right: 8px;
    font-size: 0.9rem;
    opacity: 0.25;
}

.widget-stats-panel .wsp-label {
    font-size: 0.55rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255,255,255,0.42);
    font-weight: 800;
    margin-bottom: 3px;
    display: block;
}

.widget-stats-panel .wsp-value {
    font-size: 1.05rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}

.widget-stats-panel .wsp-chart-wrap {
    margin-bottom: 8px;
}

.widget-stats-panel .wsp-chart-label {
    font-size: 0.55rem;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: rgba(255,255,255,0.35);
    font-weight: 700;
    margin-bottom: 4px;
}

.widget-stats-panel .wsp-link {
    display: block;
    text-align: center;
    font-size: 0.7rem;
    font-weight: 700;
    color: rgba(220, 100, 100, 0.85);
    text-decoration: none;
    letter-spacing: 0.04em;
}

.widget-stats-panel .wsp-link:hover { color: #e06060; }

.widget-row.kfy-pilot-link.is-open {
    border-radius: 12px 12px 0 0;
    border-bottom-color: transparent;
}

.widget-stats-panel .wsp-loading {
    text-align: center;
    font-size: 0.72rem;
    color: rgba(255,255,255,0.3);
    padding: 12px 0;
}

/* 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;
    align-items: center;
    gap: 5px;
    background: #00d4ff;
    color: #000;
    font-size: 0.6rem;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-left: 6px;
    vertical-align: middle;
}

.live-tag::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    background: #ef4444;
    border-radius: 50%;
    animation: livepulse 1.2s infinite;
    flex-shrink: 0;
}

.widget-row.is-live .live-tag {
    display: inline-flex;
}

@keyframes livepulse {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.2; }
}

/* Linhas extras (6–15) ocultas por padrão */
.widget-list:not(.is-expanded) .widget-row:nth-child(n+6) {
    display: none;
}

@keyframes kfyWidgetFadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to   { opacity: 1; transform: translateY(0); }
}

.widget-list.is-expanded .widget-row:nth-child(n+6) {
    animation: kfyWidgetFadeIn 0.22s ease both;
}

.widget-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 100%;
    margin-top: 10px;
    padding: 6px 0 2px;
    background: none;
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    color: rgba(255, 255, 255, 0.35);
    font-size: 0.68rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    cursor: pointer;
    transition: color 0.2s;
    font-family: 'Inter', sans-serif;
}

.widget-toggle:hover {
    color: rgba(255, 255, 255, 0.7);
}

.widget-toggle i {
    font-size: 0.6rem;
    transition: transform 0.25s ease;
}

.widget-toggle.is-expanded i {
    transform: rotate(180deg);
}

@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;
}

.kfy-field-error {
    display: none;
    color: #cc0000;
    font-size: 0.8rem;
    margin-top: 0.3rem;
}

.kfy-field-error.visible {
    display: block;
}

.form-group input.kfy-input-invalid {
    border-color: #cc0000;
    outline: none;
    box-shadow: 0 0 0 2px rgba(204,0,0,0.15);
}

.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: 88px;
    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;
}

/* Wrapper posicionado — sem fundo próprio */
.hero-avisos-list {
    position: absolute;
    left: 60px;
    bottom: 48px;
    display: flex;
    flex-direction: row;
    gap: 10px;
    align-items: flex-end;
    z-index: 6;
}
/* Cada aviso é seu próprio widget */
.hero-aviso-card {
    width: 180px;
    min-height: 115px;
    flex-shrink: 0;
    background: var(--kfy-panel);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-left: 3px solid rgba(255,255,255,0.16);
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(12px);
    padding: 12px;
    text-align: left;
    text-decoration: none;
    display: block;
}
.hero-aviso-card--info    { border-left-color: rgba(34,211,238,.5); }
.hero-aviso-card--aviso   { border-left-color: rgba(234,179,8,.5);  }
.hero-aviso-card--urgente { border-left-color: rgba(248,113,113,.6);}
/* Cards de texto/iframe: tamanho fixo com expansão proporcional ao clicar */
.hero-aviso-card--texto,
.hero-aviso-card--iframe {
    max-height: 115px;
    overflow: hidden;
    cursor: pointer;
    position: relative;
    transition: max-height 0.35s ease, width 0.35s ease, box-shadow 0.2s;
}
/* Fade indicando conteúdo oculto */
.hero-aviso-card--texto:not(.kfy-expanded)::after,
.hero-aviso-card--iframe:not(.kfy-expanded)::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 32px;
    background: linear-gradient(transparent, var(--kfy-panel));
    pointer-events: none;
}
/* Estado expandido: cresce em largura e altura juntos */
.hero-aviso-card--texto.kfy-expanded,
.hero-aviso-card--iframe.kfy-expanded {
    width: 290px;
    max-height: 70vh;
    overflow-y: auto;
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.80);
}
/* Card de imagem: sem padding, imagem preenche */
.hero-aviso-card--img {
    padding: 0;
    overflow: hidden;
    cursor: default;
}
.hero-aviso-card--img img {
    width: 100%;
    height: 115px;
    object-fit: cover;
    border-radius: 12px;
    display: block;
    transition: transform 0.3s ease;
}
a.hero-aviso-card--img { cursor: pointer; }
a.hero-aviso-card--img:hover img { transform: scale(1.04); }
/* Conteúdo interno dos cards de texto/iframe */
.hero-aviso-card__icon   { font-size: 0.85rem; margin-bottom: 5px; line-height: 1; }
.hero-aviso-card__titulo {
    font-size: 0.78rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.3;
    margin-bottom: 8px;
}
.hero-aviso-card__texto {
    font-size: 0.76rem;
    color: rgba(255,255,255,0.78);
    line-height: 1.4;
    white-space: pre-wrap;
}
.aviso-item {
    display: flex;
    gap: 9px;
    align-items: flex-start;
    padding: 9px 10px;
    border-radius: 8px;
    border: 1px solid transparent;
    margin-bottom: 7px;
    transition: background 0.15s;
}
.aviso-item:last-child { margin-bottom: 0; }
.aviso-item--info    { background: rgba(34,211,238,.06);  border-color: rgba(34,211,238,.18); }
.aviso-item--aviso   { background: rgba(234,179,8,.07);   border-color: rgba(234,179,8,.22);  }
.aviso-item--urgente { background: rgba(248,113,113,.07); border-color: rgba(248,113,113,.25);}
.aviso-item__icon { font-size: 0.85rem; flex-shrink: 0; margin-top: 1px; }
.aviso-item__titulo {
    font-size: 0.78rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.3;
    margin-bottom: 2px;
}
.aviso-item__texto {
    font-size: 0.7rem;
    color: rgba(255,255,255,0.5);
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Card de imagem no widget de avisos */
.aviso-img-card {
    display: block;
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    text-decoration: none;
    cursor: default;
    background: #111;
    line-height: 0;
}
a.aviso-img-card { cursor: pointer; }
a.aviso-img-card:hover img { transform: scale(1.04); }
.aviso-img-card img {
    width: 100%;
    display: block;
    height: 150px;
    object-fit: cover;
    transition: transform 0.35s ease;
}
.aviso-img-card__overlay {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.72));
    padding: 24px 12px 10px;
    line-height: 1.3;
}
.aviso-img-card__overlay span {
    color: #fff;
    font-size: 0.78rem;
    font-weight: 700;
    text-shadow: 0 1px 4px rgba(0,0,0,.6);
}

.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-pilot-name {
    flex: 1;
    font-size: 9px;
    color: rgba(255, 255, 255, 0.38);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 0 3px;
}

.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;
}

.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;
    }
    .hero-avisos-list {
        left: 28px;
        bottom: 40px;
    }
    .hero-aviso-card {
        width: 155px;
    }
}

@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;
    }
    .hero-avisos-list {
        display: 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; }

/* =============================================
   Widget de Suporte Flutuante
   ============================================= */
.kfy-support-widget {
    position: fixed;
    bottom: 90px;
    right: 28px;
    z-index: 9990;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
}
.kfy-sw-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #8B0000 0%, #A01A16 60%, #c0392b 100%);
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(160,26,22,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.35rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    flex-shrink: 0;
}
.kfy-sw-btn:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 28px rgba(160,26,22,0.6);
}
.kfy-sw-panel {
    display: none;
    flex-direction: column;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.22), 0 4px 16px rgba(0,0,0,0.10);
    width: 340px;
    max-height: 82vh;
    overflow: hidden;
    transform-origin: bottom right;
}
.kfy-sw-panel.open {
    display: flex;
    animation: kfySwIn 0.22s ease;
}
@keyframes kfySwIn {
    from { opacity: 0; transform: scale(0.92) translateY(10px); }
    to   { opacity: 1; transform: scale(1)    translateY(0); }
}
.kfy-sw-head {
    background: linear-gradient(135deg, #0A192F 0%, #A01A16 100%);
    padding: 16px 18px 14px;
    display: flex;
    align-items: center;
    gap: 11px;
    flex-shrink: 0;
}
.kfy-sw-head img { height: 30px; }
.kfy-sw-head-title { color: #fff; font-size: 0.95rem; font-weight: 800; }
.kfy-sw-head-sub   { color: rgba(255,255,255,0.65); font-size: 0.72rem; margin-top: 1px; }
.kfy-sw-close {
    margin-left: auto;
    background: none;
    border: none;
    color: rgba(255,255,255,0.65);
    font-size: 22px;
    cursor: pointer;
    line-height: 1;
    padding: 0 0 0 8px;
    flex-shrink: 0;
    transition: color 0.15s;
}
.kfy-sw-close:hover { color: #fff; }
.kfy-sw-body {
    padding: 18px 18px 16px;
    overflow-y: auto;
    flex: 1;
}
.kfy-sw-greeting {
    font-size: 0.85rem;
    color: #475569;
    margin: 0 0 14px;
    line-height: 1.5;
}
/* Ações rápidas (logado) */
.kfy-sw-action {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 14px;
    border-radius: 10px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    text-decoration: none;
    color: #1e293b;
    margin-bottom: 9px;
    transition: background 0.15s, border-color 0.15s;
}
.kfy-sw-action:hover { background: #fef2f2; border-color: #A01A16; }
.kfy-sw-action:hover .kfy-sw-action-title { color: #A01A16; }
.kfy-sw-action-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: #A01A16;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    flex-shrink: 0;
}
.kfy-sw-action-title { font-size: 0.87rem; font-weight: 700; color: #1e293b; }
.kfy-sw-action-sub   { font-size: 0.74rem; color: #94a3b8; margin-top: 1px; }
.kfy-sw-action-arr   { margin-left: auto; color: #cbd5e1; font-size: 0.75rem; flex-shrink: 0; }
/* Formulário (não logado) */
.kfy-sw-field { margin-bottom: 10px; }
.kfy-sw-alert {
    border-radius: 7px;
    padding: 9px 12px;
    font-size: 0.82rem;
    margin-bottom: 12px;
}
.kfy-sw-alert--ok  { background: #f0fdf4; border: 1px solid #bbf7d0; color: #166534; }
.kfy-sw-alert--err { background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; }
.kfy-sw-submit {
    width: 100%;
    padding: 10px;
    background: linear-gradient(135deg, #A01A16, #c0392b);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    transition: opacity 0.2s;
    margin-top: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
}
.kfy-sw-submit:hover    { opacity: 0.9; }
.kfy-sw-submit:disabled { opacity: 0.65; cursor: not-allowed; }
.kfy-sw-footer-note { text-align: center; font-size: 0.76rem; color: #94a3b8; margin: 12px 0 0; }
/* Linha inferior: bolha + botão lado a lado */
.kfy-sw-row {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: flex-end;
}
/* Bolha "Precisa de ajuda?" */
.kfy-sw-bubble {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.14);
    padding: 9px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.87rem;
    font-weight: 600;
    color: #1e293b;
    white-space: nowrap;
    position: relative;
    opacity: 0;
    transform: translateX(8px);
    transition: opacity 0.35s ease, transform 0.35s ease;
    pointer-events: none;
}
.kfy-sw-bubble.visible {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}
/* Setinha apontando para o botão */
.kfy-sw-bubble::after {
    content: '';
    position: absolute;
    right: -7px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    border-left: 7px solid #fff;
}
.kfy-sw-bubble-close {
    background: none;
    border: none;
    cursor: pointer;
    color: #94a3b8;
    font-size: 17px;
    line-height: 1;
    padding: 0;
    flex-shrink: 0;
    transition: color 0.15s;
}
.kfy-sw-bubble-close:hover { color: #475569; }
@media (max-width: 480px) {
    .kfy-support-widget { bottom: 80px; right: 14px; }
    .kfy-sw-panel { width: calc(100vw - 28px); }
    .kfy-sw-bubble { display: none; }
}

/* ============================================
   Redesign Modal de Cadastro (#registroModal)
   ============================================ */

#registroModal .modal-content {
    padding: 0;
    border-radius: 16px;
    overflow: hidden;
    max-width: 520px;
    box-shadow: 0 24px 64px rgba(0,0,0,0.45);
}

#registroModal .modal-header {
    background: #0A0A0A;
    border-bottom: 3px solid #A01A16;
    padding: 1.25rem 1.5rem;
    margin-bottom: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.kfy-modal-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.kfy-modal-icon {
    width: 36px;
    height: 36px;
    background: #A01A16;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 0.95rem;
    flex-shrink: 0;
}

#registroModal .modal-header h2 {
    color: #ffffff !important;
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

#registroModal .close-btn {
    color: rgba(255,255,255,0.45);
    font-size: 24px;
    line-height: 1;
}

#registroModal .close-btn:hover {
    color: #ffffff;
}

/* Barra de progresso de etapas */
.kfy-steps-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    padding: 0.9rem 1.5rem;
    background: #f7f7f7;
    border-bottom: 1px solid #ebebeb;
}

.kfy-step {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: #bbb;
    transition: color 0.3s;
}

.kfy-step-num {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #e0e0e0;
    color: #aaa;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    font-weight: 700;
    transition: background 0.3s, color 0.3s;
    flex-shrink: 0;
}

.kfy-step-label {
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.kfy-step.active {
    color: #A01A16;
}

.kfy-step.active .kfy-step-num {
    background: #A01A16;
    color: #fff;
}

.kfy-step.done {
    color: #16a34a;
}

.kfy-step.done .kfy-step-num {
    background: #16a34a;
    color: #fff;
}

.kfy-step-line {
    width: 44px;
    height: 2px;
    background: #e0e0e0;
    margin: 0 0.35rem;
    flex-shrink: 0;
    transition: background 0.3s;
}

.kfy-step-line.done {
    background: #16a34a;
}

/* Corpo das etapas */
#registroModal .form-step.kfy-step-body {
    padding: 1.75rem 1.75rem 0.5rem;
}

.kfy-step-icon {
    width: 52px;
    height: 52px;
    background: #fff5f5;
    border: 2px solid #fcd5d4;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: #A01A16;
    margin: 0 auto 1.1rem;
}

#registroModal .form-step h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #111 !important;
    margin-bottom: 0.5rem;
    text-align: center;
}

.kfy-step-desc {
    color: #666;
    font-size: 0.88rem;
    text-align: center;
    margin-bottom: 1.25rem;
    line-height: 1.5;
}

.kfy-spam-notice {
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 8px;
    padding: 0.65rem 0.9rem;
    font-size: 0.82rem;
    color: #92400e;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.kfy-spam-notice i {
    color: #d97706;
    flex-shrink: 0;
}

.kfy-resend-txt {
    margin-top: 1rem;
    font-size: 0.85rem;
    color: #888;
    text-align: center;
}

.kfy-resend-txt a {
    color: #A01A16;
    font-weight: 600;
    text-decoration: none;
}

.kfy-resend-txt a:hover {
    text-decoration: underline;
}

/* Input de código de verificação */
.kfy-code-input {
    text-align: center !important;
    font-size: 2rem !important;
    letter-spacing: 12px !important;
    font-weight: 700 !important;
    font-family: monospace !important;
}

/* Labels modernos */
#registroModal .form-group label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #555 !important;
    margin-bottom: 0.4rem;
}

/* Inputs modernos */
#registroModal .form-group input,
#registroModal .form-group select {
    border: 1.5px solid #e2e2e2;
    border-radius: 8px;
    padding: 0.75rem 0.9rem;
    font-size: 0.95rem;
    background: #fafafa;
    color: #111;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
    box-sizing: border-box;
}

#registroModal .form-group input:focus,
#registroModal .form-group select:focus {
    border-color: #A01A16;
    box-shadow: 0 0 0 3px rgba(160,26,22,0.1);
    background: #fff;
    outline: none;
}

#registroModal .form-group input::placeholder {
    color: #c0c0c0;
    font-size: 0.9rem;
}

#registroModal .form-group input.kfy-input-invalid {
    border-color: #dc2626;
    box-shadow: 0 0 0 3px rgba(220,38,38,0.1);
}

/* Input de arquivo customizado */
#registroModal #foto {
    background: #f5f5f5;
    border: 1.5px dashed #d0d0d0 !important;
    cursor: pointer;
    color: #777;
    font-size: 0.85rem;
}

#registroModal #foto:hover {
    border-color: #A01A16 !important;
    background: #fff5f5;
}

/* Botão submit */
#registroModal button[type="submit"].btn-primary {
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 700;
    padding: 0.85rem;
    letter-spacing: 0.03em;
    margin-top: 0.5rem;
    margin-bottom: 1rem;
}

/* Botões de etapa (Enviar Código, Validar Código) */
#registroModal #btnSendEmail,
#registroModal #btnVerificar {
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 700;
    padding: 0.85rem;
    margin-bottom: 0.5rem;
}

/* Mensagem de erro */
#registroModal #mensagemErro {
    background: #fff5f5;
    border: 1px solid #fca5a5;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-size: 0.88rem;
    margin: 0 1.75rem 1.25rem;
    font-weight: 600;
}

/* Mensagem de sucesso */
#registroModal #mensagemSucesso {
    padding: 2.5rem 1.75rem;
}

/* Captcha */
#registroModal .captcha-container {
    background: #f8f8f8;
    border-radius: 8px;
    padding: 0.75rem;
    gap: 0.75rem;
}

#registroModal .captcha-image {
    border-radius: 6px;
}

/* Divisor visual entre seções do step 3 */
#registroModal .kfy-form-divider {
    border: none;
    border-top: 1px solid #efefef;
    margin: 0.75rem 0 1.25rem;
}
