:root {
    --bg-dark: #64748b; /* Slate 500 outside app */
    --app-bg: #f8fafc; /* Slate 50 - Off-white per far risaltare le isolette bianche */
    --sidebar-bg: #ffffff; /* Sidebar bianca come le card */
    --card-bg: #ffffff; /* Sfondo delle card */
    --text-main: #0f172a; /* Slate 900 */
    --text-muted: #64748b; /* Slate 500 */
    --accent-blue: #3b82f6; /* Blue 500 */
    --accent-blue-light: #eff6ff; /* Blue 50 */
    --status-green: #10b981; /* Emerald 500 */
    --status-red: #ef4444; /* Red 500 */
    --border-color: #f1f5f9; /* Slate 100 */
    --font-main: 'Outfit', sans-serif;
}

[data-theme="dark"] {
    --bg-dark: #020617; /* Molto più scuro (Slate 950) per staccare dal contenuto */
    --app-bg: #0f172a;
    --sidebar-bg: #1e293b;
    --card-bg: #1e293b;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --accent-blue: #60a5fa;
    --accent-blue-light: rgba(59, 130, 246, 0.15);
    --border-color: #334155;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-dark);
    font-family: var(--font-main);
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.main-container {
    width: 100%;
    max-width: 1350px;
    padding: 2rem;
    height: 100%;
    max-height: 850px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.app-window {
    width: 100%;
    height: 100%;
    background: var(--app-bg);
    border-radius: 40px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
    display: flex;
    overflow: hidden;
    position: relative;
    animation: scaleIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.95) translateY(20px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

/* Sidebar */
.sidebar {
    width: 90px;
    background: var(--app-bg);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2.5rem 0;
    z-index: 10;
}

.logo {
    margin-bottom: 4rem;
    color: var(--accent-blue);
}

.logo i {
    width: 32px;
    height: 32px;
}

.side-nav {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    flex: 1;
}

.nav-item {
    color: var(--text-muted);
    text-decoration: none;
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 14px;
    transition: all 0.3s ease;
}

.nav-item:hover {
    color: var(--accent-blue);
    background: var(--accent-blue-light);
}

.nav-item.active {
    color: var(--accent-blue);
    background: var(--accent-blue-light);
    position: relative;
}

.nav-item.active::before {
    content: '';
    position: absolute;
    left: -20px;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 24px;
    background: var(--accent-blue);
    border-radius: 0 4px 4px 0;
}

/* Image Section */
.image-section {
    flex: 1.4;
    position: relative;
    border-radius: 40px;
    margin: 1rem 0;
    overflow: hidden;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.1);
    -webkit-mask-image: -webkit-radial-gradient(white, black); /* Fix webkit border-radius overflow */
}

.image-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: url('bg-plane.png');
    background-size: cover;
    background-position: center;
    z-index: -1;
}

.image-section.location::before {
    background-image: url('bg-location.png');
}

.image-section.menu::before {
    background-image: url('bg-menu.png');
}

.image-section.itinerary::before {
    background-image: url('bg-itinerary.png');
}

.image-section.faq-bg::before {
    background-image: url('bg-faq.png');
}

.image-section.extras-bg::before {
    background-image: url('bg-extras.png');
}

/* Content Section */
.content-section {
    flex: 1.1;
    background: var(--app-bg);
    padding: 3rem 4rem;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 10;
}

.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5rem;
}

.status-indicators {
    display: flex;
    gap: 1.5rem;
    color: var(--text-muted);
}

.status-indicators .lucide-volume-2, 
.status-indicators .lucide-volume-x,
.status-indicators i[data-lucide="volume-2"],
.status-indicators i[data-lucide="volume-x"],
.status-indicators .lucide-sun,
.status-indicators .lucide-moon,
.status-indicators i[data-lucide="sun"],
.status-indicators i[data-lucide="moon"] {
    cursor: pointer;
    transition: color 0.3s ease;
}

.status-indicators .lucide-volume-2:hover, 
.status-indicators .lucide-volume-x:hover,
.status-indicators .lucide-sun:hover,
.status-indicators .lucide-moon:hover,
.status-indicators .playing {
    color: var(--accent-blue);
}

.btn-assist {
    background: var(--accent-blue);
    color: white;
    border: none;
    padding: 12px 28px;
    border-radius: 30px;
    font-family: var(--font-main);
    font-weight: 600;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 14px rgba(59, 130, 246, 0.3);
}

.btn-assist:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

.btn-assist i {
    width: 18px;
    height: 18px;
}

.content-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    overflow-y: auto;
    padding-right: 15px;
    margin-right: -15px; /* Compensa il padding della scrollbar */
}

/* Stile barra di scorrimento (per mantenerla invisibile o elegante) */
.content-body::-webkit-scrollbar {
    width: 6px;
}
.content-body::-webkit-scrollbar-track {
    background: transparent;
}
.content-body::-webkit-scrollbar-thumb {
    background: #e2e8f0;
    border-radius: 10px;
}
.content-body::-webkit-scrollbar-thumb:hover {
    background: #cbd5e1;
}

/* Entry Animations (Staggered Fade Up) */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.content-body > * {
    opacity: 0;
    animation: fadeUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.content-body > *:nth-child(1) { animation-delay: 0.1s; }
.content-body > *:nth-child(2) { animation-delay: 0.2s; }
.content-body > *:nth-child(3) { animation-delay: 0.3s; }
.content-body > *:nth-child(4) { animation-delay: 0.4s; }
.content-body > *:nth-child(5) { animation-delay: 0.5s; }
.content-body > *:nth-child(6) { animation-delay: 0.6s; }

.main-title {
    font-size: 4.8rem;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.1;
    letter-spacing: -2px;
    margin-bottom: 1.5rem;
}

.subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 3.5rem;
    max-width: 80%;
    line-height: 1.6;
}

.highlight {
    font-weight: 600;
    color: var(--accent-blue);
}

/* Ticket Widget */
.ticket-widget {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 2rem 2.5rem;
    box-shadow: 0 10px 40px rgba(0,0,0,0.04);
    margin-bottom: 2rem;
}

.route {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2.5rem;
}

.city {
    display: flex;
    flex-direction: column;
}

.city.right {
    text-align: right;
}

.city-name {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 4px;
    font-weight: 500;
}

.city-code {
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--text-main);
    letter-spacing: -1px;
    line-height: 1;
}

.pnz-hover-target {
    position: relative;
    cursor: pointer;
    display: inline-block;
}

.metar-popup {
    position: absolute;
    bottom: 120%;
    left: -10px;
    transform: translateY(10px);
    background: var(--text-main);
    color: #ffffff;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    font-family: monospace;
    white-space: normal;
    max-width: 260px;
    line-height: 1.4;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    z-index: 100;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    letter-spacing: normal;
    word-wrap: break-word;
}

.pnz-hover-target.active .metar-popup {
    opacity: 1;
    transform: translateY(0);
}

.metar-popup::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 45px;
    transform: translateX(-50%);
    border-width: 6px;
    border-style: solid;
    border-color: var(--text-main) transparent transparent transparent;
}

.metar-popup.right-align {
    left: auto;
    right: -10px;
}

.metar-popup.right-align::after {
    left: auto;
    right: 45px;
    transform: translateX(50%);
}

.flight-path {
    flex: 1;
    margin: 0 2rem;
    position: relative;
    display: flex;
    align-items: center;
}

.flight-path .line {
    width: 100%;
    height: 2px;
    border-top: 2px dashed #cbd5e1;
}

.plane-icon {
    position: absolute;
    left: 0%;
    transform: translateX(-50%);
    color: var(--accent-blue);
    background: var(--card-bg);
    padding: 0 12px;
    width: 48px;
    height: 48px;
    opacity: 0;
    animation: flyToCenter 2.5s cubic-bezier(0.2, 1, 0.2, 1) forwards;
    animation-delay: 0.6s;
}

@keyframes flyToCenter {
    0% { left: 0%; opacity: 0; transform: translateX(-50%) rotate(0deg) scale(0.8); }
    20% { opacity: 1; transform: translateX(-50%) rotate(15deg) scale(1); }
    80% { left: 50%; transform: translateX(-50%) rotate(-5deg) scale(1.1); }
    100% { left: 50%; opacity: 1; transform: translateX(-50%) rotate(0deg) scale(1); }
}

.ticket-details {
    display: flex;
    justify-content: space-between;
    padding-top: 1.8rem;
    border-top: 1px dashed var(--border-color);
}

.detail-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.detail-item.center { text-align: center; }
.detail-item.right { text-align: right; }

.label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.value {
    font-size: 1.15rem;
    color: var(--text-main);
    font-weight: 600;
}

.status-green {
    color: var(--status-green);
    background: rgba(16, 185, 129, 0.1);
    padding: 4px 14px;
    border-radius: 12px;
    font-size: 0.95rem;
    transition: all 0.5s ease;
}

.status-red {
    color: var(--status-red);
    background: rgba(239, 68, 68, 0.1);
    padding: 4px 14px;
    border-radius: 12px;
    font-size: 0.95rem;
    transition: all 0.5s ease;
}

/* Bottom Widgets */
.bottom-widgets {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.weather-widget {
    flex: 1;
    min-width: 130px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 1rem 1.2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    box-shadow: 0 10px 40px rgba(0,0,0,0.04);
}

.temp {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1;
}

.weather-icon {
    color: #f59e0b;
    width: 36px;
    height: 36px;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
.spin {
    animation: spin 1s linear infinite;
}

@media (max-width: 1024px) {
    .content-section { padding: 2rem; }
    .main-title { font-size: 3.8rem; }
    .city-code { font-size: 2.2rem; }
}

/* Timeline Widget */
.timeline {
    position: relative;
    padding: 1rem 0 1rem 15px;
    margin-bottom: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 24px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border-color);
}

.timeline-item {
    position: relative;
    padding-left: 50px;
    margin-bottom: 2rem;
    opacity: 0;
    animation: fadeUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.timeline-item:nth-child(1) { animation-delay: 0.4s; }
.timeline-item:nth-child(2) { animation-delay: 0.6s; }
.timeline-item:nth-child(3) { animation-delay: 0.8s; }
.timeline-item:nth-child(4) { animation-delay: 1.0s; }

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: 4px;
    top: 2px;
    width: 14px;
    height: 14px;
    background: var(--card-bg);
    border: 3px solid var(--accent-blue);
    border-radius: 50%;
    z-index: 2;
}

.timeline-time {
    font-family: var(--font-main);
    font-weight: 700;
    color: var(--accent-blue);
    font-size: 1.1rem;
    margin-bottom: 5px;
    display: block;
}

.timeline-content {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.2rem 1.5rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.02);
}

.timeline-title {
    font-size: 1.1rem;
    color: var(--text-main);
    margin-bottom: 4px;
    font-weight: 600;
}

.timeline-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.4;
}

.map-link {
    display: inline-flex;
    align-items: flex-start;
    gap: 6px;
    color: var(--accent-blue);
    text-decoration: none;
    font-weight: 500;
    margin-top: 6px;
    transition: color 0.2s;
}

.map-link:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

.map-link i {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    margin-top: 2px;
}

/* Menu Widget */
.menu-widget {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: 0 10px 40px rgba(0,0,0,0.02);
    margin-bottom: 2rem;
}

.menu-category {
    margin-bottom: 2rem;
    opacity: 0;
    animation: fadeUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.menu-category:nth-child(1) { animation-delay: 0.4s; }
.menu-category:nth-child(2) { animation-delay: 0.5s; }
.menu-category:nth-child(3) { animation-delay: 0.6s; }
.menu-category:nth-child(4) { animation-delay: 0.7s; }
.menu-category:nth-child(5) { animation-delay: 0.8s; }
.menu-category:nth-child(6) { animation-delay: 0.9s; }

.menu-category:last-child {
    margin-bottom: 0;
}

.category-title {
    font-size: 1.2rem;
    color: var(--accent-blue);
    margin-bottom: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-bottom: 1px dashed var(--border-color);
    padding-bottom: 0.5rem;
}

.menu-list {
    list-style: none;
    padding: 0;
}

.menu-list li {
    color: var(--text-main);
    font-size: 1.1rem;
    padding: 8px 0;
    border-bottom: 1px solid rgba(241, 245, 249, 0.5); /* Slate 100 with opacity */
}

.menu-list li:last-child {
    border-bottom: none;
}

/* FAQ Section */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding-bottom: 2rem;
}

.faq-item {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 1.5rem 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.02);
    opacity: 0;
    animation: fadeUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.faq-item:nth-child(1) { animation-delay: 0.2s; }
.faq-item:nth-child(2) { animation-delay: 0.3s; }
.faq-item:nth-child(3) { animation-delay: 0.4s; }

.faq-question {
    font-size: 1.15rem;
    color: var(--text-main);
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}

.faq-question i {
    color: var(--accent-blue);
    width: 20px;
    height: 20px;
}

.faq-answer {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.5;
    padding-left: 30px;
}

/* Modal Intolleranze */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background: var(--app-bg);
    width: 90%;
    max-width: 500px;
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

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

.modal-header h2 {
    font-size: 1.4rem;
    color: var(--text-main);
}

.close-modal {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    transition: color 0.2s;
    display: flex;
}

.close-modal:hover {
    color: var(--text-main);
}

.form-group {
    margin-bottom: 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-main);
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    font-family: var(--font-main);
    font-size: 1rem;
    outline: none;
    transition: border-color 0.2s;
    background: var(--sidebar-bg);
}

.form-group input:focus, .form-group textarea:focus {
    border-color: var(--accent-blue);
}

/* Extras Grid / Entertainment */
.extras-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    padding-bottom: 2rem;
}

.extra-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.02);
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    color: var(--text-main);
    opacity: 0;
    animation: fadeUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.extra-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.05);
    border-color: var(--accent-blue);
    color: var(--accent-blue);
}

.extra-card i {
    width: 32px;
    height: 32px;
    color: var(--accent-blue);
    transition: transform 0.3s ease;
}

.extra-card:hover i {
    transform: scale(1.1);
}

.extra-title {
    font-size: 1.1rem;
    font-weight: 600;
}

@media (max-width: 480px) {
    .extras-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    body { 
        padding: 0; 
        background: var(--app-bg);
        height: auto;
        min-height: 100vh;
        overflow-y: visible;
        overflow-x: hidden;
        display: block;
    }
    
    .main-container { 
        padding: 0; 
        height: auto;
        max-height: none;
        display: block;
        overflow-x: hidden;
    }
    
    .app-window {
        flex-direction: column;
        height: auto;
        min-height: 100vh;
        border-radius: 0;
        box-shadow: none;
        overflow: visible;
    }

    .sidebar {
        width: 100%;
        flex-direction: row;
        padding: 0.8rem 1rem;
        padding-bottom: calc(0.8rem + env(safe-area-inset-bottom, 0px));
        height: auto;
        position: fixed;
        bottom: 0;
        left: 0;
        z-index: 1000;
        border-right: none;
        border-top: 1px solid var(--border-color);
        justify-content: space-around;
        background: color-mix(in srgb, var(--sidebar-bg) 95%, transparent);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
    }

    .logo { display: none; }
    
    .side-nav {
        flex-direction: row;
        width: 100%;
        justify-content: space-around;
        gap: 0;
    }

    .nav-item {
        width: 46px;
        height: 46px;
    }

    .nav-item i {
        width: 22px;
        height: 22px;
    }

    .nav-item.active::before {
        left: 50%;
        top: auto;
        bottom: -10px;
        transform: translateX(-50%);
        width: 24px;
        height: 4px;
        border-radius: 4px 4px 0 0;
    }

    .image-section {
        height: 35vh;
        min-height: 250px;
        flex: none;
        margin: 0;
        border-radius: 0 0 35px 35px;
    }

    .content-section {
        padding: 1.5rem 1.2rem;
        padding-bottom: 100px;
        flex: 1;
    }

    .content-body {
        overflow-y: visible;
        padding-right: 0;
        margin-right: 0;
    }

    .top-bar {
        margin-bottom: 1.5rem;
    }

    .main-title { 
        font-size: 2.8rem; 
        line-height: 1.1;
    }
    
    .subtitle {
        font-size: 1rem;
    }

    .ticket-widget { 
        padding: 1.5rem 1.2rem; 
        border-radius: 20px;
    }
    
    .route {
        gap: 0.5rem;
    }

    .city-name {
        font-size: 0.85rem;
    }

    .city-code {
        font-size: 2rem;
    }

    .flight-path { 
        margin: 0 0.5rem; 
    }
    
    .plane-icon {
        width: 26px;
        height: 26px;
        padding: 0 6px;
    }

    /* Pagine specifiche */
    .menu-widget {
        padding: 1.5rem;
        border-radius: 20px;
    }
    
    .menu-category {
        margin-bottom: 1.5rem;
    }
    
    .category-title {
        font-size: 1.1rem;
    }

    .timeline {
        padding-left: 5px;
    }
    
    .timeline::before {
        left: 14px;
    }
    
    .timeline-dot {
        left: 4px;
    }
    
    .timeline-item {
        padding-left: 40px;
    }
    
    .timeline-content {
        padding: 1rem 1.2rem;
    }

    /* Modal Intolleranze */
    .modal-content {
        width: 92%;
        padding: 1.5rem;
        border-radius: 20px;
    }
}

@media (max-width: 400px) {
    .main-title {
        font-size: 2.4rem;
    }
    .city-code {
        font-size: 1.6rem;
    }
    .ticket-footer {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
}

/* --- Airplane Seating Map Styles --- */
.seatmap-page {
    /* override some content body if needed */
}

.airplane-fuselage {
    background: #ffffff;
    border: 3px solid #cbd5e1;
    border-radius: 160px 160px 40px 40px;
    padding: 7rem 1.5rem 3rem 1.5rem;
    margin: 3rem auto;
    width: 100%;
    max-width: 320px;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
    position: relative;
    transition: background 0.3s, border-color 0.3s;
}

[data-theme="dark"] .airplane-fuselage {
    background: #1e293b;
    border-color: #475569;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Plane Nose and Cockpit Windows */
.plane-nose {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 120px;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    padding-bottom: 2rem;
    pointer-events: none;
}

.cockpit-windows {
    display: flex;
    gap: 6px;
}

.cockpit-window {
    width: 22px;
    height: 14px;
    background: #334155;
    transition: background 0.3s;
}

[data-theme="dark"] .cockpit-window {
    background: #94a3b8;
}

.cockpit-window.left {
    border-radius: 12px 3px 3px 3px;
    transform: skewY(-12deg);
}

.cockpit-window.right {
    border-radius: 3px 12px 3px 3px;
    transform: skewY(12deg);
}

/* Wings & Tail Stabilizers (SVG Shapes) */
.plane-wing {
    position: absolute;
    width: 140px;
    height: 80px;
    z-index: -1;
    fill: #ffffff;
    stroke: #cbd5e1;
    stroke-width: 3;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.02));
    transition: all 0.3s ease;
}

[data-theme="dark"] .plane-wing {
    fill: #1e293b;
    stroke: #475569;
}

.plane-wing.left {
    top: 50%;
    right: 99%;
}

.plane-wing.right {
    top: 50%;
    left: 99%;
    transform: scaleX(-1);
}

.plane-tail {
    position: absolute;
    width: 60px;
    height: 40px;
    z-index: -1;
    fill: #ffffff;
    stroke: #cbd5e1;
    stroke-width: 3;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.02));
    transition: all 0.3s ease;
}

[data-theme="dark"] .plane-tail {
    fill: #1e293b;
    stroke: #475569;
}

.plane-tail.left {
    bottom: 5%;
    right: 99%;
}

.plane-tail.right {
    bottom: 5%;
    left: 99%;
    transform: scaleX(-1);
}

.tail {
    margin: 1.5rem 0 0.5rem 0;
    opacity: 0.4;
}

/* Emergency Exit Door Markers */
.exit-door {
    position: absolute;
    color: #ef4444;
    opacity: 0.8;
    display: flex;
    align-items: center;
    pointer-events: none;
    transition: opacity 0.3s;
}

.exit-door i, .exit-door svg {
    width: 16px;
    height: 16px;
}

.exit-door.left {
    right: 102%;
}

.exit-door.right {
    left: 102%;
}

.top-exit {
    top: 135px;
}


.cabin-class-indicator {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent-blue);
    margin: 1.5rem 0 1rem;
    font-weight: 600;
    border-bottom: 1px solid rgba(59, 130, 246, 0.2);
    padding-bottom: 5px;
    width: 80%;
    text-align: center;
}

.seat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-bottom: 0.8rem;
    animation: fadeInRow 0.5s ease backwards;
}

@keyframes fadeInRow {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.seat {
    width: 50px;
    height: 55px;
    border-radius: 8px 8px 12px 12px;
    background: white;
    border: 2px solid #cbd5e1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    cursor: default;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.seat.taken {
    background: #eff6ff;
    border-color: #93c5fd;
    color: var(--accent-blue);
}

.seat.taken:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(59, 130, 246, 0.15);
    background: #dbeafe;
}

.seat.empty {
    visibility: hidden;
}

.seat.sposi {
    background: linear-gradient(135deg, #bfdbfe 0%, #93c5fd 100%);
    border-color: var(--accent-blue);
    color: white;
}

.seat.sposi .seat-icon {
    color: white;
}

.seat-number {
    font-size: 0.7rem;
    font-weight: 700;
    margin-bottom: 2px;
}

.seat-icon {
    width: 16px;
    height: 16px;
    opacity: 0.8;
}

.aisle {
    width: 40px;
    height: 55px;
    background: transparent;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

/* Tooltip on Hover */
.seat.tooltip::after {
    content: attr(data-name);
    position: absolute;
    bottom: 110%;
    left: 50%;
    transform: translateX(-50%) translateY(5px);
    background: var(--text-main);
    color: white;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    z-index: 20;
    pointer-events: none;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.seat.tooltip::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 6px;
    border-style: solid;
    border-color: var(--text-main) transparent transparent transparent;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    z-index: 20;
}

.seat.tooltip:hover::after,
.seat.tooltip:hover::before,
.seat.tooltip.active::after,
.seat.tooltip.active::before {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* Turbulence Easter Egg */
@keyframes turbulence-shake {
    0% { transform: translate(1px, 1px) rotate(0deg); }
    10% { transform: translate(-1px, -2px) rotate(-1deg); }
    20% { transform: translate(-3px, 0px) rotate(1deg); }
    30% { transform: translate(0px, 2px) rotate(0deg); }
    40% { transform: translate(1px, -1px) rotate(1deg); }
    50% { transform: translate(-1px, 2px) rotate(-1deg); }
    60% { transform: translate(-3px, 1px) rotate(0deg); }
    70% { transform: translate(2px, 1px) rotate(-1deg); }
    80% { transform: translate(-1px, -1px) rotate(1deg); }
    90% { transform: translate(2px, 2px) rotate(0deg); }
    100% { transform: translate(1px, -2px) rotate(-1deg); }
}

.turbulence-active .app-window {
    animation: turbulence-shake 0.15s infinite;
}

.turbulence-banner {
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 600px;
    background: rgba(239, 68, 68, 0.95);
    backdrop-filter: blur(12px);
    color: white;
    padding: 14px 20px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    box-shadow: 0 10px 30px rgba(239, 68, 68, 0.3);
    z-index: 9999;
    transition: top 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

[data-theme="dark"] .turbulence-banner {
    background: rgba(249, 115, 22, 0.95);
    box-shadow: 0 10px 30px rgba(249, 115, 22, 0.3);
}

.turbulence-banner.show {
    top: 20px;
}

.turbulence-banner-content {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
    font-weight: 600;
}

.turbulence-banner-close {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.turbulence-banner-close:hover {
    opacity: 1;
}

.spin-slow {
    animation: spin 3s linear infinite;
}
