/* CSS Variables for Cyberpunk Theme */
:root {
    --primary-cyan: #00fff9;
    --primary-magenta: #ff0080;
    --primary-yellow: #ffff00;
    --accent-purple: #8a2be2;
    --dark-bg: #0a0a0a;
    --darker-bg: #050505;
    --gray-800: #1a1a1a;
    --gray-700: #2a2a2a;
    --gray-600: #3a3a3a;
    --gray-400: #6a6a6a;
    --gray-200: #cccccc;
    --white: #ffffff;
    --success: #00ff41;
    --danger: #ff073a;
    --warning: #ffb800;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Rajdhani', sans-serif;
    background: var(--dark-bg);
    color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
    overflow-y: auto;
    /* Reserve scrollbar space to prevent layout shift when overlays open */
    scrollbar-gutter: stable both-edges;
}

/* Global Verified Badge/Icon */
.verified-badge, .review-verification, .verified-icon {
    display:inline-flex;
    align-items:center;
    justify-content:center;
    width:16px;
    height:16px;
    line-height:1;
    vertical-align:middle;
}
.verified-badge svg, .review-verification svg, .verified-icon svg {
    width:14px;
    height:14px;
    fill:#00ffc3;
    filter:drop-shadow(0 0 4px rgba(0,255,249,0.6));
    display:block;
}

/* Portal title specific larger badge (slightly smaller than text) */
.portal-verified-badge {
    width:0.9em; /* just under text height */
    height:0.9em;
    margin-left:0.6ch;
}
.portal-verified-badge svg { width:100%; height:100%; }

/* Terms Update / Legal Popups (global) */
.terms-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: none; /* toggled to flex when shown */
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(6px);
    z-index: 2500; /* above header (1000), modals (2000), chatbot (2200) */
    padding: 80px 16px 20px; /* leave room for fixed header line and ensure bottom spacing */
    overflow: auto;
}

.terms-popup-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 90px; /* cover fixed header area and its border */
    background: rgba(0, 0, 0, 0.98);
    pointer-events: none;
}

.terms-popup {
    background: linear-gradient(135deg, #0a1629 0%, #041018 100%);
    border: 2px solid var(--primary-cyan);
    border-radius: 14px;
    width: 92vw;
    max-width: 520px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.6), 0 0 24px rgba(0,255,249,0.25);
    overflow: hidden;
    animation: modalSlideUp 0.35s ease-out;
}

@media (max-height: 600px) {
    .terms-popup-overlay {
        align-items: flex-start;
    }
}

.terms-popup-header {
    padding: 1.25rem 1.25rem 0.5rem;
    text-align: center;
}

.terms-popup-title {
    font-family: 'Orbitron', monospace;
    color: var(--primary-cyan);
    font-size: 1.4rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.terms-popup-content {
    padding: 0.25rem 1.25rem 1rem;
    color: var(--gray-200);
    text-align: center;
    position: relative;
    z-index: 1;
}

.terms-popup-content .popup-inline-link {
    color: var(--primary-cyan);
    text-decoration: underline;
}
.terms-popup-content .popup-inline-link:hover,
.terms-popup-content .popup-inline-link:focus {
    color: var(--primary-magenta);
}

.terms-popup-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    padding: 0 1.25rem 1.25rem;
    flex-wrap: wrap;
    position: relative;
    z-index: 2;
}

.terms-popup-actions .btn {
    min-width: 140px;
}

/* Custom Scrollbar Styling */
::-webkit-scrollbar {
    width: 12px;
}
.chatbot-fab {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 2px solid var(--primary-cyan);
    background: linear-gradient(135deg, #031B4E 0%, #0a1629 100%);
    color: #E5E8ED;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 12px rgba(0, 255, 249, 0.3);
    cursor: pointer;
    z-index: 2200;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.doai-styled-fab.chatbot-fab {
    position: fixed !important;
    right: 20px !important;
    .verified-badge.pending {
        animation: verifiedPulse 1.2s ease-in-out infinite alternate;
    }
    @keyframes verifiedPulse {
        0% { box-shadow:0 0 4px rgba(0,255,249,0.25); }
        100% { box-shadow:0 0 10px rgba(0,255,249,0.55); }
    }
    bottom: 20px !important;
    width: 56px !important;
    height: 56px !important;
    border-radius: 50% !important;
    border: 2px solid var(--primary-cyan) !important;
    background: linear-gradient(135deg, #031B4E 0%, #0a1629 100%) !important;
    color: #E5E8ED !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 12px rgba(0, 255, 249, 0.3) !important;
    cursor: pointer !important;
    z-index: 2200 !important;
    backdrop-filter: none !important;
}
.chatbot-fab:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.6), 0 0 18px rgba(0, 255, 249, 0.4);
    background: linear-gradient(135deg, #0c2a6f 0%, #0a1629 100%);
}
.doai-styled-fab.chatbot-fab:hover {
    transform: translateY(-2px) scale(1.03) !important;
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.6), 0 0 18px rgba(0, 255, 249, 0.4) !important;
    background: linear-gradient(135deg, #0c2a6f 0%, #0a1629 100%) !important;
}
.chatbot-fab:active { transform: translateY(0) scale(1); }
.doai-styled-fab.chatbot-fab:active { transform: translateY(0) scale(1) !important; }
.chatbot-fab svg { display: block; }
.doai-styled-fab.chatbot-fab .gr-fab-icon svg { display: block; }

/* Chatbot coachmark bubble */
.chatbot-coachmark {
    position: fixed;
    right: 20px;
    bottom: 86px; /* 56px button + 10px gap + ~20px shadow */
    max-width: 260px;
    background: rgba(11, 14, 20, 0.95);
    border: 1.5px solid var(--primary-cyan);
    color: #e6edf3;
    border-radius: 10px;
    padding: 10px 12px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.4), 0 0 16px rgba(0,255,249,0.15);
    z-index: 2300;
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.95rem;
    line-height: 1.4;
    backdrop-filter: blur(6px);
    animation: coachFadeIn 0.25s ease-out;
}
.chatbot-coachmark::after {
    content: '';
    position: absolute;
    right: 24px;
    bottom: -8px;
    width: 0; height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid rgba(11, 14, 20, 0.95);
    filter: drop-shadow(0 -1px 0 var(--primary-cyan));
}
.chatbot-coachmark .coach-close {
    position: absolute;
    top: 6px;
    right: 8px;
    background: none;
    border: none;
    color: var(--primary-cyan);
    font-size: 1rem;
    cursor: pointer;
    line-height: 1;
}
.chatbot-coachmark .coach-action {
    display: inline-block;
    margin-top: 6px;
    color: var(--primary-cyan);
    text-decoration: underline;
    cursor: pointer;
}
@keyframes coachFadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}
@media (max-width: 500px) {
    .chatbot-coachmark { right: 12px; bottom: 80px; max-width: 70vw; }
}
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,1px,1px);
    white-space: nowrap;
    border: 0;
}

::-webkit-scrollbar-track {
    background: var(--darker-bg);
    border-radius: 6px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(45deg, var(--primary-cyan), var(--primary-magenta));
    border-radius: 6px;
    border: 2px solid var(--darker-bg);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(45deg, var(--primary-magenta), var(--primary-cyan));
    box-shadow: 0 0 10px rgba(0, 255, 249, 0.5);
}

/* Firefox scrollbar */
html {
    scrollbar-width: thin;
    scrollbar-color: var(--primary-cyan) var(--darker-bg);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Animated Background */
.background-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: 
        linear-gradient(45deg, var(--dark-bg) 25%, transparent 25%),
        linear-gradient(-45deg, var(--dark-bg) 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, var(--darker-bg) 75%),
        linear-gradient(-45deg, transparent 75%, var(--darker-bg) 75%);
    background-size: 50px 50px;
    background-position: 0 0, 0 25px, 25px -25px, -25px 0px;
    animation: moveBackground 20s linear infinite;
}

.background-animation::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 255, 249, 0.03) 2px,
        rgba(0, 255, 249, 0.03) 4px
    );
    animation: scanlines 1s linear infinite;
}

@keyframes moveBackground {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

@keyframes scanlines {
    0% { transform: translateY(0); }
    100% { transform: translateY(4px); }
}

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--primary-cyan);
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
}

.logo {
    font-family: 'Orbitron', monospace;
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--primary-cyan);
    text-decoration: none;
    transition: all 0.3s ease;
}

.logo:hover {
    color: var(--primary-magenta);
    text-shadow: 0 0 10px var(--primary-cyan);
}

.games-text {
    color: var(--primary-magenta);
    margin-left: 0.5rem;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    color: var(--gray-200);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-cyan);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-cyan);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Navigation Dropdown */
.nav-dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-trigger {
    background: none !important;
    border: none !important;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.nav-dropdown-arrow {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.nav-dropdown.open .nav-dropdown-arrow {
    transform: rotate(180deg);
}

.nav-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: linear-gradient(135deg, #0a1629 0%, #041018 100%);
    border: 2px solid var(--primary-cyan);
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 255, 249, 0.3);
    min-width: 160px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px) scale(0.95);
    transition: all 0.3s ease;
    margin-top: 0.5rem;
}

.nav-dropdown.open .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.nav-dropdown-link {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--gray-200);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border-radius: 6px;
    margin: 0.25rem;
}

.nav-dropdown-link:hover {
    background: rgba(0, 255, 249, 0.1);
    color: var(--primary-cyan);
}

/* Notification Bell in Profile Menu */
.profile-action-btn.notification-bell {
    position: relative;
}

.profile-action-btn.notification-bell .notification-count {
    position: absolute;
    top: 8px;
    right: 8px;
    background: var(--primary-magenta);
    color: var(--white);
    border-radius: 50%;
    min-width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: bold;
    line-height: 1;
}

@keyframes notificationPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 0, 128, 0.7);
        transform: scale(1);
    }
    70% {
        box-shadow: 0 0 0 8px rgba(255, 0, 128, 0);
        transform: scale(1.05);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 0, 128, 0);
        transform: scale(1);
    }
}

/* Mobile Navigation Styles */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
    position: relative;
    min-width: 44px;
    min-height: 44px;
    justify-content: center;
    align-items: center;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.mobile-menu-toggle:focus {
    outline: 2px solid var(--primary-cyan);
    outline-offset: 2px;
}

.hamburger-line {
    width: 25px;
    height: 3px;
    background: var(--primary-cyan);
    margin: 3px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
    box-shadow: 0 0 5px rgba(0, 255, 249, 0.5);
    display: block;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

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

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile Responsive Navigation */
@media (max-width: 1024px) {
    .nav-container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .nav-links {
        gap: 1rem;
    }
    
    .nav-link {
        font-size: 0.9rem;
        padding: 0.4rem 0.8rem;
    }
    
    .logo .glitch {
        font-size: 1.8rem;
    }
    
    .user-profile .profile-trigger .user-name {
        display: none;
    }
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex !important;
        background: rgba(0, 255, 249, 0.1);
        border: 1px solid rgba(0, 255, 249, 0.3);
        border-radius: 4px;
    }
    
    .mobile-menu-toggle:hover {
        background: rgba(0, 255, 249, 0.2);
        border-color: var(--primary-cyan);
    }
    
    .mobile-menu-toggle:active {
        background: rgba(0, 255, 249, 0.3);
        transform: scale(0.95);
    }
    
    .nav-container {
        padding: 0.8rem 15px;
    }
    
    .logo .glitch {
        font-size: 1.6rem;
    }
    
    .logo .games-text {
        font-size: 0.9rem;
    }
    
    .nav-links {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        height: calc(100vh - 70px);
        background: linear-gradient(135deg, rgba(10, 22, 41, 0.98) 0%, rgba(4, 16, 24, 0.98) 100%);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding: 2rem 0;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        z-index: 999;
        border-right: 2px solid var(--primary-cyan);
        box-shadow: 0 0 30px rgba(0, 255, 249, 0.2);
        overflow-y: auto;
    }
    
    .nav-links.active {
        transform: translateX(0);
    }
    
    .nav-links > * {
        margin: 0.5rem 0;
        width: 90%;
        max-width: 300px;
    }
    
    .nav-link {
        display: block;
        text-align: center;
        padding: 1rem 2rem;
        width: 100%;
        background: linear-gradient(135deg, rgba(0, 255, 249, 0.1) 0%, rgba(0, 200, 255, 0.05) 100%);
        border: 1px solid rgba(0, 255, 249, 0.3);
        border-radius: 8px;
        font-size: 1.1rem;
        transition: all 0.3s ease;
    }
    
    .nav-link:hover {
        background: linear-gradient(135deg, rgba(0, 255, 249, 0.2) 0%, rgba(0, 200, 255, 0.1) 100%);
        border-color: var(--primary-cyan);
        box-shadow: 0 0 15px rgba(0, 255, 249, 0.3);
        transform: translateY(-2px);
    }
    
    .nav-dropdown {
        position: static;
        width: 100%;
    }
    
    .nav-dropdown .dropdown-trigger {
        width: 100%;
        justify-content: center;
        background: linear-gradient(135deg, rgba(255, 0, 128, 0.1) 0%, rgba(255, 100, 150, 0.05) 100%);
        border: 1px solid rgba(255, 0, 128, 0.3);
    }
    
    .nav-dropdown .dropdown-trigger:hover {
        background: linear-gradient(135deg, rgba(255, 0, 128, 0.2) 0%, rgba(255, 100, 150, 0.1) 100%);
        border-color: var(--primary-magenta);
        box-shadow: 0 0 15px rgba(255, 0, 128, 0.3);
    }
    
    .nav-dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        margin-top: 1rem;
        background: linear-gradient(135deg, rgba(10, 22, 41, 0.9) 0%, rgba(4, 16, 24, 0.9) 100%);
        border: 1px solid rgba(0, 255, 249, 0.5);
        width: 100%;
        box-shadow: inset 0 0 20px rgba(0, 255, 249, 0.1);
        display: none;
    }
    
    .nav-dropdown.open .nav-dropdown-menu {
        display: block;
        animation: slideDown 0.3s ease;
    }
    
    .nav-dropdown-link {
        display: block;
        padding: 1rem;
        text-align: center;
        border-bottom: 1px solid rgba(0, 255, 249, 0.2);
        transition: all 0.3s ease;
    }
    
    .nav-dropdown-link:last-child {
        border-bottom: none;
    }
    
    .nav-dropdown-link:hover {
        background: rgba(0, 255, 249, 0.1);
        color: var(--primary-cyan);
    }
    
    /* Mobile User Profile */
    .user-profile {
        width: 100%;
        margin-top: 1rem;
    }
    
    .user-profile .profile-trigger {
        width: 100%;
        justify-content: center;
        padding: 1rem;
        background: linear-gradient(135deg, rgba(0, 255, 100, 0.1) 0%, rgba(0, 200, 150, 0.05) 100%);
        border: 1px solid rgba(0, 255, 100, 0.3);
        border-radius: 8px;
    }
    
    .user-profile .profile-trigger:hover {
        background: linear-gradient(135deg, rgba(0, 255, 100, 0.2) 0%, rgba(0, 200, 150, 0.1) 100%);
        border-color: #00ff64;
        box-shadow: 0 0 15px rgba(0, 255, 100, 0.3);
    }
    
    .user-profile .profile-menu {
        position: static;
        transform: none;
        margin-top: 1rem;
        width: 100%;
        max-height: none;
        border-radius: 8px;
        display: none;
    }
    
    .user-profile.open .profile-menu {
        display: block;
        animation: slideDown 0.3s ease;
    }
    
    .profile-info {
        padding: 1.5rem;
        text-align: center;
    }
    
    .profile-actions {
        padding: 1rem;
    }
    
    .profile-action-btn {
        margin: 0.5rem 0;
        justify-content: center;
        padding: 1rem;
        font-size: 1rem;
    }
    
    /* Mobile Sign In Button */
    .btn.btn-primary.nav-signin {
        width: 100%;
        margin-top: 1rem;
        padding: 1rem 2rem;
        font-size: 1.1rem;
        background: linear-gradient(135deg, var(--primary-cyan) 0%, #008cff 100%);
        border: 2px solid var(--primary-cyan);
        border-radius: 8px;
        box-shadow: 0 0 20px rgba(0, 255, 249, 0.4);
    }
    
    .btn.btn-primary.nav-signin:hover {
        box-shadow: 0 0 30px rgba(0, 255, 249, 0.6);
        transform: translateY(-2px);
    }
}

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

/* Extra small devices */
@media (max-width: 480px) {
    .nav-container {
        padding: 0.7rem 10px;
    }
    
    .logo .glitch {
        font-size: 1.4rem;
    }
    
    .logo .games-text {
        font-size: 0.8rem;
    }
    
    .nav-links {
        top: 65px;
        height: calc(100vh - 65px);
        padding: 1.5rem 0;
    }
    
    .nav-link {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }
    
    .mobile-menu-toggle {
        padding: 0.3rem;
    }
    
    .hamburger-line {
        width: 22px;
    }
}

/* Main content */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(8px);
    animation: modalFadeIn 0.3s ease-out;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        backdrop-filter: blur(0px);
    }
    to {
        opacity: 1;
        backdrop-filter: blur(8px);
    }
}

.modal-content {
    background: linear-gradient(135deg, #0a1629 0%, #041018 100%);
    border: 3px solid var(--primary-cyan);
    border-radius: 20px;
    max-width: 450px;
    width: 90%;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 
        0 0 50px rgba(0, 255, 249, 0.3),
        inset 0 0 30px rgba(0, 255, 249, 0.05);
    position: relative;
    animation: modalSlideUp 0.4s ease-out;
}

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

/* --- GlitchRealm Access Modal Redesign --- */
.glitch-access-modal {
    background: linear-gradient(135deg, #0a0a0a 0%, #181c22 100%);
    border: 2.5px solid var(--primary-cyan);
    border-radius: 18px;
    box-shadow: 0 0 40px 0 rgba(0,255,249,0.15), 0 0 0 2px #00fff9;
    padding: 0;
    max-width: 420px;
    width: 95vw;
    overflow: hidden;
    position: relative;
}

.modal-header {
    background: none;
    border-bottom: none;
    padding: 2.5rem 2rem 0.5rem 2rem;
    text-align: center;
}

.modal-title.glitch {
    font-family: 'Orbitron', monospace;
    font-size: 2.1rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    color: #00fff9;
    position: relative;
    filter: drop-shadow(0 0 12px #00fff9) drop-shadow(0 0 2px #fff);
    animation: glitch-text 1.2s infinite linear alternate-reverse;
}

@keyframes glitch-text {
    0% { text-shadow: 2px 0 #ff0080, -2px 0 #00fff9, 0 2px #ffff00; }
    20% { text-shadow: -2px 0 #ff0080, 2px 0 #00fff9, 0 -2px #ffff00; }
    40% { text-shadow: 2px 2px #ff0080, -2px -2px #00fff9, 2px -2px #ffff00; }
    60% { text-shadow: -2px 2px #ff0080, 2px -2px #00fff9, -2px 2px #ffff00; }
    80% { text-shadow: 0 0 8px #00fff9, 0 0 2px #ff0080; }
    100% { text-shadow: 2px 0 #ff0080, -2px 0 #00fff9, 0 2px #ffff00; }
}

.modal-subtitle {
    color: #b6eaff;
    font-size: 1.08rem;
    text-align: center;
    margin-bottom: 1.5rem;
    margin-top: 0.5rem;
    font-family: 'Rajdhani', sans-serif;
    letter-spacing: 0.5px;
    opacity: 0.85;
}

.access-tabs {
    display: flex;
    margin: 0 auto 1.5rem auto;
    width: 90%;
    background: #10141a;
    border-radius: 8px;
    overflow: hidden;
    border: 1.5px solid #00fff9;
    box-shadow: 0 0 8px #00fff933;
}
.access-tab {
    flex: 1;
    padding: 0.7rem 0;
    background: none;
    border: none;
    color: #b6eaff;
    font-family: 'Orbitron', monospace;
    font-size: 1.08rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    outline: none;
    letter-spacing: 1px;
    text-transform: uppercase;
}
.access-tab.active {
    background: linear-gradient(90deg, #00fff9 0%, #00e0ff 100%);
    color: #181c22;
    text-shadow: 0 0 8px #00fff9;
}

.access-form {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
    margin-bottom: 0.5rem;
    margin-top: 0.5rem;
    animation: formGlitch 1.2s infinite linear alternate-reverse;
}
@keyframes formGlitch {
    0%, 100% { filter: none; }
    10% { filter: blur(0.5px) hue-rotate(5deg); }
    20% { filter: none; }
    30% { filter: blur(0.5px) hue-rotate(-5deg); }
    40% { filter: none; }
    50% { filter: blur(0.5px) hue-rotate(5deg); }
    60% { filter: none; }
    70% { filter: blur(0.5px) hue-rotate(-5deg); }
    80% { filter: none; }
    90% { filter: blur(0.5px) hue-rotate(5deg); }
}

.form-input {
    background: #10141a;
    border: 1.5px solid #00fff9;
    color: #b6eaff;
    border-radius: 7px;
    padding: 0.9rem 1.2rem;
    font-size: 1.08rem;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 500;
    transition: border 0.2s, box-shadow 0.2s;
    box-shadow: 0 0 0 0 #00fff9;
}
.form-input:focus {
    border: 1.5px solid #ff0080;
    box-shadow: 0 0 8px #ff0080;
    outline: none;
}
.form-input::placeholder {
    color: #5befff;
    opacity: 0.7;
    font-family: 'Rajdhani', sans-serif;
    letter-spacing: 1px;
}

.btn.btn-primary.full-width {
    background: linear-gradient(90deg, #00fff9 0%, #00e0ff 100%);
    color: #181c22;
    border: none;
    border-radius: 7px;
    font-family: 'Orbitron', monospace;
    font-size: 1.08rem;
    font-weight: 700;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
    box-shadow: 0 0 12px #00fff9cc;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}
.btn.btn-primary.full-width:hover {
    background: linear-gradient(90deg, #00e0ff 0%, #00fff9 100%);
    color: #181c22;
    box-shadow: 0 0 18px #00fff9;
}

.btn.btn-link {
    background: none;
    border: 1.5px solid #00fff9;
    color: #00fff9;
    border-radius: 7px;
    font-family: 'Orbitron', monospace;
    font-size: 1.08rem;
    font-weight: 700;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
    box-shadow: none;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
    width: 100%;
    cursor: pointer;
}
.btn.btn-link:hover {
    background: #00fff9;
    color: #181c22;
    box-shadow: 0 0 12px #00fff9cc;
}

.divider {
    text-align: center;
    margin: 1.5rem 0 1.2rem 0;
    position: relative;
    color: #00fff9;
    font-family: 'Orbitron', monospace;
    font-size: 1.08rem;
    opacity: 0.8;
}
.divider span {
    background: #181c22;
    padding: 0 1.2rem;
    border-radius: 6px;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: #00fff9;
    box-shadow: 0 0 8px #00fff9cc;
}
.divider:before, .divider:after {
    content: '';
    display: inline-block;
    width: 30%;
    height: 1.5px;
    background: linear-gradient(90deg, transparent, #00fff9, transparent);
    vertical-align: middle;
    margin: 0 0.5rem;
}

.btn-provider.google-btn {
    background: #ff3b3b;
    color: #fff;
    border: none;
    border-radius: 7px;
    font-family: 'Orbitron', monospace;
    font-size: 1.08rem;
    font-weight: 700;
    margin: 0.5rem 0 1.2rem 0;
    box-shadow: 0 0 12px #ff3b3bcc;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.7rem;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
    width: 100%;
}
.btn-provider.google-btn:hover {
    background: #ff0080;
    color: #fff;
    box-shadow: 0 0 18px #ff0080cc;
}

/* GitHub button styling */
.btn-provider.github-btn {
    background: #24292e;
    color: #fff;
    border: none;
    border-radius: 7px;
    font-family: 'Orbitron', monospace;
    font-size: 1.08rem;
    font-weight: 700;
    margin: 0.5rem 0 1.2rem 0;
    box-shadow: 0 0 12px #24292ecc;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.7rem;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
    width: 100%;
}
.btn-provider.github-btn:hover {
    background: #00fff9;
    color: #181c22;
    box-shadow: 0 0 18px #00fff9cc;
}

/* Anonymous button styling */
.btn-provider.anonymous-btn {
    background: #6a6a6a;
    color: #fff;
    border: none;
    border-radius: 7px;
    font-family: 'Orbitron', monospace;
    font-size: 1.08rem;
    font-weight: 700;
    margin: 0.5rem 0 1.2rem 0;
    box-shadow: 0 0 12px #6a6a6acc;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.7rem;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
    width: 100%;
}
.btn-provider.anonymous-btn:hover {
    background: #ffffff;
    color: #000000;
    box-shadow: 0 0 18px #ffffffcc;
}

/* Provider icon styling for contact page */
.provider-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
    filter: brightness(1.1) contrast(1.1);
}

.btn-provider.google-btn .provider-icon {
    filter: brightness(1.2) contrast(1.2);
}

.btn-provider.github-btn .provider-icon {
    filter: brightness(0) invert(1);
}

.btn-provider.anonymous-btn .provider-icon {
    filter: brightness(0) invert(1);
}

.guest-section {
    text-align: center;
    margin-top: 1.2rem;
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.guest-text {
    color: #b6eaff;
    font-size: 1rem;
    margin-bottom: 0.5rem;
    opacity: 0.7;
}

.btn-provider.anonymous-btn.full-width {
    background: #23272e;
    color: #b6eaff;
    border: 1.5px solid #b6eaff;
    border-radius: 7px;
    font-family: 'Orbitron', monospace;
    font-size: 1.08rem;
    font-weight: 700;
    margin: 0.5rem 0 0 0;
    box-shadow: 0 0 8px #b6eaff33;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
    width: 100%;
}
.btn-provider.anonymous-btn.full-width:hover {
    background: #00fff9;
    color: #181c22;
    border-color: #00fff9;
    box-shadow: 0 0 18px #00fff9cc;
}

.modal-close {
    position: absolute;
    top: 1.2rem;
    right: 1.2rem;
    background: none;
    border: none;
    color: #00fff9;
    font-size: 2rem;
    cursor: pointer;
    z-index: 10;
    transition: color 0.2s;
    filter: drop-shadow(0 0 8px #00fff9);
}
.modal-close:hover {
    color: #ff0080;
    filter: drop-shadow(0 0 12px #ff0080);
}

@media (max-width: 600px) {
    .glitch-access-modal {
        padding: 0;
        max-width: 98vw;
    }
    .modal-header {
        padding: 2rem 0.5rem 0.5rem 0.5rem;
    }
    .modal-title.glitch {
        font-size: 1.3rem;
    }
    .modal-body {
        padding: 1.2rem 0.5rem 1.2rem 0.5rem;
    }
}

/* Glitch effects for various elements */
.glitch {
    position: relative;
    color: var(--primary-cyan);
    font-weight: 700;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
}

.glitch::before {
    animation: glitch-1 0.5s infinite linear alternate-reverse;
    color: var(--primary-magenta);
    z-index: -1;
}

.glitch::after {
    animation: glitch-2 0.5s infinite linear alternate-reverse;
    color: var(--primary-yellow);
    z-index: -2;
}

.glitch-large {
    position: relative;
    font-size: 3rem;
    color: var(--primary-cyan);
    font-weight: 900;
}

.glitch-large::before,
.glitch-large::after {
    content: attr(data-text);
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
}

.glitch-large::before {
    animation: glitch-1 0.8s infinite linear alternate-reverse;
    color: var(--primary-magenta);
    z-index: -1;
}

.glitch-large::after {
    animation: glitch-2 0.8s infinite linear alternate-reverse;
    color: var(--primary-yellow);
    z-index: -2;
}

@keyframes glitch-1 {
    0% { transform: translate(0); }
    20% { transform: translate(-2px, 2px); }
    40% { transform: translate(-2px, -2px); }
    60% { transform: translate(2px, 2px); }
    80% { transform: translate(2px, -2px); }
    100% { transform: translate(0); }
}

@keyframes glitch-2 {
    0% { transform: translate(0); }
    20% { transform: translate(2px, -2px); }
    40% { transform: translate(2px, 2px); }
    60% { transform: translate(-2px, -2px); }
    80% { transform: translate(-2px, 2px); }
    100% { transform: translate(0); }
}

/* Main Content */
.main {
    /* Reserve space for fixed header to prevent CLS */
    margin-top: 80px;
    min-height: calc(100vh - 80px);
}

/* Hero Section */
.hero {
    padding: 4rem 0;
    text-align: center;
    background: linear-gradient(135deg, rgba(0, 255, 249, 0.1), rgba(255, 0, 128, 0.1));
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero-title {
    font-family: 'Orbitron', monospace;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-tagline {
    font-size: 1.2rem;
    color: var(--gray-200);
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    border: none;
    cursor: pointer;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(45deg, var(--primary-cyan), var(--primary-magenta));
    color: var(--dark-bg);
    border: 1px solid var(--primary-cyan);
}

.btn-primary:hover {
    box-shadow: 0 0 20px var(--primary-cyan);
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-cyan);
    border: 1px solid var(--primary-cyan);
}

.btn-secondary:hover {
    background: var(--primary-cyan);
    color: var(--dark-bg);
    box-shadow: 0 0 20px var(--primary-cyan);
}

.btn-disabled {
    background: var(--gray-700);
    color: var(--gray-400);
    border: 1px solid var(--gray-600);
    cursor: not-allowed;
}

.btn-disabled:hover {
    transform: none;
    box-shadow: none;
}

.glitch-btn:hover {
    animation: btnGlitch 0.3s ease-in-out;
}

@keyframes btnGlitch {
    0%, 100% { transform: translateY(-2px); }
    25% { transform: translateY(-2px) translateX(-2px); }
    75% { transform: translateY(-2px) translateX(2px); }
}

/* Games Page Styles */
.games-hero {
    padding: 3rem 0;
    text-align: center;
    background: linear-gradient(135deg, rgba(138, 43, 226, 0.1), rgba(255, 184, 0, 0.1));
}

.page-title {
    font-family: 'Orbitron', monospace;
    font-size: 3rem;
    margin-bottom: 1rem;
}

.page-subtitle {
    font-size: 1.2rem;
    color: var(--gray-200);
    max-width: 600px;
    margin: 0 auto;
}

.games-grid {
    padding: 4rem 0;
}

.game-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.game-card {
    background: var(--gray-800);
    border: 1px solid var(--gray-700);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
}

.game-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-cyan);
    box-shadow: 0 10px 30px rgba(0, 255, 249, 0.3);
}

.game-card.coming-soon {
    opacity: 0.7;
}

.game-card.coming-soon:hover {
    border-color: var(--gray-600);
    box-shadow: 0 10px 30px rgba(106, 106, 106, 0.2);
}

.card-image {
    height: 200px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--gray-700), var(--gray-600));
}

.image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--gray-400);
    background: linear-gradient(45deg, var(--gray-800), var(--gray-700));
}

.game-icon {
    font-size: 3rem;
}

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 255, 249, 0.1), rgba(255, 0, 128, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.game-card:hover .card-overlay {
    opacity: 1;
}

.card-content {
    padding: 1.5rem;
}

.card-title {
    font-family: 'Orbitron', monospace;
    font-size: 1.3rem;
    color: var(--primary-cyan);
    margin-bottom: 0.5rem;
}

.card-description {
    color: var(--gray-200);
    margin-bottom: 1rem;
    line-height: 1.5;
}

.card-tags {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.tag {
    background: var(--gray-700);
    color: var(--primary-cyan);
    padding: 0.25rem 0.5rem;
    font-size: 0.8rem;
    border-radius: 4px;
    border: 1px solid var(--gray-600);
}

.platform-icon {
    font-size: 1.2rem;
    color: var(--primary-cyan);
    margin-left: 0.25rem;
    vertical-align: middle;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    filter: brightness(1) saturate(1.5);
    transition: all 0.3s ease;
}

.platform-icon:hover {
    color: var(--primary-magenta);
    transform: scale(1.1);
}

.card-btn {
    width: 100%;
    text-align: center;
}

.card-developer {
    color: var(--primary-magenta);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    font-style: italic;
}

.card-developer strong {
    color: var(--primary-cyan);
    font-weight: 600;
}

/* Developer Link Styles */
.card-developer a,
.featured-developer a {
    color: var(--primary-cyan);
    text-decoration: none;
    transition: all 0.3s ease;
}

.card-developer a:hover,
.featured-developer a:hover {
    color: var(--primary-magenta);
    text-shadow: 0 0 5px var(--primary-cyan);
}

.card-developer a strong,
.featured-developer a strong {
    color: inherit;
}

/* Featured Game Section */
.featured-game {
    padding: 4rem 0;
    background: rgba(26, 26, 26, 0.5);
}

.section-title {
    text-align: center;
    font-family: 'Orbitron', monospace;
    font-size: 2rem;
    color: var(--primary-cyan);
    margin-bottom: 2rem;
}

.featured-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
    max-width: 800px;
    margin: 0 auto;
}

.featured-image {
    height: 250px;
    border-radius: 8px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--gray-700), var(--gray-600));
    position: relative; /* Add relative positioning for badge */
}

.featured-logo-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.featured-card:hover .featured-logo-image {
    transform: scale(1.02);
}

.featured-info h3 {
    font-family: 'Orbitron', monospace;
    font-size: 1.5rem;
    color: var(--primary-cyan);
    margin-bottom: 1rem;
}

.featured-info p {
    color: var(--gray-200);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.featured-developer {
    color: var(--primary-magenta);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    font-style: italic;
}

.featured-developer strong {
    color: var(--primary-cyan);
    font-weight: 600;
}

/* About Page Styles */
.about-content {
    padding: 2rem 0;
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
}

.about-grid {
    display: grid;
    gap: 2rem;
    width: 100%;
}

.about-text {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-text p {
    color: var(--gray-200);
    margin-bottom: 1rem;
    font-size: 1rem;
    line-height: 1.6;
}

.team-section {
    max-width: 1200px;
    margin: 0 auto;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.team-member {
    background: var(--gray-800);
    border: 1px solid var(--gray-700);
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    height: fit-content;
}

.team-member:hover {
    transform: translateY(-5px);
    border-color: var(--primary-cyan);
    box-shadow: 0 10px 30px rgba(0, 255, 249, 0.2);
}

.member-avatar {
    width: 60px;
    height: 60px;
    margin: 0 auto 0.75rem;
    background: linear-gradient(135deg, var(--primary-cyan), var(--primary-magenta));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.avatar-icon {
    filter: grayscale(1) contrast(1.2);
}

.member-name {
    font-family: 'Orbitron', monospace;
    color: var(--primary-cyan);
    margin-bottom: 0.25rem;
    font-size: 1rem;
}

.member-role {
    color: var(--primary-magenta);
    font-weight: 600;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.85rem;
}

.member-bio {
    color: var(--gray-200);
    line-height: 1.4;
    font-size: 0.9rem;
}

/* Projects Section */
.projects-section {
    padding: 4rem 0;
    background: rgba(26, 26, 26, 0.3);
}

.projects-hero {
    background: rgba(26, 26, 26, 0.5);
    padding: 6rem 0 4rem;
}

.projects-hero .hero-title {
    margin-bottom: 1rem;
}

.projects-hero .hero-tagline {
    font-size: 1.2rem;
    color: var(--primary-cyan);
    opacity: 0.8;
}

.project-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.project-card {
    background: var(--gray-800);
    border: 1px solid var(--gray-700);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    height: fit-content;
}

.project-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-cyan);
    box-shadow: 0 15px 40px rgba(0, 255, 249, 0.2);
}

.project-card .card-image {
    height: 200px;
    background: linear-gradient(135deg, var(--gray-700) 0%, var(--gray-600) 100%);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-icon {
    font-size: 4rem;
    opacity: 0.7;
}

.project-card .card-content {
    padding: 1.5rem;
}

.project-card .card-title {
    font-family: 'Orbitron', monospace;
    color: var(--primary-cyan);
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.project-card .card-description {
    color: var(--gray-200);
    margin-bottom: 1.5rem;
    line-height: 1.6;
    font-size: 0.9rem;
}

.project-card .card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.project-card .tag {
    background: rgba(0, 255, 249, 0.1);
    color: var(--primary-cyan);
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid rgba(0, 255, 249, 0.3);
}

.project-card.coming-soon {
    opacity: 0.8;
}

.project-card.coming-soon .card-image {
    background: linear-gradient(135deg, var(--gray-700) 0%, #2a2a3e 100%);
}

/* Contact Page Styles */
.contact-content {
    padding: 4rem 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    max-width: 1100px;
    margin: 0 auto;
}

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

.contact-info p {
    color: var(--gray-200);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--gray-800);
    border: 1px solid var(--gray-700);
    border-radius: 8px;
    text-decoration: none;
    color: var(--gray-200);
    transition: all 0.3s ease;
}

.social-link:hover {
    border-color: var(--primary-cyan);
    color: var(--primary-cyan);
    transform: translateX(10px);
    box-shadow: 0 5px 15px rgba(0, 255, 249, 0.2);
}

.social-icon {
    font-size: 1.5rem;
    width: 2rem;
    text-align: center;
}

/* Contact Page Logo Icon Styles */
.logo-icon {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary-cyan);
    padding: 0.2rem;
    background: var(--gray-800);
    transition: all 0.3s ease;
}

.social-link:hover .logo-icon {
    border-color: var(--primary-magenta);
    background: var(--primary-cyan);
    transform: scale(1.1);
    box-shadow: 0 0 10px var(--primary-cyan);
}

/* Form Styles */
.form {
    background: var(--gray-800);
    border: 1px solid var(--gray-700);
    border-radius: 8px;
    padding: 2rem;
}

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

.form-group label {
    display: block;
    color: var(--primary-cyan);
    margin-bottom: 0.5rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    background: var(--gray-700);
    border: 1px solid var(--gray-600);
    border-radius: 4px;
    color: var(--white);
    font-family: 'Rajdhani', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-cyan);
    box-shadow: 0 0 10px rgba(0, 255, 249, 0.3);
    background: var(--gray-600);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-group select {
    cursor: pointer;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--gray-400);
}

/* Support/Portal form look (shared) */
.form-label {
    display: block;
    margin-bottom: 8px;
    font-family: 'Orbitron', monospace;
    font-size: 0.9rem;
    color: var(--text-lighter);
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--primary-cyan);
    border-radius: 6px;
    color: var(--text-color);
    font-family: 'Rajdhani', sans-serif;
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-purple);
    box-shadow: 0 0 10px rgba(138, 43, 226, 0.3);
}

.btn-portal {
    background: linear-gradient(135deg, var(--primary-cyan), var(--accent-purple));
    color: var(--dark-bg);
    border: none;
    border-radius: 6px;
    padding: 12px 25px;
    font-family: 'Orbitron', monospace;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.btn-portal:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 255, 249, 0.3);
}

.btn-portal:active {
    transform: translateY(0);
}

/* Contact form container styled like portal sections */
.contact-form {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--primary-cyan);
    border-radius: 10px;
    padding: 25px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(0, 255, 249, 0.1);
}

.contact-form:hover {
    box-shadow: 0 0 30px rgba(0, 255, 249, 0.2);
}

/* Avatar Image Styles */
.avatar-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

/* Game Logo Image Styles */
.game-logo-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.game-card:hover .game-logo-image {
    transform: scale(1.05);
}

/* Game Badge Styles */
.game-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: linear-gradient(45deg, var(--primary-magenta), var(--primary-yellow));
    color: var(--dark-bg);
    padding: 0.25rem 0.75rem;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 12px;
    border: 1px solid var(--primary-cyan);
    z-index: 10;
    animation: badgePulse 3.5s ease-in-out infinite;
    font-family: 'Orbitron', monospace;
}

/* Game Card Action Menu (top-right) */
.game-card .card-image { position: relative; }
.game-card-menu {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 15;
    display: flex;
    flex-direction: column;
    gap: 8px;
    pointer-events: auto;
}
.game-card-menu .menu-btn {
    display: inline-block; /* visibility controlled via inline display by JS */
    border: 1px solid transparent;
    border-radius: 9px;
    padding: 6px 14px;
    font-size: 14px;
    font-family: 'Orbitron', monospace;
    font-weight: 700;
    letter-spacing: 0.4px;
    cursor: pointer;
    user-select: none;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    box-shadow: 0 4px 14px rgba(0,0,0,0.25);
    transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.game-card-menu .menu-btn:focus-visible {
    outline: 2px solid var(--primary-cyan);
    outline-offset: 2px;
}
.game-card-menu .menu-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.35);
}
.game-card-menu .menu-btn:active {
    transform: translateY(0);
    box-shadow: 0 3px 10px rgba(0,0,0,0.3);
}
/* Variants */
.game-card-menu .edit-btn {
    background: linear-gradient(135deg, rgba(0,255,249,0.18), rgba(0,192,255,0.18));
    color: #041018;
    border-color: rgba(0,255,249,0.45);
    text-shadow: 0 0 8px rgba(0,255,249,0.35);
}
.game-card-menu .edit-btn:hover {
    background: linear-gradient(135deg, rgba(0,255,249,0.28), rgba(0,192,255,0.28));
    border-color: rgba(0,255,249,0.65);
}
.game-card-menu .delete-btn {
    background: linear-gradient(135deg, rgba(255,0,128,0.25), rgba(255,20,70,0.22));
    color: #fff;
    border-color: rgba(255,0,128,0.5);
    text-shadow: 0 0 8px rgba(255,0,128,0.35);
}
.game-card-menu .delete-btn:hover {
    background: linear-gradient(135deg, rgba(255,0,128,0.35), rgba(255,20,70,0.3));
    border-color: rgba(255,0,128,0.7);
}
.game-card-menu .report-btn {
    background: linear-gradient(135deg, rgba(255,215,0,0.25), rgba(255,184,0,0.22));
    color: #041018;
    border-color: rgba(255,215,0,0.55);
    text-shadow: 0 0 8px rgba(255,215,0,0.35);
}
.game-card-menu .report-btn:hover {
    background: linear-gradient(135deg, rgba(255,215,0,0.35), rgba(255,184,0,0.3));
    border-color: rgba(255,215,0,0.75);
}
/* Compact three-dot variant */
.game-card-menu .three-dot-btn {
    padding: 0;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(0,0,0,0.55);
    color: #fff;
    border-color: rgba(255,255,255,0.18);
    font-size: 22px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: flex-end;
}
.game-card-menu .three-dot-btn:hover {
    background: rgba(0,0,0,0.7);
    border-color: rgba(255,255,255,0.28);
}
/* Dropdown for the three-dot menu (global) */
.game-options-menu {
    position: absolute;
    top: 44px; /* just below the three-dot button */
    right: 10px;
    min-width: 160px;
    background: rgba(7,16,24,0.96);
    border: 1px solid rgba(22,225,255,0.35);
    border-radius: 10px;
    box-shadow: 0 14px 40px rgba(0,0,0,0.45), 0 0 16px rgba(0,255,249,0.15);
    padding: 6px;
    z-index: 25;
    backdrop-filter: blur(6px);
}
.game-options-menu .menu-item {
    display: block;
    width: 100%;
    text-align: left;
    padding: 10px 12px;
    color: #d9f7ff;
    background: transparent;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-family: 'Rajdhani', sans-serif;
    letter-spacing: .3px;
    transition: background 0.15s ease, color 0.15s ease;
}
.game-options-menu .menu-item:hover {
    background: rgba(0,255,249,0.10);
    color: #a7f7ff;
}
/* Ensure Star in the dropdown behaves like Report (no scale/pulse/yellow color) */
.game-options-menu .menu-item.star,
.game-options-menu .menu-item.star:hover {
    transform: none !important;
    animation: none !important;
    text-shadow: none !important;
}
.game-options-menu .menu-item.star:hover {
    /* Match generic hover exactly and override rating-star styles */
    background: rgba(0,255,249,0.10) !important;
    color: #a7f7ff !important;
}
/* Slightly smaller on very small viewports */
@media (max-width: 420px) {
    .game-card-menu { gap: 6px; top: 8px; right: 8px; }
    .game-card-menu .menu-btn { padding: 5px 12px; font-size: 13px; }
    .game-card-menu .three-dot-btn { width: 34px; height: 34px; font-size: 20px; }
}

@keyframes badgePulse {
    0%, 100% { 
        transform: scale(1);
    box-shadow: 0 0 2px var(--primary-magenta);
    }
    50% { 
    transform: scale(1.005);
    box-shadow: 0 0 4px var(--primary-magenta);
    }
}

.game-badge.new {
    background: linear-gradient(45deg, var(--danger), var(--primary-magenta));
    color: var(--white);
}

.game-badge.updated {
    background: linear-gradient(45deg, var(--primary-cyan), var(--accent-purple));
    color: var(--white);
}

.game-badge.update-soon {
    background: linear-gradient(45deg, var(--warning), var(--primary-yellow));
    color: var(--dark-bg);
}

.game-badge.beta {
    background: linear-gradient(45deg, var(--danger), var(--primary-magenta));
    color: var(--white);
}

.game-badge.under-development {
    background: linear-gradient(45deg, var(--warning), var(--primary-yellow));
    color: var(--dark-bg);
}

.game-badge.removed {
    background: linear-gradient(45deg, #d9534f, #a94442);
    color: #fff;
}

/* Studio Link Styles */
.studio-link {
    color: var(--primary-cyan);
    text-decoration: none;
    transition: all 0.3s ease;
}

.studio-link:hover {
    color: var(--primary-magenta);
    text-shadow: 0 0 5px var(--primary-cyan);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    background: var(--gray-800);
    border: 1px solid var(--gray-700);
    border-radius: 8px;
    margin: 2% auto;
    padding: 4rem;
    width: 90%;
    max-width: 900px;
    position: relative;
    animation: modalSlideIn 0.3s ease-out;
    transition: all 0.3s ease;
    min-height: 400px;
}

.modal-content:hover {
    transform: translateY(-5px);
    border-color: var(--primary-cyan);
    box-shadow: 0 10px 30px rgba(0, 255, 249, 0.2);
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    margin-bottom: 3rem;
    text-align: center;
    position: relative;
}

.modal-header h2 {
    font-family: 'Orbitron', monospace;
    color: var(--primary-cyan);
    margin: 0;
    font-size: 2.2rem;
}

.close {
    position: absolute;
    top: -1rem;
    right: -1rem;
    color: var(--gray-400);
    font-size: 1.8rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    line-height: 1;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.3);
}

.close:hover {
    color: var(--primary-magenta);
    text-shadow: 0 0 10px var(--primary-magenta);
    transform: scale(1.1);
    background: rgba(255, 0, 128, 0.2);
}

.modal-body {
    background: transparent;
}

.modal-body p {
    color: var(--gray-200);
    line-height: 2;
    margin-bottom: 2.5rem;
    font-size: 1.2rem;
}

.modal-body p:last-child {
    margin-bottom: 0;
}

/* ==============================================
   SIGN IN PAGE STYLES
   ============================================== */

.signin-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
    z-index: 1;
}

.signin-card {
    background: rgba(26, 26, 26, 0.95);
    border: 2px solid var(--primary-cyan);
    border-radius: 12px;
    padding: 40px;
    width: 100%;
    max-width: 450px;
    box-shadow: 
        0 0 30px rgba(0, 255, 249, 0.3),
        inset 0 0 20px rgba(0, 255, 249, 0.1);
    backdrop-filter: blur(20px);
    position: relative;
    margin: auto;
}

/* Hide old signin styles when using new auth design */
.signin-container,
.signin-card {
    display: none !important;
}

/* Main auth overlay styles - CRITICAL: This was missing! */
/* Force auth overlay to always be above all overlays and modals */
.auth-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.92);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 99999 !important;
    pointer-events: auto;
    overscroll-behavior: contain;
    backdrop-filter: blur(8px);
    padding: max(10px, env(safe-area-inset-top)) max(10px, env(safe-area-inset-right)) max(10px, env(safe-area-inset-bottom)) max(10px, env(safe-area-inset-left));
    overflow: hidden;
}

.auth-panel {
    background: 
        linear-gradient(135deg, rgba(10, 22, 41, 0.95) 0%, rgba(4, 16, 24, 0.98) 50%, rgba(6, 10, 18, 0.95) 100%),
        radial-gradient(circle at 50% 0%, rgba(0, 255, 249, 0.08) 0%, transparent 50%);
    border: 2px solid rgba(0, 255, 249, 0.7);
    border-radius: 20px;
    max-width: 440px;
    width: 92%;
    max-height: 92vh;
    overflow: hidden;
    box-shadow: 
        0 25px 80px rgba(0, 0, 0, 0.9),
        0 15px 35px rgba(0, 255, 249, 0.15),
        0 5px 15px rgba(255, 0, 128, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        inset 0 0 40px rgba(0, 255, 249, 0.05);
    position: static;
    animation: modalSlideUp 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backdrop-filter: blur(15px);    overflow-y: auto;
}

@keyframes modalSlideUp {
    0% {
        transform: translateY(50px) scale(0.9);
        opacity: 0;
        filter: blur(5px);
    }
    50% {
        transform: translateY(-5px) scale(1.02);
        opacity: 0.8;
        filter: blur(1px);
    }
    100% {
        transform: translateY(0) scale(1);
        opacity: 1;
        filter: blur(0);
    }
}

/* Override any old signin styles */
body {
    margin: 0;
    padding: 0;
}

/* Additional glitch effect enhancement */
.signin-header .glitch-large:hover {
    animation: glitch-1 0.3s ease-in-out, glitch-2 0.3s ease-in-out !important;
}

/* Override header size for better visual balance */
.signin-header .glitch-large {
    font-size: 2.2rem !important;
    letter-spacing: 2px !important;
}

/* Ensure the signin card is properly positioned */
.signin-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
    z-index: 1;
    background: transparent;
}

/* Improve visual hierarchy */
.signin-card {
    background: rgba(26, 26, 26, 0.95);
    border: 2px solid var(--primary-cyan);
    border-radius: 12px;
    padding: 40px;
    width: 100%;
    max-width: 450px;
    box-shadow: 
        0 0 30px rgba(0, 255, 249, 0.3),
        inset 0 0 20px rgba(0, 255, 249, 0.1);
    backdrop-filter: blur(20px);
    position: relative;
    margin: auto;
}

/* ==============================================
   SIGN IN PAGE ADJUSTMENTS
   ============================================== */

/* Override header size for better visual balance */
.signin-header .glitch-large {
    font-size: 2.2rem !important;
    letter-spacing: 2px !important;
}

/* Ensure the signin card is properly positioned */
.signin-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
    z-index: 1;
    background: transparent;
}

/* Improve visual hierarchy */
.signin-card {
    background: rgba(26, 26, 26, 0.95);
    border: 2px solid var(--primary-cyan);
    border-radius: 12px;
    padding: 40px;
    width: 100%;
    max-width: 450px;
    box-shadow: 
        0 0 30px rgba(0, 255, 249, 0.3),
        inset 0 0 20px rgba(0, 255, 249, 0.1);
    backdrop-filter: blur(20px);
    position: relative;
    margin: auto;
}

/* Additional glitch effect enhancement */
.signin-header .glitch-large:hover {
    animation: glitch-1 0.3s ease-in-out, glitch-2 0.3s ease-in-out !important;
}

/* ==============================================
   SIGNIN PAGE FIXES - SCROLLING & LAYOUT
   ============================================== */

/* Fix scrolling issues */
body {
    overflow-x: hidden;
    overflow-y: auto;
}

/* Container fixes */
.signin-container {
    min-height: 100vh !important;
    padding: 20px !important;
    overflow-y: auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* Card fixes */
.signin-card {
    max-height: calc(100vh - 40px) !important;
    overflow-y: auto !important;
    margin: 20px auto !important;
    padding: 30px !important;
    position: relative !important;
}

/* Ensure all content is scrollable */
.signin-form {
    max-height: none !important;
    overflow: visible !important;
}

/* Google button visibility fix */
.google-btn {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    margin-bottom: 25px !important;
    width: 100% !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.google-icon {
    width: 20px !important;
    height: 20px !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* Guest section visibility */
.guest-section {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    margin-top: 30px !important;
}

.guest-btn {
    display: inline-block !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* Fix z-index issues */
.signin-container {
    z-index: 10 !important;
}

.signin-card {
    z-index: 11 !important;
}

/* Responsive fixes */
@media (max-height: 700px) {
    .signin-container {
        align-items: flex-start !important;
        padding-top: 40px !important;
        padding-bottom: 40px !important;
    }
    
    .signin-card {
        margin: 0 auto !important;
        max-height: none !important;
    }
}

@media (max-width: 480px) {
    .signin-card {
        padding: 20px !important;
        margin: 10px !important;
        max-width: calc(100vw - 20px) !important;
    }
    
    .signin-header .glitch-large {
        font-size: 1.8rem !important;
        letter-spacing: 1px !important;
    }
}

/* Extremely small height screens */
@media (max-height: 400px) {
    .auth-overlay {
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        padding-top: 0 !important;
    }
    
    .auth-panel {
        max-height: 98vh;
        overflow-y: auto;
        border-radius: 10px;
        margin: 0;
    }
    
    .auth-header {
        padding: 8px 30px 5px;
    }
    
    .auth-logo .glitch-text {
        font-size: 1.3rem;
        letter-spacing: 1px;
    }
    
    .access-text {
        font-size: 0.6rem;
        margin-top: 2px;
    }
    
    .auth-panel {
        background:
            linear-gradient(135deg, rgba(10, 22, 41, 0.97) 0%, rgba(4, 16, 24, 0.98) 50%, rgba(6, 10, 18, 0.97) 100%),
            radial-gradient(circle at 50% 0%, rgba(0, 255, 249, 0.08) 0%, transparent 50%);
        border: 2px solid rgba(0, 255, 249, 0.7);
        border-radius: 20px;
        max-width: 440px;
        width: 92%;
        max-height: 92vh;
        overflow-y: auto;
        box-shadow:
            0 25px 80px rgba(0, 0, 0, 0.9),
            0 15px 35px rgba(0, 255, 249, 0.15),
            0 5px 15px rgba(255, 0, 128, 0.1),
            inset 0 1px 0 rgba(255, 255, 255, 0.1),
            inset 0 0 40px rgba(0, 255, 249, 0.05);
        margin: auto;
    }
    .auth-overlay {
        padding: max(10px, env(safe-area-inset-top)) max(10px, env(safe-area-inset-right)) max(10px, env(safe-area-inset-bottom)) max(10px, env(safe-area-inset-left));
    }
}

/* ==============================================
   GLOBAL PROFILE AVATAR SIZING (Header/Profile)
   Ensures consistent avatar sizing across pages
   ============================================== */
.user-profile { position: relative !important; }
.profile-dropdown { position: relative !important; }

.profile-trigger {
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    background: rgba(0, 255, 249, 0.1) !important;
    border: 1px solid var(--primary-cyan) !important;
    border-radius: 8px !important;
    padding: 0.5rem 0.75rem !important;
    color: var(--white) !important;
    font-family: 'Rajdhani', sans-serif !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
}

.profile-trigger:hover {
    background: rgba(0, 255, 249, 0.2) !important;
    box-shadow: 0 0 15px rgba(0, 255, 249, 0.3) !important;
}
.user-avatar {
    width: 32px !important;
    height: 32px !important;
    border-radius: 50% !important;
    border: 2px solid var(--primary-cyan) !important;
    object-fit: cover !important;
    display: block !important;
}

.user-avatar-large {
    width: 60px !important;
    height: 60px !important;
    border-radius: 50% !important;
    border: 3px solid var(--primary-cyan) !important;
    object-fit: cover !important;
    display: block !important;
}

.user-avatar-container,
.user-avatar-large-container {
    position: relative !important;
    display: inline-block !important;
}

/* Hard containment on containers to prevent overflow from odd images */
.user-avatar-container { width: 32px !important; height: 32px !important; overflow: hidden !important; border-radius: 50% !important; }
.user-avatar-large-container { width: 60px !important; height: 60px !important; overflow: hidden !important; border-radius: 50% !important; }

.dropdown-arrow { font-size: 0.8rem !important; color: var(--primary-cyan) !important; transition: transform 0.3s ease !important; }
.profile-dropdown.open .dropdown-arrow { transform: rotate(180deg) !important; }

.profile-menu {
    position: absolute !important;
    top: 100% !important;
    right: 0 !important;
    background: linear-gradient(135deg, #0a1629 0%, #041018 100%) !important;
    border: 2px solid var(--primary-cyan) !important;
    border-radius: 12px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 255, 249, 0.3) !important;
    min-width: 280px !important;
    max-height: 400px !important;
    overflow-y: auto !important;
    z-index: 10000 !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transform: translateY(-10px) scale(0.95) !important;
    transition: all 0.3s ease !important;
    margin-top: 0.5rem !important;
}
.profile-dropdown.open .profile-menu { opacity: 1 !important; visibility: visible !important; transform: translateY(0) scale(1) !important; }

.profile-info { padding: 1.5rem !important; border-bottom: 1px solid rgba(0, 255, 249, 0.2) !important; display: flex !important; align-items: center !important; gap: 1rem !important; }
.profile-details { display: flex !important; flex-direction: column !important; gap: 0.25rem !important; }
.user-display-name { font-size: 1.1rem !important; font-weight: 700 !important; color: var(--white) !important; }
.user-email { font-size: 0.85rem !important; color: var(--primary-cyan) !important; opacity: 0.8 !important; }
.user-provider { font-size: 0.75rem !important; color: var(--primary-magenta) !important; text-transform: uppercase !important; font-weight: 600 !important; }

.profile-actions { padding: 1rem !important; display: flex !important; flex-direction: column !important; gap: 0.5rem !important; }
.profile-action-btn {
    display: flex !important;
    align-items: center !important;
    gap: 0.75rem !important;
    padding: 0.75rem 1rem !important;
    background: rgba(0, 0, 0, 0.3) !important;
    border: 1px solid rgba(0, 255, 249, 0.3) !important;
    border-radius: 8px !important;
    color: var(--white) !important;
    font-family: 'Rajdhani', sans-serif !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    width: 100% !important;
    text-align: left !important;
    white-space: nowrap !important;
}
.profile-action-btn:hover { background: rgba(0, 255, 249, 0.1) !important; border-color: var(--primary-cyan) !important; box-shadow: 0 0 10px rgba(0, 255, 249, 0.2) !important; }
.profile-action-btn.sign-out { color: var(--white) !important; }
#sign-out-btn, #sign-out-btn *:not(.action-icon):not(.icon-svg):not(path) { color: var(--white) !important; opacity: 1 !important; visibility: visible !important; }
.profile-action-btn.delete-account { border-color: rgba(255, 0, 128, 0.5) !important; color: var(--primary-magenta) !important; }
.profile-action-btn.delete-account:hover { background: rgba(255, 0, 128, 0.1) !important; border-color: var(--primary-magenta) !important; box-shadow: 0 0 10px rgba(255, 0, 128, 0.2) !important; }
.action-icon { font-size: 1.2rem !important; }

.avatar-upload-overlay,
.avatar-upload-overlay-large {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    cursor: pointer;
}

.user-avatar-container:hover .avatar-upload-overlay,
.user-avatar-large-container:hover .avatar-upload-overlay-large {
    opacity: 1;
}

/* ==============================================
   NEURAL-THEMED AUTH MODAL STYLING
   ============================================== */

/* Auth header */
.auth-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 32px 20px;
    border-bottom: 1px solid rgba(0, 255, 249, 0.2);
    background: 
        linear-gradient(135deg, rgba(0, 255, 249, 0.06) 0%, rgba(255, 0, 128, 0.03) 100%),
        rgba(0, 0, 0, 0.3);
    border-radius: 20px 20px 0 0;
    position: relative;
}

.auth-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-cyan), transparent);
}

.auth-logo {
    text-align: left;
}

.auth-logo .glitch {
    font-family: 'Orbitron', monospace;
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--primary-cyan);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    position: relative;
    display: inline-block;
    text-shadow: 
        0 0 10px rgba(0, 255, 249, 0.5),
        0 0 20px rgba(0, 255, 249, 0.3),
        0 0 30px rgba(0, 255, 249, 0.1);
}

.auth-logo .glitch::before,
.auth-logo .glitch::after {
    content: attr(data-text);
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
}

.auth-logo .glitch::before {
    animation: glitch-1 0.5s infinite linear alternate-reverse;
    color: var(--primary-magenta);
    z-index: -1;
}

.auth-logo .glitch::after {
    animation: glitch-2 0.5s infinite linear alternate-reverse;
    color: var(--primary-yellow);
    z-index: -2;
}

.glitch-text {
    font-family: 'Orbitron', monospace;
    font-size: 1.4rem;
    font-weight: 900;
    color: var(--primary-cyan);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    position: relative;
    display: inline-block;
}

.glitch-text::before,
.glitch-text::after {
    content: attr(data-text);
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
}

.glitch-text::before {
    animation: glitch-1 0.8s infinite linear alternate-reverse;
    color: var(--primary-magenta);
    z-index: -1;
}

.glitch-text::after {
    animation: glitch-2 0.8s infinite linear alternate-reverse;
    color: var(--primary-yellow);
    z-index: -2;
}

.access-text {
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.75rem;
    color: rgba(0, 255, 249, 0.7);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 5px;
}

.auth-close {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(0, 255, 249, 0.3);
    color: var(--primary-cyan);
    font-size: 1.4rem;
    cursor: pointer;
    padding: 8px;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border-radius: 10px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.auth-close::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 249, 0.2), transparent);
    transition: left 0.5s ease;
}

.auth-close:hover {
    color: var(--white);
    background: rgba(255, 0, 128, 0.15);
    border-color: var(--primary-magenta);
    transform: scale(1.05);
    box-shadow: 
        0 5px 15px rgba(255, 0, 128, 0.3),
        inset 0 0 20px rgba(0, 255, 249, 0.1);
}

.auth-close:hover::before {
    left: 100%;
}

.auth-close:active {
    transform: scale(0.95);
}

.close-icon {
    line-height: 1;
}

/* Auth tabs */
.auth-tabs {
    display: flex;
    margin: 20px 32px 5px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 12px;
    border: 1px solid rgba(0, 255, 249, 0.4);
    overflow: hidden;
    position: relative;
    box-shadow: 
        inset 0 2px 10px rgba(0, 0, 0, 0.5),
        0 2px 10px rgba(0, 255, 249, 0.1);
}

.auth-tab {
    flex: 1;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.8);
    font-family: 'Orbitron', monospace;
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    padding: 16px 12px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
}

.auth-tab::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 255, 249, 0.1), rgba(255, 0, 128, 0.05));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.auth-tab.active {
    background: linear-gradient(135deg, var(--primary-cyan), var(--primary-magenta));
    color: var(--dark-bg);
    box-shadow: 
        inset 0 0 15px rgba(0, 255, 249, 0.6),
        0 0 20px rgba(0, 255, 249, 0.3),
        0 5px 15px rgba(0, 0, 0, 0.3);
    transform: translateY(-1px);
}

.auth-tab:hover:not(.active) {
    color: var(--primary-cyan);
    text-shadow: 0 0 10px rgba(0, 255, 249, 0.5);
}

.auth-tab:hover:not(.active)::before {
    opacity: 1;
}

.tab-icon {
    font-size: 1.1rem;
    filter: drop-shadow(0 0 5px currentColor);
}

/* Auth content */
.auth-content {
    padding: 25px 32px 32px;
}

.auth-form-container {
    display: none;
}

.auth-form-container.active {
    display: block;
    animation: fadeInUp 0.5s ease-out;
}

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

.form-title {
    text-align: center;
    margin-bottom: 30px;
}

.glitch-small {
    font-family: 'Orbitron', monospace;
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--primary-cyan);
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;    text-shadow: 
        0 0 10px rgba(0, 255, 249, 0.5),
        0 0 20px rgba(0, 255, 249, 0.3);
    display: inline-block;
}

.glitch-small::before,
.glitch-small::after {
    content: attr(data-text);
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
}

.glitch-small::before {
    animation: glitch-1 0.6s infinite linear alternate-reverse;
    color: var(--primary-magenta);
    z-index: -1;
}

.glitch-small::after {
    animation: glitch-2 0.6s infinite linear alternate-reverse;
    color: var(--primary-yellow);
    z-index: -2;
}

/* Neural form styling */
.neural-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: relative;
}

.input-container {
    position: relative;
    margin-bottom: 24px;
}

.input-label {
    font-family: 'Orbitron', monospace;
    font-size: 0.85rem;
    color: var(--primary-cyan);
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin-bottom: 10px;
    display: block;
    font-weight: 700;
    text-shadow: 0 0 10px rgba(0, 255, 249, 0.3);
    transition: all 0.3s ease;
}

.neural-input {
    width: 100%;
    background: rgba(0, 0, 0, 0.7);
    border: none;
    border-bottom: 2px solid rgba(0, 255, 249, 0.4);
    color: var(--white);
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.05rem;
    padding: 14px 0 12px;
    outline: none;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-sizing: border-box;
    position: relative;
}

.neural-input:focus {
    border-bottom-color: var(--primary-cyan);
    background: rgba(0, 255, 249, 0.08);
    box-shadow: 
        0 4px 15px rgba(0, 255, 249, 0.2),
        inset 0 -2px 10px rgba(0, 255, 249, 0.1);
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.3);
}

.neural-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
    font-style: italic;
    transition: color 0.3s ease;
}

.neural-input:focus::placeholder {
    color: rgba(0, 255, 249, 0.6);
}

.input-line {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-cyan), var(--primary-magenta));
    transition: width 0.3s ease;
}

.neural-input:focus + .input-line {
    width: 100%;
}

/* Neural buttons */
.neural-button {
    background: linear-gradient(135deg, var(--primary-cyan) 0%, var(--primary-magenta) 100%);
    border: 2px solid transparent;
    background-clip: padding-box;
    color: var(--dark-bg);
    font-family: 'Orbitron', monospace;
    font-size: 1.05rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 18px 30px;
    border-radius: 12px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    margin-top: 20px;
    width: 100%;
    box-shadow: 
        0 8px 25px rgba(0, 255, 249, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.neural-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.neural-button:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 
        0 15px 40px rgba(0, 255, 249, 0.4),
        0 5px 15px rgba(255, 0, 128, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
    filter: brightness(1.1);
}

.neural-button:hover::before {
    opacity: 1;
}

.neural-button:active {
    transform: translateY(-1px) scale(0.98);
    transition: all 0.1s ease;
}

.neural-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    filter: grayscale(0.5);
}

.button-text {
    position: relative;
    z-index: 2;
}

.button-glow {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
}

.neural-button:hover .button-glow {
    left: 100%;
}

.forgot-link {
    background: none;
    border: none;
    color: rgba(0, 255, 249, 0.8);
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    margin-top: 20px;
    padding: 8px 0;
    transition: all 0.3s ease;
    text-align: center;
    position: relative;
    letter-spacing: 0.5px;
}

.forgot-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 1px;
    background: var(--primary-cyan);
    transition: width 0.3s ease;
}

.forgot-link:hover {
    color: var(--primary-cyan);
    text-shadow: 0 0 8px rgba(0, 255, 249, 0.5);
}

.forgot-link:hover::after {
    width: 100%;
}

/* Auth divider */
.auth-divider {
    display: flex;
    align-items: center;
    margin: 25px 0;
    position: relative;
}

.divider-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-cyan), transparent);
}

.divider-text {
    font-family: 'Orbitron', monospace;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary-cyan);
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0 15px;
    background: var(--dark-bg);
}

/* Social auth */
.social-auth {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.social-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(0, 255, 249, 0.3);
    color: var(--white);
    font-family: 'Orbitron', monospace;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 15px 20px;
    border-radius: 8px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    min-height: 54px;
    width: 100%;
}

.social-button:hover {
    border-color: var(--primary-cyan);
    background: rgba(0, 255, 249, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 255, 249, 0.2);
}

.social-button.google:hover {
    border-color: var(--primary-cyan);
    background: rgba(0, 255, 249, 0.1);
}

.social-button.github:hover {
    border-color: var(--primary-cyan);
    background: rgba(0, 255, 249, 0.1);
}

.social-button.guest:hover {
    border-color: var(--primary-cyan);
    background: rgba(0, 255, 249, 0.1);
}

.social-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
    filter: brightness(1.1) contrast(1.1);
}

/* Specific icon adjustments */
.social-button.google .social-icon {
    filter: brightness(1.2) contrast(1.2);
}

.social-button.github .social-icon {
    filter: brightness(0) invert(1);
}

.social-button.guest .social-icon {
    filter: brightness(0) invert(1);
}

.guest-icon {
    font-size: 2rem;
}

.social-glow {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.6s ease;
}

.social-button:hover .social-glow {
    left: 100%;
}

/* Background effects */
.auth-bg-effect {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(0, 255, 249, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 0, 128, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

.auth-scanlines {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 255, 249, 0.03) 2px,
        rgba(0, 255, 249, 0.03) 4px
    );
    pointer-events: none;
    z-index: -1;
    animation: scanlines 2s linear infinite;
}

@keyframes scanlines {
    0% { transform: translateY(0); }
    100% { transform: translateY(4px); }
}

/* Responsive adjustments for neural theme */
@media (max-width: 600px) {
    .auth-panel {
        max-width: 95%;
        width: 95%;
    }
    
    .auth-header {
        padding: 16px 20px 10px;
    }
    
    .auth-content {
        padding: 18px 20px 15px;
    }
    
    .auth-tabs {
        margin: 12px 20px 0;
    }
    
    .glitch-text {
        font-size: 1.2rem;
        letter-spacing: 1px;
    }
    
    .neural-button {
        padding: 12px 20px;
        font-size: 0.9rem;
    }
    
    .social-button {
        padding: 12px 15px;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .auth-panel {
        max-width: 98%;
        width: 98%;
    }
    
    .auth-header {
        padding: 14px 16px 8px;
    }
    
    .auth-content {
        padding: 16px 16px 12px;
    }
    
    .auth-tabs {
        margin: 10px 16px 0;
    }
    
    .glitch-text {
        font-size: 1.1rem;
    }
    
    .access-text {
        font-size: 0.65rem;
    }
}

/* Additional neural input effects */
.input-container.focused .input-label {
    color: var(--primary-magenta);
    text-shadow: 0 0 5px var(--primary-magenta);
}

.input-container.focused .neural-input {
    background: rgba(0, 255, 249, 0.08);
    box-shadow: 0 0 10px rgba(0, 255, 249, 0.2);
}

/* Button loading state */
.neural-button.loading {
    animation: buttonPulse 1.5s ease-in-out infinite;
}

@keyframes buttonPulse {
    0%, 100% { 
        box-shadow: 0 0 10px rgba(0, 255, 249, 0.3);
    }
    50% { 
        box-shadow: 0 0 20px rgba(0, 255, 249, 0.6);
    }
}

/* Auth message animations */
@keyframes messageSlideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes messageSlideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(400px);
        opacity: 0;
    }
}

/* Ensure delete confirmation input is always interactive */
#delete-confirmation-input {
    pointer-events: auto !important;
    cursor: text !important;
    user-select: text !important;
    z-index: 1000;
}

/* Refresh Profile Button */
.profile-action-btn.refresh-profile {
    background: linear-gradient(135deg, #00ffff, #0080ff);
    border: 1px solid #00ffff;
    color: #000;
}

.profile-action-btn.refresh-profile:hover {
    background: linear-gradient(135deg, #00e6e6, #0066cc);
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.5);
    transform: translateY(-1px);
}

.profile-action-btn.refresh-profile .action-icon {
    animation: rotate 1s linear infinite paused;
}

.profile-action-btn.refresh-profile:hover .action-icon {
    animation-play-state: running;
}

/* Settings Button */
.profile-action-btn.settings {
    background: linear-gradient(135deg, #8a2be2, #00ffff);
    border: 1px solid #8a2be2;
    color: #000;
}

.profile-action-btn.settings:hover {
    background: linear-gradient(135deg, #7b2edd, #00e6e6);
    box-shadow: 0 0 15px rgba(138, 43, 226, 0.5);
    transform: translateY(-1px);
}

.profile-action-btn.settings .action-icon {
    animation: settingsRotate 0.6s ease paused;
}

.profile-action-btn.settings:hover .action-icon {
    animation-play-state: running;
}

@keyframes settingsRotate {
    0% { transform: rotate(0deg); }
    50% { transform: rotate(180deg); }
    100% { transform: rotate(360deg); }
}

/* Profile Picture Crop Modal */
.crop-modal {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(0, 0, 0, 0.8) !important;
    backdrop-filter: blur(8px) !important;
    z-index: 10000 !important;
    display: none !important; /* Ensure it's hidden by default */
    align-items: center !important;
    justify-content: center !important;
    visibility: hidden !important;
    opacity: 0 !important;
    transition: opacity 0.3s ease, visibility 0.3s ease !important;
}

.crop-modal.show {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.crop-modal-content {
    background: linear-gradient(135deg, rgba(13, 17, 25, 0.95), rgba(26, 35, 52, 0.95)) !important;
    border: 2px solid var(--primary-cyan) !important;
    border-radius: 16px !important;
    padding: 24px !important;
    max-width: 500px !important;
    width: 90% !important;
    box-shadow: 0 20px 60px rgba(0, 255, 249, 0.3) !important;
    font-family: 'Orbitron', monospace !important;
}

.crop-modal-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin-bottom: 20px !important;
    padding-bottom: 12px !important;
    border-bottom: 1px solid rgba(0, 255, 249, 0.3) !important;
}

.crop-modal-header h3 {
    color: var(--primary-cyan) !important;
    font-size: 1.2rem !important;
    font-weight: 600 !important;
    margin: 0 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
}

.crop-modal-close {
    background: none !important;
    border: none !important;
    color: var(--primary-cyan) !important;
    font-size: 24px !important;
    cursor: pointer !important;
    padding: 0 !important;
    width: 30px !important;
    height: 30px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 50% !important;
    transition: background 0.3s ease !important;
}

.crop-modal-close:hover {
    background: rgba(0, 255, 249, 0.2) !important;
    transform: scale(1.1) !important;
}

.crop-container {
    margin-bottom: 20px !important;
}

.crop-preview-container {
    position: relative !important;
    width: 300px !important;
    height: 300px !important;
    margin: 0 auto !important;
    overflow: hidden !important;
    border-radius: 8px !important;
    border: 2px solid rgba(0, 255, 249, 0.5) !important;
}

.crop-image {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    transform-origin: center center !important;
    transition: transform 0.2s ease !important;
    max-width: none !important;
    max-height: none !important;
}

.crop-overlay {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(0, 0, 0, 0.6) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.crop-circle {
    width: 200px !important;
    height: 200px !important;
    border: 3px solid var(--primary-cyan) !important;
    border-radius: 50% !important;
    box-shadow: 
        0 0 0 9999px rgba(0, 0, 0, 0.6),
        inset 0 0 20px rgba(0, 255, 249, 0.3),
        0 0 30px rgba(0, 255, 249, 0.5) !important;
    animation: cropPulse 2s ease-in-out infinite !important;
}

@keyframes cropPulse {
    0%, 100% { 
        box-shadow: 
            0 0 0 9999px rgba(0, 0, 0, 0.6),
            inset 0 0 20px rgba(0, 255, 249, 0.3),
            0 0 30px rgba(0, 255, 249, 0.5);
    }
    50% { 
        box-shadow: 
            0 0 0 9999px rgba(0, 0, 0, 0.6),
            inset 0 0 25px rgba(0, 255, 249, 0.5),
            0 0 40px rgba(0, 255, 249, 0.8);
    }
}

.crop-controls {
    display: flex !important;
    flex-direction: column !important;
    gap: 16px !important;
}

.zoom-control {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
}

.zoom-control label {
    color: var(--primary-cyan) !important;
    font-size: 0.9rem !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    min-width: 50px !important;
}

#zoom-slider {
    flex: 1 !important;
    height: 8px !important;
    background: rgba(0, 255, 249, 0.2) !important;
    border-radius: 4px !important;
    outline: none !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    cursor: pointer !important;
}

#zoom-slider::-webkit-slider-track {
    height: 8px !important;
    background: rgba(0, 255, 249, 0.2) !important;
    border-radius: 4px !important;
}

#zoom-slider::-webkit-slider-thumb {
    appearance: none !important;
    -webkit-appearance: none !important;
    width: 20px !important;
    height: 20px !important;
    background: var(--primary-cyan) !important;
    border-radius: 50% !important;
    cursor: pointer !important;
    box-shadow: 0 0 10px rgba(0, 255, 249, 0.5) !important;
    border: 2px solid #000 !important;
}

#zoom-slider::-moz-range-thumb {
    width: 20px !important;
    height: 20px !important;
    background: var(--primary-cyan) !important;
    border-radius: 50% !important;
    cursor: pointer !important;
    border: 2px solid #000 !important;
    box-shadow: 0 0 10px rgba(0, 255, 249, 0.5) !important;
}

#zoom-slider::-moz-range-track {
    height: 8px !important;
    background: rgba(0, 255, 249, 0.2) !important;
    border-radius: 4px !important;
}

.crop-actions {
    display: flex !important;
    gap: 12px !important;
    justify-content: center !important;
}

.crop-btn {
    padding: 12px 24px !important;
    border-radius: 8px !important;
    font-family: 'Orbitron', monospace !important;
    font-weight: 600 !important;
    font-size: 0.9rem !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    border: 2px solid transparent !important;
}

.crop-cancel {
    background: rgba(255, 0, 128, 0.2) !important;
    color: #ff0080 !important;
    border-color: #ff0080 !important;
}

.crop-cancel:hover {
    background: rgba(255, 0, 128, 0.3) !important;
    box-shadow: 0 0 20px rgba(255, 0, 128, 0.4) !important;
    transform: translateY(-2px) !important;
}

.crop-confirm {
    background: rgba(0, 255, 249, 0.2) !important;
    color: var(--primary-cyan) !important;
    border-color: var(--primary-cyan) !important;
}

.crop-confirm:hover {
    background: rgba(0, 255, 249, 0.3) !important;
    box-shadow: 0 0 20px rgba(0, 255, 249, 0.4) !important;
    transform: translateY(-2px) !important;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Netlify Branding Styles */
.netlify-branding {
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.8rem;
    color: var(--gray-400);
    font-family: 'Orbitron', monospace;
}

.netlify-link {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--gray-400);
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
}

.netlify-link:hover {
    color: var(--primary-cyan);
    transform: translateY(-1px);
}

.netlify-logo {
    width: 20px;
    height: 20px;
    object-fit: contain;
    transition: all 0.3s ease;
}

.netlify-link:hover .netlify-logo {
    filter: brightness(1.2) drop-shadow(0 0 8px rgba(0, 255, 249, 0.3));
}

/* ===== SVG ICON STYLES ===== */
.icon-svg {
    width: 1em;
    height: 1em;
    display: inline-block;
    vertical-align: middle;
    fill: currentColor;
}

/* Action icons */
.action-icon .icon-svg {
    width: 16px;
    height: 16px;
}

/* Tab icons */
.tab-icon .icon-svg {
    width: 18px;
    height: 18px;
}

/* Game icons */
.game-icon .icon-svg {
    width: 48px;
    height: 48px;
    margin: 0 8px;
}

.game-icon .icon-svg:first-child {
    fill: #00ffff;
    filter: drop-shadow(0 0 10px #00ffff40);
}

.game-icon .icon-svg:last-child {
    fill: #ff00ff;
    filter: drop-shadow(0 0 10px #ff00ff40);
}

.game-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 20px 0;
}

/* Social icons */
.social-icon .icon-svg {
    width: 16px;
    height: 16px;
}

/* Warning icons */
.warning-icon .icon-svg {
    width: 24px;
    height: 24px;
    fill: #ff4444;
}

/* Glitch constant warning icons */
.glitch-constant .icon-svg {
    width: 16px;
    height: 16px;
    fill: #ff4444;
}

/* ===== END SVG ICON STYLES ===== */

/* ===== TERMS AGREEMENT STYLES ===== */
.terms-agreement {
    margin-top: 20px;
    padding: 15px;
    text-align: center;
    border-top: 1px solid rgba(0, 255, 255, 0.2);
}

.terms-agreement p {
    font-size: 12px;
    color: #888;
    line-height: 1.4;
    margin: 0;
}

.terms-agreement a {
    color: #00ffff;
    text-decoration: none;
    transition: all 0.3s ease;
}

.terms-agreement a:hover {
    color: #ff00ff;
    text-shadow: 0 0 5px #ff00ff40;
}

/* ===== END TERMS AGREEMENT STYLES ===== */

/* Terms Agreement Popup */
.terms-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 20000;
    animation: fadeIn 0.5s ease-out;
}

.terms-popup {
    background: linear-gradient(135deg, #0a1629 0%, #041018 100%);
    border: 2px solid var(--primary-cyan);
    border-radius: 16px;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.8),
        0 0 40px rgba(0, 255, 249, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    max-width: 500px;
    width: 90%;
    padding: 0;
    position: relative;
    overflow: hidden;
    animation: scaleIn 0.5s ease-out;
}

.terms-popup::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(45deg, transparent 30%, rgba(0, 255, 249, 0.05) 50%, transparent 70%),
        radial-gradient(circle at 20% 50%, rgba(255, 0, 128, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(0, 255, 249, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.terms-popup-header {
    padding: 2rem 2rem 1rem 2rem;
    border-bottom: 1px solid rgba(0, 255, 249, 0.3);
    text-align: center;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.terms-popup-title {
    margin: 0;
    color: var(--white);
    font-family: 'Orbitron', monospace;
    font-size: 1.4rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.terms-popup-content {
    padding: 2rem;
    text-align: center;
}

.terms-popup-content p {
    color: var(--light-gray);
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.1rem;
    line-height: 1.6;
    margin: 0;
    text-align: center;
}

.terms-popup-content a {
    color: var(--primary-cyan);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
}

.terms-popup-content a:hover {
    color: var(--white);
    text-shadow: 0 0 8px var(--primary-cyan);
}

.terms-popup-content a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-cyan);
    transition: width 0.3s ease;
}

.terms-popup-content a:hover::after {
    width: 100%;
}

.terms-popup-actions {
    padding: 1rem 2rem 2rem 2rem;
    display: flex;
    gap: 1rem;
    justify-content: center;
    align-items: center;
}

.terms-popup-actions .btn {
    flex: 1;
    max-width: 150px;
    padding: 1rem 1.5rem;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.terms-popup-actions .btn-primary {
    background: linear-gradient(135deg, var(--primary-cyan) 0%, #00b8d4 100%);
    color: var(--dark-bg);
    box-shadow: 0 4px 15px rgba(0, 255, 249, 0.3);
}

.terms-popup-actions .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 255, 249, 0.4);
}

.terms-popup-actions .btn-secondary {
    background: transparent;
    color: var(--light-gray);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.terms-popup-actions .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
    color: var(--white);
    transform: translateY(-2px);
}

/* Ensure DISMISS text is perfectly centered */
#dismiss-terms-update {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

/* Responsive design for terms popup */
@media (max-width: 768px) {
    .terms-popup {
        margin: 1rem;
        max-width: none;
        width: calc(100% - 2rem);
    }
    
    .terms-popup-header,
    .terms-popup-content,
    .terms-popup-actions {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
    
    .terms-popup-title {
        font-size: 1.2rem;
    }
    
    .terms-popup-content p {
        font-size: 1rem;
    }
    
    .terms-popup-actions {
        flex-direction: column;
    }
    
    .terms-popup-actions .btn {
        max-width: none;
    }
}

/* Game Options Modal Styles */
.game-options-panel {
    max-width: 500px;
    width: 90%;
}

.game-options-content {
    padding: 20px 0;
}

.game-info-display {
    text-align: center;
    margin-bottom: 30px;
}

.game-info-display h3 {
    color: var(--primary-cyan);
    font-size: 1.5rem;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.game-launch-subtitle {
    color: var(--gray-200);
    font-size: 1rem;
    opacity: 0.8;
}

.launch-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.launch-option {
    display: flex;
    align-items: center;
    padding: 20px;
    text-align: left;
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--gray-800), var(--gray-700));
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.launch-option:hover {
    border-color: var(--primary-cyan);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 255, 249, 0.2);
}

.launch-option.primary:hover {
    border-color: var(--primary-cyan);
    box-shadow: 0 10px 30px rgba(0, 255, 249, 0.3);
}

.launch-option.secondary:hover {
    border-color: var(--primary-magenta);
    box-shadow: 0 10px 30px rgba(255, 0, 128, 0.3);
}

.launch-icon {
    width: 50px;
    height: 50px;
    margin-right: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(45deg, var(--primary-cyan), var(--primary-magenta));
    border-radius: 8px;
    flex-shrink: 0;
}

.launch-icon .icon-svg {
    width: 24px;
    height: 24px;
    fill: var(--dark-bg);
}

.launch-text {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.launch-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 5px;
    text-transform: uppercase;
}

.launch-desc {
    font-size: 0.9rem;
    color: var(--gray-400);
    opacity: 0.8;
}

.outdated-badge {
    display: none;
    background: linear-gradient(45deg, var(--warning), #ff6b00);
    color: var(--dark-bg);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 3px 6px;
    border-radius: 10px;
    margin-top: 6px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    animation: badgePulse 2s infinite;
    box-shadow: 0 0 8px rgba(255, 184, 0, 0.4);
    white-space: nowrap;
    max-width: fit-content;
}

@keyframes badgePulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.05);
    }
}

/* Animation for modal entrance */
.game-options-panel {
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .launch-options {
        gap: 12px;
    }
    
    .launch-option {
        padding: 15px;
    }
    
    .launch-icon {
        width: 40px;
        height: 40px;
        margin-right: 15px;
    }
    
    .launch-icon .icon-svg {
        width: 20px;
        height: 20px;
    }
    
    .launch-title {
        font-size: 1rem;
    }
    
    .launch-desc {
        font-size: 0.8rem;
    }
}

/* Remember Option Checkbox */
.remember-option {
    margin-top: 20px;
    text-align: center;
}

.remember-checkbox {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
    color: var(--gray-200);
    font-size: 0.9rem;
}

.remember-checkbox input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid var(--primary-cyan);
    border-radius: 4px;
    margin-right: 10px;
    position: relative;
    background: transparent;
    transition: all 0.3s ease;
}

.remember-checkbox:hover .checkmark {
    background: rgba(0, 255, 249, 0.1);
    box-shadow: 0 0 10px rgba(0, 255, 249, 0.3);
}

.remember-checkbox input:checked + .checkmark {
    background: linear-gradient(45deg, var(--primary-cyan), var(--primary-magenta));
    border-color: var(--primary-magenta);
}

.remember-checkbox input:checked + .checkmark:after {
    content: "✓";
    position: absolute;
    color: var(--dark-bg);
    font-size: 14px;
    font-weight: bold;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

.checkbox-text {
    transition: color 0.3s ease;
}

.remember-checkbox:hover .checkbox-text {
    color: var(--primary-cyan);
}

/* Settings Modal Styles */
.settings-panel {
    max-width: 600px;
    width: 90%;
}

.settings-content {
    padding: 20px 0;
}

.settings-section {
    margin: 25px 0;
    padding: 20px;
    background: linear-gradient(135deg, var(--gray-800), var(--gray-700));
    border-radius: 12px;
    border: 1px solid var(--gray-600);
}

.settings-section h4 {
    color: var(--primary-cyan);
    font-size: 1.1rem;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.setting-item {
    margin: 12px 0;
}

.setting-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    color: var(--gray-200);
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.setting-label:hover {
    color: var(--primary-cyan);
}

.setting-label input[type="radio"] {
    display: none;
}

.radio-custom {
    width: 18px;
    height: 18px;
    border: 2px solid var(--primary-cyan);
    border-radius: 50%;
    margin-right: 12px;
    position: relative;
    transition: all 0.3s ease;
}

.setting-label:hover .radio-custom {
    box-shadow: 0 0 10px rgba(0, 255, 249, 0.3);
}

.setting-label input:checked + .radio-custom {
    background: var(--primary-cyan);
    border-color: var(--primary-magenta);
}

.setting-label input:checked + .radio-custom:after {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--dark-bg);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.settings-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    margin-top: 30px;
}

.settings-actions .neural-button {
    min-width: 120px;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Global: profile trigger positioning context */
.profile-trigger {
    position: relative;
}

/* Global: animated notification badge (top-left of the user module) */
.notification-count-badge {
    position: absolute;
    top: -5px;
    left: -5px;
    background: linear-gradient(135deg, #ff0080, #ff1493, #ff69b4);
    color: var(--white);
    border-radius: 50%;
    min-width: 14px;
    height: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.55rem;
    font-weight: 800;
    line-height: 1;
    /* removed solid white border; rely on glow + detached ring */
    box-shadow: 0 0 20px rgba(255, 0, 128, 0.8), 
                0 0 40px rgba(255, 0, 128, 0.4),
                0 2px 10px rgba(0, 0, 0, 0.3);
    animation: badgePulse 1.5s infinite, badgeGlow 2s infinite alternate;
    z-index: 999; /* ensure above card */
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9);
    transform-origin: center;
}

/* Detached halo ring that doesn't touch the badge */
.notification-count-badge::after {
    content: "";
    position: absolute;
    inset: -4px; /* creates a gap around the badge */
    border-radius: 50%;
    border: 1.5px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 0 10px rgba(0, 255, 249, 0.45), 0 0 18px rgba(255, 0, 128, 0.35);
    pointer-events: none;
    animation: ringPulse 2s infinite ease-in-out;
}

@keyframes ringPulse {
    0% { transform: scale(1); opacity: 0.9; }
    50% { transform: scale(1.08); opacity: 0.6; }
    100% { transform: scale(1); opacity: 0.9; }
}

@keyframes badgePulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

@keyframes badgeGlow {
    0% {
        box-shadow: 0 0 20px rgba(255, 0, 128, 0.8), 
                    0 0 40px rgba(255, 0, 128, 0.4),
                    0 2px 10px rgba(0, 0, 0, 0.3);
    }
    100% {
        box-shadow: 0 0 30px rgba(255, 0, 128, 1), 
                    0 0 60px rgba(255, 0, 128, 0.6),
                    0 2px 10px rgba(0, 0, 0, 0.3);
    }
}

/* ================================
     Community Intro Overlay Styles
     ================================ */
.community-intro-overlay {
    position: fixed;
    inset: 0;
    z-index: 5000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: max(16px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(16px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    background:
        radial-gradient(ellipse at center, rgba(0,0,0,0.72) 0%, rgba(0,0,0,0.88) 60%),
        linear-gradient(135deg, rgba(10, 22, 41, 0.9) 0%, rgba(4, 16, 24, 0.96) 50%, rgba(6, 10, 18, 0.9) 100%);
}

@keyframes communityIntroPop {
    from { transform: translateY(18px) scale(0.98); opacity: 0; }
    to { transform: translateY(0) scale(1); opacity: 1; }
}

.community-intro-dialog {
    position: relative;
    width: min(760px, 92vw);
    border-radius: 20px;
    padding: 28px 24px;
    border: 2px solid rgba(0,255,249,0.7);
    background:
        linear-gradient(135deg, rgba(10, 22, 41, 0.95) 0%, rgba(4, 16, 24, 0.98) 50%, rgba(6, 10, 18, 0.95) 100%),
        radial-gradient(circle at 50% 0%, rgba(0,255,249,0.08) 0%, transparent 55%);
    box-shadow: 0 25px 80px rgba(0,0,0,0.8), 0 15px 35px rgba(0,255,249,0.18), 0 5px 15px rgba(255,0,128,0.12);
    color: #e8f8ff;
    overflow: hidden;
    animation: communityIntroPop .35s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.community-intro-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    border: 1px solid rgba(0,255,249,0.35);
    background: rgba(0,0,0,0.35);
    color: #fff;
    cursor: pointer;
}

.community-intro-body { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.community-intro-title {
    margin: 0;
    font-family: 'Orbitron', monospace;
    font-weight: 900;
    font-size: clamp(1.8rem, 3.8vw, 2.6rem);
    color: #16e1ff;
    text-shadow: 0 0 12px rgba(0,255,249,0.6);
}
.community-intro-desc { margin: 0; font-family: 'Rajdhani', sans-serif; font-size: 1.05rem; opacity: .92; max-width: 65ch; }
.community-intro-actions { display: flex; gap: 10px; margin-top: 6px; flex-wrap: wrap; }

/* Button variants for neural-button */
.neural-button.primary { background: linear-gradient(135deg, var(--primary-cyan), var(--primary-magenta)); color: var(--dark-bg); border: 1px solid var(--primary-cyan); width: auto; }
.neural-button.secondary { background: transparent; color: var(--primary-cyan); border: 1px solid var(--primary-cyan); width: auto; }
.neural-button.primary:hover { box-shadow: 0 0 20px var(--primary-cyan); transform: translateY(-2px); }
.neural-button.secondary:hover { background: var(--primary-cyan); color: var(--dark-bg); box-shadow: 0 0 20px var(--primary-cyan); }

@media (max-width: 520px) {
    .community-intro-dialog { padding: 22px 18px; border-radius: 16px; }
    .community-intro-title { font-size: clamp(1.5rem, 5vw, 2rem); }
    .community-intro-actions .neural-button { padding: 12px 18px; }
}

/* Moderation page tweaks */
.mod-page .neural-button {
    padding: 10px 16px;
    border-radius: 12px;
    font-size: 0.95rem;
    letter-spacing: 1px;
    margin-top: 0;
    box-shadow: 0 4px 12px rgba(0, 255, 249, 0.12);
    border-width: 1.5px;
}
.mod-page .neural-button.secondary {
    background: rgba(0,0,0,0.25);
    border-color: var(--primary-cyan);
    color: var(--primary-cyan);
}
.mod-page .neural-button.secondary:hover {
    background: linear-gradient(135deg, rgba(0,255,249,0.12), rgba(0,255,249,0.06));
    box-shadow: 0 6px 16px rgba(0, 255, 249, 0.18);
}
.mod-page .status-actions .neural-button {
    padding: 10px 16px;
    border-width: 1.5px;
}
.mod-page .status-actions .sa-open { border-color: var(--primary-cyan); color: var(--primary-cyan); }
.mod-page .status-actions .sa-pending { border-color: var(--warning); color: var(--warning); }
.mod-page .status-actions .sa-closed { border-color: var(--danger); color: var(--danger); }
.mod-page .status-actions .sa-open:hover { background: rgba(0,255,249,0.12); }
.mod-page .status-actions .sa-pending:hover { background: rgba(255,184,0,0.12); }
.mod-page .status-actions .sa-closed:hover { background: rgba(255,7,58,0.12); }

/* Make toolbars/actions compact and tidy */
.mod-page #mod-reports-controls .neural-button,
.mod-page .mrr-actions .neural-button { min-height: 40px; line-height: 1; }
.mod-page .mrr-actions { gap: 10px; }

/* Status chips */
.status-chip {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 999px;
    font-size: 0.85rem;
    line-height: 1.6;
    border: 1px solid transparent;
    margin-right: 6px;
}
.status-open { color: var(--primary-cyan); border-color: rgba(0,255,249,0.5); background: rgba(0,255,249,0.08); }
.status-pending { color: var(--warning); border-color: rgba(255,184,0,0.6); background: rgba(255,184,0,0.08); }
.status-closed { color: var(--danger); border-color: rgba(255,7,58,0.6); background: rgba(255,7,58,0.08); }