/* Custom Styles for Space Vibe & Glassmorphism */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    overflow-x: hidden;
}

#stars-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    background: radial-gradient(circle at bottom, #0f172a 0%, #020617 100%);
}

.star {
    position: absolute;
    background-color: #ffffff;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

.glass-card {
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.text-glow {
    text-shadow: 0 0 25px rgba(56, 189, 248, 0.6);
}

.btn-glow {
    box-shadow: 0 0 15px rgba(6, 182, 212, 0.4);
    transition: all 0.3s ease;
}

.btn-glow:hover {
    box-shadow: 0 0 25px rgba(6, 182, 212, 0.8);
}

.shooting-star {
    position: absolute;
    height: 2px;
    background: linear-gradient(-45deg, #ffffff, rgba(255, 255, 255, 0));
    border-radius: 999px;
    filter: drop-shadow(0 0 6px #ffffff);
    transform-origin: left center;
    opacity: 0;
    /* Bắt đầu ẩn, JS sẽ xử lý */
}

.star-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Thêm transition để chuyển động mượt hơn một chút */
    transition: transform 0.1s linear;
}

.flip-container {
    perspective: 300px;
}

/* Custom Checkbox */
.cyber-checkbox {
    appearance: none;
    width: 1.25rem;
    height: 1.25rem;
    border: 2px solid #38bdf8;
    border-radius: 0.25rem;
    background-color: rgba(15, 23, 42, 0.5);
    display: inline-block;
    position: relative;
    cursor: pointer;
    flex-shrink: 0;
}

.cyber-checkbox:checked {
    background-color: #0284c7;
}

.cyber-checkbox:checked::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 1px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* Custom scrollbar hiding */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}

.no-scrollbar {
    -ms-overflow-style: none;
    /* IE and Edge */
    scrollbar-width: none;
    /* Firefox */
}

/* Responsive scaling for the boarding pass on mobile */
@media (max-width: 767px) {
    #boardingPass {
        width: 768px;
        /* Force desktop width */
        transform: scale(var(--ticket-scale, 0.5));
        transform-origin: top center;
    }
}