/* --- EASTER EGG: HELI --- */
#patrol-heli-container {
    position: fixed;
    top: 25%;
    left: -400px;
    z-index: 99999;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
}

.heli-body {
    font-size: 160px;
    color: #ff5500;
    filter: drop-shadow(0 0 40px rgba(255, 85, 0, 0.8));
}

.fly-by {
    animation: heliFly 6.5s ease-in-out forwards;
    opacity: 1 !important;
    visibility: visible !important;
}

@keyframes heliFly {
    0% { left: -400px; transform: scale(0.6) rotate(10deg); }
    50% { transform: scale(1.1) rotate(5deg); top: 18%; }
    100% { left: 120vw; transform: scale(0.7) rotate(15deg); top: 30%; }
}

/* ==========================================================================
   ELEGANT MODERN WELCOME NOTIFICATION (CYBER FLOATING TOAST)
   ========================================================================== */
.welcome-notification-overlay {
    position: fixed;
    bottom: 28px;
    right: 28px;
    left: auto;
    top: auto;
    inset: auto;
    z-index: 10000;
    pointer-events: none;
    display: block !important;
    opacity: 0;
    visibility: hidden;
    transform: translateY(30px) scale(0.96);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.welcome-notification-overlay.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.welcome-notification {
    background: linear-gradient(135deg, rgba(16, 14, 24, 0.94) 0%, rgba(10, 10, 16, 0.98) 100%);
    border: 1px solid rgba(249, 115, 22, 0.45);
    border-radius: var(--radius-lg);
    padding: 24px 26px;
    max-width: 420px;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.85), 0 0 40px rgba(249, 115, 22, 0.2);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.welcome-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 12px;
}

.welcome-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    background: rgba(249, 115, 22, 0.12);
    border: 1px solid var(--border-accent);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
    box-shadow: 0 0 15px var(--accent-glow);
}

.welcome-title-wrap {
    display: flex;
    flex-direction: column;
}

.welcome-badge {
    font-family: var(--font-mono);
    font-size: 9.5px;
    font-weight: 800;
    color: var(--accent);
    letter-spacing: 1.5px;
}

.welcome-content h2 {
    font-family: var(--font-display);
    font-size: 15.5px;
    font-weight: 800;
    letter-spacing: 0.2px;
    color: #fff;
    margin-top: 2px;
}

.welcome-text {
    font-size: 13.5px;
    color: var(--text-secondary);
    line-height: 1.55;
    margin-bottom: 8px;
}

.welcome-subtext {
    font-size: 12.5px;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 18px;
}

.welcome-footer {
    display: flex;
    align-items: center;
}

.welcome-discord-btn {
    font-family: var(--font-display);
    font-size: 11.5px;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(135deg, #5865F2, #4752C4);
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 6px 20px rgba(88, 101, 242, 0.4);
    transition: all 0.2s ease;
}

.welcome-discord-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(88, 101, 242, 0.6);
}

.welcome-close-btn {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-light);
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    transition: all 0.2s ease;
}

.welcome-close-btn:hover {
    background: var(--accent);
    color: #000;
    transform: rotate(90deg);
}

/* --- COMMUNITY OVERLAY (REGULAR MODAL) --- */
.community-overlay {
    position: fixed;
    inset: 0;
    background: rgba(3, 3, 5, 0.8);
    backdrop-filter: blur(14px);
    z-index: 20000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.community-overlay.active {
    display: flex;
    opacity: 1;
}

.community-banner {
    background: linear-gradient(135deg, rgba(20, 16, 26, 0.95) 0%, rgba(12, 12, 18, 0.98) 100%);
    border: 1px solid var(--border-accent);
    border-radius: var(--radius-xl);
    padding: 44px;
    width: 100%;
    max-width: 680px;
    position: relative;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.9), 0 0 50px rgba(249, 115, 22, 0.2);
    transform: scale(0.95);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.community-overlay.active .community-banner {
    transform: scale(1);
}

.community-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-light);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.community-close-btn:hover {
    background: var(--accent);
    color: #000;
    transform: rotate(90deg);
}

.community-header {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    margin-bottom: 28px;
}

.community-icon {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, #f97316, #5865F2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: #fff;
    flex-shrink: 0;
    box-shadow: 0 10px 30px var(--accent-glow);
}

.community-text h2 {
    font-family: var(--font-display);
    font-size: 26px;
    font-weight: 900;
    margin-bottom: 8px;
}

.community-stats {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.count-highlight {
    font-family: var(--font-mono);
    color: var(--accent);
    font-weight: 700;
    font-size: 18px;
}

.community-desc {
    font-size: 14.5px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.community-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding-top: 24px;
    border-top: 1px solid var(--border-subtle);
    margin-top: 20px;
}

.community-cta p:first-child {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 16px;
}

.community-subtext {
    font-size: 13px;
    color: var(--text-muted);
}

.community-discord-btn {
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(135deg, #5865F2, #4752C4);
    padding: 14px 28px;
    border-radius: var(--radius-md);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 10px 25px rgba(88, 101, 242, 0.4);
    white-space: nowrap;
    transition: all 0.25s ease;
}

.community-discord-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(88, 101, 242, 0.6);
}

/* --- MAINTENANCE BANNER --- */
.maintenance-overlay {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
}

.maintenance-box {
    background: #0d0d12;
    border: 1px solid #f59e0b;
    border-radius: var(--radius-xl);
    width: 90%;
    max-width: 520px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.9), 0 0 40px rgba(245, 158, 11, 0.2);
    text-align: center;
}

.maint-stripe-bar {
    height: 8px;
    background: repeating-linear-gradient(45deg, #f59e0b, #f59e0b 10px, #111 10px, #111 20px);
}

.maint-content {
    padding: 40px 32px;
}

.maint-icon {
    font-size: 48px;
    color: #f59e0b;
    margin-bottom: 20px;
}

.maintenance-box h2 {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 12px;
}

.maint-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 700;
    color: #f59e0b;
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
    padding: 6px 14px;
    border-radius: var(--radius-pill);
    margin-top: 20px;
}

.status-dot.blink {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #f59e0b;
    box-shadow: 0 0 8px #f59e0b;
    animation: blinkDot 1s infinite alternate;
}

@keyframes blinkDot {
    from { opacity: 0.3; }
    to { opacity: 1; }
}

.maint-text-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 12px;
    margin-top: 24px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.maint-text-btn:hover {
    color: #fff;
}

