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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: linear-gradient(135deg, #0f0f0f 0%, #1a1a1a 100%);
    color: #ffffff;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Matrix background */
.matrix-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    background: #000;
    overflow: hidden;
}

.matrix-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

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

.profile-header {
    position: relative;
    margin: 40px 0;
    border-radius: 20px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 255, 0, 0.2);
    box-shadow: 0 8px 32px rgba(0, 255, 0, 0.1);
}

.profile-bg {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 50%, rgba(120, 119, 198, 0.3), transparent 50%),
                radial-gradient(circle at 80% 50%, rgba(255, 119, 198, 0.3), transparent 50%);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) scale(1); }
    50% { transform: translateY(-20px) scale(1.05); }
}

.profile-content {
    position: relative;
    display: flex;
    align-items: center;
    padding: 60px;
    gap: 40px;
}

.avatar-container {
    position: relative;
}

.profile-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid rgba(255,255,255,0.2);
    transition: transform 0.3s ease;
}

.avatar-glow {
    position: absolute;
    inset: -10px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(120, 119, 198, 0.4), transparent 70%);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.1); opacity: 0.4; }
}

.profile-info h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #fff, #a78bfa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.profile-stats {
    display: flex;
    gap: 40px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: #a78bfa;
}

.stat-label {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.6);
}

.profile-nav {
    display: flex;
    gap: 10px;
    margin-bottom: 40px;
    background: rgba(255,255,255,0.05);
    padding: 8px;
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

.nav-btn {
    flex: 1;
    padding: 12px 24px;
    background: transparent;
    border: none;
    color: rgba(255,255,255,0.6);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.nav-btn:hover {
    color: #fff;
    background: rgba(255,255,255,0.1);
}

.nav-btn.active {
    color: #fff;
    background: linear-gradient(135deg, #a78bfa, #8b5cf6);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.section-header h2 {
    font-size: 1.8rem;
    font-weight: 600;
}

.filter-select {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.9rem;
}

.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

.project-card {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    border-color: rgba(167, 139, 250, 0.5);
}

.project-thumbnail {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: linear-gradient(135deg, #a78bfa, #8b5cf6);
}

.project-info {
    padding: 20px;
}

.project-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: #fff;
}

.project-stats {
    display: flex;
    gap: 16px;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.6);
}

.loading-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px;
    color: rgba(255,255,255,0.6);
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255,255,255,0.1);
    border-top-color: #a78bfa;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 16px;
}

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

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

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

.game-container {
    max-width: 400px;
    margin: 0 auto;
    text-align: center;
}

.game-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 0 20px;
}

.game-header h2 {
    font-size: 1.8rem;
    font-weight: 600;
}

.game-stats {
    display: flex;
    gap: 20px;
    font-size: 1.1rem;
    color: #a78bfa;
}

#game-canvas {
    border: 2px solid rgba(0, 255, 0, 0.5);
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.8);
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.3);
}

.game-controls {
    margin-top: 20px;
}

.game-controls p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 15px;
}

.game-btn {
    background: linear-gradient(135deg, #a78bfa, #8b5cf6);
    border: none;
    color: white;
    padding: 12px 30px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.game-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(167, 139, 250, 0.4);
}

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

.empty-state {
    text-align: center;
    padding: 60px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.2rem;
}

.admin-only {
    display: none !important;
}

.admin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 24px;
}

.admin-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 24px;
    backdrop-filter: blur(10px);
}

.admin-card h3 {
    font-size: 1.3rem;
    margin-bottom: 16px;
    color: #a78bfa;
}

.admin-section {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

.admin-input, .admin-select {
    flex: 1;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 12px;
    border-radius: 8px;
    font-size: 0.9rem;
}

.admin-btn {
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.admin-btn:not(.danger):not(.warning):not(.success) {
    background: linear-gradient(135deg, #a78bfa, #8b5cf6);
    color: white;
}

.admin-btn.danger {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
}

.admin-btn.warning {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
}

.admin-btn.success {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

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

.admin-results {
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 12px;
}

.admin-results::-webkit-scrollbar {
    width: 6px;
}

.admin-results::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
}

.admin-results::-webkit-scrollbar-thumb {
    background: #a78bfa;
    border-radius: 3px;
}

.admin-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.admin-item:last-child {
    border-bottom: none;
}

.admin-item-info {
    flex: 1;
}

.admin-item-actions {
    display: flex;
    gap: 8px;
}

.admin-item-btn {
    padding: 6px 12px;
    font-size: 0.8rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.admin-item-btn.ban {
    background: #ef4444;
    color: white;
}

.admin-item-btn.warn {
    background: #f59e0b;
    color: white;
}

.admin-item-btn.view {
    background: #3b82f6;
    color: white;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.stat-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 16px;
    border-radius: 8px;
    text-align: center;
}

.admin-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.admin-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.admin-list .admin-item {
    background: rgba(167, 139, 250, 0.1);
    border: 1px solid rgba(167, 139, 250, 0.3);
    border-radius: 8px;
}

.admin-list .admin-item:hover {
    background: rgba(167, 139, 250, 0.2);
}

/* Responsive */
@media (max-width: 768px) {
    .profile-content {
        flex-direction: column;
        text-align: center;
        padding: 40px 20px;
    }
    
    .profile-stats {
        justify-content: center;
    }
    
    .content-grid {
        grid-template-columns: 1fr;
    }
    
    .admin-grid {
        grid-template-columns: 1fr;
    }
    
    .admin-section {
        flex-direction: column;
    }
    
    .admin-actions {
        flex-direction: column;
    }
}